/* Northern Knockout Chronicle Visual System Design */

/* Design System Color Variables */
:root {
    --bone: #F8F6F1;
    --maple-red: #B52D3A;
    --maple-red-hover: #9E2430;
    --deep-blue: #183B5B;
    --deep-blue-hover: #102B44;
    --ice-blue: #CBE1E8;
    --charcoal: #1B252E;
    --silver: #C5CDD1;
    --white: #FFFFFF;
    
    /* 3D Border styling variables */
    --border-width: 3px;
    --border-radius: 8px;
    --panel-shadow: 6px 6px 0px var(--charcoal);
    --panel-shadow-active: 2px 2px 0px var(--charcoal);
    --transition-standard: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Layout Config */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bone);
    color: var(--charcoal);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    padding-top: 80px; /* Offset for fixed header */
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--maple-red);
    color: var(--white);
    padding: 10px 20px;
    font-weight: bold;
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    box-shadow: var(--panel-shadow);
    z-index: 9999;
    text-decoration: none;
    transition: top var(--transition-standard);
}

.skip-link:focus {
    top: 20px;
    outline: 4px solid var(--deep-blue);
}

/* Container limits */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* 3D Visual Headers & Navigation */
.main-header {
    background-color: var(--white);
    border-bottom: var(--border-width) solid var(--charcoal);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand-logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--charcoal);
}

.brand-text {
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.highlight-red {
    color: var(--maple-red);
}

/* Tactile Navigation Items */
.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 16px;
    border: var(--border-width) solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition-standard);
}

.nav-item:hover, .nav-item:focus {
    border-color: var(--charcoal);
    background-color: var(--ice-blue);
    outline: none;
}

.nav-item.active {
    background-color: var(--maple-red);
    color: var(--white);
    border-color: var(--charcoal);
    box-shadow: 3px 3px 0px var(--charcoal);
}

/* Hamburger toggle for mobile layout */
.menu-toggle {
    display: none;
    background: none;
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.hamburger {
    display: block;
    width: 20px;
    height: 3px;
    background-color: var(--charcoal);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition-standard);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: var(--charcoal);
    left: 0;
    transition: var(--transition-standard);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Hamburger Open States */
.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Journal Cover Section Styles */
.journal-cover {
    background-color: var(--ice-blue);
    border-bottom: var(--border-width) solid var(--charcoal);
    padding: 64px 0;
    text-align: center;
    position: relative;
}

.timestamp-badge {
    display: inline-block;
    background-color: var(--charcoal);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.journal-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.highlight-title {
    color: var(--maple-red);
    position: relative;
    display: inline-block;
}

.journal-subtitle {
    font-size: 1.25rem;
    max-width: 720px;
    margin: 0 auto;
    color: var(--charcoal);
    opacity: 0.9;
}

/* Decisive Score Panel (Tactile Scoreboard) */
.score-panel-section {
    padding: 48px 0;
    margin-top: -32px;
}

.tactile-scoreboard {
    background-color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    box-shadow: var(--panel-shadow);
    max-width: 680px;
    margin: 0 auto;
    overflow: hidden;
}

.scoreboard-header {
    background-color: var(--deep-blue);
    color: var(--white);
    text-align: center;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 10px;
    border-bottom: var(--border-width) solid var(--charcoal);
    font-size: 0.85rem;
}

.scoreboard-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 24px;
}

.team-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.team-flag {
    font-size: 3.5rem;
    line-height: 1;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--charcoal);
    text-transform: uppercase;
    text-align: center;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    padding: 0 16px;
}

.score-digit {
    background-color: var(--bone);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    font-size: 3rem;
    font-weight: 900;
    width: 68px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0px var(--charcoal);
}

.score-divider {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--silver);
}

.scoreboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background-color: var(--bone);
    border-top: var(--border-width) solid var(--charcoal);
    font-weight: 700;
    font-size: 0.9rem;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--border-radius);
    border: 2px solid var(--charcoal);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
}

.status-badge.success {
    background-color: var(--maple-red);
    color: var(--white);
}

/* Timeline Layout Component */
.narrative-section {
    padding: 48px 0;
}

.timeline-container {
    position: relative;
    max-width: 800px;
}

.timeline-spine {
    position: absolute;
    left: 40px;
    top: 16px;
    bottom: 16px;
    width: 6px;
    background-color: var(--maple-red);
    border: 1px solid var(--charcoal);
    z-index: 1;
}

.timeline-chapter {
    position: relative;
    padding-left: 90px;
    margin-bottom: 48px;
}

.timeline-chapter:last-of-type {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: 28px;
    top: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--maple-red);
    border: var(--border-width) solid var(--charcoal);
    z-index: 2;
    box-shadow: 2px 2px 0px var(--charcoal);
}

.timeline-node.pending-node {
    background-color: var(--white);
}

.chapter-card {
    background-color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--panel-shadow);
    transition: var(--transition-standard);
}

.chapter-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--charcoal);
}

.chapter-number {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--maple-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.chapter-heading {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
}

.chapter-meta {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 16px;
}

.chapter-text {
    margin-bottom: 24px;
    color: var(--charcoal);
    font-size: 1.05rem;
}

/* 3D Dynamic Buttons */
.action-btn-3d {
    display: inline-block;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 24px;
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    color: var(--charcoal);
    background-color: var(--white);
    box-shadow: 4px 4px 0px var(--charcoal);
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.action-btn-3d:hover {
    background-color: var(--ice-blue);
}

.action-btn-3d:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--charcoal);
}

.action-btn-3d.primary-btn {
    background-color: var(--maple-red);
    color: var(--white);
}

.action-btn-3d.primary-btn:hover {
    background-color: var(--maple-red-hover);
}

.action-btn-3d.width-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* Highlighted chapter variants */
.highlight-card {
    background-color: var(--white);
    border-color: var(--charcoal);
}

/* Signature Component: Canada Route Ledger */
.ledger-section {
    padding: 64px 0;
    background-color: var(--white);
    border-top: var(--border-width) solid var(--charcoal);
    border-bottom: var(--border-width) solid var(--charcoal);
}

.section-header-3d {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

.route-ledger {
    max-width: 900px;
    margin: 0 auto;
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--panel-shadow);
}

.ledger-row {
    display: flex;
    align-items: center;
    padding: 24px;
    background-color: var(--white);
    border-bottom: var(--border-width) solid var(--charcoal);
}

.ledger-row:last-child {
    border-bottom: none;
}

.ledger-step {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
}

.step-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--silver);
    line-height: 1;
}

.step-lbl {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.ledger-match {
    flex: 1;
    font-weight: 800;
    font-size: 1.2rem;
}

.ledger-date {
    flex: 0 0 200px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--charcoal);
    opacity: 0.8;
}

.ledger-status {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Status variants for Ledger */
.ledger-row.completed {
    background-color: rgba(181, 45, 58, 0.04);
}
.ledger-row.completed .step-num {
    color: var(--maple-red);
}
.ledger-row.current {
    background-color: rgba(24, 59, 91, 0.05);
}
.ledger-row.current .step-num {
    color: var(--deep-blue);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.icon-complete {
    color: #2e7d32;
}
.icon-pending {
    color: var(--deep-blue);
}
.icon-future {
    color: var(--silver);
}

/* Status Audit Section: Confirmed vs Unconfirmed Panels */
.status-audit-section {
    padding: 64px 0;
}

.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.audit-panel {
    background-color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--panel-shadow);
}

.panel-heading {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.marker {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--charcoal);
}

.marker.green { background-color: #4caf50; }
.marker.orange { background-color: #ff9800; }

.panel-list {
    list-style: none;
}

.panel-list li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
    font-weight: 500;
}

.panel-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--maple-red);
}

/* Host Context Platform Box */
.hosts-context {
    padding: 48px 0;
}

.hosts-card-3d {
    background-color: var(--deep-blue);
    color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 48px;
    box-shadow: var(--panel-shadow);
}

.hosts-heading {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}

.hosts-text {
    font-size: 1.15rem;
    margin-bottom: 32px;
    color: var(--ice-blue);
}

.illustration-placeholder {
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 150px;
    box-shadow: 4px 4px 0px var(--charcoal);
}

.illustration-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ------------------------------------------------------------- */
/* PAGE SPECIFIC: CANADA-RUN & CANADA-V-MOROCCO LAYOUT STRUCTURE */
/* ------------------------------------------------------------- */
.run-details-section {
    padding: 64px 0;
}

.editorial-row {
    display: flex;
    gap: 40px;
}

.main-column {
    flex: 1;
}

.sidebar-column {
    flex: 0 0 320px;
}

/* Match recap card tactile layout */
.tactile-card {
    background-color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--panel-shadow);
    margin-bottom: 40px;
}

.tactile-card:last-child {
    margin-bottom: 0;
}

.recap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bone);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 4px;
    border: 2px solid var(--charcoal);
}

.badge.red {
    background-color: var(--maple-red);
    color: var(--white);
}

.badge.blue {
    background-color: var(--deep-blue);
    color: var(--white);
}

.badge.gray {
    background-color: var(--silver);
    color: var(--charcoal);
}

.badge.orange {
    background-color: #ff9800;
    color: var(--charcoal);
}

.match-date {
    font-weight: 700;
    color: var(--charcoal);
}

.recap-versus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    background-color: var(--bone);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 24px;
}

.vs-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vs-block .team-name {
    font-size: 1.5rem;
}

.score-number {
    font-size: 2.2rem;
    font-weight: 900;
    background-color: var(--white);
    border: 2px solid var(--charcoal);
    border-radius: 4px;
    padding: 4px 16px;
}

.score-number.highlight {
    background-color: var(--maple-red);
    color: var(--white);
}

.vs-separator {
    font-weight: 800;
    color: var(--silver);
    font-size: 1.2rem;
}

.recap-statement h3 {
    font-size: 1.6rem;
    font-weight: 850;
    margin-bottom: 12px;
}

/* Sidebar tactile elements */
.sidebar-3d-box {
    background-color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--panel-shadow);
    position: sticky;
    top: 104px;
}

.sidebar-3d-box h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    border-bottom: var(--border-width) solid var(--charcoal);
    padding-bottom: 8px;
}

.run-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.run-data-table th, .run-data-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--silver);
    text-align: left;
}

.run-data-table th {
    font-weight: 800;
    color: var(--charcoal);
    font-size: 0.9rem;
}

.run-data-table td {
    font-weight: 600;
}

.sidebar-action-link {
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 800;
    border: 2px solid var(--charcoal);
    box-shadow: 3px 3px 0px var(--charcoal);
}

.sidebar-action-link:hover {
    background-color: var(--deep-blue-hover);
}

/* Safeguard disclaimer boxes */
.notice-card {
    border-left: 8px solid var(--maple-red);
}

.notice-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.alert-card {
    border-left-color: var(--deep-blue);
}

.time-callout {
    background-color: var(--ice-blue);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 32px;
}

.time-label {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.time-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--deep-blue);
}

/* ------------------------------------------------------------- */
/* PAGE SPECIFIC: THE ROUTE STRUCTURE */
/* ------------------------------------------------------------- */
.map-root-card {
    padding: 48px;
}

.card-inner-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.card-desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Three panel dynamic 3D tree */
.grid-bracket {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    gap: 24px;
    align-items: center;
}

.bracket-block-3d {
    background-color: var(--bone);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 4px 4px 0px var(--charcoal);
}

.block-header {
    color: var(--white);
    padding: 12px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: var(--border-width) solid var(--charcoal);
}

.block-header.bg-red { background-color: var(--maple-red); }
.block-header.bg-dark { background-color: var(--deep-blue); }

.block-step {
    padding: 24px;
    background-color: var(--white);
    border-bottom: 2px solid var(--bone);
}

.block-step:last-child {
    border-bottom: none;
}

.block-step p {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 8px 0;
}

.date-lbl {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--silver);
}

.block-divider {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    background-color: var(--bone);
    color: var(--charcoal);
    line-height: 1;
    padding: 4px;
    border-bottom: 2px solid var(--charcoal);
}

.highlighted-step {
    background-color: rgba(181, 45, 58, 0.03);
}

.highlighted-step-alt {
    background-color: rgba(24, 59, 91, 0.03);
}

/* Center piece of convergence tree */
.bracket-convergence-3d {
    background-color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 24px 12px;
    text-align: center;
    box-shadow: 4px 4px 0px var(--charcoal);
    position: relative;
    z-index: 5;
}

.converge-inner p {
    margin: 8px 0;
}

.focus-date {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--maple-red);
}

.focus-desc {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
}

.status-box-dark {
    background-color: var(--charcoal);
    color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 40px;
}

.status-box-dark h3 {
    font-size: 1.5rem;
    font-weight: 850;
    color: var(--white);
    margin-bottom: 16px;
}

.status-box-dark ul {
    margin-top: 16px;
    list-style-type: none;
}

.status-box-dark ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.status-box-dark ul li::before {
    content: "↳";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--maple-red);
    font-weight: bold;
}

/* ------------------------------------------------------------- */
/* PAGE SPECIFIC: LEGAL & FORM CONTENT */
/* ------------------------------------------------------------- */
.legal-card h2 {
    font-size: 1.5rem;
    font-weight: 850;
    margin: 32px 0 12px 0;
}

.legal-card h2:first-of-type {
    margin-top: 0;
}

.legal-card p {
    margin-bottom: 16px;
}

.legal-card ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.legal-card ul li {
    margin-bottom: 8px;
}

.cookie-class-box {
    background-color: var(--bone);
    border: 2px solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.cookie-class-box h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}

/* Contact Form 3D components */
.form-card-3d {
    padding: 48px;
}

.form-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.form-intro {
    margin-bottom: 32px;
}

.contact-form-3d {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group-3d {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-3d label {
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.form-group-3d input, .form-group-3d select, .form-group-3d textarea {
    background-color: var(--bone);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 14px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--charcoal);
    box-shadow: inset 2px 2px 0px rgba(0,0,0,0.05);
    transition: outline var(--transition-standard);
}

.form-group-3d input:focus, .form-group-3d select:focus, .form-group-3d textarea:focus {
    outline: 4px solid var(--deep-blue);
    background-color: var(--white);
}

.form-feedback {
    margin-top: 24px;
    padding: 16px;
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* ------------------------------------------------------------- */
/* FOOTER SYSTEM DESIGN */
/* ------------------------------------------------------------- */
.main-footer {
    background-color: var(--charcoal);
    color: var(--white);
    border-top: var(--border-width) solid var(--charcoal);
    padding: 64px 0 32px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .brand-text.white {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--silver);
    font-size: 0.95rem;
}

.footer-hdr {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--silver);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition-standard);
}

.footer-links a:hover, .footer-links a:focus {
    color: var(--maple-red);
    outline: none;
}

.address-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--silver);
    margin-bottom: 20px;
}

.address-text:last-of-type {
    margin-bottom: 0;
}

.address-text strong {
    color: var(--white);
}

.address-text-sm {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 16px;
}

.address-text-sm strong {
    color: var(--charcoal);
}

.sidebar-divider {
    border: 0;
    height: 1px;
    background-color: var(--silver);
    margin: 16px 0;
}

.italic {
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
}

.bottom-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.copyright-notice {
    font-size: 0.8rem;
    color: var(--silver);
    opacity: 0.8;
}

.preference-reopen-wrap {
    margin: 0;
}

.reopen-cookie-btn {
    background: none;
    border: none;
    color: var(--maple-red);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.reopen-cookie-btn:hover {
    color: var(--white);
}

/* ------------------------------------------------------------- */
/* COOKIE BANNER OVERLAY SYSTEM */
/* ------------------------------------------------------------- */
.cookie-banner-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 440px;
    width: calc(100% - 48px);
    z-index: 2000;
    transition: opacity var(--transition-standard), transform var(--transition-standard);
}

.cookie-card-3d {
    background-color: var(--white);
    border: var(--border-width) solid var(--charcoal);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--panel-shadow);
}

.cookie-title {
    font-size: 1.3rem;
    font-weight: 950;
    margin-bottom: 8px;
}

.cookie-desc {
    font-size: 0.9rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.cookie-toggles {
    border-top: 2px solid var(--bone);
    border-bottom: 2px solid var(--bone);
    padding: 12px 0;
    margin-bottom: 20px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toggle-row:last-child {
    margin-bottom: 0;
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 700;
}

.toggle-label small {
    font-weight: normal;
    color: var(--silver);
}

.cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.cookie-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border: 2px solid var(--charcoal);
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--charcoal);
    background-color: var(--white);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.cookie-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--charcoal);
}

.cookie-btn.primary-btn {
    background-color: var(--maple-red);
    color: var(--white);
}

.cookie-btn.secondary-btn {
    background-color: var(--ice-blue);
}

.cookie-btn.reject-btn {
    background-color: var(--bone);
}

/* Utilities */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ------------------------------------------------------------- */
/* RESPONSIVE LAYOUT BREAKPOINTS */
/* ------------------------------------------------------------- */

/* 1200px and lower */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* 768px and lower (Mobile and Tablet viewports) */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .main-header {
        height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    /* Shift nav overlay onto vertical plane */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 67px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: var(--border-width) solid var(--charcoal);
        padding: 24px;
        gap: 16px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .journal-title {
        font-size: 2.2rem;
    }

    .scoreboard-body {
        flex-direction: column;
        gap: 24px;
    }

    .score-display {
        margin: 16px 0;
    }

    .grid-bracket {
        grid-template-columns: 1fr;
    }

    .bracket-convergence-3d {
        transform: rotate(90deg);
        max-width: 140px;
        margin: 24px auto;
    }

    .bracket-convergence-3d .converge-inner {
        transform: rotate(-90deg);
    }

    .editorial-row {
        flex-direction: column;
    }

    .sidebar-column {
        flex: 1;
    }

    .audit-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 480px and lower (Portrait Mobile) */
@media (max-width: 480px) {
    .journal-title {
        font-size: 1.8rem;
    }

    .journal-subtitle {
        font-size: 1rem;
    }

    .timeline-spine {
        left: 20px;
    }

    .timeline-chapter {
        padding-left: 50px;
    }

    .timeline-node {
        left: 8px;
    }

    .chapter-card {
        padding: 20px;
    }

    .ledger-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ledger-step {
        flex: none;
    }

    .ledger-match {
        font-size: 1rem;
    }

    .ledger-date {
        flex: none;
    }

    .ledger-status {
        flex: none;
    }

    .vs-block .team-name {
        font-size: 1.1rem;
    }

    .score-number {
        font-size: 1.6rem;
        padding: 4px 10px;
    }
}