/* AOP -- ported from client reference rendering "aop-home-v3_1" (15 Sept 2026). */

:root {
  --paper: #F6F2EA;
  --card: #FFFFFF;
  --ink: #121212;
  --navy: #002B5C;
  --link: #1A4E8A;
  --grey: #5A5A5A;
  --hair: #E2E2E2;
  --hair-2: #D9D3C8; /* hairline on ivory */
  --head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
  --measure: 36em;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body { font-family: var(--body); font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--paper); }

a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.caps-link { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--navy); }
.caps-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn { display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border: 1.5px solid var(--navy); color: var(--navy); background: transparent; cursor: pointer; line-height: 1; }
.btn.fill { background: var(--navy); color: #fff; }
.btn:hover { background: var(--navy); color: #fff; }
.btn.fill:hover { background: #00203f; border-color: #00203f; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; color: var(--ink); }
h2 { font-size: 30px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; }
p.measure { max-width: var(--measure); }

.strip { padding: 72px 0; border-top: 1px solid var(--hair-2); }
.strip:first-of-type { border-top: 0; padding-top: 0; }

/* Present in the DOM for search indexing (see layouts/_default/single.html's
   slug span), not meant to be seen or read aloud -- it's a duplicate of the
   title's words, not new content. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---- masthead: row 1 = wordmark + Latest line, row 2 = nav + search ---- */

.masthead { padding-top: 26px; border-bottom: 1px solid var(--hair-2); }
.mast-top { display: flex; align-items: baseline; gap: 36px; flex-wrap: wrap; }
.nameplate { font-family: var(--sans); font-size: 32px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); line-height: 1; white-space: nowrap; }

.latest { flex: 1 1 420px; min-width: 0; font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--ink); }
.latest .k { color: var(--grey); }
.latest time { font-weight: 600; }
.latest a { color: var(--link); text-decoration: none; }
.latest a:hover { text-decoration: underline; text-underline-offset: 3px; }
.latest .item { white-space: nowrap; } /* keeps a label and its value together when the line wraps */

.mast-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 22px; padding-bottom: 16px; }
.nav { display: flex; gap: 32px; }
.nav a { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--navy); }

.search-wrap { position: relative; width: 360px; max-width: 100%; }
.search { display: flex; width: 100%; border: 1px solid var(--hair-2); background: var(--card); }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 14px;
  color: var(--ink);
}
.search-field input::placeholder { color: #8a8a8a; }
.search-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 15px;
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
}
.search-ghost__typed { visibility: hidden; }
.search-ghost__suffix { color: #8a8a8a; }
.search button { border: 0; border-left: 1px solid var(--hair-2); background: transparent; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 0 16px; color: var(--navy); cursor: pointer; }
.search button:hover { background: var(--navy); color: #fff; }

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--card);
  border: 1px solid var(--hair-2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  z-index: 20;
  max-height: 60vh;
  overflow-y: auto;
}
.search-hit { display: block; padding: 10px 14px; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.search-hit:last-child { border-bottom: none; }
.search-hit:hover { background: var(--paper); }
.search-hit__title { display: block; font-family: var(--head); font-weight: 600; font-size: 15px; }
.search-hit__excerpt { display: block; font-family: var(--sans); font-size: 13px; color: var(--grey); margin-top: 2px; }
.search-hit__excerpt mark { background: none; color: var(--navy); font-weight: 600; }
.search-empty { margin: 0; padding: 10px 14px; font-family: var(--sans); font-size: 13px; color: var(--grey); }

/* ---- statement (hero) ---- */

.hero { padding: 80px 0 72px; background: var(--card); }
.hero h1 { font-size: 46px; line-height: 1.12; max-width: 21ch; letter-spacing: -.005em; }
.hero .deck { font-size: 20px; line-height: 1.55; max-width: 34em; margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---- two kinds of pages ---- */

.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.card { background: var(--card); border: 1px solid var(--hair); border-top: 3px solid var(--navy); padding: 28px 28px 26px; }
.card h3 { margin-bottom: 8px; }
.card > p { font-size: 17px; line-height: 1.6; color: var(--ink); }
.items { list-style: none; margin-top: 22px; border-top: 1px solid var(--hair); }
.items li { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.items a { font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.items a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.items .note { display: block; font-size: 15.5px; line-height: 1.5; color: var(--grey); margin-top: 3px; }
.card .caps-link { display: inline-block; margin-top: 18px; }

/* ---- what changed (heartbeat) ---- */

.heartbeat h2 { padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.rows { list-style: none; }
.row { display: grid; grid-template-columns: 172px 1fr 130px; gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--hair-2); }
.row .label { padding-top: 6px; }
.row h3 { font-size: 20px; line-height: 1.3; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.row .what { font-size: 16px; line-height: 1.55; color: var(--grey); margin-top: 4px; max-width: 40em; }
.row time { font-family: var(--sans); font-size: 15px; color: var(--grey); text-align: right; padding-top: 4px; }
.heartbeat .caps-link { display: inline-block; margin-top: 24px; }

/* ---- refresh the law ---- */

.refresh p.lead { font-size: 21px; line-height: 1.6; max-width: 32em; margin-top: 18px; }
.refresh p.see { margin-top: 18px; font-size: 17px; }
.refresh p.see a { font-weight: 700; color: var(--navy); }

/* ---- how the record is made ---- */

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; max-width: 960px; }
.method-grid > div { border-top: 1px solid var(--hair-2); padding-top: 18px; }
.method-grid h3 { font-size: 19px; margin-bottom: 8px; }
.method-grid p { font-size: 16.5px; line-height: 1.6; }
.method .caps-link { display: inline-block; margin-top: 28px; }

/* ---- alerts ---- */

.alerts .inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.alerts p { font-size: 17px; line-height: 1.6; margin-top: 10px; color: var(--ink); }
.alerts form { display: flex; border: 1px solid var(--hair-2); background: var(--card); }
.alerts input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--sans); font-size: 16px; padding: 14px 16px; color: var(--ink); }
.alerts button { border: 0; background: var(--navy); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 0 22px; cursor: pointer; }
.alerts button:hover { background: #00203f; }
.alerts .fine { font-family: var(--sans); font-size: 13px; color: var(--grey); margin-top: 10px; }
.alerts .fine a { color: var(--grey); }

/* ---- rails ---- */

.rails { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rail { background: var(--card); border: 1px solid var(--hair); padding: 26px 28px; }
.rail p { font-size: 17.5px; line-height: 1.6; }
.rail p b { font-family: var(--head); }
.rail .links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; }

/* ---- footer ---- */

footer { background: var(--navy); color: #d6dde8; font-family: var(--sans); font-size: 15px; line-height: 1.6; padding: 52px 0 32px; margin-top: 8px; }
.f-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
footer .fname { font-size: 18px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; text-decoration: none; }
footer p { margin-top: 10px; max-width: 32em; }
footer ul { list-style: none; }
footer li { margin: 6px 0; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-base { border-top: 1px solid rgba(255,255,255,.18); margin-top: 40px; padding-top: 20px; font-size: 13.5px; color: #b9c3d3; }
.f-base p { max-width: none; margin-top: 6px; }
.f-base a { color: #d6dde8; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .kinds, .rails, .method-grid, .alerts .inner { grid-template-columns: 1fr; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row time { text-align: left; padding-top: 0; }
  .mast-bottom { flex-direction: column; align-items: stretch; gap: 16px; }
  .search-wrap { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 1.65; }
  :root { --gutter: 16px; }
  .strip { padding: 48px 0; }
  .masthead { padding-top: 18px; }
  .mast-top { gap: 12px; }
  .nameplate { font-size: 24px; letter-spacing: .11em; }
  /* On a phone the one-line form is unreadable, so the three parts break onto their own lines */
  .latest { flex: 1 1 100%; font-size: 13px; }
  .latest .item { display: block; white-space: normal; }
  .latest .stop { display: none; }
  .mast-bottom { margin-top: 16px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 32px; }
  .hero .deck { font-size: 18px; }
  h2 { font-size: 26px; }
  .f-cols { grid-template-columns: 1fr; gap: 28px; }
}
@media print {
  .search-wrap, .hero .actions, .alerts, .nav { display: none; }
  body { background: #fff; font-size: 11pt; }
  .card, .rail { border-color: #999; }
  footer { background: none; color: #000; border-top: 1px solid #000; }
  footer a { color: #000; }
}

/* ---- page header (single) ---- */

.page-header { margin-bottom: 2rem; }

.page-header__kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.page-header h1 {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
}

.page-header__byline {
  color: var(--grey);
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-top: 0.6rem;
  line-height: 1.6;
}

/* ---- body copy ---- */

.page-body { max-width: var(--measure); hyphens: auto; }
.page-body :is(p, ul, ol) { margin: 0 0 1.2em; }
.page-body h2 { font-size: 1.3rem; margin-top: 2em; }
.page-body h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5em; }
.page-body :is(ul, ol) { padding-left: 1.4em; }
.page-body blockquote {
  margin: 1.4em 0 1.4em 0.2em;
  padding-left: 1em;
  border-left: 1px solid var(--hair-2);
  color: var(--grey);
}
.page-body code { font-family: monospace; font-size: 0.85em; }
.page-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 0.95em; }
.page-body :is(th, td) { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--hair-2); }
.page-body th { font-weight: 600; }
/* Key/value tables written with a blank header row (| | |) -- hide the empty header. */
.page-body thead:not(:has(th:not(:empty))) { display: none; }
.page-body hr { border: 0; border-top: 1px solid var(--hair-2); margin: 2em 0; }
/* Email addresses never hyphenate or split mid-address on narrow screens. */
.page-body a.email { hyphens: none; white-space: nowrap; }

/* ---- cross references, presented as plain notes ---- */

.xref {
  margin-top: 3rem;
  max-width: var(--measure);
}

.xref h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.6rem;
}

.xref ul { list-style: none; margin: 0 0 1.5em; padding: 0; }
.xref li { margin-bottom: 0.3em; }

/* ---- table of contents (list / index) ---- */

.toc-section { margin-bottom: 2.5rem; }

.toc-section h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}

.toc-row {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hair-2);
}

.toc-row:last-child { border-bottom: none; }

.toc-row a {
  text-decoration: none;
  color: var(--ink);
}
.toc-row a:hover { color: var(--link); }

.toc-row__note {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 0.15rem;
}

.empty-note {
  font-family: var(--sans);
  color: var(--grey);
}

/* ---- case page (layouts/cases/single.html) -- compare finished/novartis-mad.html ---- */

.case-page { padding: 56px 0 24px; }
.case-measure { max-width: 720px; }

.case-kicker { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); text-decoration: none; }

.case-page h1 { font-size: 33px; line-height: 1.25; margin: 14px 0 16px; }

.case-courtline, .doctrine-currency { font-family: var(--sans); font-size: 13px; color: var(--grey); letter-spacing: .02em; margin-bottom: 16px; }
.sep { padding: 0 7px; color: #c8c8c8; }

.case-statusrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.case-pill { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border: 1.5px solid var(--navy); color: var(--navy); padding: 5px 12px; border-radius: 2px; }
.case-pill.adverse { background: var(--navy); color: #fff; }
.case-statusnote { font-family: var(--sans); font-size: 13px; color: var(--grey); font-style: italic; }

.case-headnote { font-size: 21px; line-height: 1.6; margin-bottom: 22px; }

.case-reviewed { font-family: var(--sans); font-size: 13px; color: var(--navy); font-weight: 600; margin-bottom: 26px; }
.case-reviewed span { color: var(--grey); font-weight: 400; }

.case-citeblock { border: 1px solid var(--hair); border-left: 3px solid var(--navy); padding: 18px 22px; margin-bottom: 40px; }
.case-block-label { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.case-citeblock .cite { font-size: 15.5px; font-style: italic; margin-bottom: 10px; }
.case-citeactions { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.case-mini { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--navy); color: var(--navy); background: none; padding: 8px 14px; text-decoration: none; cursor: pointer; }
.case-mini:hover { background: var(--navy); color: #fff; }
.case-mini[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.case-mini[aria-disabled="true"]:hover { background: none; color: var(--navy); }

.case-body h2 { font-size: 24px; margin: 40px 0 16px; }
.case-body p { margin-bottom: 18px; }
.case-body a { text-decoration: underline; text-underline-offset: 3px; }
.case-body ol { margin: 0 0 18px 24px; }
.case-body ol li { margin-bottom: 16px; padding-left: 6px; }
.case-body ul { margin: 0 0 18px 24px; }
.case-body ul li { margin-bottom: 10px; }
.case-body .pararef { font-family: var(--sans); font-size: 12.5px; color: var(--grey); font-style: italic; }

.case-sec { font-size: 24px; margin: 48px 0 16px; }

.case-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.case-chip { font-family: var(--sans); font-size: 12.5px; color: var(--navy); border: 1px solid var(--hair); padding: 4px 10px; text-decoration: none; border-radius: 2px; }
.case-chip:hover { border-color: var(--navy); }
.case-chip.topic { color: var(--grey); }

.case-list .entry { border-top: 1px solid var(--hair); padding: 16px 0; }
.case-list .entry:last-child { border-bottom: 1px solid var(--hair); }
.case-list h3 { font-size: 19px; margin: 4px 0 4px; }
.case-list h3 a { color: var(--ink); text-decoration: none; }
.case-list .q { font-size: 15.5px; font-style: italic; color: var(--grey); }
.case-list .sub { font-family: var(--sans); font-size: 12.5px; color: var(--grey); }

.case-attribution { border-top: 1px solid var(--hair); margin-top: 52px; padding: 22px 0 8px; }
.case-attribution p { font-family: var(--sans); font-size: 13px; color: var(--grey); margin-bottom: 6px; }

/* Doctrine pages only (layouts/doctrine/single.html): the question+headnote
   answer block (B-92 row 3) and numbered-paragraph anchors (B-92 row 6 /
   B-90 step 7). Everything else on a doctrine page reuses the .case-*
   classes above -- see that template's own header comment. */
.doctrine-answer { border-left: 3px solid var(--navy); padding: 4px 0 4px 20px; margin-bottom: 24px; }
.doctrine-answer .case-headnote { margin-bottom: 0; }
.doctrine-question { font-size: 19px; font-style: italic; color: var(--grey); margin-bottom: 14px; }

.case-body p.para { position: relative; }
.case-body .pnum { position: absolute; left: -52px; width: 40px; text-align: right; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; top: 3px; }
.case-body .pnum:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .case-body .pnum { position: static; display: inline-block; width: auto; margin-right: 8px; }
}

@media (max-width: 640px) {
  .case-page { padding: 40px 0 12px; }
  .case-page h1 { font-size: 26px; }
}
