/* InterFlex (interflex.biz) theme. Hebrew RTL. Fonts: Rubik + Frank Ruhl Libre (SIL OFL, self-hosted). */

@font-face { font-family: "Rubik"; src: url("../fonts/rubik-hebrew-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Rubik"; src: url("../fonts/rubik-latin-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; src: url("../fonts/frank-hebrew-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; src: url("../fonts/frank-hebrew-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; src: url("../fonts/frank-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; src: url("../fonts/frank-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --paper: #0e161c;
  --surface: #15212a;
  --surface-2: #1b2a35;
  --ink: #e8eef2;
  --ink-strong: #dfe7ec;
  --ink-2: #a9b8c2;
  --rule: #273641;
  --night: #091015;
  --night-2: #1c2b36;
  --signal: #84a8ff;
  --on-light: #0e161c;
  --lane: #3b74ff;
  --lane-ink: #8fb0ff;
  --sans: "Rubik", "Arial Hebrew", "Segoe UI", Arial, sans-serif;
  --serif: "Frank Ruhl Libre", "Times New Roman", "David", serif;
  --wrap: 1260px;
  --narrow: 820px;
  --gut: clamp(16px, 4vw, 32px);
  --r: 4px;
}

.l-tech-ai { --lane: #3b74ff; --lane-ink: #8fb0ff; }
.l-money-crypto { --lane: #e6a92e; --lane-ink: #f0c46a; }
.l-cars { --lane: #2fa36b; --lane-ink: #72d6a3; }
.l-digital-marketing { --lane: #e2558f; --lane-ink: #f394bb; }
.l-israel-community { --lane: #27a9bb; --lane-ink: #72d3e0; }
.l-consumer-lifestyle { --lane: #9273ec; --lane-ink: #bca7f6; }

*, *::before, *::after { box-sizing: border-box; }
/* owner rule (2026-10-08): every font size 30% larger, applied once at the root; all type is in rem */
html { font-size: 130%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.18; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .foot :focus-visible { outline-color: #fff; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gut)); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-light); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }
mark.req { background: #fff1a0; color: #4d3b00; font: 600 0.82rem/1.4 var(--sans); padding: 2px 6px; border-radius: 3px; }

/* ---------------------------------------------------------------- masthead */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--rule); }
.masthead-in { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo .mark { width: 34px; height: 34px; }
.mark path { fill: none; stroke-width: 6.5; stroke-linecap: round; }
.mark-a { stroke: currentColor; }
.mark-b { stroke: #3b74ff; }
.logo-word { font: 400 1.42rem/1 var(--sans); letter-spacing: -0.02em; direction: ltr; }
.logo-word b { font-weight: 800; }
.nav { flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; }
.nav-link { display: block; padding: 22px 0 19px; font-size: 1rem; font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent; color: var(--ink); }
.nav-link:hover, .nav-link[aria-current="page"] { border-bottom-color: var(--lane); }
.nav-all { --lane: var(--ink); color: var(--ink-2); }
.masthead-tools { display: flex; gap: 4px; margin-inline-start: auto; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11y-btn svg circle { fill: currentColor; stroke: none; }
.menu-btn { display: none; }
.menu-btn path { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .mb-1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .mb-2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .mb-3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1320px) {
  .js .menu-btn { display: grid; }
  .js .nav { position: absolute; top: 100%; inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--rule); display: none; max-height: calc(100vh - 66px); overflow-y: auto; }
  .js .nav.open { display: block; }
  .js .nav-list { flex-direction: column; gap: 0; padding: 8px var(--gut) 16px; }
  .js .nav-link { padding: 14px 16px; font-size: 1.0625rem; border-bottom: 0; border-inline-start: 4px solid var(--lane); margin-block: 3px; }
  .js .nav-all { border-inline-start-color: var(--rule); }
  .nav-list { gap: 2px 14px; }
  .masthead-in { min-height: 62px; }
}

/* accessibility tool (floating) */
.a11y-launch { position: fixed; z-index: 80; bottom: max(18px, env(safe-area-inset-bottom)); inset-inline-end: 18px; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: #1f4fd1; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .55); }
.a11y-launch:hover { background: #173fb0; }
@media (max-width: 600px) { .a11y-launch { width: 50px; height: 50px; bottom: max(14px, env(safe-area-inset-bottom)); inset-inline-end: 14px; } .a11y-launch svg { width: 27px; height: 27px; } .a11y-panel { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 60px); inset-inline-end: 14px; width: calc(100vw - 28px); } }
.a11y-launch svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a11y-launch:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.a11y-panel { position: fixed; z-index: 81; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 68px); inset-inline-end: 18px; width: min(420px, calc(100vw - 36px)); max-height: calc(100vh - 120px); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); font-size: 20.8px; line-height: 1.4; }
.a11y-panel[hidden] { display: none; }
.a11y-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-top h2 { font-size: 1.08rem; font-weight: 700; }
.a11y-close { width: 48px; height: 48px; border: 0; background: none; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.a11y-close:hover { background: var(--surface-2); }
.a11y-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.a11y-size { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 6px; margin-bottom: 10px; }
.a11y-step { height: 52px; border: 1px solid var(--rule); background: var(--surface); border-radius: 8px; font-weight: 700; cursor: pointer; direction: ltr; }
.a11y-step:hover { border-color: var(--ink-2); }
.a11y-level { text-align: center; font-size: .9rem; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 10px 8px; border: 1px solid var(--rule); background: var(--surface); border-radius: 10px; cursor: pointer; font-size: .88rem; text-align: center; }
.a11y-opt svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y-opt:hover { border-color: var(--ink-2); }
.a11y-opt[aria-pressed="true"] { background: var(--signal); color: var(--on-light); border-color: var(--signal); }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.a11y-reset { padding: 10px 16px; border: 1px solid var(--ink); background: var(--surface); border-radius: 8px; cursor: pointer; font-weight: 600; }
.a11y-reset:hover { background: var(--ink); color: var(--on-light); }
.a11y-foot a { color: var(--signal); font-size: .9rem; }
@media print { .a11y { display: none !important; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(9, 16, 21, .95) 0%, rgba(9, 16, 21, .86) 45%, rgba(9, 16, 21, .6) 100%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 84px); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 750; letter-spacing: -0.022em; line-height: 1.12; max-width: 16ch; }
.hero-sub { margin-top: 18px; font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.55; color: #e1e9ee; max-width: 40ch; }
.hero-intro { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font: 400 1.1rem/1.85 var(--serif); color: #c9d4db; max-width: 56ch; }

.ix { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
.ix-lanes { width: 100%; height: 456px; overflow: visible; }
.lane { fill: none; stroke: var(--lane); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 0; }
.ix-node { fill: #fff; }
.ix-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(6, 76px); }
.ix-link { height: 100%; display: flex; flex-direction: column; justify-content: center; padding-inline: 14px 10px; border-inline-start: 5px solid var(--lane); text-decoration: none; color: #fff; min-width: 270px; transition: background-color .15s ease; }
.ix-link:hover { background: rgba(255, 255, 255, .08); }
.ix-name { font-weight: 600; font-size: 1.04rem; line-height: 1.2; }
.ix-count { font-size: .875rem; color: #b8c6cf; margin-top: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .js .lane { stroke-dashoffset: 600; animation: draw 1.1s cubic-bezier(.6, .05, .25, 1) forwards; }
  .js .lane:nth-child(2) { animation-delay: .08s; } .js .lane:nth-child(3) { animation-delay: .16s; }
  .js .lane:nth-child(4) { animation-delay: .24s; } .js .lane:nth-child(5) { animation-delay: .32s; }
  .js .lane:nth-child(6) { animation-delay: .4s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .ix { grid-template-columns: 1fr; }
  .ix-lanes { display: none; }
  .ix-list { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ix-link { min-width: 0; min-height: 60px; padding: 10px 12px; background: rgba(255, 255, 255, .07); border-radius: var(--r); border-start-start-radius: 0; border-end-start-radius: 0; }
  .hero-in { padding-block: 32px 36px; gap: 26px; }
  .hero-intro { font-size: 1.04rem; line-height: 1.8; }
}
@media (max-width: 340px) { .ix-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- sections */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2, .related h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; }
.more { font-size: 1rem; font-weight: 500; color: var(--signal); text-underline-offset: 4px; }
.more:hover { text-decoration-thickness: 2px; }
.empty { padding: 28px; background: var(--surface); border: 1px dashed var(--rule); border-radius: var(--r); color: var(--ink-2); }
.latest { padding-block: clamp(40px, 6vw, 72px) 8px; }
.latest-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); }
.latest-rows { display: flex; flex-direction: column; }
@media (max-width: 900px) { .latest-grid { grid-template-columns: 1fr; } }

.lanes { padding-block: 24px 16px; }
.lane-block { padding-block: clamp(30px, 5vw, 52px); border-top: 1px solid var(--rule); }
.lane-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 780px; margin-bottom: 26px; padding-inline-start: 18px; border-inline-start: 6px solid var(--lane); }
.lane-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; }
.lane-head h2 a { text-decoration: none; }
.lane-head h2 a:hover { text-decoration: underline; text-decoration-color: var(--lane); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.lane-head p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; max-width: 66ch; }
.lane-block > .more { display: inline-block; margin-top: 18px; }


.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .lanes .tiles { gap: 0; }
  .lanes .card-tile { display: grid; grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "t m" "x x" "d d"; column-gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
  .lanes .card-tile:first-child { padding-top: 0; }
  .lanes .card-tile .card-media { grid-area: m; align-self: start; }
  .lanes .card-tile .card-body { display: contents; }
  .lanes .card-tile .card-title { grid-area: t; font-size: 1.08rem; align-self: start; }
  .lanes .card-tile .card-ex { grid-area: x; font-size: 1rem; line-height: 1.6; margin-top: 10px; }
  .lanes .card-tile .meta { grid-area: d; }
}

/* ---------------------------------------------------------------- cards */
.card-media { display: block; }
.card-media { overflow: hidden; border-radius: var(--r); }
.card-media img, .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--surface-2); transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.025); }
.card-title { font-weight: 650; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--lane); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-ex { color: var(--ink-2); margin-top: 8px; font-size: 1.0625rem; line-height: 1.65; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.sep { width: 1px; height: 12px; background: var(--rule); }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--lane-ink); text-decoration: none; margin-bottom: 8px; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lane); }
.chip:hover { text-decoration: underline; }

.card-lead .card-body { padding-top: 18px; }
.card-lead .card-title { font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.22; }
.card-lead .card-ex { font: 400 1.15rem/1.75 var(--serif); }
.card-tile .card-body { padding-top: 14px; border-top: 3px solid var(--lane); margin-top: 12px; }
.card-tile .card-title { font-size: 1.2rem; line-height: 1.35; }
.card-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--rule); align-items: start; }
.card-row:first-child { padding-top: 0; }
.card-row .card-title { font-size: 1.12rem; line-height: 1.4; }
.card-row .chip { margin-bottom: 4px; }
@media (max-width: 480px) { .card-row { grid-template-columns: minmax(0, 1fr) 108px; gap: 14px; } .card-row .card-title { font-size: 1.06rem; } }

/* ---------------------------------------------------------------- news widget (israelnews.io feed) */
.news-w { margin-block: clamp(24px, 4vw, 44px) 8px; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--signal); border-radius: 0 0 8px 8px; max-width: calc(var(--wrap) - 2 * var(--gut)); }
.nw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.nw-head h2 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); font-weight: 700; }
.nw-src { font-size: .95rem; font-weight: 600; color: var(--signal); text-underline-offset: 4px; }
.nw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.nw-item { display: flex; flex-direction: column; gap: 4px; padding-block: 14px; border-top: 1px solid var(--rule); }
.nw-cat { font-size: .875rem; font-weight: 600; color: var(--lane-ink); }
.nw-link { font-size: 1.06rem; font-weight: 600; line-height: 1.42; text-decoration: none; color: var(--ink); }
.nw-link:hover { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.nw-date { font-size: .875rem; color: var(--ink-2); }
.nw-empty { margin-top: 8px; }
@media (max-width: 960px) { .nw-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-w { margin-inline: var(--gut); width: auto; padding: 18px 16px; } .nw-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- band */
.band { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.band-intro { font: 400 1.15rem/1.85 var(--serif); max-width: 64ch; }
.band-intro p + p { margin-top: 1em; }
.band-intro h3 { font-size: 1.3rem; margin-bottom: .6em; }
.band-about { background: var(--surface); border: 1px solid var(--rule); color: var(--ink); padding: clamp(24px, 3vw, 34px); border-radius: 8px; align-self: start; line-height: 1.75; font-size: 1.0625rem; }
.band-about p + p { margin-top: .8em; }
.btn { display: inline-block; margin-top: 18px; padding: 11px 20px; background: var(--signal); color: var(--on-light); text-decoration: none; font-weight: 600; border-radius: var(--r); }
.btn:hover { background: #a9c2ff; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- page heads */
.page-head { background: var(--surface); border-bottom: 1px solid var(--rule); padding-block: 22px clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); font-weight: 750; margin-top: 12px; line-height: 1.18; }
.cat-head { border-top: 8px solid var(--lane); }
.dek { margin-top: 14px; font: 400 clamp(1.08rem, 1.6vw, 1.25rem)/1.7 var(--serif); color: var(--ink-2); max-width: 62ch; }
.count { margin-top: 12px; font-size: .95rem; color: var(--ink-2); }
.cat-body { padding-block: clamp(28px, 4vw, 48px) 56px; }
.cat-body > .card-lead { margin-bottom: 32px; }
.p-cat .card-lead { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .p-cat .card-lead { grid-template-columns: 1fr; gap: 0; } }
.list { max-width: 900px; }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .92rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-inline: 8px; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a { display: inline-block; padding-block: 4px; }
.crumbs .crumb-self { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.crumbs .crumb-self:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- article */
.post-head { background: var(--surface); padding-block: 22px 34px; border-bottom: 6px solid var(--lane); }
.post-head .chip { margin-top: 18px; }
.post-head h1 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 750; line-height: 1.18; }
.post-head .meta { margin-top: 18px; }
.post-fig { margin-block: clamp(24px, 4vw, 40px) 0; }
.post-img img { width: 100%; border-radius: var(--r); aspect-ratio: 16 / 9; object-fit: cover; }
.post-grid { display: grid; grid-template-columns: 270px minmax(0, 820px); justify-content: center; gap: 56px; padding-block: clamp(28px, 4vw, 48px); }
.post-head .post-grid, .post-foot.post-grid { padding-block: 0; }
.post-foot.post-grid { padding-bottom: 32px; }
.post-fig { max-width: calc(1146px + 2 * var(--gut)); }
.toc { position: sticky; top: 96px; align-self: start; font-size: .97rem; }
.toc h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; border-inline-start: 2px solid var(--rule); }
.toc a { display: block; padding: 6px 14px; text-decoration: none; color: var(--ink-2); line-height: 1.4; margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.toc a:hover, .toc a.on { color: var(--ink); border-inline-start-color: var(--lane); }
.post-grid.no-toc { grid-template-columns: minmax(0, 820px); }
.post-grid.no-toc > .pg-gap { display: none; }
@media (max-width: 1200px) {
  .post-grid { grid-template-columns: minmax(0, 820px); gap: 28px; }
  .post-grid > .pg-gap { display: none; }
  .post-fig { max-width: calc(820px + 2 * var(--gut)); }
  .toc { position: static; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; }
}
.related { padding-block: 40px 64px; border-top: 1px solid var(--rule); }
.related h2 { margin-bottom: 24px; }

.prose { font: 400 1.25rem/1.85 var(--serif); color: var(--ink-strong); }
@media (max-width: 600px) { .prose { font-size: 1.125rem; line-height: 1.8; } }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font: 700 clamp(1.4rem, 2.3vw, 1.65rem)/1.3 var(--sans); letter-spacing: -0.01em; margin-top: 2.1em; }
.prose h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--lane); margin-bottom: 14px; border-radius: 2px; }
.prose h3 { font: 650 1.2rem/1.35 var(--sans); margin-top: 1.6em; }
.prose h4 { font: 600 1.05rem/1.4 var(--sans); margin-top: 1.4em; }
.prose a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--lane-ink); }
.prose blockquote { margin-inline: 0; padding: 4px 22px; border-inline-start: 4px solid var(--lane); color: var(--ink-2); font-size: 1.12em; }
.prose hr { border: 0; height: 1px; background: var(--rule); margin-block: 2em; }
.prose strong { font-weight: 700; }
.p-static .prose { padding-block: 32px 64px; }

/* YouTube click-to-load */
.prose .yt { margin: 2em 0; }
.yt-play, .yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.yt-play { position: relative; padding: 0; cursor: pointer; color: var(--ink); text-align: start; background: radial-gradient(120% 90% at 85% 15%, var(--surface-2) 0%, var(--night) 70%); border: 1px solid var(--rule); overflow: hidden; }
.yt-play::before { content: ""; position: absolute; inset: 0; border-top: 4px solid var(--lane); border-radius: 8px; pointer-events: none; }
.yt-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 84px; height: 60px; transition: transform .15s ease; }
.yt-icon svg { width: 100%; height: 100%; }
.yt-icon rect { fill: #e1251b; }
.yt-icon path { fill: #fff; }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { transform: translate(-50%, -50%) scale(1.08); }
.yt-text { position: absolute; inset-inline: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; font-family: var(--sans); }
.yt-label { font-size: .8rem; font-weight: 600; color: var(--lane-ink); }
.yt-title { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.yt-note { margin-top: 8px; font: 400 .8rem/1.5 var(--sans); color: var(--ink-2); }
@media (max-width: 600px) { .yt-icon { width: 56px; height: 40px; top: 34%; } .yt-text { inset-inline: 14px; bottom: 12px; } .yt-title { font-size: .9rem; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--night); color: #c9d4db; margin-top: 0; border-top: 1px solid var(--rule); }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-block: 52px 36px; }
.foot .logo { color: #fff; }
.foot-brand p { margin-top: 16px; max-width: 42ch; line-height: 1.7; font-size: 1rem; }
.foot h2 { font-size: 1.02rem; color: #fff; font-weight: 600; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 1rem; }
.foot li a { display: inline-block; padding-block: 5px; }
.foot a { text-decoration: none; color: #c9d4db; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-col a[class^="l-"] { display: inline-flex; align-items: center; gap: 9px; }
.foot-col a[class^="l-"]::before { content: ""; width: 14px; height: 4px; background: var(--lane); border-radius: 2px; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; padding-block: 18px 28px; border-top: 1px solid var(--rule); font-size: .92rem; color: #a7b6c0; }
@media (max-width: 760px) { .foot-base { padding-bottom: 92px; } }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: 1fr; } }

.nf { padding-block: 80px; text-align: center; }
.nf h1 { font-size: 2rem; }
.nf p { margin-top: 14px; }
.nf .btn { background: var(--signal); color: var(--on-light); }

/* ---------------------------------------------------------------- accessibility preferences */
html[data-fs="-1"] { font-size: 117%; }
html[data-fs="1"] { font-size: 149.5%; }
html[data-fs="2"] { font-size: 169%; }
html[data-fs="3"] { font-size: 188.5%; }
html.a11y-contrast { --paper: #000; --surface: #000; --surface-2: #111; --ink: #fff; --ink-strong: #fff; --ink-2: #f2f2f2; --rule: #fff; --night: #000; --night-2: #111; --signal: #9ec0ff; }
html.a11y-contrast [class*="l-"] { --lane-ink: #fff; }
html.a11y-contrast .hero-sub, html.a11y-contrast .hero-intro, html.a11y-contrast .ix-count, html.a11y-contrast .foot, html.a11y-contrast .foot a { color: #fff; }
html.a11y-contrast .hero-img { display: none; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #fff59a; color: #000 !important; }
html.a11y-font .prose, html.a11y-font .dek, html.a11y-font .hero-intro, html.a11y-font .band-intro, html.a11y-font .card-ex { font-family: var(--sans); letter-spacing: .01em; }
html.a11y-headings main h1, html.a11y-headings main h2, html.a11y-headings main h3 { background: #fff59a; color: #000 !important; outline: 2px solid #000; outline-offset: 3px; }
html.a11y-gray .masthead, html.a11y-gray main, html.a11y-gray .foot { filter: grayscale(1); }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing .card-title, html.a11y-spacing .dek { line-height: 2.15 !important; letter-spacing: .05em !important; word-spacing: .16em !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4l32 18-14 4-6 14z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; }
html.a11y-motion .lane { stroke-dashoffset: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  :root { --paper: #fff; --surface: #fff; --ink: #000; --ink-strong: #000; --ink-2: #333; --rule: #999; color-scheme: light; }
  .masthead, .foot, .toc, .related, .post-foot, .skip { display: none !important; }
  body { background: #fff; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
