/* המרכז לחירות ישראלית — interactive network graphic (prototype)
   House tokens from blog_builder/static/style.css; data colours validated with the house dataviz validator
   (--pairs all, on #faf7f2 and #ffffff). Sienna (--accent) is chrome only and never appears inside the plot. */

.ifc {
  color-scheme: light;
  --paper: #faf7f2;
  --surface: #ffffff;
  --ink: #2b2724;
  --ink-soft: #4a433d;
  --muted: #8a7f75;          /* icons, large secondary text only */
  --muted-text: #756b62;     /* small secondary text: 4.9:1 on paper */
  --hair: #e9e2d8;
  --accent: #8b4a33;         /* links, kicker, active control underline */
  --accent-soft: #f4e9df;
  --money: #3e8651;          /* sphere: US funders */
  --network: #7a2e8b;        /* sphere: the Israeli network */
  --power: #4273b0;          /* sphere: state & politics */
  --context: #8a7f75;        /* outline only */
  --edge: #968a7e;           /* non-money edges, 3.15:1 */
  --edge-strong: #6f655c;    /* people (pipeline) edges */
  --faded: #e6dfd5;
  --faded-stroke: #ddd5ca;
  --serif: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --sans: "Assistant", "Segoe UI", "Arial Hebrew", system-ui, sans-serif;
  font-family: var(--serif);
  font-size: 16px;            /* fixed, so the graphic looks the same inside a page with larger body text */
  line-height: normal;
  color: var(--ink);
  background: var(--paper);
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  -webkit-font-smoothing: antialiased;
}
.ifc *, .ifc *::before, .ifc *::after { box-sizing: border-box; }
.ifc button { font: inherit; color: inherit; }
.ifc bdi.en { font-family: var(--sans); font-size: .94em; }
.ifc .num { font-family: var(--sans); font-variant-numeric: lining-nums; }
.ifc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.ifc a:hover { color: #6e3522; }
.ifc :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ifc [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- head */
.ifc-head { max-width: 46rem; margin: 0 auto 1.25rem; text-align: center; }
.ifc-kicker { font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--accent); letter-spacing: .02em; margin: 0 0 .4rem; }
.ifc-head h1, .ifc-head .ifc-title { font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.25; margin: 0 0 .5rem; }
.ifc-dek { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 0 auto .8rem; max-width: 40rem; }
.ifc-byline { font-family: var(--sans); font-size: 13px; color: var(--muted-text); margin: 0 0 1.1rem; }
.ifc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; max-width: 40rem; margin: 0 auto; padding: 0; list-style: none; }
.ifc-tile { background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; padding: .35rem .6rem .35rem; min-width: 0; text-align: start; }
.ifc-tile b { display: block; font-family: var(--sans); font-weight: 700; font-size: 18px; line-height: 1.15; }
.ifc-tile span { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted-text); line-height: 1.3; margin-top: .1rem; }
.ifc-tile .reply-mark { display: inline-flex; vertical-align: -2px; margin-inline-start: .25rem; }

/* ---------------------------------------------------------------- controls (one row) */
.ifc-controls { position: relative; /* contains its visually-hidden labels, so they can't widen the page when the row scrolls (phones) */ display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; border-top: 1px solid var(--ink); padding: .65rem 0 .5rem; font-family: var(--sans); font-size: 14px; }
.ifc-search { position: relative; flex: 1 1 14rem; max-width: 20rem; }
.ifc-ctl-row { display: contents; }   /* the toggle groups; a scrolling row of their own on phones */
.ifc-search input { width: 100%; font: inherit; font-size: 15px; padding: .45rem .7rem .45rem 2rem; border: 1px solid var(--hair); border-radius: 4px; background: var(--surface); color: var(--ink); }
.ifc-search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.ifc-search svg { position: absolute; inset-inline-end: .6rem; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ifc-results { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; box-shadow: 0 6px 24px rgba(43,39,36,.12); margin: 0; padding: .25rem 0; list-style: none; max-height: 22rem; overflow: auto; }
.ifc-results li { padding: .35rem .7rem; cursor: pointer; display: flex; gap: .5rem; align-items: baseline; }
.ifc-results li[aria-selected="true"], .ifc-results li:hover { background: var(--accent-soft); }
.ifc-results .grp { font-size: 12px; font-weight: 700; color: var(--muted-text); cursor: default; background: none !important; padding-top: .5rem; }
.ifc-results small { color: var(--muted-text); font-size: 12.5px; }
.seg { display: inline-flex; align-items: center; gap: .35rem; }
.seg > span { color: var(--muted-text); font-size: 13px; }
.seg [role="radiogroup"] { display: inline-flex; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: .35rem .65rem; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 32px; }
.seg button + button { border-inline-start: 1px solid var(--hair); }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.chk { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; font-size: 14px; }
.chk input { accent-color: var(--ink); width: 16px; height: 16px; }

/* ---------------------------------------------------------------- legend */
.ifc-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; font-family: var(--sans); font-size: 13px; color: var(--ink-soft); padding: .35rem 0 .6rem; border-bottom: 1px solid var(--hair); }
.ifc-legend { display: block; }
.ifc-legend .lg-wrap > summary { cursor: pointer; font-weight: 700; color: var(--muted-text); font-size: 12.5px; margin-bottom: .25rem; list-style-position: inside; }
.ifc-legend .lg-items { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; }
.ifc-legend .lg { display: inline-flex; align-items: center; gap: .35rem; }
.ifc-legend button.lg { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 3px; padding: 0 .2rem; min-height: 24px; }
.ifc-legend button.lg:hover, .ifc-legend button.lg:focus-visible { background: var(--accent-soft); }
.ifc-legend .sep { width: 1px; height: 14px; background: var(--hair); }
.ifc-legend svg { display: block; flex: none; }
.ifc-legend .note { color: var(--muted-text); font-size: 12.5px; }

/* ---------------------------------------------------------------- main grid: graph at inline-start (right), panel at inline-end (left) */
.ifc-main { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 0 1.25rem; margin-top: .75rem; align-items: start; }
.ifc-graph { position: relative; height: min(78vh, 720px); min-height: 520px; background: var(--paper); overflow: hidden; touch-action: manipulation; }
.ifc-graph > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ifc-labels { position: absolute; inset: 0; pointer-events: none; }
.ifc-label { position: absolute; top: 0; left: 0; font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.15; color: var(--ink); white-space: nowrap;
  text-shadow: 0 0 2px var(--paper), 0 0 2px var(--paper), 0 0 3px var(--paper), 0 0 4px var(--paper); transition: opacity .2s; unicode-bidi: plaintext; }
.ifc-label.big { font-weight: 700; font-size: 13.5px; }
.ifc-label.focus { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.ifc-label.faded { color: #a39a90; }
.ifc-label.band { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted-text); }
.ifc-label.person { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.ifc-anno { position: absolute; top: 0; left: 0; max-width: 15rem; font-family: var(--sans); font-size: 13px; line-height: 1.35; color: var(--ink-soft); background: rgba(250,247,242,.92); padding: .2rem .35rem; border-inline-start: 2px solid var(--ink); pointer-events: none; white-space: normal; }
.ifc-anno b { color: var(--ink); }
.ifc-trail { position: absolute; z-index: 5; top: .5rem; inset-inline: .5rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-family: var(--sans); font-size: 13px; pointer-events: none; }
.ifc-trail > * { pointer-events: auto; }
.chip { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--hair); background: var(--surface); border-radius: 999px; padding: .2rem .65rem; cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 600; min-height: 30px; }
.chip:hover { border-color: var(--muted); }
.chip svg.dir { transform: none; }
.ifc :dir(rtl) svg.mirror { transform: scaleX(-1); }
.ifc-trail .crumb { color: var(--muted-text); font-weight: 400; background: none; border: 0; padding: 0 .1rem; cursor: pointer; }
.ifc-trail .crumb.cur { color: var(--ink); font-weight: 700; cursor: default; }
.ifc-zoom { position: absolute; z-index: 5; bottom: .6rem; inset-inline-end: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.ifc-zoom button { width: 32px; height: 32px; border: 1px solid var(--hair); background: var(--surface); border-radius: 4px; cursor: pointer; font-family: var(--sans); font-size: 18px; line-height: 1; }
.ifc-hint { position: absolute; z-index: 4; bottom: .6rem; inset-inline-start: .6rem; font-family: var(--sans); font-size: 13px; color: var(--muted-text); background: rgba(250,247,242,.9); padding: .15rem .4rem; border-radius: 3px; }

/* svg marks */
.n-shape { transition: fill .25s, stroke .25s; }
.node { cursor: pointer; }
.node .hit { fill: transparent; stroke: none; }
.node.faded .n-shape { fill: var(--faded) !important; stroke: var(--faded-stroke) !important; }
.node.faded .n-hollow, .node.faded .n-context { fill: var(--paper) !important; }
.node .ring { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.node:focus { outline: none; }
.node:focus-visible .kbd { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: none; }
.edge .core, .edge .casing, .edge .gap, .edge .hitline, .edge .arrow.open { fill: none; }
.edge .hitline { stroke: transparent; stroke-width: 12; pointer-events: stroke; cursor: help; }
.edge.faded .core, .edge.faded .casing { stroke: #ece6dd !important; }
.edge.faded .arrow { stroke: #ece6dd !important; fill: #ece6dd !important; }
.edge.faded .arrow.open { fill: none !important; }
.edge.faded .bead, .edge.faded .reply { display: none; }
.edge.quiet { opacity: .5; }
.edge.quiet .reply, .edge.quiet .bead { display: none; }
.edge.quiet.faded { opacity: .35; }
.person-center circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.spoke { stroke: var(--ink-soft); stroke-width: 1.2; fill: none; }

/* tooltip */
.ifc-tip { position: absolute; z-index: 40; pointer-events: none; background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; box-shadow: 0 4px 18px rgba(43,39,36,.14);
  font-family: var(--sans); font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); padding: .45rem .6rem; max-width: 18rem; }
.ifc-tip b.v { display: block; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ifc-tip .t { font-weight: 700; color: var(--ink); }
.ifc-tip .m { color: var(--muted-text); font-size: 12.5px; }
.ifc-tip .key { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--ink-soft); vertical-align: middle; margin-inline-end: .3rem; }

/* ---------------------------------------------------------------- panel */
.ifc-panel { background: var(--surface); border: 1px solid var(--hair); border-radius: 4px; max-height: min(78vh, 720px); min-height: 520px; overflow: auto; position: sticky; top: .75rem; font-family: var(--sans); }
.ifc-panel .inner { padding: 1rem 1.1rem 1.25rem; }
.ifc-panel h2 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: .15rem 0 .1rem; }
.p-kind { font-size: 13px; color: var(--muted-text); display: flex; align-items: center; gap: .35rem; }
.p-en { font-size: 13.5px; color: var(--muted-text); margin: 0 0 .5rem; direction: ltr; text-align: right; }
.p-desc { font-family: var(--serif); font-size: 16px; line-height: 1.55; margin: .4rem 0 .5rem; }
.p-meta { font-size: 13px; color: var(--muted-text); margin: 0 0 .5rem; }
.p-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0 .6rem; }
.tag { display: inline-flex; align-items: center; gap: .25rem; font-size: 12px; font-weight: 700; border: 1px solid var(--hair); border-radius: 3px; padding: .05rem .4rem; color: var(--ink-soft); background: var(--paper); }
.p-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin: .25rem 0 .75rem; }
.p-actions button { border: 1px solid var(--hair); background: var(--surface); border-radius: 4px; padding: .3rem .6rem; cursor: pointer; font-size: 13.5px; font-weight: 600; min-height: 32px; }
.p-actions button:hover { border-color: var(--muted); }
.p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: .55rem 0; margin-bottom: .4rem; }
.p-tiles div { text-align: start; }
.p-tiles b { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; }
.p-tiles span { display: block; font-size: 12px; color: var(--muted-text); line-height: 1.3; }
.p-sec { margin-top: .9rem; }
.p-sec > h3 { font-size: 13px; font-weight: 700; color: var(--muted-text); letter-spacing: .03em; margin: 0 0 .45rem; padding-top: .55rem; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.p-sec > h3 small { font-weight: 400; font-size: 12px; letter-spacing: 0; }
.p-empty { font-size: 13.5px; color: var(--muted-text); margin: 0; }
.mrow { margin: 0 0 .7rem; }
.mrow .who { display: flex; align-items: center; gap: .35rem; font-size: 14.5px; font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; text-align: start; }
.mrow .who.static { cursor: default; }
.mrow .who:hover:not(.static) { text-decoration: underline; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 8.2rem; align-items: center; gap: .5rem; margin: .2rem 0 .1rem; }
.bar .track { position: relative; display: flex; justify-content: flex-start; height: 10px; }
.bar .seg { box-sizing: border-box; height: 10px; background: var(--ink-soft); border-inline-end: 2px solid var(--surface); min-width: 3px; }
.bar .seg:last-of-type { border-inline-end: 0; border-start-end-radius: 4px; border-end-end-radius: 4px; }
.bar .seg.pledge { background: none; box-shadow: inset 0 0 0 1px var(--ink-soft); }
.bar .seg.estimate { background: #b9afa3; }
.bar .seg.remainder { background: #b9afa3; }
.bar .seg.range { background: #ddd5ca; }
.bar .brk { position: absolute; inset-inline-end: -6px; top: -4px; font-size: 12px; color: var(--muted-text); }
.bar .stub { width: 18px; height: 10px; border: 1px solid var(--muted); border-radius: 2px; }
.bar .amt { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.bar .amt.unk { font-weight: 400; color: var(--muted-text); }
.bar .conv { font-weight: 400; color: var(--muted-text); font-size: 12.5px; }
.mnote.donor { color: var(--ink-soft); border-inline-start: 2px solid var(--hair); padding-inline-start: .4rem; }
.rnote { font-family: var(--sans); font-size: 12px; color: var(--muted-text); }
.mnote { font-size: 12.5px; color: var(--muted-text); line-height: 1.4; margin: .1rem 0 0; }
.mnote .rb { color: var(--ink-soft); }
.reply-inline { border-inline-start: 2px solid var(--ink-soft); padding: .15rem .5rem; margin: .3rem 0 .2rem; font-family: var(--serif); font-size: 14.5px; line-height: 1.5; color: var(--ink); background: var(--paper); }
.reply-inline .by { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--muted-text); }
.pchips { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .5rem; }
.pchips button { border: 1px solid var(--hair); background: var(--surface); border-radius: 999px; padding: .1rem .55rem; font-size: 12.5px; cursor: pointer; min-height: 26px; }
.pchips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.prow { margin: 0 0 .55rem; line-height: 1.35; }
.prow .nm { font-size: 15px; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-align: start; }
.prow .nm:hover { text-decoration: underline; }
.prow .rl { font-size: 13.5px; color: var(--ink-soft); }
.prow .ct { font-size: 12.5px; color: var(--muted-text); }
.conf { display: inline-flex; gap: 2px; vertical-align: 1px; margin-inline-start: .3rem; }
.conf i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--ink-soft); display: block; }
.conf i.on { background: var(--ink-soft); }
.srcref { font-size: 12px; color: var(--muted-text); vertical-align: super; margin-inline-start: .15rem; text-decoration: none; }
.lrow { font-size: 13.5px; margin: 0 0 .45rem; line-height: 1.4; }
.lrow button { background: none; border: 0; padding: 0; font-weight: 600; cursor: pointer; font-size: 14px; }
.lrow button:hover { text-decoration: underline; }
.srcs { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.srcs li { font-size: 12.5px; color: var(--muted-text); margin: 0 0 .3rem; line-height: 1.4; }
.srcs li b { color: var(--ink-soft); font-weight: 600; }
.ifc .dot { margin: 0; width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.nm.static { cursor: default; }
.ifc .dot.money { background: var(--money); } .ifc .dot.network { background: var(--network); } .ifc .dot.power { background: var(--power); } .ifc .dot.context { background: none; border: 1.5px solid var(--context); }

/* story card */
.story .step-n { font-size: 12px; font-weight: 700; color: var(--muted-text); letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; }
.story .dots { display: inline-flex; gap: 4px; }
.story .dots { gap: 0; }
.story .dots button { width: 22px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.story .dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink-soft); display: block; }
.story .dots button[aria-current="step"] i { background: var(--ink); border-color: var(--ink); }
.story h2 { font-family: var(--serif); font-size: 24px; margin: .35rem 0 .5rem; }
.story .hero { font-family: var(--sans); font-size: 34px; font-weight: 700; line-height: 1.05; margin: .2rem 0 0; }
.story .hero-sub { font-size: 13px; color: var(--muted-text); margin: .15rem 0 .6rem; }
.story p.body { font-family: var(--serif); font-size: 17px; line-height: 1.65; margin: 0 0 .7rem; }
.story blockquote { margin: .5rem 0 .8rem; border-inline-start: 2px solid var(--ink-soft); padding: .1rem .6rem; font-family: var(--serif); font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.story blockquote .by { display: block; font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--muted-text); margin-bottom: .1rem; }
.story nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
.story nav button { border: 1px solid var(--ink); background: var(--surface); border-radius: 4px; padding: .4rem .8rem; cursor: pointer; font-weight: 700; font-size: 14px; display: inline-flex; gap: .35rem; align-items: center; min-height: 36px; }
.story nav button.primary { background: var(--ink); color: #fff; }
.story nav button[disabled] { opacity: .35; cursor: default; }
.story .skip { font-size: 13px; color: var(--muted-text); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.story .starts { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 0; }

/* ---------------------------------------------------------------- table view */
.ifc-table { margin-top: .75rem; font-family: var(--sans); }
.ifc-table .tabs { display: flex; gap: .35rem; margin-bottom: .6rem; }
.ifc-table .tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: .35rem .5rem; font-weight: 700; cursor: pointer; font-size: 15px; }
.ifc-table .tabs button[aria-selected="true"] { border-bottom-color: var(--accent); }
.ifc-table .wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--hair); background: var(--surface); }
.ifc-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ifc-table caption { text-align: start; font-size: 13px; color: var(--muted-text); padding: .4rem .6rem; }
.ifc-table th { position: sticky; top: 0; background: var(--paper); text-align: start; font-weight: 700; padding: .4rem .6rem; border-bottom: 1px solid var(--hair); cursor: pointer; white-space: nowrap; }
.ifc-table th[aria-sort="ascending"]::after { content: " ▲"; font-size: 10px; } .ifc-table th[aria-sort="descending"]::after { content: " ▼"; font-size: 10px; }
.ifc-table td { padding: .35rem .6rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
.ifc-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ifc-table tr.click { cursor: pointer; } .ifc-table tr.click:hover td { background: var(--accent-soft); }

/* ---------------------------------------------------------------- methodology */
.ifc-method { max-width: 42rem; margin: 2rem auto 0; font-size: 16px; line-height: 1.7; }
.ifc-method h1, .ifc-method h2 { font-size: 24px; margin: 0 0 .6rem; }
.ifc-method p { margin: 0 0 .7rem; }
.ifc-method .small { font-family: var(--sans); font-size: 13.5px; color: var(--muted-text); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1099px) {
  .ifc-main { grid-template-columns: minmax(0, 1fr) 19rem; }
}
@media (max-width: 767px) {
  .ifc { padding: 1rem .75rem 2rem; }
  .ifc-head h1, .ifc-head .ifc-title { font-size: 21px; }
  .ifc-dek { font-size: 16px; }
  .ifc-tiles { gap: .35rem; }
  .ifc-tile { padding: .3rem .4rem; }
  .ifc-tile b { font-size: 15px; }
  .ifc-tile span { font-size: 11.5px; }
  /* phones: the search gets its own full-width line (so its results list is never clipped);
     only the toggle groups scroll sideways */
  .ifc-controls { padding-bottom: .2rem; }
  .ifc-search { flex: 1 1 100%; max-width: none; }
  .ifc-ctl-row { display: flex; position: relative; flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; gap: .5rem .9rem; align-items: center; overflow-x: auto; padding-bottom: .5rem;
    -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
  .ifc-ctl-row > * { flex: none; }
  .ifc-main { grid-template-columns: 1fr; }
  .ifc-graph { height: 62svh; min-height: 420px; }
  .ifc-panel { position: static; max-height: none; min-height: 0; margin-top: .6rem; }
  .ifc-panel.sheet { position: fixed; z-index: 50; inset-inline: 0; top: auto; bottom: 0; margin: 0; max-height: 88svh; border-radius: 12px 12px 0 0; box-shadow: 0 -6px 24px rgba(43,39,36,.16); }
  .ifc-panel.sheet.peek { max-height: 112px; overflow: hidden; }
  .ifc-panel.sheet .sheet-bar { display: flex; }
  .ifc-label { font-size: 12px; } .ifc-label.focus { font-size: 16px; }
}
.sheet-bar { display: none; position: sticky; top: 0; z-index: 2; background: var(--surface); align-items: center; }
.sheet-handle { flex: 1; border: 0; background: none; padding: .55rem 0 .25rem; cursor: pointer; min-height: 32px; }
.sheet-close { border: 0; background: none; font-size: 18px; width: 44px; height: 36px; cursor: pointer; color: var(--ink-soft); }
.sheet-handle::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--faded-stroke); margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .ifc * { transition: none !important; } }
@media (forced-colors: active) { .n-shape { forced-color-adjust: none; } }

.ifc-graph.xfade .zoomlayer, .ifc-graph.xfade .ifc-labels { opacity: .35; }

.ifc-about-link { text-align: center; font-family: var(--sans); font-size: 14.5px; margin: 1.5rem 0 0; padding-top: .8rem; border-top: 1px solid var(--hair); }
.ifc-back { font-family: var(--sans); font-size: 14px; margin: 0 auto 1.25rem; max-width: 42rem; }
.ifc-method { margin-top: 0; }
