/* self-hosted fonts (SIL Open Font License): Bricolage Grotesque, IBM Plex Mono; latin and latin-ext subsets */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/bricolage-grotesque-400-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/bricolage-grotesque-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-mono-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-mono-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --paper: #EEF1F4;
  --surface: #FFFFFF;
  --sunk: #E3E7EC;
  --ink: #101A2E;
  --muted: #566074;
  --line: #CFD5DE;
  --ios: #2B50E0;
  --ios-soft: #E3E9FD;
  --android: #0A7F60;
  --android-soft: #DDF3EC;
  --gold: #A67C12;
  --gold-soft: #F6ECCF;
  --mcc: #2B50E0;
  --mnc: #B4480B;
  --msin: #7B8496;
  --danger: #B3261E;
  --edge: #6B7588;
  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-s: 4px; --r-m: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1422; --surface: #151E31; --sunk: #1C2740; --ink: #E9EDF5; --muted: #9AA5BA; --line: #2B3753;
    --ios: #8CA4FF; --ios-soft: #1D2A55; --android: #4FD0A8; --android-soft: #12382F;
    --gold: #E0B84A; --gold-soft: #3A2F12; --mcc: #8CA4FF; --mnc: #F2A065; --msin: #7E8AA3; --danger: #FF8A80; --edge: #8A96AE;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: var(--r-s); }
code, .mono { font-family: var(--mono); font-size: .88em; }
#skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; margin: 0; padding: 8px 14px; clip-path: none; background: var(--ink); color: var(--paper); z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* masthead */
.mast { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 30px; height: 24px; }
.mast nav a { display: inline-block; padding: 8px 0; font-size: .93rem; color: var(--muted); }

/* hero */
.hero { padding: 34px 0 48px; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: .98; letter-spacing: -.035em; font-weight: 700; margin: 0 0 18px; max-width: 15ch; font-variation-settings: "opsz" 96; }
.hero p.lede { font-size: 1.14rem; color: var(--muted); max-width: 58ch; margin: 0 0 34px; }

/* the SIM: the one loud element */
.sim { --notch: 44px; position: relative; background: var(--line); border-radius: var(--r-m); padding: 1px; max-width: 880px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.sim-in { background: var(--surface); border-radius: calc(var(--r-m) - 1px); padding: 30px 34px 26px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.sim label.big { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 8px; }
.digits { position: relative; font-family: var(--mono); font-weight: 500; font-size: clamp(1.45rem, 5.1vw, 3rem); line-height: 1.2; --ls: .14em; }
.digits input { width: 100%; border: 0; background: transparent; padding: 0 0 14px; font: inherit; letter-spacing: var(--ls); outline: none; caret-color: var(--gold); }
.digits input::placeholder, .ids input::placeholder { color: var(--edge); opacity: 1; }
.brackets { position: absolute; left: 0; bottom: 0; display: flex; height: 6px; pointer-events: none; }
.brackets i { display: block; height: 6px; width: calc(var(--n) * (1ch + var(--ls))); border-radius: 0 0 3px 3px; border: 2px solid var(--c); border-top: 0; margin-right: 0; box-shadow: inset calc(-1 * var(--ls)) 0 0 var(--surface); transition: width .18s ease; }
.rule { height: 1px; background: var(--edge); margin-top: 6px; }
.digits:focus-within + .rule { background: var(--ink); box-shadow: 0 1px 0 var(--ink), 0 2px 0 var(--ink); }
.anatomy { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .93rem; min-height: 1.5em; }
.anatomy li { display: flex; align-items: baseline; gap: 8px; }
.anatomy li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); flex: none; transform: translateY(1px); }
.anatomy .k { color: var(--muted); }
.anatomy .v { font-weight: 600; }
.anatomy .hint { color: var(--muted); }
.anatomy .hint::before { display: none; }

.more { margin-top: 22px; }
.more summary { cursor: pointer; font-size: .95rem; font-weight: 600; width: fit-content; padding: 6px 0; }
.more p { color: var(--muted); font-size: .93rem; max-width: 62ch; margin: 8px 0 14px; }
.ids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ids label { display: block; font-size: .86rem; color: var(--muted); margin-bottom: 4px; }
.ids input { width: 100%; font-family: var(--mono); font-size: .95rem; padding: 9px 10px; border: 1px solid var(--edge); border-radius: var(--r-s); background: var(--paper); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.go { background: var(--ink); color: var(--paper); border: 0; padding: 13px 24px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.go:hover { background: color-mix(in srgb, var(--ink) 86%, var(--gold)); }
.go[aria-disabled="true"] { opacity: .55; cursor: progress; }
.privacy { font-size: .88rem; color: var(--muted); max-width: 46ch; margin: 0; }
.err { color: var(--danger); font-weight: 600; font-size: .95rem; margin: 14px 0 0; }
.samples { margin-top: 20px; font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.samples button { background: transparent; border: 1px solid var(--edge); border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--ink); font-size: .9rem; }
.samples button:hover { border-color: var(--ink); }

/* results */
#results { padding-bottom: 72px; }
.verdict { font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.25; letter-spacing: -.015em; font-weight: 500; max-width: 44ch; margin: 8px 0 34px; }
.verdict b { font-weight: 700; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.platform { --p: var(--ios); --p-soft: var(--ios-soft); min-width: 0; }
.platform.android { --p: var(--android); --p-soft: var(--android-soft); }
.platform h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font-size: 1.5rem; letter-spacing: -.02em; }
.platform h2 small { font-size: .88rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.ribbon { display: flex; gap: 3px; overflow-x: auto; padding: 3px; margin: -3px; scrollbar-width: thin; }
.seg { position: relative; flex: var(--g) 0 0; min-width: 46px; height: 54px; border: 1.5px solid var(--p); border-radius: var(--r-s); background: var(--p-soft); cursor: pointer; padding: 5px 6px; text-align: left; overflow: hidden; font-family: var(--mono); font-size: .74rem; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.seg.none { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--sunk) 5px 6px); border-color: var(--line); color: var(--muted); }
.seg[aria-pressed="true"] { background: var(--p); color: var(--surface); border-color: var(--p); }
.seg.none[aria-pressed="true"] { background: var(--muted); border-color: var(--muted); color: var(--surface); }
.axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin: 6px 0 16px; }
.detail { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--p); border-radius: var(--r-s) var(--r-s) var(--r-m) var(--r-m); padding: 22px 24px 24px; }
.detail .range { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.detail .range strong { font-family: var(--mono); font-size: 1rem; }
.detail .range span { font-size: .88rem; color: var(--muted); }
.op { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 4px; overflow-wrap: anywhere; }
.op.none { font-weight: 500; color: var(--muted); font-size: 1.25rem; }
.opsub { color: var(--muted); font-size: .93rem; margin: 0 0 6px; overflow-wrap: anywhere; }
.detail h3 { font-size: .95rem; font-weight: 600; margin: 22px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: .8rem; background: var(--sunk); border-radius: var(--r-s); padding: 3px 8px; overflow-wrap: anywhere; }
.chips li.strong { background: var(--gold-soft); color: var(--ink); }
.delta { font-size: .9rem; margin: 12px 0 0; padding: 8px 12px; background: var(--p-soft); border-radius: var(--r-s); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: .82rem; padding: 0 12px 6px 0; }
td { padding: 8px 12px 8px 0; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
td:last-child, th:last-child { padding-right: 0; }
td.apn { font-family: var(--mono); font-weight: 600; }
td .sub { display: block; color: var(--muted); font-size: .82rem; font-family: var(--sans); font-weight: 400; }
.scroll { overflow-x: auto; }
.alts { list-style: none; margin: 0; padding: 0; }
.alts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.alts .cond { font-family: var(--mono); font-size: .82rem; overflow-wrap: anywhere; }
.alts .res { font-weight: 600; }
.alts button { margin-left: auto; background: transparent; border: 1px solid var(--edge); border-radius: 999px; min-height: 32px; padding: 4px 14px; font-size: .82rem; cursor: pointer; }
.alts button:hover { border-color: var(--ink); }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: .9rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
details.keys { margin-top: 14px; }
details.keys .alts { margin-top: 8px; }
details.keys summary { cursor: pointer; font-size: .9rem; font-weight: 600; padding: 6px 0; width: fit-content; }
details.keys dl { margin-top: 10px; grid-template-columns: minmax(0, 1fr); gap: 2px; }
details.keys dt { font-family: var(--mono); font-size: .8rem; color: var(--ink); margin-top: 8px; }
details.keys dd { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.note { color: var(--muted); font-size: .9rem; margin: 0; }
.empty { border: 1px dashed var(--line); border-radius: var(--r-m); padding: 26px; color: var(--muted); max-width: 880px; }

/* about */
.about { border-top: 1px solid var(--line); padding: 44px 0 64px; }
.about h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 20px; }
.about .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.about h3 { font-size: 1rem; margin: 0 0 6px; }
.about p { margin: 0; color: var(--muted); font-size: .95rem; }
footer { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .platforms { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sim { --notch: 30px; }
  .sim-in { padding: 24px 20px 22px; }
  .digits { --ls: .06em; }
  .ids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { padding: 18px 16px 20px; }
  .hero { padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* shared chrome */
.mast nav { display: flex; flex-wrap: wrap; gap: 0 22px; justify-content: flex-end; }
.mast nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* the IMSI, read back in the results */
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.parts > div { padding: 20px 24px 22px; border-left: 1px solid var(--line); min-width: 0; }
.parts > div:first-child { border-left: 0; }
.parts dt { font-size: .88rem; color: var(--muted); }
.parts dd { margin: 0; }
.parts .num { font-family: var(--mono); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.9rem); letter-spacing: .1em; line-height: 1.2; margin: 4px 0 10px; padding-bottom: 6px; border-bottom: 3px solid var(--c); width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.parts .num.blank { font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0; color: var(--muted); }
.parts .means { font-size: 1.15rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.parts .why { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* list pages */
.page { padding: 26px 0 64px; }
.page h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 14px; max-width: 20ch; font-variation-settings: "opsz" 96; }
.page .lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; margin: 0 0 28px; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { display: inline-block; padding: 4px 0; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.filter label { font-weight: 600; font-size: .95rem; }
.filter input { font-size: 1rem; padding: 10px 12px; border: 1px solid var(--edge); border-radius: var(--r-s); background: var(--surface); width: min(100%, 340px); }
.filter output { font-size: .9rem; color: var(--muted); }
.nets { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.nets table { min-width: 720px; }
.nets th { padding: 14px 16px 10px; white-space: nowrap; }
.nets td { padding: 10px 16px; }
.nets td:last-child, .nets th:last-child { padding-right: 16px; }
.nets tbody th { font-weight: 400; color: var(--ink); font-size: inherit; border-top: 1px solid var(--line); padding: 10px 16px; white-space: nowrap; }
.pfx { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; }
.pfx .c { color: var(--mcc); } .pfx .n { color: var(--mnc); }
.nets .name { font-weight: 600; }
.nets .gone, .nets .unnamed { color: var(--muted); font-weight: 400; }
.nets .ver { font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.nets .mv { font-size: .86rem; color: var(--muted); max-width: 34ch; }
.nets td a.look { display: inline-block; white-space: nowrap; padding: 4px 0; font-weight: 600; }
.nets h2 { margin: 0; padding: 18px 16px 4px; font-size: 1.2rem; letter-spacing: -.01em; }
.nets h2 small { font-weight: 400; font-size: .88rem; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.places { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: 28px; }
.places li { break-inside: avoid; border-top: 1px solid var(--line); }
.places a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; text-decoration: none; }
.places a:hover .nm { text-decoration: underline; }
.places .nm { font-weight: 600; }
.places .ct { font-size: .84rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
  .parts { grid-template-columns: minmax(0, 1fr); }
  .parts > div { border-left: 0; border-top: 1px solid var(--line); padding: 16px 20px 18px; }
  .parts > div:first-child { border-top: 0; }
}
.brand { white-space: nowrap; }
.nets tbody th + td { min-width: 190px; overflow-wrap: break-word; }

/* home: search */
.ask input { width: 100%; border: 0; background: transparent; padding: 0 0 12px; font-family: var(--sans); font-weight: 600; font-size: clamp(1.5rem, 4.6vw, 2.6rem); letter-spacing: -.02em; line-height: 1.2; outline: none; caret-color: var(--gold); }
.ask input::placeholder { color: var(--edge); opacity: 1; font-weight: 500; }
.ask input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ask:focus-within + .rule { background: var(--ink); box-shadow: 0 1px 0 var(--ink), 0 2px 0 var(--ink); }
.hint { font-size: .93rem; color: var(--muted); margin: 14px 0 0; max-width: 62ch; }
.hits { margin: 0 0 34px; }
.hits h2 { font-size: 1.2rem; letter-spacing: -.01em; margin: 0 0 8px; }
.hits h2 small { font-weight: 400; font-size: .88rem; color: var(--muted); letter-spacing: 0; margin-left: 10px; }
.hits ul { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.hits li + li { border-top: 1px solid var(--line); }
.hit, .hits li.multi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 13px 18px; }
.hit { text-decoration: none; }
.hit:hover, .hit:focus-visible { background: var(--paper); }
.hit:hover .what { text-decoration: underline; text-underline-offset: 3px; }
.hit .pfx { min-width: 7ch; }
.what { font-weight: 600; overflow-wrap: anywhere; }
.what.unnamed { font-weight: 400; color: var(--muted); }
.what.mono { font-family: var(--mono); }
.aka { font-weight: 400; color: var(--muted); font-size: .88rem; margin-left: 10px; }
.meta { font-size: .88rem; color: var(--muted); }
.meta.end { margin-left: auto; text-align: right; }
.links { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; flex: 1 1 320px; font-size: .92rem; }
.links a { padding: 3px 0; }
.links .mono { font-weight: 600; }
.imsi-hit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 30px; padding: 16px 18px; background: var(--gold-soft); border-radius: var(--r-m); text-decoration: none; }
.imsi-hit strong { text-decoration: underline; text-underline-offset: 3px; }
.doors { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin-bottom: 64px; }
.doors a { display: block; padding: 26px 28px 30px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.doors a + a { padding-left: 28px; border-left: 1px solid var(--line); }
.doors h2 { font-size: 1.25rem; letter-spacing: -.015em; margin: 0 0 6px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.doors p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 44ch; }
@media (max-width: 760px) {
  .doors { grid-template-columns: minmax(0, 1fr); }
  .doors a, .doors a + a { padding: 20px 0 22px; border-left: 0; }
  .meta.end { margin-left: 0; flex-basis: 100%; text-align: left; }
}

/* four doors on the home page, four parts on the ICCID page */
.doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doors a:nth-child(odd) { padding-left: 0; border-left: 0; }
.parts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.verdict.ok, .verdict.bad { font-size: 1.05rem; font-weight: 500; letter-spacing: 0; max-width: 70ch; margin: -14px 0 34px; padding: 12px 16px; border-radius: var(--r-s); background: var(--android-soft); }
.verdict.bad { background: var(--gold-soft); }
.hits .rulehit { display: grid; grid-template-columns: minmax(9ch, max-content) minmax(0, 1.1fr) minmax(0, 1.6fr) max-content; gap: 4px 20px; align-items: baseline; padding: 13px 18px; }
.rulehit .plat { font-size: .82rem; color: var(--muted); display: block; font-weight: 400; }
@media (max-width: 900px) { .parts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .parts.four > div:nth-child(3) { border-left: 0; } .parts.four > div:nth-child(n+3) { border-top: 1px solid var(--line); } .hits .rulehit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .doors { grid-template-columns: minmax(0, 1fr); } .parts.four { grid-template-columns: minmax(0, 1fr); } }
.digits.small { font-size: clamp(1.15rem, 3.6vw, 2.2rem); --ls: .08em; }

/* ICCID issuers */
.parts.five { grid-template-columns: .6fr .8fr 1.3fr 1.1fr 1fr; }
.parts.one { grid-template-columns: minmax(0, 1fr); }
.pfx .g { color: var(--gold); }
.credit { font-size: .88rem; color: var(--muted); max-width: 78ch; margin: 18px 0 0; }
.hero + #status + #results + .credit, #results + .credit { margin: 0 0 56px; }
@media (max-width: 1000px) { .parts.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .parts.five > div:nth-child(odd) { border-left: 0; } .parts.five > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .parts.five { grid-template-columns: minmax(0, 1fr); } }

/* carrier pages */
.page h2.sub { font-size: 1.5rem; letter-spacing: -.02em; margin: 52px 0 12px; }
.page h2.sub.first { margin-top: 8px; }
.page h2.sub + .lede, .page .lede.second { font-size: 1rem; margin-bottom: 16px; }
.page .lede.second { margin-top: 26px; }
.nets a.name, .nets a.unnamed { text-underline-offset: 3px; }
.nets a.pfx { text-decoration-color: var(--line); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .92rem; }
.tags li, .tags a { display: inline-block; }
.tags li:not(:has(a)), .tags a { padding: 6px 14px; }
.tags a { text-decoration: none; font-weight: 600; }
.tags a:hover { text-decoration: underline; }
.nets .ver.wrap { white-space: normal; }

/* flags */
.flag { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); margin: 0 0 18px; background: var(--sunk); }
.flag.s { display: inline-block; flex: none; width: 28px; height: 21px; border-radius: 3px; margin: 0; align-self: center; }
.flag.s.none { box-shadow: none; background: transparent; }
.places a { justify-content: flex-start; }
.places .ct { margin-left: auto; }

/* long lists: the rest of the table on request */
.morerow { margin: 18px 0 0; }
.go.ghost { background: transparent; color: var(--ink); border: 1px solid var(--edge); padding: 10px 20px; }
.go.ghost:hover { background: var(--surface); border-color: var(--ink); }
@media (max-width: 640px) { .mast { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0 8px; } .mast nav { justify-content: flex-start; } }

/* APN tables on carrier pages */
.nets th.apn { font-family: var(--mono); font-weight: 600; white-space: normal; overflow-wrap: anywhere; min-width: 16ch; }
.nets th.apn .sub, .nets td .sub { display: block; color: var(--muted); font-size: .82rem; font-family: var(--sans); font-weight: 400; }
.nets tbody th.plain { font-weight: 600; white-space: normal; }
.nets tbody th + td.ver { min-width: 0; }
.nets td.os { white-space: nowrap; }

/* footer links, text pages */
footer p { margin: 0 0 6px; }
footer a { margin-right: 18px; display: inline-block; padding: 4px 0; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.2rem; letter-spacing: -.01em; margin: 34px 0 8px; }
.prose p { margin: 0 0 12px; }
.mail { font-size: 1.3rem; font-weight: 600; margin: 0 0 30px; overflow-wrap: anywhere; }

/* contact: the address appears as an image after the check */
.mailbox { margin: 0 0 34px; min-height: 70px; }
.mailbox .note { margin-top: 8px; }
.mailimg { display: block; max-width: 100%; height: auto; }
.hero .subtitle { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: -4px 0 14px; max-width: 40ch; }

/* tighter gap between a big input and its rule */
.digits input { padding-bottom: 9px; }
.digits.small input, .ask input { padding-bottom: 3px; }
.rule { margin-top: 3px; }
.hero .subtitle { font-size: clamp(1.35rem, 2.8vw, 1.85rem); max-width: 34ch; margin: 0 0 16px; }

/* how to find the ICCID */
.howto { border-top: 1px solid var(--line); padding: 44px 0 64px; }
.howto h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 10px; }
.howto .lede { font-size: 1.05rem; color: var(--muted); max-width: 62ch; margin: 0 0 26px; }
.steps { list-style: none; counter-reset: step; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.steps li { counter-increment: step; }
.steps img { display: block; width: 100%; height: auto; border-radius: var(--r-m); background: #000; }
.steps p { margin: 12px 0 0; font-size: .95rem; }
.steps p::before { content: counter(step) ". "; font-weight: 700; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }
.digits { line-height: 1.02; } .digits input { padding-bottom: 8px; } .ask input { line-height: 1.1; }
.op a { text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--line); } .op a:hover { text-decoration-color: currentColor; }


/* language links */
.langs { display: inline-flex; gap: 12px; padding-left: 14px; margin-left: 2px; border-left: 1px solid var(--line); }
.mast nav .langs a { font-size: .86rem; }
.mast nav .langs a[aria-current="true"] { color: var(--ink); font-weight: 600; text-decoration: none; }
/* Japanese and Chinese: the Latin faces stay for digits and names, system faces carry the rest */
html[lang="ja"] { --sans: "Bricolage Grotesque", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
html[lang="zh-Hans"] { --sans: "Bricolage Grotesque", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }
html[lang="ja"] h1, html[lang="zh-Hans"] h1 { letter-spacing: -.01em; line-height: 1.16; max-width: 22ch; }
html[lang="ja"] .hero h1, html[lang="zh-Hans"] .hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); max-width: 16em; }
html[lang="ja"] .hero .subtitle, html[lang="zh-Hans"] .hero .subtitle { letter-spacing: 0; max-width: 30em; margin-top: 6px; }
html[lang="ja"] .lede, html[lang="zh-Hans"] .lede, html[lang="ja"] .prose, html[lang="zh-Hans"] .prose { line-height: 1.75; }
html[lang="ja"] .verdict, html[lang="zh-Hans"] .verdict { letter-spacing: 0; line-height: 1.5; max-width: 34em; }
