.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Top Navigation */
.top-nav {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 4rem;
}

.nav-left, .nav-right, .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.logo-icon {
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Issue #109: light/dark logo swap for the NRI monogram. The blue logo
   reads on every light-surface page; the white logo replaces it only on
   /executive.html where body.page-executive is set. */
.logo-icon .logo-on-dark { display: none; }
body.page-executive .logo-icon .logo-on-light { display: none; }
body.page-executive .logo-icon .logo-on-dark { display: inline-block; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
}

.nav-link.active, .nav-link:hover {
    background-color: var(--nav-active-bg);
    color: var(--nav-active-text);
}

.nav-link svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Issue 126: scope the white kanban surface to the kanban view
   ONLY. The pre-126 rule painted every `.main-content` white,
   which clobbered `body.page-executive`'s navy background: the
   exec page is `<main class="main-content exec-page">`, so the
   white declaration on `.main-content` overrode the body navy
   and left visible white bands on either side of the centered
   `.exec-page` content (max-width: 1400px, margin: 0 auto).
   Dashboard was collateral too — it had inherited the body grey
   pre-#125 and the blanket white broke its section/panel
   figure-ground.
   `body:has(.swimlanes-container)` matches only the kanban page
   (only index.html ships a `.swimlanes-container`); the white
   surface lands there and nowhere else. */
body:has(.swimlanes-container) .main-content {
    background-color: var(--nri-white);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Issue 125: replace the 1px subtle border with a 2px navy
       rule. The current page header sat under a near-invisible
       hairline that did not punctuate the headline; the thicker
       navy rule pairs with the Karelia display headline to give
       the page an editorial spine. Margin doubled to match the
       new section rhythm below. */
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--nri-navy);
    padding-bottom: 1.25rem;
}

/* Issue #118 — page-header h2/h3 zero their own margin since the flex
   container owns vertical spacing. Mirrors the .modal-section-header
   convention in components.css. */
.page-header h2,
.page-header h3 {
    margin: 0;
}

/* Swimlanes */
.swimlanes-container {
    display: flex;
    flex-direction: column;
    /* Issue 125: looser vertical rhythm between swimlane sections.
       The pre-125 layout had each swimlane in its own tinted box
       so the 2rem gap looked like "space between cards"; the
       post-125 layout has no boxes, so the gap is the section
       break itself. clamp gives 32px → 56px depending on viewport. */
    gap: clamp(2rem, 3vw, 3.5rem);
}

.swimlane {
    /* Issue 125: tinted background + 1px border removed. The
       swimlane is now a SECTION, not a CARD. Its frame is the
       generous vertical rhythm above + the typography of its
       header, not a coloured panel. Stripping the background was
       the single largest contributor to the "five stacked
       rectangles" perception the original report described. */
    background-color: transparent;
    border: 0;
    border-radius: 0;
}

.swimlane-header {
    /* Padding removed from the header — there is no surrounding
       container to inset from. The header now sits flush with the
       page gutter; spacing is provided by the swimlanes-container
       gap above and the kanban-board margin below. */
    padding: 0 0 1.25rem 0;
    border-bottom: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.swimlane-toggle {
    cursor: pointer;
    user-select: none;
}

.swimlane-toggle::after {
    content: '▾';
    color: var(--text-color-muted);
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.swimlane-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    border-radius: 0;
}

.swimlane.is-collapsed .swimlane-header {
    border-bottom: none;
}

.swimlane.is-collapsed .swimlane-toggle::after {
    transform: rotate(-90deg);
}

.swimlane-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.swimlane-title {
    /* Issue 125: swimlane title scaled up to read as a section
       heading rather than a panel label. Karelia at clamp 22→30px
       with the brand's tight tracking matches the editorial
       register established by the page headline. font-weight 400
       (Karelia Regular) is the brand's heading weight per
       colors_and_type.css — the synthesised bold the browser
       previously produced has been an OTS-rejection casualty
       since issue 122; this avoids depending on the bold cut. */
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 2vw, 1.875rem);
    font-weight: 400;
    line-height: var(--lh-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--nri-navy);
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    /* Issue 125: padding removed — the kanban-board no longer
       lives inside a tinted swimlane container, so there is no
       inset to enforce. The board sits flush with the swimlane
       header above; the page gutter is owned by .main-content. */
    padding: 0;
}

.swimlane.is-collapsed .kanban-board {
    display: none;
}

.kanban-column {
    display: flex;
    flex-direction: column;
    /* Issue 125: 2px coloured rail on the left edge. Replaces the
       tinted column background with a hairline accent that encodes
       status identity (Proposed = neutral subtle, Approved = NRI
       Blue, In Progress = NRI Yellow, Done = NRI Green). The rail
       lets the eye scan column status in a single glance without
       sacrificing the white background that lets cards read as the
       only figure on the page. */
    position: relative;
    padding-left: 14px;
}
.kanban-column::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-subtle);
}
/* Status-coloured rails — data-status carries the canonical title-
   case values the HTML emits ("Proposed", "Approved", "In Progress",
   "Done"); matching them verbatim avoids any JS-side normalisation. */
.kanban-column[data-status="Proposed"]::before    { background: var(--fg-3); }
.kanban-column[data-status="Approved"]::before    { background: var(--nri-blue); }
.kanban-column[data-status="In Progress"]::before { background: var(--nri-yellow); }
.kanban-column[data-status="Done"]::before        { background: var(--nri-green); }

.kanban-header {
    /* Issue 125: small-caps Karelia label + a 1px bottom hairline.
       Replaces the plain text + pill-shaped count of the previous
       design. The bottom rule gives each column a defined top edge
       without requiring a container around the column body. */
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding: 0 0 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.kanban-cards {
    /* Issue 125: background-color stripped. Cards now sit directly
       on the page background — white-on-white means the 1px card
       border is the only frame, and the card unambiguously reads
       as the figure. The drag-over state below remains as a brief
       hint while a card is being dropped. */
    background-color: transparent;
    border-radius: 0;
    min-height: 100px;
    padding: 0;
    flex-grow: 1;
    transition: background-color 0.2s;
}

.kanban-cards.drag-over {
    background-color: var(--nav-active-bg);
}

/* Admin Sidebar Layout */
.admin-layout {
    display: flex;
    height: calc(100vh - 4rem); /* Full height minus top nav */
    overflow: hidden;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.admin-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-menu-item {
    padding: 0.25rem 1rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-menu-link:hover {
    background-color: var(--nav-active-bg);
    color: var(--nav-active-text);
}

.admin-menu-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-menu-link svg {
    width: 20px;
    height: 20px;
}

.admin-content-area {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    background-color: var(--bg-color);
}

.admin-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
