/* Hub pages (WONE Lighting home, Engineering; the topic field of Contact). Owner: PK2 (docs/faz1-sozlesme.md).
   Built on site.css tokens and classes; ported from the prototype's ana-site.css with live class names. Status chips
   (.tag.st) and the chain (.chain) are site.css's; this file only places and sizes them. The site accent stays in the
   drawings (decision 17): --site-accent-line; Flora's pink and Fauna's gold appear only inside their own windows. */

main { --hub-dark-track: rgba(207, 230, 218, 0.14); --hub-uvb: #6a4fd6; --hub-uva: #8f73f0; --hub-far-red: #8a2638; --hub-flora: #ff5a8e; --hub-fauna: #e0b84a; }

/* ---------- Home opening: the engineering chain card (tabs Flora · Fauna · İnsan) ---------- */
.app-window.hub-card { border-radius: 14px; background: rgba(8, 20, 16, 0.62); border-color: rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7); color: #eef4f0; }
.hub-card .aw-bar { height: auto; min-height: 48px; padding: 0 7px 0 14px; gap: 10px; background: rgba(13, 29, 24, 0.55); }
.hub-card .aw-body { padding: 18px 14px 14px; background: transparent; }
.pill-tabs.sm { margin-left: auto; padding: 3px; gap: 2px; border-radius: 10px; flex-wrap: nowrap; }
.pill-tabs.sm button { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 0.8rem; }
.pill-tabs [role='tab'][aria-selected='true'] { background: var(--accent); color: var(--accent-ink); }
.pill-tabs [role='tab']:focus-visible { outline: 2px solid var(--brand-mint); outline-offset: 2px; }
.chain.is-compact { --g: 8px; }
.chain.is-compact .chain-nodes b { font-size: 0.8rem; }
.chain.is-compact .chain-nodes small { font-size: 0.73rem; line-height: 1.38; }
.chain.is-compact .chain-nodes .tag { margin-top: 4px; font-size: 0.64rem; padding: 3px 7px; }
/* long step names (French) hyphenate inside their column; the record pill may take two lines */
.hub-card .chain-nodes b { max-width: 100%; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; overflow-wrap: break-word; }
.hub-card .chain-nodes > li:nth-child(6) b { max-width: 100%; padding: 2px 7px; border-radius: 9px; }
.hc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hc-foot .link-arrow { font-size: 0.86rem; color: var(--brand-mint); }
.hc-foot .link-arrow:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) { .hc-panel:not([hidden]) { animation: hub-fade var(--dur-2) var(--ease-out); } }
@keyframes hub-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) { .app-window.hub-card { background: var(--ink-1); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; } }
@media (max-width: 640px) {
  .hub-card .aw-bar { flex-wrap: wrap; padding: 10px 12px; }
  .hub-card .pill-tabs.sm { margin-left: 0; width: 100%; }
  .hub-card .pill-tabs.sm button { flex: 1 1 0; height: 40px; }
  .hub-card .aw-body { padding: 16px 14px 12px; }
}

/* ---------- Uygulama alanları: Flora (photo), Fauna (rows + window), İnsan (two columns) ---------- */
.fam-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fam-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.fam-k .tag { text-transform: none; letter-spacing: 0.04em; }
.fam-grid > .app-card.fam-plant { grid-column: 1 / -1; min-height: 480px; }
.fam-plant .fam-k { color: #dfeae4; }
.fam-plant .body { position: relative; padding: clamp(22px, 3vw, 34px); }
.fam-plant h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 12px 0 8px; }
.fam-plant p { max-width: 52ch; }
.fam-plant .tag.st { background: rgba(7, 18, 15, 0.55); border-color: rgba(255, 255, 255, 0.18); color: var(--brand-mint); backdrop-filter: blur(4px); }
.fam-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; }
.fam-plant .link-arrow { color: #fff; }
.fam-plant .link-arrow:hover { color: var(--brand-mint); }
.fam-box { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); border-radius: var(--r-xl); background: var(--bg-2); border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 30px); }
.fam-animal { align-items: center; }
.fam-human { align-items: start; }
.fam-box h3 { margin: 12px 0 8px; font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
.fam-txt > p:not(.fam-k) { color: var(--fg-2); font-size: 0.97rem; max-width: 52ch; }
.fam-box .hum-rows { margin: 18px 0 0; }
.fam-human .hum-rows { margin: 0; }
.fam-box .hum-rows li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 13px 0; }
.fam-box .hum-rows .hr-name { grid-column: 1; }
.fam-box .hum-rows .hr-text { grid-column: 1; font-size: 0.88rem; line-height: 1.45; }
.fam-box .hum-rows .hr-status { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.fam-box .hum-rows .chip-pair { flex-direction: column; align-items: flex-end; }
.fam-box .hum-rows .tag { font-size: 0.66rem; padding: 3px 8px; }
.fam-win .aw-body { padding: 18px 18px 16px; }
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; gap: 18px 10px; margin: 0; padding: 8px 0 4px; }
.rings figure { margin: 0; display: grid; justify-items: center; gap: 10px; text-align: center; }
.rings figcaption { font-size: 0.76rem; line-height: 1.35; color: #cfdcd5; max-width: 12ch; }
.ring24 { --size: 112px; --w: 11px; position: relative; display: grid; place-items: center; align-content: center; width: var(--size); height: var(--size); text-align: center; }
.ring24::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--hub-fauna) 0 calc(var(--on) * 15deg), var(--hub-dark-track) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - 0.5px), #000 calc(100% - var(--w))); mask: radial-gradient(farthest-side, transparent calc(100% - var(--w) - 0.5px), #000 calc(100% - var(--w))); }
.ring24 b { position: relative; font-size: 1.15rem; font-weight: 750; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ring24 small { position: relative; display: block; max-width: 9ch; font-size: 0.64rem; line-height: 1.3; color: #a9bbb3; }
.app-window .aw-note { margin: 14px 0 0; font-size: 0.78rem; line-height: 1.5; color: #a9bbb3; }
@media (max-width: 1180px) { .ring24 { --size: 96px; --w: 10px; } .ring24 b { font-size: 1rem; } }
@media (max-width: 980px) { .fam-box { grid-template-columns: minmax(0, 1fr); } .fam-human .hum-rows { margin-top: 4px; } }
@media (max-width: 560px) {
  .fam-grid > .app-card.fam-plant { min-height: 440px; }
  .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ring24 { --size: 112px; --w: 11px; }
  .fam-box .hum-rows li { grid-template-columns: minmax(0, 1fr); }
  .fam-box .hum-rows .hr-status { grid-column: 1; grid-row: auto; justify-self: start; }
  .fam-box .hum-rows .chip-pair { flex-direction: row; align-items: center; }
}

/* ---------- Tools and digital twins: a row of cards sized to their number ---------- */
.cap-grid.hub-caps { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cap-grid.hub-caps[style*='--cols:1'] { max-width: 460px; }
@media (max-width: 760px) { .cap-grid.hub-caps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Model ve ölçüm: the engine's plan, legend and three values ---------- */
.mo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.mo-side { display: grid; gap: 22px; }
.mo-blocks { display: grid; gap: 18px; }
.mo-block { padding-top: 18px; border-top: 1px solid var(--line-2); }
.mo-block h3 { margin: 0 0 6px; }
.mo-block p { margin: 0 0 10px; color: var(--fg-2); font-size: 0.97rem; }
.mo-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin: 0 0 12px !important; font-size: 0.92rem; }
@media (max-width: 980px) { .mo-grid { grid-template-columns: minmax(0, 1fr); } }
.hm-win .aw-body { padding: 18px 18px 16px; }
.plan { position: relative; padding: 22px 0 0 24px; }
.plan-svg { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(66, 211, 156, 0.16); }
.plan-floor { fill: #0b1613; }
.plan-dim { fill: rgba(5, 12, 10, 0.42); }
.plan-metre line { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.plan-row { fill: none; stroke: rgba(240, 248, 236, 0.42); stroke-width: 1.1; }
.plan-lum { fill: #ff6f9c; stroke: rgba(18, 6, 10, 0.55); stroke-width: 0.8; }
.plan-frame { fill: none; stroke: rgba(66, 211, 156, 0.3); stroke-width: 1; }
.plan-dx, .plan-dy { position: absolute; display: flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; color: #8fa59c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-dx { top: 0; left: 24px; right: 0; height: 16px; }
.plan-dy { left: 0; top: 22px; bottom: 0; width: 16px; flex-direction: column; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); }
.plan-dx::before, .plan-dx::after { content: ''; flex: 1; border-top: 1px solid rgba(143, 165, 156, 0.4); }
.plan-dy::before, .plan-dy::after { content: ''; flex: 1; border-left: 1px solid rgba(143, 165, 156, 0.4); }
.plan-legend { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; align-items: center; margin-top: 16px; padding-left: 24px; font-size: 0.76rem; color: #b3c3bb; }
.plan-lt { font-weight: 700; color: #dfe9e4; }
.plan-lt .u { display: block; font-weight: 500; color: #8fa59c; }
.plan-scale { position: relative; height: 48px; min-width: 0; }
.plan-ramp { position: absolute; left: 0; right: 0; top: 18px; height: 10px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.plan-mk { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.68rem; font-weight: 700; color: #cfdcd5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-mk::after { content: ''; position: absolute; left: 50%; top: 15px; height: 14px; border-left: 1.5px solid #fff; }
.plan-mk.is-avg { color: var(--accent); }
.plan-mk.is-avg::after { border-color: var(--accent); }
.plan-ticks span { position: absolute; top: 32px; transform: translateX(-50%); font-size: 0.68rem; color: #8fa59c; font-variant-numeric: tabular-nums; }
.plan-ticks span:first-child { transform: none; }
.plan-ticks span:last-child { transform: translateX(-100%); }
.plan-keys { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.plan-keys .k::before { content: ''; display: inline-block; vertical-align: -2px; margin-right: 8px; }
.plan-keys .k-row::before { width: 18px; height: 9px; border: 1.3px solid rgba(240, 248, 236, 0.7); border-radius: 2px; }
.plan-keys .k-lum::before { width: 18px; height: 5px; vertical-align: 1px; border-radius: 2px; background: #ff6f9c; }
.plan-keys .k-path::before { width: 18px; height: 9px; border-radius: 2px; background: rgba(5, 12, 10, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.kpis > div { padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, 0.12); min-width: 0; }
.kpis > div:first-child { padding-left: 0; border-left: 0; }
.kpis dt { font-size: 0.72rem; line-height: 1.3; color: #a9bbb3; }
.kpis dd { margin: 4px 0 0; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }
.kpis dd small { margin-left: 5px; font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: #a9bbb3; }
.plan-kpis { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.1); }
@media (max-width: 560px) {
  .plan { padding: 18px 0 0 18px; }
  .plan-dx { left: 18px; } .plan-dy { top: 18px; }
  .plan-legend { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .plan-kpis { padding: 12px 14px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .plan-kpis > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0; border-left: 0; }
  .plan-kpis > div + div { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .plan-kpis dd { margin: 0; font-size: 1.3rem; }
  .plan-kpis dd small { margin: 0 0 0 5px; font-size: 0.7rem; }
}

/* ---------- Working modes: the chips of a row stack at its right ---------- */
.hub-rows .row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) 16rem; }
.hub-rows .row .chip-pair { flex-direction: column; align-items: flex-end; }
@media (max-width: 860px) { .hub-rows .row { grid-template-columns: minmax(0, 1fr); } .hub-rows .row .chip-pair { flex-direction: row; align-items: center; } }

/* ---------- Engineering opening: window of the six places, jump strip ---------- */
.eng-hero { padding-bottom: 0; }
.eng-hero .ph-grid { align-items: start; }
.eng-hero.page-hero.has-media .ph-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.eng-hero .btn-row { margin-top: 28px; }
.ph-win { margin: 0; min-width: 0; }
.ph-win .app-window { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.yer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.yer-grid > li { display: grid; align-content: start; gap: 2px; padding: 10px 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.08); min-width: 0; }
.yer-grid svg { display: block; width: 100%; height: 70px; margin-bottom: 8px; }
.yer-grid b { font-size: 0.86rem; color: #fff; line-height: 1.3; }
.yer-grid small { display: block; font-size: 0.74rem; line-height: 1.45; color: #a9bbb3; }
.yer-grid small i { font-style: normal; font-family: var(--mono); font-size: 0.95em; color: var(--brand-mint); }
.yer-ln { fill: none; stroke: #cfdcd5; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.yer-dim { fill: none; stroke: rgba(207, 220, 213, 0.38); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.yer-tgt { fill: rgba(66, 211, 156, 0.16); stroke: var(--brand-mint); stroke-width: 1.4; stroke-linejoin: round; }
.yer-ray { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-dasharray: 3 3; stroke-linecap: round; }
.yer-lamp { fill: #e9f1ec; }
.yer-dot { fill: var(--accent); }
@media (max-width: 980px) { .eng-hero.page-hero.has-media .ph-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .yer-grid { grid-template-columns: minmax(0, 1fr); }
  .yer-grid > li { grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 0 14px; }
  .yer-grid > li svg { grid-row: span 3; margin: 0; height: 56px; }
}
.jump { position: relative; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(7, 18, 15, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.jump ul { display: flex; gap: 4px 28px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.jump ul::-webkit-scrollbar { display: none; }
.jump li { scroll-snap-align: start; }
.jump a { display: inline-flex; align-items: center; min-height: 52px; white-space: nowrap; color: #b9cac2; font-size: 0.86rem; font-weight: 650; text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.jump a:hover, .jump a:focus-visible, .jump a[aria-current='true'] { color: #fff; border-bottom-color: var(--accent); }

/* ---------- Tables of the hub pages: row headers in sentence case, stacked on phones ---------- */
.tbl-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.hub-tbl thead th { position: static; white-space: nowrap; }
.hub-tbl tbody th[scope='row'] { position: static; background: none; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.005em; text-transform: none; color: var(--fg); }
.hub-tbl tbody th a { color: var(--fg); text-decoration-color: rgba(8, 128, 90, 0.4); }
.hub-tbl tbody th a:hover { color: var(--brand); }
.hub-tbl td { color: var(--fg-2); line-height: 1.5; }
.hub-tbl td.st { white-space: nowrap; }
.hub-tbl .tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 721px) { .hub-tbl tbody th[scope='row'] { min-width: 11rem; } .hv-table tbody th[scope='row'] { width: 15rem; } }
@media (max-width: 720px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; width: auto; }
  .table-stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack th, .table-stack td { padding: 0; border: 0; }
  .table-stack td { margin-top: 6px; white-space: normal; }
  .table-stack td.st { white-space: normal; }
  .table-stack td[data-k]::before { content: attr(data-k) ': '; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
  .table-stack tbody tr:hover td { background: none; }
}
@media (min-width: 721px) { .dp-table { min-width: 1080px; } }

/* units strip under the target table: labels and units only (live .units) */
.hub-units { margin-top: 32px; }

/* ---------- Inputs and target values ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(28px, 4vw, 44px); }
.two-col h3 { margin-bottom: 10px; }
.two-col p { margin: 0; color: var(--fg-2); }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Model and digital twin (dark section) ---------- */
.md-split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: pl; }
.pillars > li { position: relative; padding: 22px; border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.pillars > li::before { counter-increment: pl; content: counter(pl, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--brand-mint); font-variant-numeric: tabular-nums; }
.pillars h3 { margin-bottom: 8px; }
.pillars p { margin: 0; color: var(--fg-2); font-size: 0.95rem; }
.lvl-head { margin: clamp(48px, 6vw, 72px) 0 18px; }
.lvl-cards .card { background: rgba(255, 255, 255, 0.035); }
.lvl-cards .lvl-n { display: block; margin-bottom: 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-mint); }
.lvl-cards .card:last-child { border-color: rgba(216, 243, 106, 0.3); }
.md-status { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.md-status p { color: var(--fg-2); }
.md-status .btn-row { gap: 10px 26px; }
.md-chips { display: grid; gap: 8px; list-style: none; margin: 16px 0 22px; padding: 0; }
.md-chips li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.92rem; color: var(--fg-2); }
.section.surface .cap-grid.hub-caps .cap { background: var(--ink-2); }
@media (max-width: 980px) { .md-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .md-status { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.iso-win .aw-body { padding: 16px 16px 14px; }
.iso { display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto; }
.iso.is-m, .iso-key.is-m { display: none; }
.iso-key { list-style: none; margin: 12px 0 0; padding: 0; gap: 4px; font-size: 0.84rem; color: #eef4f0; font-weight: 700; }
.iso-key li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.iso-key small { font-weight: 500; color: #a9bbb3; }
.iso-key small.sim { color: var(--accent); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }
@media (max-width: 640px) { .iso.is-d { display: none; } .iso.is-m { display: block; max-width: 340px; } .iso-key.is-m { display: grid; } }
.iso-wall { fill: rgba(66, 211, 156, 0.04); stroke: rgba(66, 211, 156, 0.28); stroke-width: 1; }
.iso-plane { fill: rgba(255, 255, 255, 0.025); stroke: rgba(66, 211, 156, 0.5); stroke-width: 1; }
.iso-grid line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.iso-rows rect { fill: none; stroke: rgba(240, 248, 236, 0.42); stroke-width: 1; }
.iso-dim { fill: rgba(5, 12, 10, 0.45); }
.iso-frame { fill: none; stroke: rgba(216, 243, 106, 0.55); stroke-width: 1.2; }
.iso-ghost { fill: rgba(7, 18, 15, 0.16); stroke: rgba(207, 220, 213, 0.3); stroke-width: 1; stroke-dasharray: 4 4; }
.iso-lums line { stroke: #e3ece7; stroke-width: 2.4; stroke-linecap: butt; }
.iso-on { fill: var(--site-accent-line); }
.iso-off { fill: rgba(207, 230, 218, 0.14); }
.iso-tick { fill: #8a9b93; font-size: 11px; font-variant-numeric: tabular-nums; }
.iso-lab line { stroke: rgba(207, 220, 213, 0.35); stroke-width: 1; }
.iso-lab text { fill: #eef4f0; font-size: 15px; font-weight: 700; font-family: var(--font); }
.iso-lab text.iso-sub { fill: #a9bbb3; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; }
.iso-lab.is-sim text.iso-sub { fill: var(--accent); font-weight: 800; letter-spacing: 0.1em; }

/* ---------- Shared measurement: ranges window and photographs ---------- */
.olc-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.olc-side { display: grid; gap: 12px; }
.olc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .olc-grid { grid-template-columns: minmax(0, 1fr); } }
.olc { display: grid; gap: 4px; }
.olc-row { display: grid; grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 7px 0; }
.olc-row + .olc-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.olc-row > div:first-child { display: grid; gap: 4px; justify-items: start; }
.olc-row b { font-size: 0.8rem; font-weight: 650; line-height: 1.3; color: #eef4f0; }
.olc-row .tag { font-size: 0.6rem; padding: 2px 6px; white-space: normal; }
.olc-track { position: relative; height: 22px; border-radius: 5px; background: rgba(207, 230, 218, 0.06); }
.olc-bar { position: absolute; top: 4px; bottom: 4px; left: var(--a); width: calc(var(--b) - var(--a)); border-radius: 4px; background: rgba(66, 211, 156, 0.24); box-shadow: inset 0 0 0 1.5px var(--site-accent-line); }
.olc-bar span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 0.66rem; font-weight: 750; color: #fff; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.olc-bar.out span { left: calc(100% + 8px); transform: translateY(-50%); color: #cfdcd5; }
.olc-row.axis { padding: 4px 0 2px; }
.olc-row.axis > div:first-child { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-mint); }
.olc-bands { position: relative; height: 26px; border-radius: 5px; overflow: hidden; }
.olc-bands > span { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a)); display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; }
.olc-bands > .vis { background: linear-gradient(90deg, #7a4fd6 0%, #4f6df5 18%, #2fa8c9 33%, #4fbf73 45%, #d9d34a 58%, #f08a3b 72%, #e0453b 86%, #b3263a 100%); opacity: 0.85; }
.olc-ticks { position: relative; height: 18px; margin-top: 4px; font-size: 0.66rem; color: #8a9b93; font-variant-numeric: tabular-nums; }
.olc-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.olc-ticks span:first-child { transform: none; }
.olc-ticks span:last-child { transform: translateX(-100%); }
.olc-gap { height: 16px; }
.hatch { --h: var(--site-accent-line); background-color: rgba(66, 211, 156, 0.12); background-image: repeating-linear-gradient(45deg, var(--h) 0 1.5px, transparent 1.5px 6px); }
.hatch-uvb { --h: var(--hub-uvb); background-color: rgba(106, 79, 214, 0.3); }
.hatch-uva { --h: var(--hub-uva); background-color: rgba(143, 115, 240, 0.22); }
.hatch-fr { --h: var(--hub-far-red); background-color: rgba(138, 38, 56, 0.3); }
.hatch-nir { --h: #8a3a4c; background-color: rgba(92, 26, 38, 0.45); }
@media (max-width: 640px) {
  .olc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .olc-row > div:first-child { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; }
  .olc-row.axis > div:first-child { display: block; }
}
.app-window .legend { align-items: center; gap: 6px 16px; margin: 12px 0 0; font-size: 0.76rem; color: #b3c3bb; }
.app-window .legend .k { display: inline-flex; align-items: center; gap: 6px; }
.app-window .legend .k::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--k, var(--site-accent-line)); }
.app-window .legend .k.hatch-k::before { background-color: rgba(66, 211, 156, 0.12); background-image: repeating-linear-gradient(45deg, var(--k, var(--site-accent-line)) 0 1.5px, transparent 1.5px 4px); }
.app-window .legend .k-range { --k: rgba(66, 211, 156, 0.35); }
.app-window .legend .k-uv { --k: var(--hub-uvb); }
.app-window .legend .k-fr { --k: var(--hub-far-red); }
.app-window .legend .k-ni { --k: var(--hub-flora); }
.app-window .legend .k-lit { --k: var(--hub-fauna); }
.app-window .legend .k.dark-k::before { background: var(--hub-dark-track); box-shadow: inset 0 0 0 1px rgba(207, 230, 218, 0.3); }
.app-window .legend .k-s { --k: #42d39c; }
.app-window .legend .k-g { --k: #f0c56a; }
.app-window .legend .k-c { --k: #c9b8ff; }
.app-window .legend .u { margin-left: auto; color: #8a9b93; }
.app-window .legend .tag { font-size: 0.62rem; padding: 2px 7px; }

/* ---------- Control: 24-hour program window and the five boxes ---------- */
.kt-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.kt-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.kt-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.kt-list > li { padding: 18px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.kt-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 14px; margin-bottom: 6px; }
.kt-top h3 { margin: 0; }
.kt-list p { margin: 0; color: var(--fg-2); font-size: 0.95rem; }
@media (max-width: 980px) { .kt-grid { grid-template-columns: minmax(0, 1fr); } .kt-sticky { position: static; } }
.h24 { position: relative; height: 16px; border-radius: 5px; background: var(--hub-dark-track); overflow: hidden; }
.h24.tall { height: 28px; }
.h24-seg { position: absolute; top: 0; bottom: 0; left: calc(var(--a) / 24 * 100%); width: calc((var(--b) - var(--a)) / 24 * 100%); background: var(--tr); }
.h24-seg.up { background: linear-gradient(90deg, var(--hub-dark-track), var(--tr)); }
.h24-seg.down { background: linear-gradient(90deg, var(--tr), var(--hub-dark-track)); }
.h24-seg.soft { background: var(--tr); opacity: 0.45; }
.h24-axis { display: flex; justify-content: space-between; margin-top: 0; font-size: 0.7rem; color: #8a9b93; font-variant-numeric: tabular-nums; }
.h24-row { display: grid; grid-template-columns: minmax(7rem, 0.32fr) minmax(0, 1fr) 4.4rem; gap: 10px 14px; align-items: center; padding: 8px 0; }
.h24-row + .h24-row { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.h24-row.axis { padding-top: 0; border-top: 0; }
.h24-row > b { font-size: 0.84rem; font-weight: 650; color: #eef4f0; line-height: 1.3; }
.h24-row > span:last-child { text-align: right; font-size: 0.8rem; font-weight: 750; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.h24-row.tr-ni { --tr: var(--hub-flora); }
.h24-row.tr-lit { --tr: var(--hub-fauna); }
@media (max-width: 560px) { .h24-row { grid-template-columns: minmax(0, 1fr) auto; } .h24-row > .h24 { grid-column: 1 / -1; grid-row: 2; } .h24-row.axis { grid-template-columns: minmax(0, 1fr); } .h24-row.axis > :not(.h24-axis) { display: none; } }

/* ---------- Records: evidence label cards, scale, notes ---------- */
.ev-cards .card .tag { margin-bottom: 14px; }
.ev-cards .card p { font-size: 0.97rem; }
.st-notes { margin-top: 16px; display: grid; gap: 4px; }
.st-notes p { margin: 0; font-size: 0.93rem; color: var(--fg-2); }

/* ---------- The six links by area: matrix (desktop), boxes (phone), ring status ---------- */
.matris-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
table.matris { min-width: 1180px; font-size: 0.86rem; }
.matris th, .matris td { padding: 14px; }
.matris thead th { white-space: normal; line-height: 1.3; }
.matris thead th:first-child, .matris tbody th[scope='row'] { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--line); }
.matris thead th:first-child { background: var(--bg-2); }
.matris tbody th[scope='row'] { width: 12rem; min-width: 12rem; }
.matris-m { display: none; gap: 8px; }
@media (max-width: 640px) { .matris-wrap.is-d { display: none; } .matris-m { display: grid; } }
.matris-m details { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.matris-m summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.matris-m summary::-webkit-details-marker { display: none; }
.matris-m summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--brand); }
.matris-m details[open] summary::after { content: '–'; }
.matris-m dl { margin: 0; padding: 0 16px 14px; }
.matris-m dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.matris-m dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.matris-m dd { margin: 3px 0 0; font-size: 0.92rem; color: var(--fg-2); }
.matris-m .link-arrow { margin: 0 16px 14px; font-size: 0.9rem; }
.ring-block { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 16px clamp(24px, 4vw, 56px); align-items: start; }
.ring-block .ring-head { grid-row: span 2; }
.ring-block details.as-table { grid-column: 2; }
@media (max-width: 1180px) { .ring-block { grid-template-columns: minmax(0, 1fr); } .ring-block .ring-head { grid-row: auto; } .ring-block details.as-table { grid-column: auto; } }
.hd8 { display: grid; grid-template-columns: minmax(9rem, 1.1fr) repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 0.78rem; }
.hd8 > span { display: flex; align-items: center; padding: 8px 10px; min-height: 44px; }
.hd8 .hd8-h { min-height: 0; padding: 2px 10px 6px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa59c; min-width: 0; overflow-wrap: anywhere; }
.hd8 .hd8-a { font-weight: 700; color: #eef4f0; padding-left: 0; }
.hd8 .c { flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding: 0; }
.hd8 .c > i { display: flex; align-items: center; gap: 6px; flex: 1; padding: 6px 10px; border-radius: 8px; font-style: normal; font-weight: 700; line-height: 1.3; min-width: 0; -webkit-hyphens: auto; hyphens: auto; }
.hd8 > span { min-width: 0; }
.hd8 .c > i small { display: block; font-weight: 500; color: inherit; opacity: 0.8; font-size: 0.92em; }
.hd8 .s-h { background: rgba(66, 211, 156, 0.18); color: var(--brand-mint); box-shadow: inset 0 0 0 1px rgba(66, 211, 156, 0.35); }
.hd8 .s-g { background: rgba(240, 197, 106, 0.14); color: #f0c56a; box-shadow: inset 0 0 0 1px rgba(240, 197, 106, 0.3); }
.hd8 .s-k { background: rgba(201, 184, 255, 0.08); color: #c9b8ff; box-shadow: inset 0 0 0 1px rgba(201, 184, 255, 0.18); }
@media (max-width: 760px) {
  .hd8 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; font-size: 0.7rem; }
  .hd8 .hd8-a { grid-column: 1 / -1; padding: 10px 0 2px; min-height: 0; }
  .hd8 .hd8-h:first-child { display: none; }
  .hd8 .hd8-h { padding: 2px 4px 4px; font-size: 0.58rem; letter-spacing: 0.06em; overflow-wrap: anywhere; }
  .hd8 .c > i { padding: 6px 5px; -webkit-hyphens: auto; hyphens: auto; }
  .hd8 .c > i small { font-size: 0.86em; }
}
@media (max-width: 380px) { .hd8 .c > i { overflow-wrap: anywhere; } }
details.as-table { margin-top: 4px; }
details.as-table summary { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.86rem; font-weight: 700; color: var(--fg-2); cursor: pointer; list-style: none; background: #fff; }
details.as-table summary::-webkit-details-marker { display: none; }
details.as-table summary::before { content: '+'; color: var(--brand); font-weight: 400; font-size: 1.1rem; }
details.as-table[open] summary::before { content: '–'; }
details.as-table .table-wrap { margin-top: 12px; }

/* ---------- Contact: the topic field first; fields of a topic hidden until it is chosen (no flash) ---------- */
.js .form [data-for-topic]:not(.is-on) { display: none; }
@media (prefers-reduced-motion: no-preference) { .form [data-for-topic].is-on { animation: hub-fade var(--dur-2) var(--ease-out); } }

/* About: the link to the engineering chain under the places */
.about-chain { margin-bottom: 0; }

/* Phones: an arrow link that wraps keeps its arrow by the last word */
@media (max-width: 640px) {
  main .hub-areas .link-arrow, main .mo-blocks .link-arrow, main .md-status .link-arrow { display: inline; line-height: 1.45; }
  main .hub-areas .link-arrow svg, main .mo-blocks .link-arrow svg, main .md-status .link-arrow svg { display: inline-block; margin-left: 8px; vertical-align: -2px; }
}

/* Evidence labels inside the dark windows of white sections keep their colour family on the dark ground */
.app-window .tag:not(.st) { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.app-window .tag.literature { color: #a9bcff; }
.app-window .tag.simulated { color: var(--brand-mint); }
.app-window .tag.concept:not(.st) { color: #c9b8ff; }
.app-window .tag.measured { color: #fff; }

/* Narrow screens: the development scale in rows, smaller rings, long French words hyphenated */
.hub-units small, .hub-units b, .ev-cards p, .status-scale li, .hd8 .c > i { hyphenate-limit-chars: 10 4 4; }
.hub-units small, .hub-units b, .ev-cards p, .status-scale li { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.hub-rows .tag, .fam-box .tag { white-space: normal; }
@media (max-width: 980px) { #kayit .status-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { #kayit .status-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .rings { gap: 14px 6px; } .ring24 { --size: 88px; --w: 9px; } .ring24 b { font-size: 0.95rem; } .ring24 small { font-size: 0.58rem; } }
