/*
 * OSG Project Hub - Public Stylesheet
 * Extracted from osg_hub_v5.html prototype
 * Applied via single-osg_project.php template
 */

/* Design tokens are inherited from parent style.css */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--grey-800); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.hub-page { overflow-x: hidden; }
.hub-page .container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Fade-in utility */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================================
   SKIP LINK
============================================================= */
.hub-skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 9999;
    font-size: 13px;
    font-weight: 600;
    background: var(--navy-700);
    color: white;
    padding: 8px 16px;
    border-radius: var(--r-sm);
}
.hub-skip-link:focus { left: 16px; }

/* =============================================================
   RETURN BAR
============================================================= */
.return-bar {
    position: sticky; top: 0; z-index: 1001;
    background: var(--navy-900);
    height: 46px; display: flex; align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.return-link {
    font-family: var(--font-m); font-size: 11px; letter-spacing: .06em;
    color: rgba(255,255,255,.55);
    display: flex; align-items: center; gap: 7px;
    transition: color .2s; padding: 4px 0;
}
.return-link:hover { color: rgba(255,255,255,.9); }
.return-link-arrow { font-size: 13px; transition: transform .2s; }
.return-link:hover .return-link-arrow { transform: translateX(-3px); }
.return-osg { display: flex; align-items: center; gap: 8px; }
.return-osg-text {
    font-family: var(--font-d); font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.4);
}
.return-osg-text span { color: rgba(114,192,90,.5); }

/* =============================================================
   DARK HERO BANNER
============================================================= */
.hero {
    background: var(--navy-900);
    padding: 50px 0 30px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: var(--hero-bg, none) center/cover no-repeat;
    opacity: .35;
}
.hero-pattern {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgb(2 37 80 / 11%) 0%, rgb(4 15 33 / 70%) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-attribution {
    font-family: var(--font-m); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.hero-attribution a { color: rgba(255,255,255,.25); transition: color .2s; }
.hero-attribution a:hover { color: rgba(255,255,255,.5); }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 20px; }
.hero-left { flex: 1; min-width: 0; }
.hero-chips { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.hero-chip {
    font-family: var(--font-m); font-size: 10px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 20px;
    display: flex; align-items: center; gap: 6px;
}
.hero-chip-active {
    background: rgba(36,112,168,.22); border: 1.5px solid rgba(36,112,168,.35);
    color: var(--navy-200);
}
.hero-chip-active::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: #72c05a;
}
.hero-chip-phase {
    background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.45);
}
.hero-title {
    font-family: var(--font-d); font-size: clamp(32px,4.5vw,48px);
    font-weight: 700; letter-spacing: -.025em; color: white;
    line-height: 1.08; margin-bottom: 14px;
}
.hero-location {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: rgba(255,255,255,.5);
}
.hero-location svg { width: 14px; height: 14px; opacity: .5; }

/* Completion ring */
.hero-ring-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-ring-label {
    font-family: var(--font-m); font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: rgba(255,255,255,.4);
}
.phase-ring-wrap { position: relative; width: 110px; height: 110px; }
.phase-ring-svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.phase-ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 6; }
.phase-ring-fill {
    fill: none; stroke: url(#phaseGrad); stroke-width: 6;
    stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314;
    transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1) .3s;
}
.phase-ring-inner {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.phase-ring-pct { font-family: var(--font-m); font-size: 28px; font-weight: 500; color: white; line-height: 1; }
.phase-ring-sub { font-family: var(--font-m); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-top: 4px; }

/* Status bar */
.hero-status {
    margin-top: 28px; padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.hero-status-left { display: flex; align-items: center; gap: 10px; }
.status-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #72c05a;
    box-shadow: 0 0 0 3px rgba(74,158,60,.18); flex-shrink: 0;
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 3px rgba(74,158,60,.18); } 50% { box-shadow: 0 0 0 7px rgba(74,158,60,.07); } }
.status-text { font-size: 13px; color: rgba(255,255,255,.7); }
.status-text strong { color: rgba(255,255,255,.9); }
.hero-status-right { display: flex; align-items: center; gap: 16px; }
.hero-updated { font-family: var(--font-m); font-size: 11px; color: rgb(255 255 255 / 56%); letter-spacing: .06em; }
.cadence-wrap { display: flex; align-items: center; gap: 6px; font-family: var(--font-m); font-size: 11px; color: rgb(255 255 255 / 56%); }
.cadence-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--navy-400); flex-shrink: 0; }

/* =============================================================
   STICKY NAV
============================================================= */
.project-nav {
    background: var(--surface); border-bottom: 1px solid var(--grey-200);
    box-shadow: 0 2px 8px rgba(31,56,99,.07);
    position: sticky; top: 46px; z-index: 1000;
}
.project-nav-inner { display: flex; gap: 0; overflow-x: auto; }
.project-nav-tab {
    font-family: var(--font-b); font-size: 13px; font-weight: 500;
    color: var(--grey-500); padding: 16px 22px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s, background .2s;
    white-space: nowrap; cursor: pointer;
    background: none; border-top: none; border-left: none; border-right: none;
}
.project-nav-tab.active { color: var(--navy-700); font-weight: 600; border-bottom-color: var(--navy-700); }
.project-nav-tab:hover:not(.active) { color: var(--grey-800); background: var(--grey-50); }
.project-nav-tab:focus-visible { outline: 2px solid var(--navy-500); outline-offset: -2px; }

/* =============================================================
   LIFECYCLE STAGE BAR
============================================================= */
.stage-bar { padding: 20px 0 28px; background: var(--surface); border-bottom: 1px solid var(--grey-200); }
.stage-bar-inner { display: flex; gap: 8px; }
.stage-bar-item {
    flex: 1; padding: 22px 18px; text-align: center;
    border-radius: var(--r-sm); transition: all .3s ease; position: relative;
    color: white;
}
.stage-bar-num { font-family: var(--font-m); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.stage-bar-name { font-family: var(--font-d); font-size: 15px; font-weight: 700; line-height: 1.2; color: white; }
.stage-bar-desc { font-family: var(--font-b); font-size: 11px; color: rgb(255 255 255 / 70%); margin-top: 12px; line-height: 1.55; border-top: 1px solid rgba(255,255,255,.15); padding-top: 10px; }
.stage-bar-1 { background: #2a8a82; }
.stage-bar-2 { background: var(--navy-700); }
.stage-bar-3 { background: var(--navy-500); }
.stage-bar-4 { background: var(--grey-500); }
.stage-bar-current {
    animation: pulse-glow 2.4s ease-in-out infinite;
    box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 8px 28px rgba(0,0,0,.35);
}
.stage-bar-label {
    display: inline-block; margin-top: 10px;
    font-family: var(--font-m); font-size: 9px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    background: #2a8a82; color: white; padding: 3px 10px; border-radius: 20px;
}

/* =============================================================
   ANIMATIONS
============================================================= */
@keyframes pulse-glow {
    0%   { box-shadow: 0 0 0 0 rgb(42 138 130 / 75%); }
    70%  { box-shadow: 0 0 0 8px rgba(42,138,130,0); }
    100% { box-shadow: 0 0 0 0 rgba(42,138,130,0); }
}
@keyframes pulse-glow-dot {
    0%   { box-shadow: 0 0 0 0 rgba(42,138,130,.5); }
    70%  { box-shadow: 0 0 0 10px rgba(42,138,130,0); }
    100% { box-shadow: 0 0 0 0 rgba(42,138,130,0); }
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 3px rgba(74,158,60,.18); }
    50%      { box-shadow: 0 0 0 7px rgba(74,158,60,.07); }
}

/* =============================================================
   OVERVIEW SECTION
============================================================= */
.summary-section { padding: 80px 0 40px; }
.summary-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.summary-heading { font-family: var(--font-d); font-size: clamp(24px,3vw,30px); font-weight: 700; color: var(--navy-700); margin-bottom: 8px; }
.summary-heading::after { content: ''; display: block; width: 48px; height: 3px; background: linear-gradient(to right, #4ebab4, rgba(78,186,180,.2)); border-radius: 2px; margin-top: 14px; }
.summary-lead { font-family: var(--font-d); font-size: 16px; font-weight: 500; color: var(--navy-600); line-height: 1.6; margin-bottom: 20px; }
.summary-body { font-size: 14px; color: var(--grey-600); line-height: 1.75; margin-bottom: 16px; }
.summary-facts { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.summary-fact { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--grey-200); }
.summary-fact-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(78,186,180,.12); color: #4ebab4; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.summary-fact-icon svg { width: 14px; height: 14px; }
.summary-fact-text { font-family: var(--font-d); font-size: 13px; font-weight: 500; color: var(--navy-700); line-height: 1.4; }
.map-card { background: var(--surface); border: 1px solid var(--grey-200); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.map-img { width: 100%; display: block; }
.map-footer { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-disclaimer { font-size: 11px; color: var(--grey-400); font-style: italic; }
.map-region-tag { font-family: var(--font-m); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-500); background: var(--navy-50); padding: 4px 10px; border-radius: 8px; white-space: nowrap; }

/* =============================================================
   PULSE SECTION
============================================================= */
.pulse-section { padding: 100px 0; position: relative; background: hsl(210,25%,97.5%); }
.pulse-section::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, transparent, var(--grey-200), transparent); }
.main-layout { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: start; }
.main-right { position: sticky; top: 110px; }
.section-eyebrow { font-family: var(--font-m); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-500); margin-bottom: 10px; }
.section-title { font-family: var(--font-d); font-size: clamp(22px,3vw,28px); font-weight: 700; color: var(--navy-700); margin-bottom: 28px; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: linear-gradient(to right, #4ebab4, rgba(78,186,180,.2)); border-radius: 2px; margin-top: 14px; }

.stage-progress { margin-bottom: 28px; }
.stage-progress-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.stage-progress-label { font-family: var(--font-m); font-size: 11px; font-weight: 600; color: var(--grey-600); letter-spacing: .04em; }
.stage-progress-pct { font-family: var(--font-m); font-size: 13px; font-weight: 700; color: #2a8a82; }
.stage-progress-track { position: relative; height: 6px; background: var(--grey-200); border-radius: 3px; overflow: visible; }
.stage-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg,#2a8a82,#4ebab4); transition: width 1.4s cubic-bezier(.4,0,.2,1) .3s; }
.stage-progress-marker { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 14px; height: 14px; border-radius: 50%; background: #2a8a82; border: 3px solid var(--bg); box-shadow: 0 0 0 2px rgba(42,138,130,.3); transition: left 1.4s cubic-bezier(.4,0,.2,1) .3s; }
.progress-meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.progress-meta-item { font-family: var(--font-m); font-size: 10px; color: var(--grey-400); letter-spacing: .02em; }
.progress-meta-val { font-weight: 600; color: var(--grey-600); }
.progress-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--grey-300); flex-shrink: 0; }

.pulse-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 48px; }
.pulse-card { background: transparent; border: 1px solid var(--grey-200); border-radius: var(--r-lg); padding: 28px 20px; text-align: center; transition: border-color .2s, box-shadow .2s; }
.pulse-card:hover { border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
.pulse-card-label { font-family: var(--font-m); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 14px; }
.pulse-mini-ring { position: relative; width: 72px; height: 72px; margin: 0 auto 16px; }
.pulse-mini-svg { width: 72px; height: 72px; transform: rotate(-90deg); }
.pulse-mini-bg { fill: none; stroke: var(--grey-200); stroke-width: 5; }
.pulse-mini-fill { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 188; stroke-dashoffset: 188; transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1) .4s; }
.pulse-mini-fill-teal  { stroke: #2a8a82; }
.pulse-mini-fill-navy  { stroke: var(--navy-500); }
.pulse-mini-fill-green { stroke: var(--green-500); }
.pulse-mini-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-m); font-size: 16px; font-weight: 500; color: var(--grey-800); }
.pulse-card-stat { border: 1px solid var(--grey-200); border-radius: var(--r-sm); padding: 10px 12px; text-align: center; }
.pulse-card-value { font-family: var(--font-m); font-size: 22px; font-weight: 500; color: var(--navy-700); line-height: 1; }
.pulse-card-metric { font-family: var(--font-m); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-400); margin-top: 4px; }

/* Roadmap sidebar */
.rm-sidebar { background: var(--navy-800); border-radius: var(--r-xl); padding: 28px; position: relative; margin-bottom: 24px; overflow: hidden; }
.rm-sidebar-title { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: rgba(255,255,255,.95); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.rm-sidebar-title svg { width: 16px; height: 16px; color: #4ebab4; }
.rm-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding: 8px 0; }
.rm-item::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.12); z-index: 0; }
.rm-dot { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7px; flex-shrink: 0; z-index: 2; justify-self: center; align-self: start; margin-top: 2px; }
.rm-dot-done { background: rgba(255,255,255,.12); color: rgba(255,255,255,.5); border: 1.5px solid rgba(255,255,255,.25); }
.rm-dot-active { background: #2a8a82; color: white; width: 24px; height: 24px; font-size: 11px; border: 2px solid rgba(78,186,180,.5); animation: pulse-glow-dot 2.4s ease-in-out infinite; margin-top: 0; }
.rm-dot-end { background: transparent; border: 2px solid rgba(255,255,255,.25); color: rgba(255,255,255,.4); }
.rm-content { min-width: 0; }
.rm-date { font-family: var(--font-m); font-size: 10px; color: rgba(255,255,255,.5); margin-bottom: 2px; letter-spacing: .04em; text-transform: uppercase; }
.rm-name { font-family: var(--font-d); font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); line-height: 1.3; margin-bottom: 4px; }
.rm-chip { font-family: var(--font-m); font-size: 9px; font-weight: 600; padding: 3px 10px; border-radius: 8px; letter-spacing: .03em; text-transform: uppercase; display: inline-block; }
.rm-chip-done   { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
.rm-chip-active { background: #2a8a82; color: white; animation: pulse-glow 2.4s ease-in-out infinite; }
.rm-chip-end    { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }
.rm-desc { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.5; margin-top: 4px; font-family: var(--font-b); }
.rm-item-active { background: rgba(42,138,130,.1); border-radius: var(--r-md); margin: 4px -12px; padding: 12px 12px; }
.rm-item-active::before { left: 25px; }
.rm-item-active .rm-date { color: #4ebab4; font-weight: 600; }
.rm-item-active .rm-name { color: white; font-size: 14px; font-weight: 700; }
.rm-item-future .rm-date { color: rgba(255,255,255,.35); }
.rm-item-future .rm-name { color: rgba(255,255,255,.5); }
.rm-gap { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 4px 0; position: relative; }
.rm-gap::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.12); z-index: 0; }
.rm-gap-line { grid-column: 2; display: flex; align-items: center; gap: 8px; font-family: var(--font-m); font-size: 10px; color: rgba(255,255,255,.4); }
.rm-gap-line::before { content: ''; width: 16px; height: 1px; background: rgba(255,255,255,.2); }

/* =============================================================
   TIMELINE / LIFECYCLE SECTION
============================================================= */
.timeline-section { padding: 100px 0; position: relative; }
.timeline-section::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, transparent, var(--grey-200), transparent); }
.timeline-heading { font-family: var(--font-d); font-size: clamp(22px,3vw,28px); font-weight: 700; color: var(--navy-700); margin-bottom: 6px; }
.timeline-heading::after { content: ''; display: block; width: 48px; height: 3px; background: linear-gradient(to right, #4ebab4, rgba(78,186,180,.2)); border-radius: 2px; margin-top: 10px; }
.timeline-sub { font-size: 14px; color: var(--grey-600); margin-bottom: 24px; max-width: 560px; }
.lc-stage { background: var(--surface); border: 1px solid var(--grey-200); border-radius: var(--r-lg); margin-bottom: 16px; overflow: hidden; transition: border-color .25s, box-shadow .25s; border-left: 4px solid var(--grey-200); }
.lc-stage:last-child { margin-bottom: 0; }
.lc-stage:hover { border-color: var(--grey-300); }
.lc-stage.open { box-shadow: var(--shadow-sm); }
.lc-stage-s1 { border-left-color: #2a8a82; }
.lc-stage-s2 { border-left-color: var(--navy-700); }
.lc-stage-s3 { border-left-color: var(--navy-500); }
.lc-stage-s4 { border-left-color: var(--grey-500); }
.lc-stage.open.lc-stage-s1 { border-color: #2a8a82; }
.lc-stage.open.lc-stage-s2 { border-color: var(--navy-700); }
.lc-stage.open.lc-stage-s3 { border-color: var(--navy-500); }
.lc-stage.open.lc-stage-s4 { border-color: var(--grey-500); }
.lc-stage-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; cursor: pointer; transition: background .2s; user-select: none; gap: 16px; }
.lc-stage-header:hover { background: var(--grey-50); }
.lc-stage-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.lc-stage-num { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-m); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.lc-stage-num-done      { background: #2a8a82; color: white; }
.lc-stage-num-active    { background: var(--navy-700); color: white; }
.lc-stage-num-future-3  { background: var(--navy-500); color: white; }
.lc-stage-num-future-4  { background: var(--grey-500); color: white; }
.lc-stage-info { min-width: 0; }
.lc-stage-name { font-family: var(--font-d); font-size: 15px; font-weight: 700; color: var(--navy-700); }
.lc-stage-desc { font-family: var(--font-b); font-size: 12px; font-weight: 400; color: var(--grey-500); margin-top: 3px; line-height: 1.4; }
.lc-stage-meta { font-family: var(--font-m); font-size: 11px; color: var(--grey-600); margin-top: 2px; }
.lc-stage-badge { font-family: var(--font-m); font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.lc-badge-done   { background: rgba(42,138,130,.15); color: #2a8a82; }
.lc-badge-active { background: var(--navy-700); color: white; animation: pulse-glow 2.4s ease-in-out infinite; }
.lc-badge-future { background: var(--grey-100); color: var(--grey-500); }
.lc-stage-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.lc-stage-right-top { display: flex; align-items: center; gap: 12px; }
.lc-progress-wrap { width: 80px; height: 4px; background: var(--grey-100); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.lc-progress-fill { height: 100%; border-radius: 2px; transition: width .6s ease; }
.lc-fill-done   { background: #2a8a82; width: 100%; }
.lc-fill-active { background: var(--navy-700); }
.lc-progress-pct { font-family: var(--font-m); font-size: 11px; font-weight: 600; color: var(--grey-500); white-space: nowrap; }
.lc-stage-chev { width: 20px; height: 20px; color: var(--grey-300); transition: transform .3s ease; flex-shrink: 0; }
.lc-stage.open .lc-stage-chev { transform: rotate(180deg); }
.lc-stage-body { max-height: 0; overflow: hidden; transition: max-height .5s cubic-bezier(.4,0,.2,1); }
.lc-stage.open .lc-stage-body { max-height: 4000px; }
.lc-stage-inner { padding: 12px 24px 24px; }
.lc-timeline { position: relative; padding: 0; }
.lc-ms {
    position: relative; padding: 14px 16px; cursor: pointer;
    border-radius: var(--r-md); transition: background .2s, border-color .2s;
    border: 1px solid var(--grey-200); margin-bottom: 8px;
}
.lc-ms:hover { background: var(--navy-50,#edf4fb); border-color: var(--grey-300); }
.lc-ms.open { background: var(--grey-50); border-color: var(--grey-400); }
.lc-ms::after { content: ''; position: absolute; right: 16px; top: 18px; width: 7px; height: 7px; border-right: 1.5px solid var(--grey-700); border-bottom: 1.5px solid var(--grey-700); transform: rotate(45deg); transition: transform .25s ease, border-color .25s; }
.lc-ms:hover::after { border-color: var(--navy-500); }
.lc-ms.open::after { transform: rotate(-135deg); top: 20px; border-color: var(--navy-500); }
.lc-ms-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, margin .25s ease; margin-top: 0; }
.lc-ms.open .lc-ms-body { max-height: 300px; opacity: 1; margin-top: 10px; }
.lc-ms-head { display: flex; align-items: center; gap: 12px; padding-right: 24px; }
.lc-ms-title { font-family: var(--font-d); font-size: 14px; font-weight: 600; color: var(--grey-800); transition: color .15s; flex: 1; min-width: 0; }
.lc-ms:hover .lc-ms-title { color: var(--navy-700); }
.lc-ms-tag { font-family: var(--font-m); font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 10px; white-space: nowrap; letter-spacing: .03em; text-transform: uppercase; }
.lc-tag-done     { background: rgba(42,138,130,.15); color: #2a8a82; }
.lc-tag-progress { background: var(--navy-700); color: white; animation: pulse-glow 2.4s ease-in-out infinite; }
.lc-tag-planned  { background: var(--grey-100); color: var(--grey-500); }
.lc-ms-date { font-family: var(--font-m); font-size: 11px; color: var(--grey-400); white-space: nowrap; }
.lc-ms-desc { font-size: 13px; color: var(--grey-600); line-height: 1.65; max-width: 640px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--grey-200); border-radius: var(--r-sm); }
.lc-ms-pending { font-size: 13px; color: var(--grey-500); font-style: italic; padding: 10px 14px; line-height: 1.5; }

/* =============================================================
   DOCUMENT LIBRARY
============================================================= */
.library-section { padding: 100px 0; position: relative; background: var(--grey-100); }
.library-section::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, transparent, var(--grey-200), transparent); }
.library-section .main-layout { align-items: stretch; }
.library-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.library-link { font-family: var(--font-m); font-size: 11px; font-weight: 600; color: var(--navy-500); display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.library-link:hover { gap: 10px; }
.lib-filters { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.lib-filters-left { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.lib-filter { font-family: var(--font-m); font-size: 11px; font-weight: 500; padding: 6px 14px; border-radius: 20px; cursor: pointer; border: 1px solid var(--grey-200); background: var(--surface); color: var(--grey-500); transition: all .2s; }
.lib-filter.active { background: var(--navy-700); color: white; border-color: var(--navy-700); }
.lib-filter:hover:not(.active) { border-color: var(--grey-300); color: var(--grey-700); }
.lib-filter:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.lib-filter-desc { font-family: var(--font-b); font-size: 14px; color: var(--grey-400); margin-bottom: 16px; min-height: 16px; transition: opacity .2s ease; }
.lib-toolbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lib-doc-count { font-family: var(--font-m); font-size: 11px; color: var(--grey-400); white-space: nowrap; padding-right: 4px; }
.lib-search-wrap { position: relative; width: 200px; }
.lib-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--grey-400); pointer-events: none; }
.lib-search { width: 100%; padding: 7px 10px 7px 30px; font-family: var(--font-d); font-size: 12px; border: 1px solid var(--grey-200); border-radius: var(--r-sm); background: var(--surface); color: var(--grey-800); transition: border-color .2s; }
.lib-search:focus { outline: none; border-color: var(--navy-400); box-shadow: 0 0 0 3px rgba(31,56,99,.1); }
.lib-search::placeholder { color: var(--grey-300); }
.lib-sort-btn { display: flex; align-items: center; gap: 5px; font-family: var(--font-m); font-size: 11px; font-weight: 500; padding: 7px 12px; border-radius: var(--r-sm); cursor: pointer; border: 1px solid var(--grey-200); background: var(--surface); color: var(--grey-500); transition: all .2s; white-space: nowrap; }
.lib-sort-btn:hover { border-color: var(--grey-300); color: var(--grey-700); }
.lib-sort-btn:focus-visible { outline: 2px solid var(--navy-500); }
.lib-sort-btn svg { width: 12px; height: 12px; }
.doc-scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--grey-200) transparent; }
.doc-scroll::-webkit-scrollbar { width: 5px; }
.doc-scroll::-webkit-scrollbar-track { background: transparent; }
.doc-scroll::-webkit-scrollbar-thumb { background: var(--grey-200); border-radius: 3px; }
.doc-scroll::-webkit-scrollbar-thumb:hover { background: var(--grey-300); }
.doc-row { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--grey-200); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 8px; transition: border-color .2s, box-shadow .2s; }
.doc-row:hover { border-color: var(--grey-300); box-shadow: var(--shadow-sm); }
.doc-row-icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-family: var(--font-m); font-weight: 600; }
.doc-icon-pdf { background: rgba(185,28,28,.08); color: #b91c1c; }
.doc-icon-csv { background: rgba(14,116,144,.08); color: #0e7490; }
.doc-icon-doc { background: rgba(36,112,168,.08); color: var(--navy-500); }
.doc-row-info { flex: 1; min-width: 0; }
.doc-row-title { font-family: var(--font-d); font-size: 14px; font-weight: 600; color: var(--grey-800); line-height: 1.3; margin-bottom: 4px; }
.doc-row-desc  { font-family: var(--font-b); font-size: 12px; color: var(--grey-500); line-height: 1.5; margin-bottom: 6px; }
.doc-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-m); font-size: 11px; color: var(--grey-400); }
.doc-row-meta span { display: flex; align-items: center; gap: 3px; }
.doc-meta-sep { color: var(--grey-200); }
.doc-row-status { font-family: var(--font-m); font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 10px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.doc-status-approved { background: var(--success-bg); color: var(--success); }
.doc-status-draft    { background: var(--warning-bg); color: var(--warning); }
.doc-row-date { font-family: var(--font-m); font-size: 11px; color: var(--grey-400); white-space: nowrap; text-align: right; min-width: 80px; }
.doc-row-dl { width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--navy-500); border: 1px solid var(--grey-200); background: var(--surface); transition: all .2s; flex-shrink: 0; cursor: pointer; }
.doc-row-dl:hover { background: var(--navy-50); border-color: var(--navy-200); }
.doc-row-dl svg { width: 14px; height: 14px; }
.doc-empty { text-align: center; padding: 40px 20px; font-family: var(--font-d); font-size: 14px; color: var(--grey-400); display: none; }

/* Featured doc variant */
.doc-row.doc-row-spotlight { background: var(--navy-800); border-color: var(--navy-800); border-left: 3px solid #4ebab4; }
.doc-row.doc-row-spotlight:hover { border-color: var(--navy-700); border-left-color: #4ebab4; }
.doc-row.doc-row-spotlight .doc-row-title { color: white; }
.doc-row.doc-row-spotlight .doc-row-desc  { color: rgba(255,255,255,.6); }
.doc-row.doc-row-spotlight .doc-row-meta span { color: rgba(255,255,255,.45); }
.doc-row.doc-row-spotlight .doc-row-meta .doc-meta-sep { color: rgba(255,255,255,.2); }
.doc-row.doc-row-spotlight .doc-row-date { color: rgba(255,255,255,.5); }
.doc-row.doc-row-spotlight .doc-row-icon { background: rgba(78,186,180,.15); color: #4ebab4; border-color: transparent; }
.doc-row.doc-row-spotlight .doc-row-dl { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.15); background: transparent; }
.doc-row.doc-row-spotlight .doc-row-dl:hover { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.doc-row-spotlight-tag { font-family: var(--font-m); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #4ebab4; margin-bottom: 2px; }

/* =============================================================
   STAKEHOLDER / GET INVOLVED
============================================================= */
.stakeholder-section { padding: 100px 0; background: var(--bg); position: relative; }
.stakeholder-section::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, transparent, var(--grey-200), transparent); }
.stakeholder-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.stakeholder-card { background: var(--surface); border: 1px solid var(--grey-200); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .2s; }
.stakeholder-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stakeholder-icon { margin-bottom: 14px; }
.stakeholder-icon svg { width: 24px; height: 24px; }
.stakeholder-title { font-family: var(--font-d); font-size: 16px; font-weight: 700; color: var(--navy-700); margin-bottom: 8px; }
.stakeholder-body { font-size: 13px; color: var(--grey-600); line-height: 1.65; margin-bottom: 18px; }
.stakeholder-link { font-size: 13px; font-weight: 600; color: var(--navy-500); display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.stakeholder-link:hover { gap: 10px; }

/* =============================================================
   FOOTER
============================================================= */
.site-footer { background: var(--navy-900); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-logo-top  { font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: white; text-transform: uppercase; }
.footer-logo-bottom { font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #72c05a; text-transform: uppercase; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.6; max-width: 320px; margin-top: 8px; }
.footer-col-label { font-family: var(--font-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 12px; display: block; }
.footer-links-list { display: flex; flex-direction: column; gap: 7px; }
.footer-links-list a { font-size: 12px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-links-list a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 20px; margin-top: 36px; }
.footer-legal { font-family: var(--font-m); font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: .04em; }

/* =============================================================
   RESPONSIVE
============================================================= */

/* ---- Tablet (≤ 900px) ---- */
@media (max-width: 900px) {
    .main-layout            { grid-template-columns: 1fr; }
    .main-right             { position: static; }
    .footer-grid            { grid-template-columns: 1fr 1fr; gap: 32px; }
    .summary-grid           { grid-template-columns: 1fr; }
    .stakeholder-grid       { grid-template-columns: 1fr 1fr; }
    .pulse-grid             { grid-template-columns: repeat(3,1fr); }
    .lib-search-wrap        { width: 160px; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
    /* Layout */
    .hub-page .container    { padding: 0 16px; }

    /* Reduce section vertical rhythm */
    .summary-section        { padding: 48px 0 32px; }
    .pulse-section          { padding: 56px 0; }
    .timeline-section       { padding: 56px 0; }
    .library-section        { padding: 56px 0; }
    .stakeholder-section    { padding: 56px 0; }

    /* Return bar - hide logo text on small screens */
    .return-osg-text        { display: none; }
    .return-bar             { padding: 0 16px; }

    /* Hero */
    .hero                   { padding: 32px 0 20px; }
    .hero-attribution       { display: none; }  /* Too small to read at mobile, not needed */
    .hero-top               { flex-direction: column; gap: 20px; }
    .hero-ring-wrap         { flex-direction: row; align-items: center; gap: 16px; align-self: flex-start; }
    .hero-ring-label        { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); font-size: 9px; }
    .phase-ring-wrap        { width: 80px; height: 80px; }
    .phase-ring-svg         { width: 80px; height: 80px; }
    .phase-ring-pct         { font-size: 22px; }
    .hero-ring-label-text   { font-size: 9px; }
    .hero-status            { flex-direction: column; align-items: flex-start; gap: 8px; }
    .hero-status-right      { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hero-chips             { flex-wrap: wrap; gap: 6px; }

    /* Stage bar - 2x2 grid at tablet, single col at mobile */
    .stage-bar-inner        { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .stage-bar-item         { padding: 16px 12px; }
    .stage-bar-name         { font-size: 13px; }
    .stage-bar-desc         { font-size: 10px; margin-top: 8px; padding-top: 8px; }

    /* Summary */
    .summary-grid           { grid-template-columns: 1fr; gap: 32px; }
    .summary-heading        { font-size: 22px; }

    /* Pulse section */
    .pulse-grid             { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pulse-card             { padding: 20px 14px; }
    .section-title          { font-size: 22px; margin-bottom: 20px; }

    /* Timeline stage accordion */
    .lc-stage-header        { padding: 16px; gap: 10px; }
    .lc-stage-left          { gap: 12px; }
    .lc-stage-right-top     { flex-direction: column; align-items: flex-end; gap: 4px; }
    .lc-progress-wrap       { width: 56px; }
    .lc-stage-name          { font-size: 14px; }
    .lc-stage-desc          { display: none; }   /* Hide verbose desc on mobile, save space */
    .lc-stage-inner         { padding: 8px 12px 16px; }
    .lc-ms-head             { flex-wrap: wrap; gap: 6px; }
    .lc-ms-title            { flex-basis: 100%; margin-bottom: 2px; }
    .lc-ms-date             { font-size: 10px; }
    .timeline-sub           { font-size: 13px; }

    /* Document library */
    .lib-filters            { flex-direction: column; align-items: stretch; gap: 10px; }
    .lib-filters-left       { display: flex; flex-wrap: wrap; gap: 6px; }
    .lib-toolbar-right      { flex-wrap: wrap; gap: 6px; }
    .lib-search-wrap        { width: 100%; flex: 1 1 120px; }
    .lib-search             { width: 100%; }
    .library-header         { flex-direction: column; align-items: flex-start; gap: 8px; }
    /* Doc row - clean grid layout on mobile */
    .doc-row                { display: grid; grid-template-columns: 44px 1fr 40px; column-gap: 12px; row-gap: 4px; align-items: start; padding: 14px; }
    .doc-row-icon           { grid-column: 1; grid-row: 1 / 3; align-self: start; margin-top: 2px; }
    .doc-row-info           { grid-column: 2; grid-row: 1; min-width: 0; }
    .doc-row-dl             { grid-column: 3; grid-row: 1; align-self: start; }
    .doc-row-date           { grid-column: 2; grid-row: 2; font-size: 11px; color: var(--grey-400); text-align: left; min-width: 0; white-space: normal; }
    .doc-row-status         { display: none; }  /* Status badge hidden on mobile */

    /* Stakeholder cards */
    .stakeholder-grid       { grid-template-columns: 1fr; gap: 12px; }
    .stakeholder-card       { padding: 24px; }

    /* Footer */
    .footer-grid            { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
    .footer-bottom          { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---- Small mobile (≤ 480px) ---- */
@media (max-width: 480px) {
    /* Stage bar goes single column */
    .stage-bar-inner        { grid-template-columns: 1fr; }
    .stage-bar-item         { padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-align: left; }
    .stage-bar-num          { margin-bottom: 0; }
    .stage-bar-name         { font-size: 14px; margin-bottom: 0; }
    .stage-bar-desc         { display: none; }
    .stage-bar-label        { margin-top: 0; }

    /* Pulse single column */
    .pulse-grid             { grid-template-columns: 1fr; }
    .pulse-mini-ring        { width: 56px; height: 56px; }
    .pulse-mini-svg         { width: 56px; height: 56px; }
    .pulse-mini-pct         { font-size: 13px; }

    /* Hero chips stack */
    .hero-chips             { flex-direction: column; align-items: flex-start; gap: 6px; }

    /* Reduce ring further */
    .phase-ring-wrap        { width: 68px; height: 68px; }
    .phase-ring-svg         { width: 68px; height: 68px; }
    .phase-ring-pct         { font-size: 18px; }

    /* Nav tabs - allow horizontal scroll, shrink padding */
    .project-nav-tab        { padding: 14px 14px; font-size: 12px; }

    /* Library filters scroll horizontally */
    .lib-filters-left       { flex-wrap: wrap; }  /* wrap, don't clip - overflow-x: hidden on parent blocks scrolling */
    .lib-filter             { white-space: nowrap; flex-shrink: 0; }

    /* Stage accordion */
    .lc-stage-right         { display: none; }  /* Hide progress bar entirely, status badge is enough */
    .lc-stage-header        { padding: 14px 12px; }
    .lc-stage-inner         { padding: 6px 10px 14px; }
}

