/* Terrafa record pages — the layout for a piece of our own news.

   A record is a document we wrote, not a link out to someone else's. It sits on
   site.css for the chrome and the tokens; this file adds only what a document
   needs and a marketing page does not: a facts panel, numbered figures, plain
   tables, footnoted authors, and a references list. */

/* HEAD
   The page head from site.css, with the record's own line under the rule: the
   series it belongs to and its reference, in mono, the way the pages of the
   original carry them. */
.rec-head .rule a{color:inherit}
.rec-head .rule span{display:inline;margin:0 8px;color:var(--accent-500)}
.rec-head .rule span:first-child{display:none}
.rec-head .rule a:hover{color:var(--accent)}
.rec-head h1{max-width:30ch}
.rec-ref{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:14px}
.rec-ref b{color:var(--accent);font-weight:500}
.rec-authors{font-family:var(--disp);font-size:15px;font-weight:600;color:var(--navy);margin:0}
.rec-authors sup{font-family:var(--mono);font-weight:400;font-size:10px;color:var(--accent);margin-left:1px}
.rec-affil{font-size:13px;color:var(--muted);max-width:90ch;margin:8px 0 0}
.rec-affil sup{font-family:var(--mono);font-size:10px;color:var(--accent);margin-right:2px}

/* BODY
   One column of prose at a reading width, with the facts panel beside the
   abstract at the top. Below 900px the panel goes above the text. */
.rec{padding:56px 0 72px}
.rec-open{display:grid;grid-template-columns:220px 1fr;gap:44px;align-items:start;margin-bottom:52px;padding-bottom:44px;border-bottom:1px solid var(--line)}
.rec-open .abstract{font-size:17.5px;line-height:1.65;color:var(--ink);max-width:66ch;margin:0}
.facts{border:1px solid var(--line);border-radius:var(--r-inner);corner-shape:squircle;overflow:hidden}
.facts div{padding:12px 16px;border-bottom:1px solid var(--line-soft)}
.facts div:last-child{border-bottom:0}
.facts dt{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.facts dd{font-family:var(--disp);font-size:14px;font-weight:600;color:var(--navy);margin:3px 0 0}
.facts dd .ok{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--ok);margin-right:7px;vertical-align:1px}

.prose{max-width:760px}
.prose h2{font-size:clamp(22px,2.3vw,28px);margin:44px 0 16px;scroll-margin-top:92px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:16.5px;margin:26px 0 8px}
.prose p{color:var(--txt);margin-bottom:16px}
.prose a{color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
.prose a:hover{text-decoration-color:currentColor}
.prose ul{margin:0 0 16px;padding-left:22px;color:var(--txt)}
.prose li{margin-bottom:10px}
.prose li::marker{color:var(--accent)}
.prose li b{color:var(--navy);font-weight:600}
.prose sup{font-family:var(--mono);font-size:10px;color:var(--accent)}

/* FIGURES
   Numbered in the caption the way the original numbers them. Photographs and
   drawings alike sit in a hairline on the page's own paper. */
.fig{margin:24px 0 30px}
.fig img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:var(--r-inner);corner-shape:squircle;background:#fff}
.fig figcaption{font-size:13px;line-height:1.55;color:var(--muted);margin-top:10px;max-width:72ch}
.fig figcaption b{color:var(--navy);font-weight:600}
.fig figcaption b i{font-style:normal;color:var(--accent);margin-right:8px;font-family:var(--mono);font-weight:400;font-size:11px}
.fig.narrow{max-width:360px}
/* two figures side by side where the original has them so */
.figrow{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}
.figrow .fig{margin-top:0}

/* The signal path, drawn in the page rather than fetched: six stations on one
   line, the arrows between them, and the last one on navy because that is
   where the readings end up. */
.sigpath{display:grid;grid-template-columns:repeat(6,1fr);gap:22px;margin:6px 0 10px;counter-reset:st}
.sigpath div{position:relative;border:1px solid var(--line);border-radius:var(--r-inner);corner-shape:squircle;padding:16px 10px 14px;text-align:center;font-family:var(--disp);font-size:13px;font-weight:600;color:var(--navy);line-height:1.3;counter-increment:st}
.sigpath div::before{content:counter(st,decimal-leading-zero);display:block;font-family:var(--mono);font-size:10.5px;font-weight:400;letter-spacing:.12em;color:var(--accent);margin-bottom:8px}
.sigpath div:not(:last-child)::after{content:"";position:absolute;right:-16px;top:50%;width:10px;height:10px;border-top:1.5px solid var(--muted);border-right:1.5px solid var(--muted);transform:translateY(-50%) rotate(45deg)}
.sigpath div.end{background:var(--navy);border-color:var(--navy);color:#fff}
.sigpath div.end::before{color:var(--accent-l)}

/* TABLES
   Plain rules, headings in the site's caption style, and the caption under the
   table like a figure's. A cell the original left open carries only its unit,
   set back so it reads as open rather than as a value. */
.tbl{overflow-x:auto;margin:18px 0 6px}
.tbl table{width:100%;min-width:520px;border-collapse:collapse;font-size:14px;line-height:1.5}
.tbl th,.tbl td{text-align:left;padding:11px 14px 11px 0;border-bottom:1px solid var(--line);vertical-align:top;color:var(--txt)}
.tbl th{font-family:var(--body);font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-weight:600;border-bottom:1px solid var(--ink);white-space:nowrap}
.tbl td:first-child{font-weight:600;color:var(--ink)}
.tbl .open{color:var(--muted);font-family:var(--mono);font-size:12.5px}
.tblcap{font-size:13px;line-height:1.55;color:var(--muted);margin:0 0 30px;max-width:72ch}
.tblcap b{color:var(--navy);font-weight:600}
.tblcap b i{font-style:normal;color:var(--accent);margin-right:8px;font-family:var(--mono);font-weight:400;font-size:11px}

/* REFERENCES */
.refs{list-style:none;padding:0;margin:0;counter-reset:ref}
.refs li{position:relative;padding-left:28px;font-size:14px;color:var(--txt);counter-increment:ref}
.refs li::before{content:counter(ref)".";position:absolute;left:0;font-family:var(--mono);font-size:12px;color:var(--accent)}
.refs li i{color:var(--ink)}

/* The way back to the list, on the rule that closes the page. */
.rec-back{border-top:1px solid var(--line);margin-top:56px;padding-top:28px;display:flex;gap:12px;flex-wrap:wrap}

@media(max-width:900px){
  .rec-open{grid-template-columns:1fr;gap:28px}
  .facts{display:grid;grid-template-columns:1fr 1fr}
  .facts div{border-right:1px solid var(--line-soft)}
  .facts div:nth-child(2n){border-right:0}
  .facts div:nth-last-child(-n+2){border-bottom:0}
}
@media(max-width:720px){
  .sigpath{grid-template-columns:repeat(3,1fr);gap:18px 24px}
  .sigpath div:nth-child(3)::after{display:none}
  .figrow{grid-template-columns:1fr}
  .rec{padding:40px 0 56px}
  .facts{grid-template-columns:1fr}
  .facts div{border-right:0;border-bottom:1px solid var(--line-soft)}
  .facts div:last-child{border-bottom:0}
}
