/* Immigration Law Insider: editorial design layer.
   Paper, ink and rust. Source Serif 4 for headlines and reading, Inter for UI.
   Tokens first; every color on the site comes from here. */

:root {
  --paper: #F6F1E6;
  --paper-2: #ECE5D6;
  --card: #FFFCF5;
  --ink: #1A1F2B;
  --ink-2: #3A4354;
  --muted: #5A6273;
  --rule: #DDD4C2;
  --rule-2: #E9E2D4;
  --accent: #7E6024;
  --accent-2: #5F4718;
  --accent-soft: #F1E8D3;
  --deep: #17284A;
  --deep-2: #22365E;
  --on-deep: #F3F1EC;
  --on-deep-2: #C9CFDB;
  --gold: #C9A962;
  --ok: #2F6B45; --ok-bg: #E3EFE6;
  --hold: #8A5A00; --hold-bg: #F8ECCF;
  --off: #8E2A1D; --off-bg: #F6DEDA;
  --prop: #3D4F7A; --prop-bg: #E2E7F3;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --read: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1240px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(23, 40, 74, .06), 0 8px 24px -12px rgba(23, 40, 74, .20);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); font-feature-settings: "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 16px; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- reading progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- top bar + masthead ---------- */
.topbar { background: var(--deep); color: var(--on-deep-2); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar p { margin: 0; }
.topbar strong { color: var(--on-deep); font-weight: 600; }
.topbar a { color: var(--on-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.topbar a:hover { color: var(--gold); }

.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.mark { width: 42px; height: 42px; flex: none; }
.mk-bg { fill: var(--deep); } .mk-pg { fill: #F4EEDF; } .mk-ln { stroke: var(--deep); stroke-width: 1; stroke-linecap: round; opacity: .45; } .mk-sl { fill: var(--gold); stroke: var(--deep); stroke-width: 1.2; } .mk-sr { fill: none; stroke: var(--deep); stroke-width: .8; }
.brand-light .mk-bg { fill: var(--on-deep); } .brand-light .mk-pg { fill: var(--deep); } .brand-light .mk-ln { stroke: var(--on-deep); } .brand-light .mk-sl { stroke: var(--on-deep); } .brand-light .mk-sr { stroke: var(--on-deep); }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 600 26px/1 var(--serif); letter-spacing: -.02em; }
.brand-name em { font-style: italic; font-weight: 600; color: var(--accent); }
.brand-tag { font: 500 12px/1.3 var(--sans); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 5px; }
.mast-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--rule); background: var(--card); color: var(--ink); cursor: pointer; font-size: 19px; text-decoration: none; }
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.menu-btn { display: none; }

.topics-nav { border-top: 1px solid var(--rule-2); }
.topics-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topics-nav ul::-webkit-scrollbar { display: none; }
.topics-nav a { display: block; padding: 11px 10px; font: 600 14px/1 var(--sans); color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.topics-nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.topics-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.topics-nav .nav-tracker { color: var(--accent); }
.topics-nav li:first-child a { padding-left: 0; }

/* ---------- buttons, chips, labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: 600 15px/1.1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-light { background: var(--on-deep); color: var(--deep); }
.btn-light:hover { background: #fff; color: var(--deep); }
.btn-ghost { border-color: rgba(243, 241, 236, .45); color: var(--on-deep); }
.btn-ghost:hover { border-color: var(--on-deep); color: #fff; }
.btn-block { width: 100%; }
.chip { display: inline-block; font: 700 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; margin-bottom: 10px; }
.chip:hover { color: var(--accent-2); text-decoration: underline; }
.eyebrow { font: 700 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.eyebrow.light { color: var(--gold); }
.sec-h { font: 700 13px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 18px; padding-top: 12px; border-top: 3px solid var(--ink); }
.sec-h span { display: block; font: 400 15px/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; margin-bottom: 18px; }
.more-link:hover { color: var(--accent); }
.note { color: var(--muted); font-size: 14px; }

/* ---------- byline ---------- */
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--paper-2); }
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; display: block; }
.byline a:hover { color: var(--accent); }
.byline span { color: var(--muted); display: block; font-size: 13px; }
.byline.sm img { width: 30px; height: 30px; }
.byline.sm { font-size: 13px; gap: 10px; }

/* ---------- home: dateline + lead ---------- */
.dateline { border-bottom: 1px solid var(--rule); font: 500 13px/1 var(--sans); color: var(--muted); }
.dateline .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.lead { padding: 36px 0 44px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 44px; }
.lead-story { display: grid; gap: 22px; }
.lead-img { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
.lead-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: transform .6s ease; }
.lead-img:hover img { transform: scale(1.02); }
.lead-txt h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.06; margin-bottom: 14px; }
.lead-txt h1 a { color: var(--ink); text-decoration: none; }
.lead-txt h1 a:hover { color: var(--accent); }
.lead-txt .eyebrow { display: none; }
.dek { font: 400 20px/1.5 var(--read); color: var(--ink-2); max-width: 44em; }
.latest { border-left: 1px solid var(--rule); padding-left: 32px; }
.latest ol { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: l; }
.latest li { counter-increment: l; border-bottom: 1px solid var(--rule-2); }
.latest li a { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 16px 0; text-decoration: none; color: var(--ink); }
.latest li a::before { content: counter(l, decimal-leading-zero); grid-row: span 3; font: 600 22px/1 var(--serif); color: var(--accent); padding-top: 2px; }
.ll-topic { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ll-t { font: 600 18px/1.25 var(--serif); }
.latest li a:hover .ll-t { color: var(--accent); }
.latest time { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- tracker strip ---------- */
.tracker-strip { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 30px 0 34px; }
.tk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tk { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tk:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.tk strong { font: 600 17px/1.2 var(--serif); }
.tk > span:last-child { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.st { align-self: flex-start; display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; white-space: nowrap; }
.st-on { background: var(--ok-bg); color: var(--ok); }
.st-hold { background: var(--hold-bg); color: var(--hold); }
.st-off { background: var(--off-bg); color: var(--off); }
.st-prop { background: var(--prop-bg); color: var(--prop); }

/* ---------- cards ---------- */
.second, .more, .related { padding: 44px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-img { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card h3 { font-size: 23px; line-height: 1.2; margin-bottom: 10px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card-sm h3 { font-size: 20px; }
.card-dek { color: var(--ink-2); font-size: 16px; line-height: 1.55; }

/* ---------- topics ---------- */
.topics { padding: 44px 0 52px; background: var(--paper-2); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.topic-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.tc-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.tc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.tc-body { padding: 18px 20px 20px; }
.tc-body h3 { font-size: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tc-body h3 a { color: var(--ink); text-decoration: none; }
.tc-body h3 a:hover { color: var(--accent); }
.count { font: 600 13px/1 var(--sans); color: var(--muted); }
.tc-body > p { color: var(--ink-2); font-size: 15px; }
.tc-body ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.tc-body li { border-bottom: 1px solid var(--rule-2); }
.tc-body li a { display: block; padding: 10px 0; font: 600 15.5px/1.35 var(--serif); color: var(--ink); text-decoration: none; }
.tc-body li a:hover { color: var(--accent); }

/* ---------- authors strip ---------- */
.authors-strip { padding: 56px 0; }
.authors-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.authors-intro h2 { font-size: 32px; }
.authors-intro p { color: var(--ink-2); }
.auth { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.auth img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; border-radius: var(--r); margin-bottom: 14px; background: var(--paper-2); }
.auth-n { font: 600 20px/1.2 var(--serif); }
.auth:hover .auth-n { color: var(--accent); }
.auth-r { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.auth-b { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 10px; }
.auth-s { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep); color: var(--on-deep); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 169, 98, .16), transparent 70%); pointer-events: none; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: center; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 40px); color: #fff; }
.cta-band p { color: var(--on-deep-2); font-size: 17px; max-width: 40em; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------- inner page header ---------- */
.page-head { background: var(--deep); color: var(--on-deep); padding: 34px 0 44px; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.page-head.has-img .ph-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); color: #fff; }
.page-head .lede { font: 400 20px/1.5 var(--read); color: var(--on-deep-2); max-width: 36em; margin: 0; }
.page-head .lede strong { color: #fff; }
.ph-img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 0%; width: 100%; }
.crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.page-head .crumbs li, .page-head .crumbs a { color: var(--on-deep-2); }
.page-head .crumbs li + li::before { color: #6B7A99; }
.page-head .crumbs [aria-current] { color: var(--on-deep); }
.listing { padding: 48px 0 60px; }

/* ---------- post ---------- */
.post-head { padding: 34px 0 26px; }
.narrow-head > * { max-width: 920px; }
.narrow-head > .post-meta { max-width: none; }
.post-head h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin-bottom: 16px; }
.post-head .dek { font-size: 22px; margin-bottom: 24px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.asof { margin: 0; font: 600 13px/1.3 var(--sans); color: var(--ok); background: var(--ok-bg); padding: 7px 11px; border-radius: 999px; }
.post-hero { margin: 0 auto 40px; max-width: 1080px; }
.post-hero video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); display: block; background: var(--paper-2); }
.post-hero img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: var(--r); background: var(--paper-2); }
.post-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 280px); justify-content: space-between; gap: 56px; }
.post-rail { position: relative; }
.rail-box { position: sticky; top: 130px; }
.rail-box + .rail-box { position: static; margin-top: 24px; }
.post-rail .toc { padding-left: 16px; border-left: 2px solid var(--rule); }
.rail-h { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 0; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.on { color: var(--accent); }
.toc a.on { font-weight: 600; }
.call { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; }
.call p:not(.rail-h) { font-size: 15px; color: var(--ink-2); }

.short { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 20px 24px; margin-bottom: 36px; }
.short h2 { font: 700 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.short ul { margin: 0; padding-left: 20px; }
.short li { margin: 6px 0; font-size: 16.5px; }

.prose { font: 400 19px/1.7 var(--read); color: var(--ink); }
.prose > * { max-width: 100%; }
.prose h2 { font-family: var(--serif); font-size: 30px; margin: 1.7em 0 .55em; scroll-margin-top: 130px; }
.prose h3 { font-family: var(--serif); font-size: 22px; margin: 1.5em 0 .45em; }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-2); }
.callout { margin: 1.6em 0; padding: 18px 22px; border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--rule); font: 400 17px/1.6 var(--sans); }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: var(--hold-bg); border-color: #E7D3A3; }
.callout strong:first-child { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.table-wrap, .prose .table-scroll { position: relative; overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--sans); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 11px 13px; border-bottom: 1px solid var(--rule-2); }
table.data thead th { font: 700 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.data tbody th { font-weight: 600; }

.faq, .sources { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule); }
.faq h2, .sources h2 { font-size: 26px; }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font: 600 18px/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 26px/1 var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }
.sources p { color: var(--muted); font-size: 15px; }
.sources ol { padding-left: 1.3em; font-size: 15px; }
.sources li { margin: 6px 0; overflow-wrap: anywhere; }
.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 22px; margin-top: 44px; padding: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.author-box h2 { font-size: 24px; margin-bottom: 4px; }
.author-box h2 a { color: var(--ink); text-decoration: none; }
.author-box .eyebrow { margin-bottom: 6px; }
.ab-role { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.author-box p:last-child { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.pn { display: block; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--ink); font: 600 17px/1.3 var(--serif); }
.pn span { display: block; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pn:hover { border-color: var(--ink); color: var(--accent); }
.pn-next { text-align: right; grid-column: 2; }
.related { background: var(--paper-2); }

/* ---------- topic, archive, authors, tracker, search ---------- */
.topic-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.topic-list .card-lg { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.card-lg h3 { font-size: clamp(28px, 3vw, 38px); }
.other-topics { margin-top: 52px; padding-top: 20px; border-top: 3px solid var(--ink); }
.other-topics h2 { font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.other-topics ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.other-topics a { display: inline-block; padding: 9px 15px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; }
.other-topics a:hover { border-color: var(--ink); }
.arch { max-width: 900px; }
.arch-month h2 { font-size: 28px; padding-top: 14px; border-top: 3px solid var(--ink); }
.arch-month ul { list-style: none; margin: 0 0 40px; padding: 0; }
.arch-month li { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule-2); }
.arch-month time { font: 600 14px/1 var(--sans); color: var(--muted); }
.arch-month a:not(.chip) { font: 600 19px/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.arch-month a:not(.chip):hover { color: var(--accent); }
.arch-month .chip { margin: 0; white-space: nowrap; }
.author-full { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 130px; }
.author-full:first-child { padding-top: 0; }
.author-full img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0%; border-radius: var(--r); }
.author-full h2 { font-size: 34px; margin-bottom: 6px; }
.author-full > div > p { max-width: 42em; color: var(--ink-2); }
.author-full h3 { font: 700 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 26px 0 8px; }
.author-full ul { list-style: none; padding: 0; margin: 0; }
.author-full li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--rule-2); font: 600 17px/1.35 var(--serif); color: var(--ink); text-decoration: none; }
.author-full li a:hover { color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tracker th[scope="row"] { font: 600 16px/1.3 var(--serif); min-width: 200px; }
.tracker td:nth-child(3) { min-width: 300px; }
.tracker td:nth-child(4) { font-size: 13.5px; min-width: 170px; }
.tracker td:last-child { white-space: nowrap; font-weight: 600; }
.search-wrap { max-width: 820px; }
.search-form { position: relative; }
.search-form input { width: 100%; font: 400 20px/1.2 var(--sans); padding: 18px 20px 18px 54px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); display: flex; }
.results { list-style: none; padding: 0; margin: 12px 0 0; }
.results li { padding: 18px 0; border-bottom: 1px solid var(--rule-2); }
.results a { font: 600 21px/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.results a:hover { color: var(--accent); }
.results p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.results .r-meta { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.results mark { background: var(--accent-soft); color: inherit; padding: 0 2px; border-radius: 2px; }
.page-body { max-width: 760px; }
.page-body h2 { font-size: 28px; margin-top: 1.5em; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 1.5em; font-family: var(--sans); }
.contact-cards > div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px; font-size: 16px; line-height: 1.5; }
.contact-cards strong { display: block; font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-cards a { font-weight: 600; }

/* ---------- footer ---------- */
.foot { background: var(--deep); color: var(--on-deep-2); padding: 56px 0 28px; border-top: 1px solid var(--deep-2); font-size: 15px; }
.cta-band + .foot { border-top: 1px solid rgba(243, 241, 236, .12); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot .brand { color: var(--on-deep); margin-bottom: 16px; }
.foot .brand-tag { color: var(--on-deep-2); }
.foot .brand-name em { color: var(--gold); }
.foot h2 { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep); margin: 8px 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 8px 0; }
.foot a { color: var(--on-deep-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand p a { color: var(--on-deep); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(243, 241, 236, .14); display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.foot-legal p { margin: 0; max-width: 60em; }
.foot-legal a { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tk-grid .tk:nth-child(n+4) { display: none; }
  .authors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .authors-intro { grid-column: 1 / -1; max-width: 46em; }
}
@media (max-width: 1060px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-rail { display: none; }
  .post-grid .post-main { max-width: 740px; }
  .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .latest { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .mast-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .topics-nav { display: none; }
  .topics-nav.open { display: block; }
  .topics-nav.open ul { flex-direction: column; gap: 0; padding: 4px 0 12px; }
  .topics-nav.open a { padding: 13px 0; border-bottom: 1px solid var(--rule-2); font-size: 16px; }
  .grid-3, .topic-grid, .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-list .card-lg { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cta-grid, .page-head.has-img .ph-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head.has-img .ph-img { display: none; }
  .author-full { grid-template-columns: 180px 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .topbar p { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .mast-row { padding-top: 12px; padding-bottom: 12px; }
  .brand-name { font-size: 21px; white-space: nowrap; }
  .brand-tag { font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
  .mark { width: 36px; height: 36px; }
  .icon-btn { width: 40px; height: 40px; }
  .dateline .wrap span:last-child { display: none; }
  .lead { padding-top: 22px; }
  .dek { font-size: 18px; }
  .post-head .dek { font-size: 19px; }
  .grid-3, .topic-grid, .topic-list { grid-template-columns: minmax(0, 1fr); }
  .tk-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
  .tk-grid::-webkit-scrollbar { display: none; }
  .tk-grid .tk { scroll-snap-align: start; }
  .tk-grid .tk:nth-child(n+4) { display: flex; }
  .sec-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .authors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .auth-s, .auth-r { display: none; }
  .auth-n { font-size: 15px; }
  .auth-b { font-size: 10px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 25px; }
  .post-hero img { border-radius: 0; }
  .post-hero { padding: 0; margin-bottom: 28px; }
  .author-box { grid-template-columns: 1fr; }
  .prevnext { grid-template-columns: 1fr; }
  .pn-next { grid-column: auto; text-align: left; }
  .arch-month li { grid-template-columns: 56px 1fr; }
  .arch-month .chip { grid-column: 2; }
  .author-full { grid-template-columns: 1fr; }
  .author-full img { max-width: 240px; }
  .contact-cards { grid-template-columns: 1fr; }
  .prose table.data { min-width: 600px; font-size: 14px; }
  .prose .table-scroll { margin-right: -16px; padding-right: 16px; }
  .tracker thead { display: none; }
  .tracker, .tracker tbody, .tracker tr, .tracker th, .tracker td { display: block; width: 100%; min-width: 0 !important; }
  .tracker tr { padding: 16px 16px 14px; border-bottom: 1px solid var(--rule); }
  .tracker tbody tr:last-child { border-bottom: 0; }
  .tracker th, .tracker td, table.data.tracker tbody tr:last-child > * { border: 0; padding: 3px 0; }
  .tracker td:nth-child(2) { padding: 6px 0 4px; }
  .tracker td:last-child { white-space: normal; padding-top: 6px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-legal { flex-direction: column; }
  .cta-band { padding: 44px 0; }
  .cta-actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 20px; }
  .mast-tools { gap: 8px; }
}

/* ---------- v2 (2026-10-01): Mobbin-led pass ----------
   Lead split after PayPal Newsroom's featured story; author cards after Superpower;
   rail author card after Uxcel / GetYourGuide. */
.lead { padding: 40px 0 36px; }
.lead-split { display: grid; grid-template-columns: minmax(0, 5.6fr) minmax(0, 6.4fr); gap: 48px; align-items: center; }
.lead-split .lead-txt h1 { font-size: clamp(34px, 3.9vw, 54px); line-height: 1.04; margin-bottom: 18px; }
.lead-split .lead-txt h1 a { color: var(--ink); text-decoration: none; }
.lead-split .lead-txt h1 a:hover { color: var(--accent); }
.lead-split .eyebrow { color: var(--accent); }
.lead-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); }
.lead-media { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2);
  border-radius: 140px 14px 14px 14px; box-shadow: var(--shadow); }
.lead-media img, .lead-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; transition: transform .7s ease; }
.lead-media:hover img { transform: scale(1.02); }
.lead-media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38%; height: 6px; background: var(--accent); }
.latest-row { margin-top: 44px; }
.latest-row ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: l; }
.latest-row li { counter-increment: l; border-top: 1px solid var(--rule); }
.latest-row li a { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding-top: 16px; text-decoration: none; color: var(--ink); }
.latest-row li a::before { content: counter(l, decimal-leading-zero); grid-row: span 3; font: 600 22px/1 var(--serif); color: var(--accent); padding-top: 2px; }
.latest-row li a:hover .ll-t { color: var(--accent); }
.latest-row .ll-t { font: 600 18px/1.28 var(--serif); }
.latest-row time { font-size: 13px; color: var(--muted); margin-top: 8px; }

.authors-grid { align-items: stretch; }
.auth { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; padding-bottom: 18px; transition: transform .2s, box-shadow .2s; }
.auth:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.auth-ph { position: relative; display: block; margin-bottom: 34px; }
.auth-ph img:first-child { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 0%; border-radius: 0; margin: 0; }
.auth-badge { position: absolute; left: 16px; bottom: -28px; width: 60px !important; height: 60px; aspect-ratio: 1 !important; border-radius: 50% !important; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--card); margin: 0 !important; }
.auth > span:not(.auth-ph) { padding: 0 16px; }

.rail-author { display: flex; gap: 12px; align-items: center; padding: 14px; margin-bottom: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.rail-author:hover { border-color: var(--ink); color: var(--ink); }
.rail-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.rail-author .rail-h { margin-bottom: 4px; }
.rail-author strong { display: block; font: 600 17px/1.2 var(--serif); }
.rail-author span span:last-child { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.af-photos { display: grid; gap: 12px; align-content: start; }
.af-photos .af-action { aspect-ratio: 3 / 2; object-position: 50% 0%; }

@media (max-width: 1060px) {
  .lead-split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .lead-split .lead-media { order: -1; border-radius: 90px 12px 12px 12px; }
  .latest-row ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lead { padding-top: 18px; }
  .lead-split .lead-media { border-radius: 56px 10px 10px 10px; margin: 0 -4px; }
  .latest-row ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .latest-row li a { padding-bottom: 14px; }
  .lead-foot .btn { width: 100%; }
  .authors-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .auth-s, .auth-r { display: block; }
  .auth-n { font-size: 20px; }
  .auth-b { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .masthead, .post-rail, .cta-band, .foot, .related, .progress, .prevnext { display: none !important; }
  body { background: #fff; }
}

/* Photos are never cropped top or bottom (Oct 1 2026: "always show top of heads").
   Every frame is 3:2 like the photos; anything that must crop anchors to the top. */

/* ---------- v3 (2026-10-06): language picker, deadline calculator, tool band ---------- */
.lang { position: relative; }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 250px; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; }
.lang-menu.open { display: block; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 6px; font: 500 15px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--paper-2); }
.lang-menu button[aria-current] { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.lang-h { font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 10px 8px; }
.lang-note { font-size: 12px; line-height: 1.4; color: var(--muted); margin: 8px 10px 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--deep); color: var(--on-deep); padding: 12px 18px; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.topics-nav .nav-tool { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
/* Google's injected bar must not push the layout */
body { top: 0 !important; }
.goog-te-banner-frame, .skiptranslate iframe { display: none !important; }

.tool-band { background: var(--deep); color: var(--on-deep); padding: 36px 0; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.tool-band h2 { color: #fff; font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 8px; }
.tool-band p:not(.eyebrow) { color: var(--on-deep-2); margin: 0; max-width: 46em; }
.tool-band .eyebrow { color: var(--gold); }

.page-body.wide { max-width: 1040px; }
.dl-form { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.dl-form fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.dl-form legend { font: 600 22px/1.2 var(--serif); margin-bottom: 14px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.dl-form label { display: flex; flex-direction: column; gap: 6px; font: 600 15px/1.35 var(--sans); min-width: 0; }
.dl-form input, .dl-form select { font: 400 16px/1.2 var(--sans); padding: 11px 12px; border: 1.5px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); min-height: 46px; width: 100%; }
.dl-form input:focus, .dl-form select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { font: 400 13px/1.4 var(--sans); color: var(--muted); }
.dl-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.dl-submit .note { margin: 0; }
.btn-ghost-dark { border-color: var(--rule); color: var(--ink); background: var(--card); }
.btn-ghost-dark:hover { border-color: var(--ink); color: var(--ink); }
.dl-out { margin: 32px 0; scroll-margin-top: 140px; }
.dl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dl-head h2 { font-size: 30px; margin: 0; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.dl-item { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--prop); border-radius: var(--r); padding: 18px 20px; }
.dl-urgent { border-left-color: var(--off); } .dl-soon { border-left-color: var(--hold); } .dl-later { border-left-color: var(--ok); } .dl-past { border-left-color: var(--muted); opacity: .85; }
.dl-date strong { display: block; font: 600 19px/1.25 var(--serif); }
.dl-when { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; margin-bottom: 8px; background: var(--paper-2); color: var(--ink-2); }
.dl-urgent .dl-when { background: var(--off-bg); color: var(--off); } .dl-soon .dl-when { background: var(--hold-bg); color: var(--hold); } .dl-later .dl-when { background: var(--ok-bg); color: var(--ok); }
.dl-body h3 { font-size: 20px; margin-bottom: 6px; }
.dl-body p { margin: 0 0 6px; color: var(--ink-2); font-size: 15.5px; }
.dl-cite { font-size: 13px !important; color: var(--muted) !important; }
@media (max-width: 760px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-band .btn { width: 100%; white-space: normal; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dl-form { padding: 18px 16px; }
  .lang-menu { position: fixed; left: 16px; right: 16px; top: 120px; width: auto; }
}
@media print {
  .dl-form, .callout, .page-head, .dl-actions { display: none !important; }
  .dl-item { break-inside: avoid; border: 1px solid #999; }
}
.rail-tool { display: block; position: static; margin-top: 16px; padding: 16px 18px; background: var(--deep); color: var(--on-deep); border-radius: var(--r); text-decoration: none; }
.rail-tool:hover { background: var(--deep-2); color: #fff; }
.rail-tool .rail-h { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }
.rail-tool strong { display: block; font: 600 18px/1.25 var(--serif); color: #fff; margin: 2px 0 6px; }
.rail-tool span:last-child { font-size: 13.5px; color: var(--on-deep-2); line-height: 1.45; }

/* Tap targets on phones: at least 24px tall (WCAG 2.2 target size), found by tools/menu_qc.mjs 2026-10-06 */
@media (max-width: 767px) {
  .topbar a { min-height: 32px; padding: 0 4px; }
  .chip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 0; margin-bottom: 6px; }
  .byline a { display: inline-flex; align-items: center; min-height: 26px; }
  .more-link { min-height: 32px; padding: 6px 0; }
  .tracker td a { display: inline-flex; align-items: center; min-height: 28px; }
  .arch-month .chip { min-height: 28px; }
}

/* ---------- menu QC fixes (2026-10-06) ---------- */
/* text pages, archive, search and calculator start on the same left edge as their header */
.page-body, .arch, .search-wrap, .page-body.wide { margin-left: 0; margin-right: auto; }
.listing > .wrap.page-body, .listing > .wrap.arch, .listing > .wrap.search-wrap { max-width: var(--wrap); }
.listing > .wrap.page-body > *, .listing > .wrap.arch > *, .listing > .wrap.search-wrap > * { max-width: 760px; }
.listing > .wrap.page-body.wide > * { max-width: 1040px; }
.listing > .wrap.arch > * { max-width: 900px; }
.listing > .wrap.search-wrap > * { max-width: 820px; }
/* post photo sits in the article column */
.post-hero { margin: 0 0 32px; max-width: none; }
.post-hero img, .post-hero video { width: 100%; height: auto; border-radius: var(--r); display: block; }
.post-head + .wrap.post-grid { margin-top: 8px; }
.post-rail .rail-author { margin-top: 0; }
/* tracker cards on phones: every line starts at the same edge */
@media (max-width: 640px) {
  table.data.tracker th, table.data.tracker td { padding-left: 0; padding-right: 0; }
  .post-hero { margin-bottom: 24px; }
  .post-hero img { border-radius: var(--r); }
}
/* phone header: search lives in the menu, so the name has room */
.nav-phone { display: none; }
@media (max-width: 900px) { .nav-phone { display: list-item; } .topics-nav .nav-phone a { display: inline-flex; align-items: center; gap: 8px; } }
@media (max-width: 480px) {
  .mast-tools a.icon-btn[href="search.html"] { display: none; }
  .brand-name { font-size: 20px; }
}

/* ---------- even rows (2026-10-06): bylines, links and card bottoms line up across every row ---------- */
.grid-3, .topic-list, .topic-grid, .authors-grid, .tk-grid { align-items: stretch; }
.card { height: 100%; }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-body > .byline { margin-top: auto; padding-top: 6px; }
.card-lg .card-body > .byline { margin-top: 0; }
.topic-card { height: 100%; }
.tc-body { display: flex; flex-direction: column; flex: 1; }
.tc-body ul { margin-top: auto; }
.auth { height: 100%; }
.auth .auth-s { margin-bottom: 0; }
.latest-row li a { height: 100%; }
.latest-row li a { align-content: start; grid-template-rows: auto auto 1fr; }
.latest-row li a time { align-self: end; }

/* ---------- Immigration Law Insider identity (Option A, 2026-10-09) ---------- */
.brand-name em { color: var(--accent); }
.foot .brand-name em { color: var(--gold); }
@media (max-width: 480px) { .brand-name { font-size: 18px; } .mark { width: 34px; height: 34px; } }
@media (max-width: 360px) { .brand-name { font-size: 16.5px; } .brand { gap: 8px; } }
.courtroom { padding: 44px 0; background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.courtroom .sec-h span { display: block; }
.series { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--deep); background: var(--accent-soft); padding: 6px 9px; border-radius: 4px; margin: 0 0 12px 8px; vertical-align: top; }
.series { min-height: 28px; display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- best-in-class features (2026-10-09) ---------- */
.start { padding: 40px 0 8px; }
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.st-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--accent); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.st-tile:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.st-tile strong { font: 600 20px/1.2 var(--serif); }
.st-tile span { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.cal-strip { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.cal-h { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.cal { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cal-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.cal-i { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; }
.cal-i time { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--deep); color: var(--on-deep); border-radius: 8px; padding: 8px 4px; align-self: start; }
.cal-i time b { font: 600 18px/1.1 var(--serif); }
.cal-i time span { font-size: 11px; color: var(--on-deep-2); }
.cal-i h3 { font-size: 17px; margin: 0 0 4px; }
.cal-i p { margin: 0 0 4px; font-size: 14.5px; color: var(--ink-2); }
.cal-when { font: 700 11px/1 var(--sans) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 6px !important; }
.cal-src { font-size: 13px !important; color: var(--muted) !important; overflow-wrap: anywhere; }
.cal-more { display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px/1 var(--sans); color: var(--accent); text-decoration: none; min-height: 28px; }
.cal-sec { padding-top: 8px; }
.cal-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.wait { list-style: none; margin: 0; padding: 0; }
.wait li { padding: 14px 0; border-bottom: 1px solid var(--rule-2); }
.wait h3 { font-size: 17px; margin-bottom: 4px; }
.wait p { margin: 0 0 4px; font-size: 14.5px; color: var(--ink-2); }
.log { list-style: none; margin: 0; padding: 0; max-width: 900px; }
.log li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule-2); }
.log time { font: 600 14px/1.4 var(--sans); color: var(--accent); }
.log h3 { font-size: 18px; margin-bottom: 4px; }
.log p { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; }
.log a { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); text-decoration: none; min-height: 28px; }
.gloss-wrap, .ans-wrap, .res-wrap { max-width: 900px; }
.g-tools { position: sticky; top: 112px; z-index: 5; background: var(--paper); padding: 10px 0 12px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.g-tools input { width: 100%; font: 400 17px/1.2 var(--sans); padding: 13px 16px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--ink); }
.g-tools input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.g-idx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.g-idx a { display: inline-grid; place-items: center; min-width: 30px; min-height: 30px; border-radius: 6px; font: 700 13px/1 var(--sans); color: var(--ink); text-decoration: none; border: 1px solid var(--rule); background: var(--card); }
.g-idx a:hover { border-color: var(--ink); }
.g-letter { font-size: 30px; margin: 26px 0 6px; padding-top: 10px; border-top: 3px solid var(--deep); scroll-margin-top: 220px; }
.gl { margin: 0; }
.g-item { padding: 14px 0; border-bottom: 1px solid var(--rule-2); }
.g-item dt { font: 600 19px/1.3 var(--serif); margin-bottom: 4px; }
.g-item dd { margin: 0; }
.g-item dd p { margin: 0 0 4px; color: var(--ink-2); }
.g-src { font-size: 13.5px; color: var(--muted) !important; }
.ans-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ans-jump a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); font: 600 14px/1 var(--sans); color: var(--ink); text-decoration: none; }
.ans-jump a:hover { border-color: var(--ink); }
.ans-group { margin-bottom: 30px; scroll-margin-top: 130px; }
.ans-group h2 { font-size: 26px; padding-top: 12px; border-top: 3px solid var(--deep); display: flex; justify-content: space-between; align-items: baseline; }
.ans-group h2 span { font: 600 14px/1 var(--sans); color: var(--muted); }
.ans-group details { border-bottom: 1px solid var(--rule-2); }
.ans-group summary { cursor: pointer; list-style: none; padding: 15px 34px 15px 0; font: 600 18px/1.35 var(--serif); position: relative; }
.ans-group summary::-webkit-details-marker { display: none; }
.ans-group summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font: 400 26px/1 var(--sans); color: var(--accent); }
.ans-group details[open] summary::after { content: "\2212"; }
.ans-group details p { margin: 0 0 10px; color: var(--ink-2); }
.ans-src { font-size: 13.5px; color: var(--muted) !important; }
.res-group { margin-bottom: 30px; }
.res-group h2 { font-size: 26px; padding-top: 12px; border-top: 3px solid var(--deep); }
.res { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.res li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; }
.res a { display: inline-flex; align-items: center; gap: 6px; font: 600 17px/1.3 var(--serif); color: var(--ink); text-decoration: none; min-height: 28px; }
.res a:hover { color: var(--accent); }
.res p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.upd-note { background: var(--accent-soft); border: 1px solid #E2D3B0; border-radius: var(--r); padding: 12px 16px; font-size: 15px; margin: 0 0 18px; }
.share { margin-top: 32px; padding: 18px 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share .rail-h { width: 100%; margin: 0 0 4px; }
.sh { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper); font: 600 14.5px/1 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.sh:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 1060px) { .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cal-mini { grid-template-columns: minmax(0, 1fr); } .cal-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .start-grid, .res { grid-template-columns: minmax(0, 1fr); } .log li { grid-template-columns: minmax(0, 1fr); gap: 4px; } .g-tools { top: 64px; } }
@media print { .share, .start, .g-tools { display: none !important; } }

/* phone masthead: the longer name stacks on two lines (2026-10-09) */
@media (max-width: 520px) {
  .masthead .brand-name { font-size: 19px; line-height: 1.02; }
  .masthead .brand-name em { display: block; }
  .masthead .mark { width: 38px; height: 38px; }
}
@media (max-width: 360px) { .masthead .brand-name { font-size: 17px; } .masthead .mark { width: 34px; height: 34px; } .masthead .brand { gap: 8px; } }

/* ---------- Around the web (aggregated headlines, 2026-10-29) ---------- */
.aroundweb { padding: 44px 0; }
.agg { list-style: none; margin: 0; padding: 0; }
.agg-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.agg-i { padding: 14px 0 16px; border-top: 1px solid var(--rule); }
.agg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font: 600 12.5px/1.3 var(--sans); color: var(--muted); }
.agg-k { font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--deep); background: var(--accent-soft); padding: 5px 7px; border-radius: 4px; }
.agg-t { display: block; font: 600 18px/1.3 var(--serif); color: var(--ink); text-decoration: none; min-height: 28px; }
.agg-t:hover { color: var(--accent); text-decoration: underline; }
.agg-t::after { content: " \2197"; font: 400 14px/1 var(--sans); color: var(--muted); }
.agg-wrap { max-width: 900px; }
.agg-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.agg-f { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 14px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--card); font: 600 14px/1 var(--sans); color: var(--ink); cursor: pointer; }
.agg-f span { color: var(--muted); font-weight: 500; }
.agg-f[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.agg-f[aria-pressed="true"] span { color: var(--on-deep-2); }
.agg-wrap .agg-i { display: block; }
.agg-i[hidden] { display: none; }
@media (max-width: 1060px) { .agg-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .agg-home { grid-template-columns: minmax(0, 1fr); } }

/* laptop widths: the full menu does not fit on one line, so it wraps instead of hiding items off the edge (2026-11-03) */
@media (min-width: 901px) and (max-width: 1240px) {
  .topics-nav ul { flex-wrap: wrap; overflow: visible; row-gap: 0; }
  [id] { scroll-margin-top: 180px; }
  .g-letter { scroll-margin-top: 260px; }
  .rail-box { top: 175px; }
  .g-tools { top: 157px; }
}

/* More on this from other sources: posts and topic pages (2026-11-03) */
.elsewhere { margin: 40px 0 8px; padding-top: 22px; border-top: 3px solid var(--deep); }
.elsewhere h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 6px; }
.elsewhere .agg-t { font-size: 17px; }
.elsewhere .agg-note { margin-top: 12px; }
.topic-else { max-width: 900px; margin: 8px 0 32px; }

/* contact form (2026-11-05) */
.lead-form { margin: 0 0 2em; padding: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); font-family: var(--sans); }
.lf-intro { margin: 0 0 16px; color: var(--muted); }
.lf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font: 600 14px/1.3 var(--sans); color: var(--ink); }
.lead-form input, .lead-form select, .lead-form textarea { font: 400 16px/1.4 var(--sans); padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px; width: 100%; box-sizing: border-box; }
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form [aria-invalid="true"] { border-color: #A3332A; }
.lf-wide { margin-top: 14px; }
.lf-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; margin: 14px 0 18px; font-weight: 400 !important; }
.lf-check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.lf-msg.lf-ok { background: #E6F2EA; color: #1E5A35; }
.lf-msg.lf-err { background: #F8E7E5; color: #8A2A22; }
@media (max-width: 640px) { .lf-grid { grid-template-columns: minmax(0, 1fr); } .lead-form { padding: 18px 16px; } }

/* videos from other sources: links only (2026-11-05) */
.watch { margin-top: 26px; }
.watch h3 { font: 600 19px/1.3 var(--serif); margin: 0 0 8px; }
.vids { list-style: none; margin: 0; padding: 0; }
.vid-i { border-top: 1px solid var(--rule); }
.vid-t { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--ink); min-height: 44px; }
.vid-t:hover .vid-title { color: var(--accent); text-decoration: underline; }
.vid-play { flex: none; width: 34px; height: 24px; border-radius: 6px; background: var(--deep); position: relative; margin-top: 2px; }
.vid-play::after { content: ""; position: absolute; left: 13px; top: 6px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.vid-title { display: block; font: 600 16px/1.35 var(--sans); }
.vid-meta { display: block; margin-top: 3px; font: 500 13px/1.3 var(--sans); color: var(--muted); }
.vid-h { font-family: var(--serif); font-size: 28px; margin: 44px 0 6px; padding-top: 22px; border-top: 3px solid var(--deep); }
.vid-h3 { font: 600 20px/1.3 var(--serif); margin: 28px 0 6px; }
.vids-all { columns: 2; column-gap: 32px; }
.vids-all .vid-i { break-inside: avoid; }
@media (max-width: 760px) { .vids-all { columns: 1; } }

/* Spanish pages (2026-11-05) */
.lang-alt { margin: 14px 0 0; font: 600 15px/1.3 var(--sans); }
.lang-alt a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--card); color: var(--deep); text-decoration: none; }
.lang-alt a:hover { border-color: var(--deep); }
.es-list { list-style: none; margin: 0; padding: 0; }
.es-list li { border-top: 1px solid var(--rule); }
.es-list li a { display: block; padding: 12px 0; font: 600 17px/1.35 var(--serif); color: var(--ink); text-decoration: none; min-height: 28px; }
.es-list li a:hover { color: var(--accent); text-decoration: underline; }
.es-big .es-t { display: block; font: 600 21px/1.3 var(--serif); }
.es-big .es-d { display: block; margin-top: 4px; font: 400 15px/1.5 var(--sans); color: var(--muted); }
.lang-menu .lang-es { display: block; margin: 0 0 8px; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--deep); font: 600 14px/1.3 var(--sans); text-decoration: none; }
.lang-menu .lang-es:hover { text-decoration: underline; }
