/* WPC 2026 · Aramco exhibit dashboard */
:root {
  --blue: #00a3e0;
  --green: #84bd00;
  --teal: #19c3b4;
  --navy: #0033a0;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --r: 14px;
  --r-lg: 22px;
  --maxw: 1440px;
  --gut: clamp(16px, 3vw, 40px);
}
:root[data-theme="dark"] {
  --bg: #0b1114;
  --bg-2: #0f171b;
  --panel: #131c21;
  --panel-2: #182329;
  --panel-3: #1e2b33;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #eaf1f4;
  --ink-2: #a8b7bf;
  --ink-3: #72838d;
  --accent: #3cc3f2;
  --accent-ink: #04141b;
  --glow: 0 0 0 1px rgba(60, 195, 242, .35), 0 12px 40px -12px rgba(0, 163, 224, .45);
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .7);
  --st-done: #8fd14f;
  --st-progress: #3cc3f2;
  --st-review: #f2b84b;
  --st-pending: #9aa8b0;
  --st-blocked: #ff6b6b;
  --bar: #2fb3e6;
  --bar-2: #8fd14f;
  --chip: rgba(255, 255, 255, .06);
}
:root[data-theme="light"] {
  --bg: #f3f6f7;
  --bg-2: #eaf0f2;
  --panel: #ffffff;
  --panel-2: #f6f9fa;
  --panel-3: #edf2f4;
  --line: rgba(10, 30, 40, .09);
  --line-2: rgba(10, 30, 40, .16);
  --ink: #0d1c23;
  --ink-2: #475962;
  --ink-3: #74858e;
  --accent: #0089c0;
  --accent-ink: #ffffff;
  --glow: 0 0 0 1px rgba(0, 137, 192, .35), 0 12px 32px -14px rgba(0, 137, 192, .35);
  --shadow: 0 14px 40px -24px rgba(10, 30, 40, .35);
  --st-done: #4d8a00;
  --st-progress: #0083b8;
  --st-review: #b7790d;
  --st-pending: #6b7b84;
  --st-blocked: #d23c3c;
  --bar: #0089c0;
  --bar-2: #5c9a00;
  --chip: rgba(10, 30, 40, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
.num, .display { font-family: var(--display); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.kbd { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-3); }
.loading { padding: 80px var(--gut); color: var(--ink-3); text-align: center; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px;
  padding: 10px var(--gut); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo { height: 22px; width: auto; }
:root[data-theme="dark"] .logo-light, :root[data-theme="light"] .logo-dark { display: none; }
.brand-sep { width: 1px; height: 26px; background: var(--line-2); }
.brand-text { display: flex; flex-direction: column; font-size: 11px; line-height: 1.2; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.brand-text b { color: var(--ink); font-size: 13px; letter-spacing: .06em; }
.secnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.secnav::-webkit-scrollbar { display: none; }
.secnav a {
  white-space: nowrap; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 7px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.secnav a span { color: var(--ink-3); font-family: var(--display); margin-right: 6px; font-size: 12px; }
.secnav a:hover { background: var(--chip); color: var(--ink); }
.secnav a.active { background: var(--ink); color: var(--bg); }
.secnav a.active span { color: inherit; opacity: .6; }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
.iconbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; min-width: 36px; padding: 0 10px; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.iconbtn:hover { color: var(--ink); border-color: var(--line-2); }
@media (max-width: 760px) {
  .brand-text, .brand-sep, .search-trigger .kbd { display: none; }
  .topbar { gap: 10px; flex-wrap: wrap; }
  .secnav { order: 3; flex-basis: 100%; }
}

.update-banner {
  position: sticky; top: 57px; z-index: 39; display: flex; justify-content: center; align-items: center; gap: 14px;
  padding: 10px var(--gut); background: linear-gradient(90deg, var(--blue), var(--green)); color: #03151c; font-weight: 700; font-size: 14px;
}
.update-banner button { border: 0; background: #03151c; color: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; }

main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut) 60px; outline: none; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px var(--gut); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }

/* ---------- generic ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 980px) { .g2, .g3, .g-side { grid-template-columns: minmax(0, 1fr); } }
.section-gap { margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--chip); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap;
}
.chip b { color: var(--ink); font-weight: 700; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--line-2); color: var(--ink); }
button.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.input {
  height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink);
  font: inherit; font-size: 14px; min-width: 0;
}
.input:focus, .btn:focus-visible, .chip:focus-visible, .iconbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
select.input { padding-right: 28px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .grow { flex: 1; min-width: 180px; }
.empty { padding: 28px; text-align: center; color: var(--ink-3); }
mark { background: color-mix(in srgb, var(--green) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* status pills */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.st-done { color: var(--st-done); } .st-progress { color: var(--st-progress); } .st-review { color: var(--st-review); }
.st-pending { color: var(--st-pending); } .st-blocked { color: var(--st-blocked); } .st-other { color: var(--st-pending); }
.st.badge { padding: 4px 10px 4px 9px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }

/* ---------- home ---------- */
.hero { position: relative; margin: 26px 0 0; padding: clamp(24px, 4vw, 44px); border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--blue) 32%, transparent), transparent 60%),
    radial-gradient(700px 380px at 0% 120%, color-mix(in srgb, var(--green) 26%, transparent), transparent 60%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(ellipse 140% 60% at 50% 130%, transparent 0 22px, color-mix(in srgb, var(--ink) 4%, transparent) 22px 23px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: end; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 58px); font-weight: 700; letter-spacing: -.03em; margin: 10px 0 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.countdown { background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line-2); border-radius: 20px; padding: 20px; backdrop-filter: blur(6px); }
.cd-label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.cd-label b { color: var(--ink); }
.cd-digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.cd-digits div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.cd-digits .num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; display: block; line-height: 1.05; }
.cd-digits small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--st-done); margin-right: 8px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--st-done) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

.timeline { position: relative; z-index: 1; margin-top: 30px; }
.tl-track { position: relative; height: 6px; border-radius: 6px; background: var(--line-2); }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.tl-days { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 10px; }
.tl-day { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tl-day b { display: block; color: var(--ink); font-family: var(--display); font-size: 15px; }
.tl-day.today b { color: var(--accent); }
.tl-ms { position: absolute; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--panel); border: 3px solid var(--ink-3); cursor: default; }
.tl-ms.past { border-color: var(--green); }
.tl-now { position: absolute; top: -10px; bottom: -10px; width: 2px; background: var(--ink); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.kpi .label { font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: .04em; }
.kpi .value { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; margin-top: 4px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi .value small { font-size: .5em; color: var(--ink-3); font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.kpi .sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.minibar { height: 6px; border-radius: 6px; background: var(--line-2); margin-top: 10px; overflow: hidden; display: flex; gap: 2px; }
.minibar span { display: block; height: 100%; border-radius: 6px; }

.tabs-title { display: flex; justify-content: space-between; align-items: end; margin: 38px 0 14px; gap: 12px; flex-wrap: wrap; }
.tabs-title h2 { font-family: var(--display); font-size: 24px; }
.bigtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .bigtabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bigtabs { grid-template-columns: minmax(0, 1fr); } }
.bigtab {
  position: relative; display: flex; flex-direction: column; min-height: 300px; border-radius: 24px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); background: var(--panel); isolation: isolate; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.bigtab:hover, .bigtab:focus-visible { transform: translateY(-4px); box-shadow: var(--glow); border-color: transparent; outline: none; }
.bigtab .bt-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center top; opacity: .55; transition: transform .6s ease, opacity .3s; filter: saturate(.9); }
.bigtab:hover .bt-img { transform: scale(1.05); opacity: .7; }
.bigtab::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 30%, transparent) 0%, color-mix(in srgb, var(--panel) 88%, transparent) 52%, var(--panel) 78%); }
.bt-top { display: flex; justify-content: space-between; align-items: start; padding: 20px 22px 0; gap: 10px; }
.bt-num { font-family: var(--display); font-size: 54px; font-weight: 700; line-height: .9; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 25%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt-body { margin-top: auto; padding: 0 22px 20px; }
.bt-body h3 { font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.bt-body p { margin: 4px 0 14px; color: var(--ink-2); font-size: 13.5px; }
.bt-stats { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.bt-stats div { font-size: 11.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .03em; }
.bt-stats b { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.bt-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.bt-go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; }
.bt-missing { padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--st-blocked) 14%, transparent); color: var(--st-blocked); font-size: 12px; font-weight: 700; }

.feed { display: flex; flex-direction: column; }
.feed-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.feed-row:first-child { border-top: 0; }
.feed-row time { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.feed-row ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 12.5px; }

/* ---------- section page ---------- */
.dochead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin: 26px 0 18px; }
@media (max-width: 760px) { .dochead { grid-template-columns: minmax(0, 1fr); } .dochead .bt-num { display: none; } }
.dochead h1 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.025em; }
.dochead .sub { color: var(--ink-2); margin-top: 4px; }
.docmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.dochead .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.note { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--chip); border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--ink-2); }
.warn { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--st-review) 14%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--st-review) 40%, transparent); font-size: 13.5px; margin-bottom: 16px; }
.viewtabs { display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: fit-content; margin-bottom: 18px; }
.viewtabs a { text-decoration: none; padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.viewtabs a.on { background: var(--panel-3); color: var(--ink); }

/* pages grid */
.pagegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pagegrid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pthumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); cursor: zoom-in; padding: 0; text-align: left; display: block; width: 100%; }
.pthumb img { width: 100%; height: auto; aspect-ratio: auto; background: var(--panel-3); }
.pthumb span { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; }
.pthumb:hover { border-color: var(--accent); }
.pthumb.hit { box-shadow: 0 0 0 2px var(--green); }
.pthumb .snip { position: static; display: block; background: var(--panel); color: var(--ink-2); font-weight: 500; border-radius: 0; padding: 8px 10px; font-size: 12px; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; padding: 10px 12px; background: var(--panel-2); position: sticky; top: 0; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr.grp td { background: var(--panel-2); font-weight: 800; font-size: 12.5px; color: var(--ink-2); letter-spacing: .02em; }
.tbl tr.row:hover td { background: var(--chip); }
.tbl .ref { font-family: var(--display); font-size: 12.5px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.tbl .ref:hover { text-decoration: underline; }
.tbl .idx { color: var(--ink-3); font-family: var(--display); }

/* bars */
.hbars { display: flex; flex-direction: column; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: 12.5px; cursor: pointer; border-radius: 8px; padding: 2px 4px; background: none; border: 0; text-align: left; width: 100%; }
.hbar:hover { background: var(--chip); }
.hbar.on { background: var(--chip); outline: 1px solid var(--line-2); }
.hbar .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hbar .trk { height: 12px; background: var(--chip); border-radius: 4px; position: relative; overflow: hidden; }
.hbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--bar); border-radius: 0 4px 4px 0; }
.hbar .fill.done { background: var(--bar-2); }
.hbar .val { text-align: right; font-family: var(--display); font-weight: 600; color: var(--ink); }
.stackbar { display: flex; gap: 2px; height: 16px; border-radius: 6px; overflow: hidden; background: var(--chip); }
.stackbar span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* scope */
.ms-list { display: flex; flex-direction: column; }
.ms { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ms:first-child { border-top: 0; }
.ms .when { font-family: var(--display); font-weight: 700; font-size: 15px; }
.ms .when small { display: block; font-family: var(--font); font-size: 11px; color: var(--ink-3); font-weight: 600; }
.ms p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.pay { display: flex; gap: 3px; height: 54px; border-radius: 12px; overflow: hidden; }
.pay div { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; min-width: 0; font-size: 11.5px; font-weight: 700; color: #04141b; }
.pay div b { font-family: var(--display); font-size: 18px; }
.contacts { display: grid; gap: 10px; }
.contact { padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; }
.contact .role { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.contact b { display: block; font-size: 15px; margin: 2px 0 4px; }
.contact a { color: var(--accent); text-decoration: none; }
.clause-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .clause-layout { grid-template-columns: minmax(0, 1fr); } }
.toc { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; align-self: start; }
.toc button { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 9px; cursor: pointer; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.toc button:hover { background: var(--chip); color: var(--ink); }
.toc button.on { background: var(--panel-3); color: var(--ink); }
.toc .n { font-family: var(--display); color: var(--ink-3); }
.toc .c { font-size: 11.5px; color: var(--ink-3); }
.clauses { display: flex; flex-direction: column; gap: 2px; }
.cl { border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; font-size: 13.8px; }
.cl:target, .cl.flash { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cl .cn { font-family: var(--display); color: var(--ink-3); font-size: 12.5px; padding-top: 2px; }
.cl.h { margin-top: 14px; }
.cl.h .ct { font-weight: 800; font-size: 15px; }
.cl.l1 .ct { font-family: var(--display); font-size: 20px; }
.cl .tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cl .tools a { font-size: 11.5px; text-decoration: none; }
.cl.l3 { padding-left: 20px; } .cl.l4 { padding-left: 36px; } .cl.l5 { padding-left: 52px; }

/* zones */
.zonecards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .zonecards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .zonecards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zcard { text-align: left; cursor: pointer; border-radius: 18px; padding: 16px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 6px; min-height: 160px; position: relative; overflow: hidden; }
.zcard::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--zc); opacity: .14; }
.zcard:hover { border-color: var(--line-2); }
.zcard.on { border-color: var(--zc); box-shadow: 0 0 0 1px var(--zc); }
.zcard .zn { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--zc); letter-spacing: .1em; }
.zcard h4 { font-size: 16px; font-weight: 800; }
.zcard .zs { margin-top: auto; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .topics { grid-template-columns: minmax(0, 1fr); } }
.topics li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.8px; font-weight: 600; }
.topics li span { font-family: var(--display); color: var(--zc, var(--accent)); font-weight: 700; }
.dlist { display: flex; flex-direction: column; }
.dlist div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dlist div:first-child { border-top: 0; }
.dlist small { color: var(--ink-3); display: block; }

/* design gallery */
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.gcard { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; background: var(--panel-2); padding: 0; }
.gcard img { width: 100%; aspect-ratio: 1190 / 842; object-fit: cover; transition: transform .5s ease; }
.gcard:hover img { transform: scale(1.04); }
.gcard figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: flex; justify-content: space-between; text-align: left; }
.chapter-h { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 12px; }
.chapter-h h3 { font-family: var(--display); font-size: 20px; }

/* agenda */
.daytabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.daytab { border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 8px 14px; cursor: pointer; text-align: left; }
.daytab b { display: block; font-family: var(--display); font-size: 17px; }
.daytab small { color: var(--ink-3); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; }
.daytab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.daytab.on small { color: inherit; opacity: .7; }
.sessions { display: flex; flex-direction: column; gap: 10px; }
.sess { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); align-items: start; }
@media (max-width: 640px) { .sess { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.sess .t { font-family: var(--display); font-weight: 700; font-size: 15px; }
.sess .t small { display: block; font-family: var(--font); color: var(--ink-3); font-size: 12px; font-weight: 600; }
.sess h4 { font-size: 15px; font-weight: 800; }
.sess .who { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.sess .who b { color: var(--ink); }
.sess .where { font-size: 12.5px; color: var(--ink-2); text-align: right; }
.sess.now { border-color: var(--st-done); box-shadow: 0 0 0 1px var(--st-done); }
.sess.past { opacity: .55; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--chip); color: var(--ink-2); margin-right: 6px; letter-spacing: .02em; }
.tag.aramco { background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--accent); }
.tag.warn-t { background: color-mix(in srgb, var(--st-review) 18%, transparent); color: var(--st-review); }
.speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.spk { text-align: center; font-size: 12.5px; }
.spk img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid var(--line-2); background: var(--panel-3); }
.spk b { display: block; font-size: 13.5px; line-height: 1.3; }
.spk span { color: var(--ink-2); display: block; }
.spk em { font-style: normal; color: var(--ink-3); font-weight: 700; }
.mou { padding: 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.mou h4 { font-size: 15px; font-weight: 800; }
.mou .co { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--accent); }
.mou p { margin: 0; font-size: 13px; color: var(--ink-2); }
.mou ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.sig { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; }
.sig div { padding: 8px 10px; border-radius: 10px; background: var(--chip); }
.sig small { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.fact { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.fact small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.fact b { display: block; font-size: 16px; margin-top: 2px; }
.fact span { color: var(--ink-2); font-size: 12.5px; }
.hours { width: 100%; border-collapse: collapse; font-size: 13px; }
.hours td, .hours th { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; }
.hours th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-top: 0; }

/* presentation */
.agenda-tl { position: relative; border-left: 2px solid var(--line-2); margin-left: 64px; }
.atl-row { position: relative; padding: 0 0 16px 22px; }
.atl-row::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 3px solid var(--tc, var(--accent)); }
.atl-row .tm { position: absolute; left: -76px; top: 2px; width: 62px; text-align: right; font-family: var(--display); font-size: 13px; font-weight: 700; }
.atl-card { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--tc, var(--accent)); cursor: pointer; }
.atl-card h4 { font-size: 14.5px; font-weight: 800; }
.atl-card p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.atl-row.dim { opacity: .35; }
.atl-row.now .atl-card { box-shadow: 0 0 0 2px var(--st-done); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 12.5px; }
.matrix th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; text-align: left; padding: 4px 6px; }
.matrix td { padding: 8px; border-radius: 8px; background: var(--chip); font-family: var(--display); font-weight: 600; white-space: nowrap; text-align: center; }
.matrix td.topic { font-family: var(--font); text-align: left; white-space: normal; background: none; font-weight: 700; cursor: pointer; padding-left: 10px; border-left: 4px solid var(--tc); border-radius: 4px; }
.matrix tr.on td:not(.topic) { background: color-mix(in srgb, var(--tc) 28%, transparent); }
.matrix tr:hover td.topic { color: var(--accent); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(4, 8, 10, .94); display: flex; flex-direction: column; color: #fff; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.lb-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tools { display: flex; gap: 8px; align-items: center; }
.lb .iconbtn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.lb-count { font-family: var(--display); font-size: 13px; color: #b9c6cc; margin-right: 6px; }
.lb-stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 8px 64px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); cursor: zoom-in; background: #fff; }
.lb-stage.zoom { display: block; padding: 8px; }
.lb-stage.zoom img { max-width: none; max-height: none; width: 180%; margin: 0 auto; cursor: zoom-out; }
@media (max-width: 760px) { .lb-stage.zoom img { width: 300%; } .lb-stage { padding: 8px 8px; } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 34px; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.16); }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px 12px; }
.lb-strip button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .55; }
.lb-strip button.on { border-color: var(--green); opacity: 1; }
.lb-strip img { height: 54px; width: auto; }

/* search */
.search { position: fixed; inset: 0; z-index: 90; background: rgba(4, 8, 10, .6); backdrop-filter: blur(4px); display: flex; justify-content: center; padding: 10vh 16px 16px; }
.search-box { width: min(760px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: 76vh; overflow: hidden; }
.search-input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.search-input input { flex: 1; border: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; outline: none; min-width: 0; }
.search-results { overflow-y: auto; padding: 8px; }
.sr-group { padding: 10px 10px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }
.sr { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.sr:hover, .sr.sel { background: var(--chip); }
.sr b { font-size: 14px; display: block; }
.sr span { font-size: 12.5px; color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 95; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 13.5px; }

@media print {
  .topbar, .foot, .viewtabs, .toolbar, .update-banner { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.clauses { max-height: 78vh; overflow-y: auto; padding-right: 6px; scroll-behavior: smooth; }
.toc { position: static; max-height: 78vh; overflow-y: auto; }
.hero-meta .chip { white-space: normal; }
@media (max-width: 640px) {
  .tl-day { font-size: 0; } .tl-day b { font-size: 13px; }
  .hero { border-radius: 20px; }
  .kpis { gap: 10px; }
  .hbar { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 44px; }
  .agenda-tl { margin-left: 58px; }
}
.feed-row > div { overflow-wrap: anywhere; min-width: 0; } @media (max-width: 640px) { .feed-row { grid-template-columns: 1fr; gap: 2px; } }
