/* Broadsheet layer: the structure shared by every newspaper-style edition.
   A theme imports this file, then sets the tokens below (paper, ink, rules, typefaces).
   Everything here is original layout in the British broadsheet tradition: centred masthead,
   ears, section bar, column rules, serif headlines and body, small-caps labels. No paper's
   name, logo, crest, masthead lettering or proprietary typeface is used. */

:root {
  --head: Georgia, "Times New Roman", serif;   /* headlines */
  --body: Georgia, "Times New Roman", serif;   /* reading text */
  --label: "Helvetica Neue", Arial, sans-serif;  /* kickers, ears, data */
  --mast: var(--head);                           /* masthead lettering */
  --mast-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.6rem);
  --mast-weight: 700; --mast-track: -.01em; --mast-case: none;
  --head-weight: 700; --head-track: -.015em;
  --bar: var(--ink); --bar-ink: var(--paper);     /* section bar under the masthead */
  --colrule: var(--hair);
  --wide: 76rem; --measure: 38rem;
}

body { font-family: var(--body); font-size: 18px; line-height: 1.55; font-feature-settings: "kern", "liga", "onum"; }
h1, h2, .brand, .lede { font-family: var(--head); }
.kicker, .meta, .label, .facts-grid dt, h3, .top nav, .top .aside, .ears, .byline, button, .button, .badge, .foot,
.cases .meta, .opara .n, .para, table th { font-family: var(--label); }
.facts-grid dd, .price { font-family: var(--head); font-feature-settings: "lnum", "tnum"; }

/* ---------- masthead ---------- */
.top { display: block; text-align: center; max-width: var(--wide); padding: 10px 16px 0; border-bottom: 0; }
.top .ears { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: baseline; margin: 0;
             padding: 4px 0 8px; border-bottom: 1px solid var(--rule); font-size: .74rem; letter-spacing: .06em;
             text-transform: uppercase; color: var(--ink-2); }
.top .ear-l { text-align: left; } .top .ear-r { text-align: right; } .top .ear-c { font-weight: 700; color: var(--accent); }
.top .brand { display: block; margin: 14px 0 0; font-family: var(--mast); font-size: var(--mast-size); font-weight: var(--mast-weight);
              letter-spacing: var(--mast-track); text-transform: var(--mast-case); line-height: 1; white-space: normal; color: var(--ink); }
.top .brand .mark { display: none; }
.top .motto { display: block; margin: 8px 0 12px; font-family: var(--body); font-style: italic; font-size: .98rem; color: var(--ink-2); }
/* Section bar: nav and the account links share one bar as a two-column grid, so any number of
   add-on items (Circles, Reviews, Law Jobs, Help...) wrap inside the bar instead of colliding. */
.top { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0; align-items: stretch; }
.top > .ears, .top > .brand, .top > .motto, .top > .mark { grid-column: 1 / -1; }
.top > .brand { justify-self: center; }
.top nav, .top .aside { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; background: var(--bar);
  border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.top nav { grid-column: 1; justify-content: center; padding-left: 8px; }
.top .aside { grid-column: 2; justify-content: flex-end; padding-right: 8px; white-space: nowrap; }
.top nav a, .top .aside a { color: var(--bar-ink); padding: 9px 14px; border-bottom: 0; white-space: nowrap; }
.top nav a + a, .top .aside a:first-child { border-left: 1px solid color-mix(in srgb, var(--bar-ink) 25%, transparent); }
.top nav a:hover, .top .aside a:hover { color: var(--bar-ink); text-decoration: underline; text-underline-offset: .3em; border-bottom-color: transparent; }
.top nav a[aria-current="page"], .top .aside a[aria-current="page"] { color: var(--bar-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; border-bottom-color: transparent; }
.top .aside .cta { color: var(--bar-ink); }
@media (max-width: 1100px) { .top nav a, .top .aside a { padding: 9px 10px; } .top nav, .top .aside { letter-spacing: .06em; } }
@media (max-width: 760px) {
  .top .ears { grid-template-columns: 1fr 1fr; } .top .ear-c { display: none; }
  .top nav { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top .aside { grid-column: 1 / -1; justify-content: center; background: transparent; border: 0; padding: 4px 0; }
  .top .aside a, .top .aside .cta { color: var(--ink); border-left: 0 !important; }
}

/* ---------- type ---------- */
h1 { font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.05;
     font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-weight: var(--head-weight); font-size: 1.35rem; letter-spacing: -.005em; border-top: 2px solid var(--rule);
     padding-top: 8px; }
main > section > h2:first-child::before, main > h2::before { content: none; }
h3 { font-size: .74rem; letter-spacing: .12em; color: var(--accent); }
.kicker { color: var(--accent); letter-spacing: .14em; } .kicker b { color: var(--accent); }
.lede { font-size: 1.28rem; line-height: 1.4; font-weight: 400; color: var(--ink-2); max-width: 40rem; }
.byline { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 16px;
          padding: 8px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
a { text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
a:hover { text-decoration-color: var(--accent); }
.button, button { border-radius: 0; }

/* drop cap on the first paragraph of a front-page story or a case brief */
.dropcap::first-letter, .freebrief h3:first-of-type + p::first-letter, .summary h3:first-of-type + p::first-letter {
  float: left; font-family: var(--head); font-weight: var(--head-weight); font-size: 3.6em; line-height: .82;
  margin: .06em .08em 0 0; color: var(--accent); }

/* ---------- article pages ---------- */
.facts-grid { border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts-grid div { border-bottom: 0; }
@media (min-width: 761px) {
  main > .facts-grid div { border-right: 1px solid var(--colrule); padding-left: 12px; }
  main > .facts-grid div:first-child { padding-left: 0; } main > .facts-grid div:last-child { border-right: 0; } }
.facts-grid dd { font-size: 1.12rem; }
.opara { font-size: .98rem; }
.gate { border: 0; border-top: 4px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0; background: transparent; }
.gate .price { font-size: 2rem; }

/* ---------- front page ---------- */
main:has(> .front) { grid-template-columns: minmax(0, 1fr); max-width: var(--wide); }
main:has(> .front) > * { grid-column: 1; }
.front { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; padding-top: 8px; }
@media (min-width: 980px) {
  .front { grid-template-columns: minmax(0, 2.3fr) minmax(16rem, 1fr); }
  .front .sidecol { border-left: 1px solid var(--colrule); padding-left: 28px; }
}
.front .lead h1 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.1rem); margin-top: 4px; }
.newscols { columns: 2 15rem; column-gap: 32px; column-rule: 1px solid var(--colrule); }
.newscols h3 { break-after: avoid; margin-top: 0; }
.newscols p { text-align: justify; hyphens: auto; }
.howto h2 { margin-top: 28px; }
.sidecol h2:first-child { margin-top: 0; }
.sidecol .box { background: var(--tint); padding: 4px 16px 12px; margin-bottom: 24px; }
.sidecol .box h2 { border-top: 0; }
.sidecol .facts-grid { grid-template-columns: 1fr 1fr; border: 0; }
.sidecol .facts-grid div { border-right: 0; border-top: 1px solid var(--colrule); padding-left: 0; }
.sidecol .facts-grid dd { font-size: 1.6rem; }
.sidecol .cases li { display: block; padding: 8px 0; border-bottom: 1px solid var(--colrule); }
.sidecol .cases li a { font-family: var(--head); font-size: 1.08rem; display: block; }
.outline-glance .index-cols { columns: 4 13rem; column-gap: 28px; column-rule: 1px solid var(--colrule); }
.outline-glance .unit { break-inside: avoid; margin-bottom: 18px; }
.outline-glance h3 { margin-top: 0; }
.cases li a { font-family: var(--head); font-weight: var(--head-weight); }

.foot { border-top: 3px double var(--rule); font-family: var(--label); }

/* front-page extras used by subject front pages */
.sidecol .cases .gist { display: block; font-family: var(--body); font-size: .9rem; color: var(--ink-2); margin-top: 2px; }
.notice { border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 20px 0; }
.notice h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 1.15rem; }
.notice ul { margin: 0; padding-left: 1.1rem; } .notice li { margin: 4px 0; }
.pullquote { margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-family: var(--body); font-style: italic; font-size: 1.15rem; line-height: 1.45; border-left: 0; }
.pullquote cite { display: block; margin-top: 8px; font-style: normal; font-size: .85rem; color: var(--muted); font-variant: small-caps; }
.sample-q { background: var(--tint); padding: 14px 16px; margin: 16px 0; }
.sample-q .kicker { margin-bottom: 4px; }

/* a subject's extra index strip under the section bar (e.g. International Business Tax code sections) */
.top { grid-auto-flow: row dense; }
.top .codeindex { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 16px;
  padding: 8px 0; border-bottom: 1px solid var(--rule); font-family: var(--label); font-size: .86rem; }
.top .codeindex-head { margin: 0; font-variant: small-caps; text-transform: lowercase; letter-spacing: .08em; color: var(--muted); }
.top .codeindex ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; list-style: none; margin: 0; padding: 0; }
.top .codeindex a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.top .codeindex a span { margin-right: .3em; font-weight: 700; }
.top .codeindex a:hover, .top .codeindex a[aria-current="page"] { text-decoration: underline; }
