/* ============================================================
   MEDIA HOLDING NEWS — surface components

   Extends css/physics.css (the ratified Visual Identity Canon
   implementation, delivered copy — see static/DELIVERED_COPIES.md).
   Nothing here redefines a canon token; this file only adds the
   components the news route-set needs and that no other surface
   has yet: the article index, the article document, the
   transparency block and the language menu.

   Canon anchors used, not re-decided:
     §3 three lights   — gold = the Holding speaks, blue = engineering,
                         silver = words that must feel engraved
     §5 rhythm         — space is the monument
     §6 motion         — confirmation, never spectacle
   ============================================================ */

/* ---------------- skip link (off-screen until focused) ---------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--panel); color: var(--text);
  border: 1px solid var(--blue); font-size: 0.82rem; letter-spacing: 0.06em;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------- news header (the surface's own line) ---------------- */
.news-head { padding: clamp(64px, 11vh, 128px) 0 clamp(40px, 6vh, 72px); position: relative; overflow: hidden; }
.news-head .kick { display: block; margin-bottom: 26px; }
.news-head h1 {
  font-weight: 300; text-transform: uppercase; line-height: 1.04;
  font-size: clamp(1.9rem, 5vw, 3.6rem); letter-spacing: 0.12em;
  color: var(--gold); margin: 0 0 28px;
}
.news-head .lead { font-size: clamp(0.98rem, 1.6vw, 1.1rem); line-height: 1.66; color: var(--muted); max-width: 38rem; }

/* ---------------- index list ---------------- */
.news-list { border-top: 1px solid var(--hair); margin: 0; padding: 0; list-style: none; max-width: 48rem; }
.news-list > li { border-bottom: 1px solid var(--hair); }

.news-item { display: block; padding: clamp(28px, 4vh, 42px) 0; transition: opacity .3s; }
.news-item:hover .news-item-title { color: var(--blue-hi); }
.news-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.news-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 14px;
}
.news-meta .dot { color: var(--hair); }
.news-meta time { font-variant-numeric: tabular-nums; }
.news-meta .kind { color: var(--muted); }

.news-item-title {
  font-size: clamp(1.16rem, 2.3vw, 1.55rem); font-weight: 300; line-height: 1.3;
  letter-spacing: -0.004em; color: var(--text); margin: 0 0 12px; transition: color .3s;
  max-width: 32rem;
}
.news-item-dek { font-size: 1rem; line-height: 1.62; max-width: 34rem; margin: 0; }
.news-item-more {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 16px;
  font-size: 0.8rem; letter-spacing: 0.06em; color: var(--blue-hi);
}

/* ---------------- root surface: the routes this host owns --------------
   Same visual language as the news index, named separately because a route
   is not a publication and the two must never be styled as one list. */
.routes { border-top: 1px solid var(--hair); margin: 0; padding: 0; list-style: none; max-width: 48rem; }
.routes > li { border-bottom: 1px solid var(--hair); }

.route { display: block; padding: clamp(26px, 3.6vh, 38px) 0; }
.route:hover .route-title { color: var(--blue-hi); }
.route:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.route-title {
  font-size: clamp(1.1rem, 2.1vw, 1.42rem); font-weight: 300; line-height: 1.3;
  letter-spacing: 0.02em; color: var(--silver); margin: 0 0 10px; transition: color .3s;
}
.route-desc { font-size: 0.98rem; line-height: 1.62; max-width: 34rem; margin: 0; }
.route-more {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 14px;
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--blue-hi);
}

/* The nav marks where you are without adding a second visual system. */
.nav-connect[aria-current="page"] { color: var(--text); }

/* ---------------- empty state (a real state, not a placeholder) -------- */
.news-empty { border-top: 1px solid var(--hair); padding: clamp(40px, 7vh, 76px) 0; max-width: 40rem; }
.news-empty h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 300; letter-spacing: 0.02em;
  color: var(--silver); margin: 0 0 16px;
}
.news-empty p { font-size: 1rem; line-height: 1.66; max-width: 34rem; }

/* ---------------- the article document ---------------- */
.article { padding: clamp(56px, 9vh, 104px) 0 clamp(64px, 10vh, 120px); }
.article-title {
  font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 300; line-height: 1.22;
  letter-spacing: -0.01em; color: var(--text); margin: 18px 0 22px; max-width: 30rem;
}
.article-dek { font-size: clamp(1rem, 1.7vw, 1.16rem); line-height: 1.62; color: var(--muted); max-width: 34rem; margin: 0; }

.article-body { margin-top: clamp(40px, 6vh, 68px); max-width: 34rem; }
.article-body h2 {
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--silver); margin: clamp(38px, 5vh, 56px) 0 18px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 1.02rem; line-height: 1.76; color: var(--muted); max-width: none; }
.article-body p + p { margin-top: 1.15rem; }

/* ---------------- transparency: what this publication is --------------- */
.trust {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 26px; padding: 14px 16px;
  border: 1px solid var(--hair); background: var(--panel);
  max-width: 34rem;
}
.trust .trust-mark {
  width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 8px;
  background: var(--faint);
}
.trust[data-trust="own"]        .trust-mark { background: var(--gold); }
.trust[data-trust="verified"]   .trust-mark { background: var(--blue-hi); }
.trust[data-trust="unverified"] .trust-mark { background: var(--muted); }
.trust p { font-size: 0.86rem; line-height: 1.6; color: var(--muted); margin: 0; max-width: none; }

.sources { margin-top: clamp(38px, 5vh, 56px); border-top: 1px solid var(--hair); padding-top: 26px; max-width: 34rem; }
.sources h2 {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--silver); margin: 0 0 16px;
}
.sources ol { margin: 0; padding-left: 1.3rem; }
.sources li { font-size: 0.9rem; line-height: 1.62; color: var(--muted); }
.sources li + li { margin-top: 10px; }
.sources a { color: var(--blue-hi); border-bottom: 1px solid rgba(46,107,255,0.35); padding-bottom: 1px; word-break: break-word; }
.sources a:hover { border-color: var(--blue-hi); }

.article-langs { margin-top: 30px; font-size: 0.82rem; color: var(--faint); max-width: 34rem; }
.article-langs a { color: var(--blue-hi); border-bottom: 1px solid rgba(46,107,255,0.35); }
.article-langs a + a { margin-left: 12px; }

.article-back { margin-top: clamp(44px, 6vh, 68px); }

/* ---------------- language menu (owned here — see DELIVERED_COPIES) ----- */
.lang { position: relative; display: inline-flex; align-items: center; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer; padding: 6px 4px; margin: 0;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  line-height: 1; transition: color .3s; min-height: 32px;
}
.lang-trigger:hover { color: var(--text); }
.lang-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.lang-globe { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.4; flex: none; }
.lang-caret { width: 8px; height: 8px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; opacity: .7; }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 168px; padding: 6px; margin: 0; list-style: none;
  background: var(--panel); border: 1px solid var(--hair);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.9);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 11px;
  font-size: 0.82rem; color: var(--muted); transition: background .2s, color .2s;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(46,107,255,0.12); color: var(--text); outline: none; }
.lang-menu a[aria-current="true"] { color: var(--text); }
.lang-menu .code { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); flex: none; width: 1.6rem; }

/* Without JavaScript the menu is a plain list of links — always reachable. */
.lang noscript { display: inline-flex; gap: 10px; }
.lang noscript a { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 4px 3px; }

/* ---------------- 404 ---------------- */
.nf { padding: clamp(96px, 18vh, 200px) 0; }
.nf h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 300; letter-spacing: 0.04em; color: var(--silver); margin: 0 0 18px; }
.nf p { font-size: 1rem; margin-bottom: 34px; }

/* ---------------- print: an article must survive paper ---------------- */
@media print {
  header.nav, .lang, .article-back, footer { display: none; }
  body { background: #fff; color: #111; }
  .article-body p, .sources li, .trust p { color: #333; }
  .article-title, .article-body h2, .sources h2 { color: #000; }
  a { color: #000; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 0.8em; word-break: break-all; }
}
