/* Shared card navigation replaces the sidebar. Native links/disclosures work without JavaScript. */
.shell.site-shell {
    display: block;
    max-width: 1400px;
    margin: auto;
    padding: 0 1.5rem;
}
.site-main {
    width: 100%;
    min-width: 0;
}
.site-header {
    max-width: 1400px;
    margin: auto;
    gap: 1rem;
    flex-wrap: wrap;
}
.journey-account {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}
.journey-account form {
    margin: 0;
}
.journey-navigation {
    background: transparent;
    padding: 1.25rem 0;
}
.journey-nav-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.journey-nav-cards > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(#fff, #f3f8fc);
    border: 1px solid #bacbdb;
    border-radius: 12px;
    min-height: 135px;
    text-decoration: none;
    color: #0b2e56;
    box-shadow: 0 2px 5px #0b2e560c;
}
.journey-nav-cards > a strong {
    font-size: 1.25rem;
}
.journey-nav-cards > a[aria-current] {
    border: 3px solid #0070d4;
    background: #e9f5ff;
    padding: calc(1rem - 2px);
}
.journey-nav-icon {
    color: #0065b5;
}
.journey-section-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    /* Horizontal page links must not inherit the original sidebar's 85vh minimum. */
    min-height: 0;
    flex: 0 0 auto;
    background: transparent;
    margin: 0;
    padding: 0.35rem 0 0.75rem;
}
.journey-section-links:empty {
    display: none;
}
.journey-navigation a:focus-visible,
.journey-navigation summary:focus-visible {
    outline: 3px solid #9a4e00;
    outline-offset: 4px;
}
.journey-welcome {
    margin: 1rem 0;
}
.journey-welcome h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 0.25rem 0;
}
.journey-greeting {
    font-size: 1.1rem;
}
.journey-evaluation-reminder {
    background: #fff4da;
    border: 1px solid #d8a137;
    border-radius: 9px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.journey-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.journey-quick-actions a {
    display: block;
    border: 1px solid #bacbdb;
    background: #f7fbff;
    padding: 0.8rem 1rem;
    border-radius: 9px;
    text-align: center;
    font-weight: 650;
}
.journey-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1rem;
}
.journey-panel {
    border: 1px solid #bacbdb;
    border-radius: 12px;
    padding: 1rem;
    margin: 0 0 1rem;
    background: #fff;
    box-shadow: 0 3px 8px #0b2e5610;
}
.journey-panel h2 {
    margin-top: 0;
    color: #0b2e56;
}
.journey-session {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #dce6ef;
    margin-bottom: 0.5rem;
}
.journey-session > div {
    flex: 1;
    min-width: 0;
}
.journey-session h3 {
    font-size: 1rem;
    margin: 0;
}
.journey-session p {
    margin: 0.35rem 0;
    font-size: 0.95rem;
}
.journey-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #d7ecfc;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    color: #0b2e56;
}
.journey-date strong {
    font-size: 1.5rem;
}
.journey-snapshot {
    padding-left: 1.2rem;
}
.journey-snapshot li {
    margin: 0.7rem 0;
}
.journey-footer {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid #bacbdb;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.journey-panel p {
    overflow-wrap: anywhere;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
}
@media (max-width: 850px) {
    .journey-nav-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .journey-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .journey-account {
        margin-left: 0;
    }
    .journey-quick-actions {
        grid-template-columns: 1fr;
    }
    .journey-session {
        flex-wrap: wrap;
    }
    .shell.site-shell {
        padding: 0 0.8rem;
    }
}
@media (max-width: 420px) {
    .journey-nav-cards {
        gap: 0.5rem;
    }
    .journey-nav-cards > a {
        padding: 0.65rem;
        min-height: 120px;
    }
    .journey-nav-cards > a strong {
        font-size: 1.05rem;
    }
    .journey-nav-cards > a span:last-child {
        font-size: 0.85rem;
    }
    .site-header .journey-brand {
        max-width: 100%;
    }
}
@media print {
    .journey-navigation,
    .journey-account,
    .journey-quick-actions,
    .journey-footer {
        display: none;
    }
    .journey-dashboard-grid {
        display: block;
    }
    .journey-panel {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* Keep navigation easy to reach when an automatic seasonal display is present.
   Credits and notices stay in normal flow and can expand without clipping. */
.site-shell > .festive-ribbon {
    padding: 0;
    margin: 0.6rem 0;
}
.site-shell .festive-element {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.65rem 1rem;
}
.site-shell .festive-right {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
}
.site-shell .festive-greeting {
    font-size: 1.05rem;
}
.site-shell .festive-illustration {
    max-height: 5.5rem;
}
@media (max-width: 700px) {
    .site-shell .festive-element,
    .site-shell .festive-right {
        grid-template-columns: 4rem minmax(0, 1fr);
    }
}

/* The shared navigation stylesheet loads later and makes links block elements.
   Keep cards as vertical flex containers regardless of that legacy rule. */
.journey-navigation .journey-nav-cards > a {
    display: flex;
    flex-direction: column;
}

/* Calendar precedes upcoming workshops in DOM order and in the narrow-screen layout. */
.journey-find-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.journey-calendar-pane,
.journey-workshop-pane {
    min-width: 0;
}
.find-calendar-table {
    table-layout: fixed;
    width: 100%;
}
.find-calendar-table th {
    font-size: 0.8rem;
}
.find-calendar-table td {
    height: 4rem;
    padding: 0.3rem;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.find-calendar-table td a {
    display: block;
    min-height: 2rem;
}
.calendar-event-count {
    font-size: 0.8rem;
    display: block;
}
.staff-tool-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.staff-tool-groups ul {
    padding-left: 1.2rem;
}
.staff-tool-groups li {
    margin: 1rem 0;
}
.staff-tool-groups li small {
    display: block;
    margin-top: 0.3rem;
}
@media (max-width: 1050px) {
    .journey-find-grid,
    .staff-tool-groups {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 420px) {
    .journey-nav-cards {
        grid-template-columns: 1fr;
    }
}
@media print {
    .journey-find-grid {
        display: block;
    }
}

/* Selected two-row layout: all six sections share the card component and dimensions.
   The work row is absent when there are no permitted destinations; cards wrap at existing breakpoints. */
.journey-work-cards {
    margin-top: 1rem;
}
.section-tool-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}
.section-tool-groups ul {
    padding-left: 1.2rem;
}
.section-tool-groups li {
    margin: 0.85rem 0;
}
.journey-section-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border: 1px solid #bacbdb;
    border-radius: 8px;
    background: #f7fbff;
    color: #0b2e56;
    font-weight: 600;
    text-decoration: none;
}
.journey-section-links a[aria-current='page'] {
    background: #0b2e56;
    border-color: #0b2e56;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
@media (max-width: 1050px) {
    .section-tool-groups {
        grid-template-columns: 1fr;
    }
}

/* Task links use the same quiet treatment beneath their responsibility headings.
   Anchors remain ordinary navigation; permissions and destination checks are unchanged. */
.staff-tool-groups ul,
.section-tool-groups ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.staff-tool-groups li,
.section-tool-groups li {
    margin: 0.6rem 0;
}
.staff-tool-groups li > a,
.section-tool-groups li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border: 1px solid #bacbdb;
    border-radius: 8px;
    background: #f7fbff;
    color: #0b2e56;
    font-weight: 600;
    text-decoration: none;
}
.journey-section-links a:hover,
.staff-tool-groups li > a:hover,
.section-tool-groups li > a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.journey-section-links a:not([aria-current='page']):hover,
.staff-tool-groups li > a:hover,
.section-tool-groups li > a:hover {
    background: #e9f5ff;
    border-color: #0065b5;
}
.journey-section-links a:focus-visible,
.staff-tool-groups li > a:focus-visible,
.section-tool-groups li > a:focus-visible {
    outline: 3px solid #9a4e00;
    outline-offset: 3px;
}
@media print {
    .journey-section-links {
        display: none;
    }
}
