/* Khaby IPTV: the workbench manual. Zilla Slab + Inclusive Sans (SIL OFL 1.1, licences in /assets/fonts/), self-hosted;
   on-screen strings use the system monospace stack (zero bytes) and only for text the reader must match. */
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/zilla-slab-700.woff2") format("woff2"); }
@font-face { font-family: "Inclusive Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/inclusive-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Inclusive Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/inclusive-sans-700.woff2") format("woff2"); }
/* metric-matched fallbacks (CLS) */
@font-face { font-family: "Zilla fallback"; font-weight: 700; src: local("Georgia Bold"), local("Georgia-Bold");
  size-adjust: 100.31%; ascent-override: 94.11%; descent-override: 25.52%; line-gap-override: 0%; }
@font-face { font-family: "Zilla fallback N"; font-weight: 700; src: local("Noto Serif Bold"), local("NotoSerif-Bold");
  size-adjust: 91.96%; ascent-override: 102.66%; descent-override: 27.84%; line-gap-override: 0%; }
@font-face { font-family: "Inclusive fallback"; font-weight: 400; src: local("Arial"), local("ArialMT");
  size-adjust: 108.73%; ascent-override: 87.37%; descent-override: 22.99%; line-gap-override: 0%; }
@font-face { font-family: "Inclusive fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 114.25%; ascent-override: 83.15%; descent-override: 21.88%; line-gap-override: 0%; }
@font-face { font-family: "Inclusive fallback R"; font-weight: 400; src: local("Roboto");
  size-adjust: 108.15%; ascent-override: 87.84%; descent-override: 23.12%; line-gap-override: 0%; }

:root {
  --paper: #F7F7F5; --ink: #1C1E21; --mustard: #E0AE2E; --blue: #1F4E79; --blue-deep: #173B5C;
  --code: #ECEDEA; --caution: #FBEFD5; --muted: #5A5F66; --rule: #D6D7D2;
  --slab: "Zilla Slab", "Zilla fallback", "Zilla fallback N", Rockwell, Georgia, serif;
  --sans: "Inclusive Sans", "Inclusive fallback", "Inclusive fallback R", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--sans); }
::selection { background: var(--mustard); color: var(--ink); }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 10; }
.skip:focus { top: 1rem; }

/* header: a mustard fill strip over a plain bar */
.top { border-bottom: 1px solid var(--rule); background: #fff;
  padding: .5rem max(1rem, calc(50% - 34rem));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; }
.mark { font: 700 1.375rem/1.1 var(--slab); color: var(--ink); background: var(--mustard); text-decoration: none;
  padding: .55rem .8rem; margin: .25rem 0; }
.top-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
.top-nav a { display: inline-block; padding: .65rem 0; color: var(--ink); text-decoration: none; }
.top-nav a:hover, .top-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mustard);
  text-decoration-thickness: 4px; text-underline-offset: .4em; }

.path { padding: 1rem 1rem 0; font-size: .9375rem; color: var(--muted); }
.path ol { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .4rem; max-width: 68rem; }
.path li + li::before { content: "\203A"; margin-right: .4rem; }
.path a { color: var(--muted); }

main { max-width: 70rem; margin: 0 auto; padding: 0 1rem 3rem; }
h1 { font: 700 clamp(2rem, 1.5rem + 2.3vw, 3rem)/1.08 var(--slab); margin: 1.25rem 0 .75rem; max-width: 26ch; text-wrap: balance; }
h2 { font: 700 clamp(1.4375rem, 1.25rem + .8vw, 1.75rem)/1.15 var(--slab); margin: 2.25rem 0 .6rem; text-wrap: balance; }
h3 { font: 700 1.1875rem/1.3 var(--sans); margin: 1.5rem 0 .4rem; }
p, ul, ol { margin: 0 0 1rem; }
.byline { color: var(--muted); font-size: 1rem; margin: 0 0 1.5rem; max-width: 42rem; }
.byline a { color: var(--blue); }
.content { max-width: 42rem; }
.content > p:first-child { font-size: 1.25rem; line-height: 1.5; }
code, kbd, samp { font-family: var(--mono); font-size: .9em; background: var(--code); padding: .1em .35em; border-radius: 2px; }

/* numbered steps: slab numerals in mustard blocks, hanging in the margin on wide screens */
.content > ol { list-style: none; counter-reset: step; padding: 0; margin: 1.25rem 0 1.5rem; }
.content > ol > li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3.25rem; margin: 0 0 1.1rem;
  border-bottom: 1px solid var(--rule); min-height: 2.5rem; }
.content > ol > li:last-child { border-bottom: 0; margin-bottom: 0; }
.content > ol > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 2.25rem; height: 2.25rem;
  background: var(--mustard); color: var(--ink); font: 700 1.25rem/2.25rem var(--slab); text-align: center;
  font-variant-numeric: tabular-nums; }
.content > ol > li > h3:first-child { margin-top: .2rem; }
.content > ul { padding-left: 1.2rem; }
.content > ul > li { margin-bottom: .35rem; }

/* the "In this guide" index: inline after the answer on a phone, a sticky rail on a wide screen */
.index { border: 1px solid var(--rule); background: #fff; margin: 1.25rem 0 1.75rem; font-size: 1rem; }
.index-bar { background: var(--mustard); color: var(--ink); font: 700 1.0625rem/1.2 var(--slab); margin: 0; padding: .55rem .9rem; }
.index ol { margin: 0; padding: .75rem .9rem .75rem 2.1rem; }
.index li { margin: .25rem 0; }

table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: .55rem .7rem; border: 1px solid var(--rule); }
thead th { background: var(--code); }
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
table { background: #fff; }

.next { margin-top: 2.5rem; max-width: 42rem; }
.next ul, .devices ul, .latest ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.next li, .devices li, .latest li { border-bottom: 1px solid var(--rule); }
.next a, .devices a, .latest a { display: block; padding: .6rem 0; }

/* the sales box: a mustard header bar over the per-plan costs */
.offer { margin: 2.5rem 0; background: #fff; border: 1px solid var(--rule); max-width: 42rem; }
.offer-bar { background: var(--mustard); color: var(--ink); margin: 0; padding: .65rem 1rem; font-size: 1.3125rem; }
.offer-body { padding: 1rem 1rem 1.25rem; }
.costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin: 0 0 1rem; }
.costs div { display: flex; justify-content: space-between; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.costs dt { color: var(--muted); }
.costs dd { margin: 0; font: 700 1.375rem/1.1 var(--slab); font-variant-numeric: tabular-nums; }
.offer-act { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 0; }
.cta { display: inline-flex; align-items: center; min-height: 2.875rem; padding: .7rem 1.2rem; background: var(--blue);
  color: #fff; font-weight: 700; text-decoration: none; border-radius: 4px; }
.cta:hover { background: var(--blue-deep); }
.cta:focus-visible { outline-color: var(--mustard); }

.desk .content { max-width: 42rem; }
.devices { margin-top: 2rem; max-width: 42rem; }
.devices ul { columns: 2 14rem; column-gap: 2rem; }
.devices li { break-inside: avoid; }
.leaf .content { max-width: 42rem; }
.hub-list { list-style: none; padding: 0; }
.hub-list li { padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.hub-list time { display: block; color: var(--muted); font-size: .9375rem; }
.pager { display: flex; gap: 1.5rem; }
.disclosure { background: var(--caution); padding: 1rem; margin: 1.5rem 0; }
.disclosure p { margin: 0; }
.fixtures ul { padding-left: 1.2rem; }
.small { font-size: .9375rem; color: var(--muted); }

.bottom { border-top: 1px solid var(--rule); background: #fff; padding: 1.75rem 1rem 2.25rem; font-size: 1rem; }
.bottom > * { max-width: 70rem; margin-left: auto; margin-right: auto; }
.bottom-mark { font: 700 1.25rem/1.2 var(--slab); margin-bottom: .4rem; }
.bottom p { color: var(--muted); }
.bottom ul { list-style: none; padding: 0; margin: 1rem auto 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.bottom a { color: var(--ink); display: inline-block; padding: .3rem 0; }

@media (min-width: 64rem) {
  .guide .content { display: grid; grid-template-columns: minmax(0, 42rem) 17rem; column-gap: 3.5rem; max-width: none; }
  .guide .content > * { grid-column: 1; }
  .guide .content > .index { grid-column: 2; grid-row: 1 / span 300; align-self: start; position: sticky; top: 1.5rem; margin-top: .4rem; }
}
@media (min-width: 76rem) {  /* room in the page margin: the step numerals hang outside the text column */
  .content > ol > li { padding-left: 0; }
  .content > ol > li::before { left: -3.5rem; width: 2.5rem; height: 2.5rem; font-size: 1.375rem; line-height: 2.5rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.na { color: var(--muted); }
.compare { min-width: 60rem; }
.compare th:first-child, .compare td:first-child { position: sticky; left: 0; background: #fff; min-width: 8rem; }
.compare thead th:first-child { background: var(--code); }
.article-cover { margin: 1.5rem 0 2rem; } .article-cover img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.article-cover figcaption { font-size: .875rem; color: var(--muted); padding-top: .35rem; }
