/* A module page in its window: the page frame, its header and crumbs, the no-JS confirmation pages, the pager.
   Every window body is a size container, so a window snapped to half the screen reflows its own layout. */
@layer components {
  .kos-win-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    position: relative;
    user-select: text;
    container-type: inline-size;
  }
  .a {
    padding: var(--k-space-8) var(--k-space-9) var(--k-space-10);
    display: flex;
    flex-direction: column;
    gap: var(--k-space-7);
  }
  .a-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--k-space-7);
    flex-wrap: wrap;
  }
  .a-head h1 {
    margin: var(--k-space-1) 0 0;
    font-family: var(--k-display);
    font-size: var(--k-display-8);
    font-weight: var(--k-weight-bold);
    letter-spacing: var(--k-track-3);
    text-transform: uppercase;
    line-height: var(--k-leading-none);
    display: flex;
    align-items: center;
    gap: var(--k-space-6);
    flex-wrap: wrap;
  }
  .a-head p {
    margin: 5px 0 0;
    color: var(--k-muted);
  }
  .kos-win-body a {
    color: inherit;
    text-decoration: none;
  }
  .kos-win-body .a {
    min-height: 100%;
  }
  .d-h2 {
    margin: var(--k-space-2) 0 0;
    font-family: var(--k-display);
    font-size: var(--k-display-6);
    font-weight: var(--k-weight-semibold);
    letter-spacing: var(--k-track-5);
    text-transform: uppercase;
  }
  .a-head h1 .a-pill,
  .a-head h1 .a-tag {
    font-family: var(--k-font);
    letter-spacing: 0;
    text-transform: none;
  }
  .a-head .k-code a.d-crumb {
    color: var(--k-muted);
  }
  .a-head .k-code a.d-crumb:hover {
    color: var(--k-accent);
  }
  .a-head .k-code .d-here {
    color: var(--k-intel);
  }
  .kos-win-body > .d-note {
    margin: var(--k-space-6) var(--k-space-9) 0;
  }
  .d-confirm {
    max-width: 520px;
    margin: 6vh auto 0;
    width: 100%;
  }
  .d-narrow-page {
    align-items: stretch;
  }
  .d-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--k-space-5);
  }
}
