/* Subpages: news, jobs, privacy, cookies. Uses the tokens and header/footer from styles.css. */
.subpage .site-header { position: sticky; top: 0; }
.sub-nav { display: flex; align-items: center; gap: 24px; }
.sub-back { color: var(--text-muted); text-decoration: none; font-size: 17px; font-weight: 500; padding: 10px 0; }
.sub-back::before { content: "\2190\00a0"; }
.sub-back:hover { color: var(--text); }
.sub-back { white-space: nowrap; }
@media (max-width: 480px) { .subpage .brand { width: 108px; } .sub-nav { gap: 14px; } .sub-nav .btn { padding: 10px 16px; } .sub-back { font-size: 16px; } }

.page { padding: clamp(40px, 7vw, 88px) 0 var(--section-y); min-height: 60vh; }
.page-title { font-size: clamp(44px, 6vw, 72px); margin-bottom: clamp(28px, 4vw, 48px); }

.article { max-width: calc(780px + 2 * var(--gutter)); }
.crumbs { margin-bottom: 18px; font-size: 16px; }
.crumbs a { color: var(--gold); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-date { font-size: 16px; color: var(--text-muted); margin-bottom: 8px; font-variant-numeric: tabular-nums; }

.prose { color: var(--text); overflow-wrap: anywhere; }
.prose h1 { font-size: clamp(38px, 5vw, 60px); margin: 0 0 24px; }
.prose h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 48px 0 16px; }
.prose h3 { font-size: clamp(23px, 2.4vw, 28px); margin: 40px 0 12px; }
.prose h4 { font-size: 22px; margin: 32px 0 10px; }
.prose h5, .prose h6 { margin: 32px 0 6px; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); line-height: 1.3; }
.prose h6 + h1, .prose h6 + h2, .prose h6 + h3 { margin-top: 0; }
.prose p { margin: 0 0 18px; color: var(--text-muted); }
.prose h1 + p { color: var(--text); font-size: 21px; }
.prose strong, .prose b { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 1.25em; color: var(--text-muted); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--gold); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(239, 165, 0, 0.45); }
.prose a:hover { text-decoration-color: var(--gold); }
.prose img { width: 100%; border-radius: var(--radius); margin: 28px 0; background: var(--ink-3); }
.prose blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--gold); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 17px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 28px 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.article-cta { margin-top: 36px; }
.article-more { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* News index: magazine layout (masthead, lead story + numbered "Latest", filterable archive).
   Pictures keep their own shape: frames use the banners' 1570 x 638 ratio and the picture is fitted
   inside (object-fit: contain) over a blurred copy of itself, so nothing is ever cut off. */
.subpage .page:has(.nx-mast) { padding-top: 0; }
.nx-mast { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 112px) 0 clamp(36px, 5vw, 64px); isolation: isolate; }
.nx-mast::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 8% 0%, rgba(239, 165, 0, 0.22), transparent 70%),
    radial-gradient(50% 80% at 100% 30%, rgba(0, 140, 149, 0.26), transparent 70%);
}
.nx-mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gold) 0 50%, var(--teal) 50% 100%); }
.nx-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.nx-title { font-size: clamp(56px, 10vw, 136px); line-height: 0.88; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.nx-title span { color: transparent; -webkit-text-stroke: 2px var(--gold); }
.nx-sub { margin-top: 24px; max-width: 34em; font-size: clamp(19px, 1.8vw, 23px); color: var(--text-muted); }
.c-gold { color: var(--gold); font-weight: 700; }
.c-teal { color: var(--teal-hi); font-weight: 700; }

.nx-label { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.nx-label::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }

/* picture frame */
.frame { position: relative; display: block; aspect-ratio: 1570 / 638; overflow: hidden; background: var(--ink-2); isolation: isolate; }
.frame::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--img) center / cover no-repeat; filter: blur(22px) brightness(0.55) saturate(1.2); }
.frame img { width: 100%; height: 100%; object-fit: contain; transition: transform 500ms var(--ease-out); }
.frame-empty { background: linear-gradient(135deg, rgba(239, 165, 0, 0.35), rgba(0, 140, 149, 0.35)); }


/* lead: feature + numbered latest */
.nx-lead { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: clamp(40px, 5vw, 64px); }
.nx-feature { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-3); position: relative; }
.nx-feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease; }
.nx-feature:hover::after { box-shadow: inset 0 0 0 2px var(--gold); }
.nx-feature:hover .frame img, .nx-card:hover .frame img { transform: scale(1.03); }
.nx-feature-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 36px); }
.nx-feature-title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; line-height: 1.02; text-wrap: balance; }
.nx-excerpt { color: var(--text-muted); font-size: 18px; line-height: 1.5; }
.nx-read { margin-top: 4px; color: var(--gold); font-weight: 700; }
.nx-read::after { content: "\00a0\2192"; display: inline-block; transition: transform 200ms var(--ease-out); }
.nx-feature:hover .nx-read::after { transform: translateX(4px); }

.nx-latest ol { margin-top: 18px; counter-reset: none; }
.nx-latest li { border-top: 1px solid var(--line); }
.nx-latest li:last-child { border-bottom: 1px solid var(--line); }
.nx-latest a { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; text-decoration: none; }
.nx-num { flex: none; width: 2.1ch; font-size: 46px; font-weight: 800; line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--gold); transition: color 200ms ease; font-variant-numeric: tabular-nums; }
.nx-latest li:nth-child(even) .nx-num { -webkit-text-stroke-color: var(--teal-hi); }
.nx-latest a:hover .nx-num { color: var(--gold); }
.nx-latest li:nth-child(even) a:hover .nx-num { color: var(--teal-hi); }
.nx-latest-body { display: flex; flex-direction: column; gap: 4px; }
.nx-latest-title { font-size: 20px; font-weight: 700; line-height: 1.22; }
.nx-latest a:hover .nx-latest-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }

/* archive */
.nx-archive { padding-top: clamp(56px, 7vw, 96px); }
.nx-bar { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 14px 0; margin-bottom: 24px; background: rgba(49, 46, 47, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nx-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.nx-filters::-webkit-scrollbar { display: none; }
.chip { flex: none; font: 700 16px/1 var(--font); color: var(--text-muted); background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--line-strong);
  padding: 11px 16px; min-height: 40px; border-radius: 999px; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--ink); box-shadow: none; }
.chip-cooling[aria-pressed="true"] { background: var(--gold); }
.chip-hydrogen[aria-pressed="true"] { background: var(--teal); color: #fff; }

.nx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); }
.nx-grid li[hidden] { display: none; }
.nx-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--ink-3); border-radius: var(--radius-lg); overflow: hidden; position: relative;
  transition: transform 220ms var(--ease-out); }
.nx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease; }
.nx-card:hover { transform: translateY(-4px); }
.nx-card:hover::after { box-shadow: inset 0 0 0 2px var(--gold); }
.nx-grid li:has(.pill-hydrogen) .nx-card:hover::after { box-shadow: inset 0 0 0 2px var(--teal); }
.nx-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 26px; }
.nx-card-title { font-size: 22px; font-weight: 800; line-height: 1.15; text-wrap: balance; }
.nx-card .nx-excerpt { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nx-empty { padding: 40px 0; color: var(--text-muted); }

@media (max-width: 1000px) { .nx-lead { grid-template-columns: 1fr; } .nx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .nx-grid { grid-template-columns: 1fr; }
  .nx-bar { top: 76px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .nx-num { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { .nx-card, .frame img { transition: none; } .nx-card:hover { transform: none; } .nx-feature:hover .frame img, .nx-card:hover .frame img { transform: none; } }
