/* law.pr — "Case File" ---------------------------------------------------
   The product is evidence, so the page is built like one: paper ground,
   ruled ledger lines, numbered exhibits, and a monospaced citation under
   every claim. Nothing is asserted without its source.
   ---------------------------------------------------------------------- */

:root {
  --paper:    #f7f4ee;
  --paper-2:  #efeae0;
  --ink:      #16150f;
  --ink-2:    #3d3a30;
  --muted:    #6b6559;
  --rule:     #d9d2c4;
  --rule-2:   #c4bba8;
  --oxblood:  #7a2b2b;
  --oxblood-2:#5e1f1f;

  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", ui-sans-serif, -apple-system, "Segoe UI", Helvetica, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 66ch;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --shadow: 0 1px 2px rgba(22,21,15,.05), 0 8px 24px -12px rgba(22,21,15,.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14130f; --paper-2: #1c1a15; --ink: #f2efe6; --ink-2: #cdc7b8;
    --muted: #948d7d; --rule: #302d25; --rule-2: #423e33;
    --oxblood: #c9736f; --oxblood-2: #dd928e;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --paper: #14130f; --paper-2: #1c1a15; --ink: #f2efe6; --ink-2: #cdc7b8;
  --muted: #948d7d; --rule: #302d25; --rule-2: #423e33;
  --oxblood: #c9736f; --oxblood-2: #dd928e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }

/* ---- rhythm ---------------------------------------------------------- */
.shell { width: min(100% - var(--gut) * 2, 1180px); margin-inline: auto; }
.narrow { max-width: var(--measure); }
section { padding-block: clamp(3.5rem, 8vw, 7rem); scroll-margin-top: 80px; }
section + section { border-top: 1px solid var(--rule); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
a  { color: inherit; }

.lede { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }

/* the signature: a citation set like a legal reference */
.cite {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .02em;
  color: var(--muted); text-transform: uppercase;
}
.cite a { color: var(--muted); text-decoration: none; background-image: linear-gradient(var(--oxblood), var(--oxblood));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s cubic-bezier(.2,.7,.3,1), color .2s; padding-bottom: 2px; }
.cite a:hover, .cite a:focus-visible { color: var(--oxblood); background-size: 100% 1px; }

/* ---- header ---------------------------------------------------------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
header.site .shell { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--oxblood); }
header.site nav { margin-left: auto; display: flex; gap: 1.6rem; align-items: center; }
header.site nav a { font-size: .92rem; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
header.site nav a:hover { color: var(--oxblood); }
@media (max-width: 720px) {
  header.site nav a.hide-sm { display: none; }
  header.site .shell { gap: 1rem; }
  header.site nav { gap: 1.1rem; }
  header.site nav a { font-size: .88rem; }
}

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-block; font: 500 .95rem/1 var(--sans); text-decoration: none;
  padding: .95rem 1.5rem; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); transition: background .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
:where(a, button, input, select, summary):focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

/* ---- hero ------------------------------------------------------------ */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
/* the home headline is a name, not a sentence, so it runs to 43 characters and
   needs its own size: the 4.6rem default put it over three lines in a 568px
   column. The company half sits below in a smaller cut. */
.hero h1 { max-width: 20ch; font-size: clamp(2rem, 4vw, 2.9rem); }
/* the separator hangs into the margin so the two "Law"s line up, which is what
   stops the second line reading as a bullet point */
.hero h1 .h1co { display: block; margin-top: .55rem; margin-left: -.55em; font-size: .46em;
  letter-spacing: -.01em; color: var(--ink-2); }
.hero .lede { margin-top: 1.6rem; max-width: 48ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.herogrid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
/* the numbers and their footnote belong under the whole hero, not in one column */
.herogrid > .ledger, .herogrid > .cite { grid-column: 1 / -1; }
.herogrid > .ledger { margin-top: clamp(2rem, 4vw, 3rem); }

/* three real articles, fanned like paper on a desk */
.herostack { position: relative; height: clamp(340px, 34vw, 460px); }
.herostack .card { position: absolute; display: block; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 3px; background: #fff;
  box-shadow: 0 2px 6px rgba(22,21,15,.10), 0 26px 60px -26px rgba(22,21,15,.55);
  transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.herostack .card img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.herostack .c1 { width: 78%; height: 66%; left: 0;    top: 0;    z-index: 3; transform: rotate(-1.6deg); }
.herostack .c2 { width: 66%; height: 56%; right: 0;   top: 22%;  z-index: 2; transform: rotate(2.2deg); }
.herostack .c3 { width: 58%; height: 48%; left: 12%;  bottom: 0; z-index: 1; transform: rotate(-3deg); }
.hero:hover .herostack .c1 { transform: rotate(-1.6deg) translateY(-5px); }
.hero:hover .herostack .c2 { transform: rotate(2.2deg) translateY(-3px); }

@media (max-width: 900px) {
  .herogrid { grid-template-columns: 1fr; }
  .herostack { height: clamp(260px, 62vw, 380px); order: 2; }
}

/* an article shown inline inside a step or a section */
span.inlineshot { display: block; }
.inlineshot { display: block; margin-top: 1.4rem; max-width: 620px; text-decoration: none; }
.inlineshot img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: top left;
  border: 1px solid var(--rule); border-radius: 3px; background: #fff; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1); display: block; }
.inlineshot:hover img { transform: translateY(-3px); }
.inlineshot .cap { display: block; margin-top: .6rem; font-family: var(--mono); font-size: .72rem;
  color: var(--muted); letter-spacing: .02em; }
.inlineshot:hover .cap { color: var(--oxblood); }

/* ---- ledger: the numbers, ruled like an account ---------------------- */
.ledger { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 3.5rem;
  border-top: 1px solid var(--rule); }
.ledger div { padding: 1.4rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--rule); }
.ledger b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 500; line-height: 1; }
.ledger small { display: block; margin-top: .5rem; font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* ---- masthead of publications ---------------------------------------- */
.pubs { display: flex; flex-wrap: wrap; gap: .55rem 1.6rem; align-items: baseline; margin-top: 1.8rem; }
.pubs li { list-style: none; font-family: var(--serif); font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: var(--ink); }
.pubs li::after { content: ""; }

.policy { margin-top: 1.4rem; font-size: .95rem; color: var(--muted); max-width: 62ch; line-height: 1.6; }
.nolink, .shot.nolink { cursor: default; }
.shot.nolink .frame { transition: none; }
.shot.nolink:hover .frame { transform: none; }
.shot.nolink:hover .hl { color: inherit; }
td .nolink { color: var(--ink-2); }

/* ---- coverage gallery: the articles as they ran --------------------- */
.gallery { display: grid; gap: 1.6rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.gallery .shot { text-decoration: none; display: block; }
.gallery .frame {
  display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: 3px;
  background: #fff; aspect-ratio: 16 / 10; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
}
.gallery .shot:hover .frame { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22,21,15,.06), 0 18px 40px -18px rgba(22,21,15,.35); }
.gallery .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.gallery .meta { display: block; margin-top: .95rem; }
.gallery .pubname { display: block; font-family: var(--serif); font-size: 1.08rem; }
.gallery .hl { display: block; margin-top: .3rem; font-size: .95rem; color: var(--ink-2); line-height: 1.4; }
.gallery .shot:hover .hl { color: var(--oxblood); }
.gallery .cite { display: block; margin-top: .5rem; text-transform: none; letter-spacing: 0; }
/* the lead capture shows the client credited in the article body, so it runs
   full width above the grid where that text is actually readable */
.shot.featured { display: block; text-decoration: none; margin-top: 2.5rem; }
.shot.featured .frame { display: block; overflow: hidden; border: 1px solid var(--rule);
  border-radius: 3px; background: #fff; aspect-ratio: 16 / 7.4; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s; }
.shot.featured:hover .frame { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22,21,15,.06), 0 18px 40px -18px rgba(22,21,15,.35); }
.shot.featured .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.shot.featured .meta { display: block; margin-top: 1rem; }
.shot.featured .pubname { display: block; font-family: var(--serif); font-size: 1.3rem; }
.shot.featured .hl { display: block; margin-top: .35rem; font-size: 1.05rem; color: var(--ink-2); }
.shot.featured:hover .hl { color: var(--oxblood); }
.shot.featured .cite { display: block; margin-top: .55rem; text-transform: none; letter-spacing: 0; }
@media (max-width: 700px) { .shot.featured .frame { aspect-ratio: 4 / 3; } }

/* ---- exhibits (case studies) ----------------------------------------- */
.exhibits { display: grid; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.exhibit { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 1.5rem; align-items: start;
  padding: 1.9rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background .18s; }
.exhibit:hover { background: var(--paper-2); }
.exhibit .no { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .08em; padding-top: .35rem; }
.exhibit h3 { margin-bottom: .45rem; }
.exhibit p { font-size: .95rem; color: var(--ink-2); margin: 0 0 .6rem; }
.exhibit .go { font-family: var(--mono); font-size: .72rem; color: var(--muted); padding-top: .4rem; white-space: nowrap; }
.exhibit:hover .go { color: var(--oxblood); }
@media (max-width: 700px) {
  .exhibit { grid-template-columns: 1fr; gap: .5rem; }
  .exhibit .no { padding-top: 0; }
  .exhibit .go { display: none; }
}

/* ---- guarantees: ruled list, no cards -------------------------------- */
.terms { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin-top: 2.5rem;
  border-top: 1px solid var(--rule); }
.terms div { padding: 1.6rem 1.6rem 1.8rem 0; border-bottom: 1px solid var(--rule); }
.terms h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.terms p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* ---- method steps ---------------------------------------------------- */
.steps { counter-reset: s; margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.step { counter-increment: s; display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem;
  padding: 1.9rem 0; border-bottom: 1px solid var(--rule); }
.step::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .72rem;
  color: var(--muted); letter-spacing: .08em; padding-top: .35rem; }
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--ink-2); margin: 0; }
@media (max-width: 700px) { .step { grid-template-columns: 1fr; gap: .5rem; } .step::before { padding-top: 0; } }

/* ---- results table --------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.2rem; align-items: flex-end; }
.filters label { display: block; font-size: .74rem; color: var(--muted); margin-bottom: .35rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--mono); }
.filters select, .filters input {
  font: 400 .95rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-2); border-radius: 2px; padding: .6rem .7rem; min-width: 170px;
}
.tablewrap { overflow-x: auto; border-top: 1px solid var(--rule); }
table.results { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
table.results th { text-align: left; font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: .9rem .9rem .9rem 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.results td { padding: 1rem .9rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.results tr:hover td { background: var(--paper-2); }
table.results a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--oxblood), var(--oxblood));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s cubic-bezier(.2,.7,.3,1), color .2s; padding-bottom: 2px; }
table.results a:hover, table.results a:focus-visible { color: var(--oxblood); background-size: 100% 1px; }
td.pub { font-family: var(--serif); font-size: 1.02rem; white-space: nowrap; }
td.when { font-family: var(--mono); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.count { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-top: 1rem; }
.empty { padding: 3rem 0; color: var(--muted); }

/* ---- case study ------------------------------------------------------ */
.casehead { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.casehead .firm { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--oxblood); }
.casehead h1 { margin-top: 1rem; max-width: 20ch; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.coverage { margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.coverage li { list-style: none; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); display: grid;
  grid-template-columns: 9rem 1fr; gap: 1.2rem; align-items: baseline; }
.coverage .pub { font-family: var(--serif); font-size: 1.1rem; }
.coverage a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--oxblood), var(--oxblood));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s cubic-bezier(.2,.7,.3,1), color .2s; padding-bottom: 2px; }
.coverage a:hover { color: var(--oxblood); background-size: 100% 1px; }
.coverage ul { margin: 0; padding: 0; }
@media (max-width: 640px) { .coverage li { grid-template-columns: 1fr; gap: .3rem; } }

/* ---- form ------------------------------------------------------------ */
form.proposal { margin-top: 2.5rem; max-width: 640px; display: grid; gap: 1.2rem; }
form.proposal label { display: block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: .45rem; }
form.proposal input, form.proposal select, form.proposal textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-2); border-radius: 2px; padding: .8rem .85rem;
}
form.proposal textarea { min-height: 120px; resize: vertical; }
.formrow { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .formrow { grid-template-columns: 1fr; } }
.formnote { font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
p.err { margin: .5rem 0 0; font-size: .86rem; color: var(--oxblood); }
p.err.formbanner { margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid var(--oxblood); border-radius: 2px; }
form.proposal [aria-invalid="true"] { border-color: var(--oxblood); }

/* ---- footer ---------------------------------------------------------- */
footer.site { border-top: 1px solid var(--rule); padding-block: 3.5rem 4rem; background: var(--paper-2); }
footer.site .cols { display: grid; gap: 2.5rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } footer.site .cols > :first-child { grid-column: 1 / -1; } }
footer.site h4 { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .9rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
footer.site a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
footer.site a:hover { color: var(--oxblood); }
.disclaimer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); max-width: 78ch; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- campaign breakdown on a case study ------------------------------ */
/* The page has to answer "how did you do that", so each campaign gets the
   sources, the working, the numbers, the pitch and the send, in that order. */
.campaign h3.sub { margin-top: clamp(2.6rem, 5vw, 3.6rem); font-family: var(--sans);
  font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); }
.campaign h3.sub + * { margin-top: 1rem; }

.datatable { width: 100%; border-collapse: collapse; font-size: .93rem; }
.datatable th { text-align: left; font: 500 .7rem var(--mono); text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); padding: 0 1rem .7rem 0;
  border-bottom: 1px solid var(--rule-2); }
.datatable td { padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--rule);
  vertical-align: top; }
.datatable td:first-child { white-space: nowrap; }
/* "Equal Employment Opportunity Commission" cannot compress, so the nowrap that
   keeps source names on one line pushed a 422px table through a 390px viewport.
   Below the phone breakpoint the column wraps; the wrapper is the safety net for
   any table that still outgrows its column. */
@media (max-width: 560px) {
  .datatable td:first-child { white-space: normal; }
  .datatable { font-size: .88rem; }
}
.datawrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

ol.method { margin: 0; padding: 0; list-style: none; counter-reset: m; }
ol.method li { counter-increment: m; position: relative; padding: 0 0 1.1rem 3.2rem;
  max-width: var(--measure); }
ol.method li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: .1rem;
  font: 500 .78rem var(--mono); color: var(--oxblood); }

.chart { margin-top: 1.2rem; }
.chart .row { display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr auto;
  align-items: center; gap: .9rem; padding: .42rem 0; }
.chart .lbl { font-size: .9rem; }
.chart .track { height: 12px; background: var(--paper-2); border: 1px solid var(--rule); }
.chart .fill { display: block; height: 100%; background: var(--oxblood); }
.chart .fill.flat { background: var(--rule-2); }
.chart .val { font: 500 .82rem var(--mono); color: var(--ink-2); }
.chart .avg .lbl { color: var(--muted); }

ul.angles { margin: 0; padding: 0; list-style: none; }
ul.angles li { border-left: 0; padding: 1rem 1.1rem; margin-bottom: .7rem;
  background: var(--paper-2); border: 1px solid var(--rule);
  font-family: var(--serif); font-size: 1.05rem; }
ul.angles li::before { content: "Subject line"; display: block; margin-bottom: .45rem;
  font: 500 .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); }

.sendstat { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--rule-2); }
.sendstat div { padding: 1.3rem 1.2rem 1.3rem 0; border-bottom: 1px solid var(--rule); }
.sendstat b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 500; line-height: 1; }
.sendstat small { display: block; margin-top: .5rem; font-size: .82rem; color: var(--muted); }

@media (max-width: 640px) {
  .chart .row { grid-template-columns: 1fr auto; }
  .chart .track { grid-column: 1 / -1; order: 3; }
}

/* ---- "where it ran": the article as it appeared ---------------------- */
.ranin { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 1.4rem; }
.ranin figure { margin: 0; }
.ranin img { display: block; width: 100%; height: auto; border: 1px solid var(--rule);
  background: var(--paper-2); box-shadow: var(--shadow); }
.ranin figcaption { margin-top: .9rem; }
.ranin .pub { display: block; font: 500 .68rem var(--mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: .4rem; }
.ranin figcaption a { font-family: var(--serif); font-size: 1.06rem; }
.ranin figcaption .cite { display: block; margin-top: .5rem; }
.ranin figure.nolink img { filter: none; }

/* ---- results table: the article, shown ------------------------------- */
.artcell { display: grid; grid-template-columns: 104px 1fr; gap: .95rem; align-items: start; }
.artcell .thumb { display: block; width: 104px; height: auto; aspect-ratio: 1400 / 874;
  object-fit: cover; object-position: top center; border: 1px solid var(--rule);
  background: var(--paper-2); }
/* keeps the headline column aligned when we have no capture of the article */
.artcell .thumb.blank { border: 0; background: none; }
svg.newtab { width: .78em; height: .78em; margin-left: .38em; vertical-align: baseline;
  color: var(--muted); flex: none; }
table.results a:hover svg.newtab { color: var(--oxblood); }
@media (max-width: 900px) {
  .artcell { grid-template-columns: 72px 1fr; gap: .7rem; }
  .artcell .thumb { width: 72px; }
}

/* ---- results pager --------------------------------------------------- */
.pager { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.pager .count { margin: 0; flex: 1 1 auto; text-align: center; }
.pager button[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 560px) {
  .pager { justify-content: space-between; }
  .pager .count { order: 3; flex-basis: 100%; text-align: left; }
}
