/* Cronicón Mayoricense — the edition as a book.

   The line it follows is the sibling `mapes/mut`: paper and ink, a book face
   that is served from this origin, nothing borrowed from anywhere else. What
   is different here is that this site is *read*, for pages at a time, so the
   measure, the size of the type and the quietness of everything that is not
   the text come first.

   Every colour is a token, defined once for the light theme and once for the
   dark; nothing below this block names a colour. No rule here is ever written
   into a `style` attribute by the build -- the Content-Security-Policy forbids
   it -- so anything that varies with the data is an SVG attribute or a class. */

:root {
  --paper:   #f3ead6;   /* the desk the page lies on: header, footer, chrome */
  --paper-2: #ece0c4;
  --page:    #f9f3e4;   /* the reading surface */
  --ink:     #2b2117;
  --ink-soft:#5a4a36;
  --muted:   #6b5a43;
  --sepia:   #6b4c26;   /* headings, the day in the margin */
  --accent:  #8a3324;   /* links, buttons, the bars */
  --on-accent: #fdf6e8;
  --line:    #c9b78f;   /* decorative rules */
  --line-strong: #8f7d57; /* borders that say "this is a control" */
  --doubt:   #a86f00;   /* the colour of an unsettled reading */
  --mark-bg: #f1d98a;
  --target:  #f4e3ac;
  --shadow:  rgba(60, 42, 20, .16);
  --backdrop: rgba(43, 33, 23, .55);

  --band-0: #8b3a2f; --band-1: #b5714a; --band-2: #d9a05b; --band-3: #7a8b5a;
  --band-4: #4a7a68; --band-5: #3f6b8a; --band-6: #6b5b95; --band-7: #a05a7a;
  --band-8: #8a6f4e; --band-9: #c08552; --band-10: #5b7f9c; --band-11: #6e8f74;
  --band-other: #c3b9a8;

  --serif: "EB Garamond", "Hoefler Text", "Iowan Old Style", Georgia, serif;
  --display: "Cinzel", "Trajan Pro", var(--serif);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1180px;
  --measure: 66ch;
}

/* Dark: the same book by lamplight. Two selectors because there are two ways
   in -- the system says so and the reader has not objected, or the reader said
   so -- and `theme.js` sets `data-theme` before the first paint. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1712; --paper-2: #262019; --page: #211b15;
    --ink: #e8decb; --ink-soft: #b8a88c; --muted: #a39478; --sepia: #cfa870;
    --accent: #e39a7c; --on-accent: #1c1712;
    --line: #4b4031; --line-strong: #7d6c52;
    --doubt: #d9a441; --mark-bg: #6b5320; --target: #3a2f1c;
    --shadow: rgba(0, 0, 0, .45); --backdrop: rgba(0, 0, 0, .7);
    --band-0: #c4705f; --band-1: #cf9070; --band-2: #e0b070; --band-3: #9aab78;
    --band-4: #6f9f8c; --band-5: #6a94b4; --band-6: #9585bd; --band-7: #c080a0;
    --band-8: #b09570; --band-9: #d09a68; --band-10: #7fa3c0; --band-11: #90b096;
    --band-other: #6b6152;
  }
}
:root[data-theme="dark"] {
  --paper: #1c1712; --paper-2: #262019; --page: #211b15;
  --ink: #e8decb; --ink-soft: #b8a88c; --muted: #a39478; --sepia: #cfa870;
  --accent: #e39a7c; --on-accent: #1c1712;
  --line: #4b4031; --line-strong: #7d6c52;
  --doubt: #d9a441; --mark-bg: #6b5320; --target: #3a2f1c;
  --shadow: rgba(0, 0, 0, .45); --backdrop: rgba(0, 0, 0, .7);
  --band-0: #c4705f; --band-1: #cf9070; --band-2: #e0b070; --band-3: #9aab78;
  --band-4: #6f9f8c; --band-5: #6a94b4; --band-6: #9585bd; --band-7: #c080a0;
  --band-8: #b09570; --band-9: #d09a68; --band-10: #7fa3c0; --band-11: #90b096;
  --band-other: #6b6152;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
/* The full-bleed hero is 100vw wide, which includes the scrollbar. */
body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums;
  /* The browser must never add a hyphen of its own: in this text a hyphen at
     the end of a line is something the book printed. */
  hyphens: manual;
  text-rendering: optimizeLegibility;
}
[id] { scroll-margin-top: 5.5rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.2; font-weight: 500; color: var(--sepia); text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .6rem; color: var(--ink); }
h2 { font-size: 1.5rem; margin: 2.6rem 0 .7rem; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
p { margin: 0 0 .9rem; }
small { font-size: .85em; }
code, pre { font-family: var(--mono); font-size: .82em; }
pre { background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px;
      padding: .8rem 1rem; overflow-x: auto; }
mark { background: var(--mark-bg); color: inherit; padding: 0 .1em; border-radius: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent);
        color: var(--on-accent); padding: .5rem 1rem; }
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
main.wrap { padding-top: 1.2rem; padding-bottom: 4rem; }
.wrap.narrow { max-width: 48rem; }
/* A reading page is as wide as its text and its rail, so the head of the page
   starts where the text does. */
.wrap.page { max-width: 64rem; }
/* One column with one right edge: text, cards and table all end where the
   widest of them does. A page that mixes prose capped at 66ch with full-width
   cards and an auto-width table has three right edges, and it shows. */
/* The column starts where every other page starts -- under the brand -- and
   only its width is limited, so the left edge does not move between tabs. */
.wrap.column > * { max-width: 56rem; }
.column p, .column .lede, .column figcaption, .column .hint,
.column .matter > p, .column .prose > p { max-width: 56rem; }
.column .cards { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.column .ranked { width: 100%; }
main > p, .prose > p, .matter > p { max-width: var(--measure); }

.kicker { font-family: var(--display); font-size: .875rem; letter-spacing: .14em;
          text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); max-width: 62ch; }
.hint, .note, .aside { color: var(--muted); font-size: 1rem; }
.hint { max-width: var(--measure); }
.block > .hint { max-width: none; }
.note { font-size: .92rem; margin: .6rem 0 0; }
.aside { font-style: italic; }
.caveat { border-left: 3px solid var(--doubt); background: var(--paper-2);
          padding: .7rem 1rem; font-size: 1rem; color: var(--ink-soft); max-width: var(--measure); }
.tally { color: var(--muted); font-size: 1rem; }
.empty { font-style: italic; color: var(--ink-soft); max-width: var(--measure); }

.button { display: inline-block; background: var(--accent); color: var(--on-accent);
          border: 1px solid var(--accent); border-radius: 3px; padding: .5rem 1.1rem;
          text-decoration: none; font-size: 1.05rem; }
.button:hover { filter: brightness(1.1); }
.button.ghost { background: none; color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin: 1.4rem 0 0; }

table { border-collapse: collapse; width: 100%; font-size: 1.05rem; }
th, td { text-align: left; padding: .4rem .8rem .4rem 0; border-bottom: 1px solid var(--line);
         vertical-align: top; }
thead th { font-family: var(--display); font-size: .8rem; letter-spacing: .1em;
           text-transform: uppercase; color: var(--muted); font-weight: 500; }
.num { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.scroll { overflow-x: auto; margin: 1rem 0 1.4rem; }

/* -------------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper-2);
               border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: .4rem 1.4rem; flex-wrap: wrap;
       padding-top: .55rem; padding-bottom: .55rem; }
.brand { display: flex; align-items: baseline; gap: .7rem; text-decoration: none;
         color: var(--ink); margin-right: auto; }
.brand-name { font-family: var(--display); font-size: 1.12rem; letter-spacing: .05em; font-weight: 600; }
.brand-sub { font-style: italic; font-size: .95rem; color: var(--muted); }
.nav { display: flex; gap: 1.15rem; font-size: 1.02rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: .2rem 0;
         border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.search { display: flex; }
.search input { width: 9rem; min-width: 0; background: var(--page); border: 1px solid var(--line-strong);
                border-right: 0; border-radius: 3px 0 0 3px; padding: .25rem .6rem; font-size: 1rem; }
.search input:focus { width: 13rem; }
.search button { display: grid; place-items: center; background: var(--page); color: var(--ink-soft);
                 border: 1px solid var(--line-strong); border-radius: 0 3px 3px 0; padding: 0 .55rem; }
.search button:hover, .theme:hover { color: var(--accent); }
.theme { display: grid; place-items: center; background: none; border: 1px solid transparent;
         border-radius: 3px; padding: .3rem; color: var(--ink-soft); }
@media (max-width: 900px) {
  .brand-sub { display: none; }
  .nav { order: 5; width: 100%; overflow-x: auto; gap: 1.3rem; padding-bottom: .1rem;
         scrollbar-width: thin; }
  .search input, .search input:focus { width: 7.5rem; }
}

.crumbs { font-size: .95rem; color: var(--muted); margin: 0 0 1.4rem; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 .15em; }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ---------------------------------------------------------- page heads */

.page-head { margin: .6rem 0 1.6rem; }
.year-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
             gap: 1rem; margin-top: .4rem; }
.year-head h1 { margin: 0; text-align: center; }
.numeral { font-family: var(--display); font-weight: 500; line-height: 1;
           font-size: clamp(3rem, 9vw, 5.5rem); font-variant-numeric: lining-nums;
           letter-spacing: .02em; }
.step { text-decoration: none; font-size: 1.05rem; font-variant-numeric: lining-nums; }
.step[rel="next"] { text-align: right; }
.year-sub { text-align: center; color: var(--muted); font-size: 1rem; margin: .5rem 0 1rem; max-width: none; }
.doc-head { margin: .4rem 0 1rem; max-width: 52rem; }
.doc-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.doc-head .year-sub { text-align: left; }

.decade, .jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .5rem;
                 font-variant-numeric: lining-nums tabular-nums; font-size: 1rem;
                 margin: 0 0 2rem; padding: .6rem 0; border-block: 1px solid var(--line); }
.decade a, .decade span, .jump a { padding: .1rem .55rem; border-radius: 3px; text-decoration: none; }
.decade a:hover, .jump a:hover { background: var(--paper-2); }
.decade [aria-current] { background: var(--accent); color: var(--on-accent); }
.decade .void { color: var(--muted); opacity: .6; }
.jump { justify-content: flex-start; }
.method-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }

/* -------------------------------------------------------- reading layout */

/* The rail comes first in the document, so on a phone the months and the
   reading options sit above the text; on a wide screen the grid sets it to
   the right, where it stays put while the text scrolls. */
.reading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.rail { font-size: 1rem; }
.rail h2, .doubt-ctl legend { font-family: var(--display); font-size: .8rem; letter-spacing: .12em;
                              text-transform: uppercase; color: var(--muted); font-weight: 500;
                              margin: 0 0 .4rem; padding: 0; }
.rail ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.rail ol a { text-decoration: none; }
.rail ol a:hover { text-decoration: underline; }
.doubt-ctl { border: 1px solid var(--line); border-radius: 3px; padding: .6rem .8rem .7rem; margin: 0;
             background: var(--page); min-width: 0; }
.doubt-ctl label { display: inline-block; margin-right: .9rem; white-space: nowrap; }
.text { min-width: 0; max-width: var(--measure); }
@media (min-width: 1060px) {
  .reading { grid-template-columns: minmax(0, var(--measure)) 15.5rem; gap: 3.5rem;
             justify-content: space-between; }
  .rail { grid-column: 2; grid-row: 1; position: sticky; top: 4.6rem; align-self: start;
          max-height: calc(100vh - 5.5rem); overflow-y: auto; }
  .text { grid-column: 1; grid-row: 1; }
  .rail ol { display: block; }
  .doubt-ctl label { display: block; margin: 0; }
  .toc ol { border-left: 1px solid var(--line); padding-left: .8rem; }
}
.toc li.t-head { font-style: italic; }
.toc li.t-year, .toc li.t-piece { font-variant-numeric: lining-nums; }

/* -------------------------------------------------------------- notices */

.month { font-family: var(--display); font-size: 1rem; letter-spacing: .16em; text-transform: uppercase;
         color: var(--sepia); border-bottom: 1px solid var(--line); padding-bottom: .25rem;
         margin: 2.6rem 0 1rem; }
.text > .month:first-child { margin-top: .4rem; }
.notice { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); column-gap: .9rem;
          margin: 0 0 1.25rem; border-radius: 3px; }
.notice:target { background: var(--target); box-shadow: 0 0 0 .6rem var(--target); }
.when { margin: 0; text-align: right; color: var(--sepia); font-variant-numeric: lining-nums;
        font-size: 1.15rem; }
.when a { color: inherit; text-decoration: none; }
.when a:hover { color: var(--accent); text-decoration: underline; }
.when small { display: block; font-size: .8rem; color: var(--muted); }
.said p { margin: 0 0 .7rem; }
.said > div > p:last-child { margin-bottom: .3rem; }
.prov { font-size: .95rem; color: var(--muted); margin: .1rem 0 .3rem; }
.notes { font-size: 1rem; color: var(--ink-soft); border-left: 2px solid var(--line);
         padding-left: .8rem; margin: .5rem 0 .3rem; }
.notes p { margin: 0 0 .4rem; }
.notes .num, .docnotes .num { text-align: left; color: var(--sepia); }
.leafmark, .plate { text-align: right; font-size: .92rem; margin: -.3rem 0 1.4rem; color: var(--muted); }
.leafmark a, .leafref { color: var(--muted); }
.plate { text-align: center; border-block: 1px dashed var(--line); padding: .6rem 0; margin: 1.4rem 0; }
.opening, .unplaced { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: .3rem; }
.opening { border-top: 0; margin-top: 0; border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: 1.5rem; }
.opening h2, .unplaced h2, .docnotes h2 { font-size: 1.2rem; margin-top: 1rem; }

/* A source, as an abbreviation that gives up its name when asked. */
.cite { white-space: normal; }
.sig { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
       padding: 0 .55em; font-size: .92rem; line-height: 1.5; color: var(--ink-soft);
       font-variant-numeric: lining-nums; }
.sig:hover, .sig[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.sig.unglossed { border-style: dashed; }
.sig-name { display: none; font-style: italic; margin: 0 .5em 0 .35em; }
.sig[aria-expanded="true"] + .sig-name { display: inline; }
.attrib { margin-left: .4em; }
.attrib::before { content: "— "; color: var(--muted); }

/* A disputed reading. Dotted and amber: visible to a reader looking for it,
   quiet to one who is reading. */
.d { text-decoration: underline dotted var(--doubt); text-decoration-thickness: 2px;
     text-underline-offset: .2em; cursor: pointer; }
.d1 { text-decoration: underline solid var(--doubt); text-decoration-thickness: 1px;
      text-underline-offset: .2em; }
.d.open[data-v]::after, [data-doubt="variants"] .d[data-v]::after {
  content: " [" attr(data-v) "]"; font-style: italic; font-size: .88em; color: var(--muted);
  text-decoration: none; display: inline-block; white-space: pre-wrap; }
[data-doubt="off"] .d, [data-doubt="off"] .d1 { text-decoration: none; cursor: auto; }
[data-doubt="off"] .d::after { content: none !important; }
[data-doubt="off"] .inline-table tr.d > td { text-decoration: none; }

.inline-table { width: auto; min-width: min(100%, 22rem); margin: .6rem 0 1rem; font-size: 1.05rem; }
.inline-table th { font-weight: 400; }
.inline-table th { border-bottom: 1px dotted var(--line); padding: .15rem 1.5rem .15rem 0; }
.inline-table td { border-bottom: 1px dotted var(--line); padding: .15rem 0 .15rem .9rem; }
.inline-table { font-variant-numeric: lining-nums tabular-nums; }
/* A disputed row is marked on its figure: that is the cell a reader copies. */
.inline-table tr.d > td { text-decoration: underline dotted var(--doubt); text-decoration-thickness: 2px;
                          text-underline-offset: .2em; }

/* ------------------------------------------------------------ documents */

.doc p { margin: 0 0 .9rem; }
.doc .dochead { text-align: center; font-style: italic; color: var(--ink-soft); margin: 1.6rem 0 1rem;
                font-size: 1.15rem; font-weight: 400; }
.doc p.dochead { margin-top: 0; }
.docyear { font-family: var(--display); font-variant-numeric: lining-nums; text-align: center;
           font-size: 1.35rem; letter-spacing: .08em; margin: 2.4rem 0 .8rem; }
.piece { text-align: center; margin: 2.4rem 0 .6rem; }
.piece span { display: inline-block; font-family: var(--display); font-variant-numeric: lining-nums;
              border-block: 1px solid var(--line); padding: 0 1.2rem; }
.docnotes { border-top: 1px solid var(--line); margin-top: 2.5rem; font-size: 1rem; color: var(--ink-soft); }
.docnotes p { margin: 0 0 .6rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; border-top: 1px solid var(--line);
         margin-top: 2.5rem; padding-top: 1rem; font-size: 1rem; }

/* ----------------------------------------------------------------- cards */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem;
         margin: 1rem 0 2rem; }
.card { display: flex; flex-direction: column; gap: .25rem; background: var(--page);
        border: 1px solid var(--line); border-radius: 4px; padding: .9rem 1.1rem 1rem;
        text-decoration: none; color: var(--ink); }
a.card { transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 16px var(--shadow); }
.card strong { font-size: 1.2rem; font-weight: 500; line-height: 1.25; color: var(--sepia); }
a.card strong { color: var(--accent); }
.card .tag { font-family: var(--display); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
             color: var(--muted); font-variant-numeric: lining-nums; }
.card .meta, .card .role, .card em { font-size: .98rem; color: var(--ink-soft); }
.card .n { margin-top: auto; padding-top: .4rem; font-size: .92rem; color: var(--muted);
           font-variant-numeric: lining-nums; }
.doc-card strong { font-size: 1.08rem; }

/* ------------------------------------------------------- the years index */

.century { margin: 0 0 3rem; }
.century > h2 { border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.century > h2 small { font-size: 1rem; color: var(--muted); font-variant-numeric: lining-nums; margin-left: .6rem; }
.strip { display: block; width: 100%; height: 64px; margin: .8rem 0 .2rem; }
.strip .hit { fill: none; pointer-events: all; }
.strip .bar { fill: var(--accent); }
.strip .bar.void { fill: var(--line); }
.strip a:hover .hit { fill: var(--paper-2); }
.strip a:hover .bar { fill: var(--ink); }
.decades { list-style: none; margin: .8rem 0 0; padding: 0; font-variant-numeric: lining-nums tabular-nums;
           font-size: 1.02rem; }
.decades li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .5rem; padding: .12rem 0;
              border-bottom: 1px dotted var(--line); }
.decades .dec { color: var(--muted); font-size: .9rem; padding-top: .1rem; }
.decades .yrs { display: flex; flex-wrap: wrap; gap: 0 .8rem; }
.decades a { text-decoration: none; white-space: nowrap; min-width: 2.9rem; }
.decades a:hover { text-decoration: underline; }
.decades a small { color: var(--muted); font-size: .72em; vertical-align: .45em; margin-left: -.15em; }
.decades .void { color: var(--muted); opacity: .55; }

/* ------------------------------------------------------------------ home */

/* The home page opens with the book's frontispiece behind the title, softened
   under a veil of paper -- the way the sibling map editions open with their
   engraving. Full bleed: the band runs edge to edge while its text keeps the
   page's left edge. */
.hero { position: relative; overflow: hidden; isolation: isolate;
        margin: -1.2rem calc(50% - 50vw) 2.4rem; padding: 0 calc(50vw - 50%);
        min-height: 54vh; display: flex; flex-direction: column; justify-content: flex-end;
        border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
                background: url("hero/frontispici.jpg") center 38% / cover no-repeat;
                filter: sepia(.35) blur(2px) contrast(.8) brightness(1.12); transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
               background: linear-gradient(to top, var(--paper) 6%,
                 color-mix(in srgb, var(--paper) 90%, transparent) 50%,
                 color-mix(in srgb, var(--paper) 68%, transparent) 100%); }
:root[data-theme="dark"] .hero::before { filter: sepia(.35) blur(2px) contrast(.8) brightness(.45); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero::before { filter: sepia(.35) blur(2px) contrast(.8) brightness(.45); }
}
.hero__panel { padding: 3.2rem 0 1rem; }
/* The hero's text runs the full measure of the page, between the same margins
   as everything under it, rather than in a narrow block on the left. */
.hero .lede { max-width: none; }
/* The credit sits under the panel on one line, against the right margin. */
.hero__credit { margin: 0; padding-bottom: .6rem; text-align: right; white-space: nowrap;
                font-size: .8rem; color: var(--muted); }
.hero__credit a { color: var(--muted); }
@media (max-width: 760px) { .hero { min-height: 44vh; } .hero__credit { white-space: normal; text-align: left; } }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.01em; }
.search.big { margin-top: 1.5rem; max-width: 38rem; }
.search.big input, .search.big input:focus { flex: 1; width: auto; font-size: 1.15rem; padding: .55rem .9rem; }
.search.big button { background: var(--accent); color: var(--on-accent); border-color: var(--accent);
                     padding: 0 1.2rem; font-size: 1.05rem; }
.shape { margin: 1rem 0 3rem; }
.shape figcaption { max-width: none; }
.shape .strip { height: 84px; }
.axis-book { display: grid; grid-template-columns: 71fr repeat(5, 100fr); position: relative;
             border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted);
             font-variant-numeric: lining-nums; padding-top: .15rem; }
.axis-book .end { position: absolute; right: 0; top: .15rem; }
figcaption { font-size: 1rem; color: var(--muted); margin-top: .7rem; max-width: var(--measure); }

.today { background: var(--page); border: 1px solid var(--line); border-radius: 4px;
         padding: 1.2rem clamp(1rem, 3vw, 2rem) 1rem; margin: 0 0 3rem; }
.today h2 { margin-top: 0; font-family: var(--display); font-size: 1rem; letter-spacing: .14em;
            text-transform: uppercase; }
.today .notice { max-width: var(--measure); grid-template-columns: 4rem minmax(0, 1fr); }
.today-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: .8rem 0 0; }
.today-ctl .note { margin: 0; flex: 1 1 18rem; }
.block > h2 { margin-top: 0; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2.2rem;
         border-block: 1px solid var(--line); padding: .6rem 0 1rem; margin: 0 0 3rem; }
.doors h2 { font-size: 1.2rem; margin: 1rem 0 .4rem; }
@media (min-width: 1100px) { .doors { grid-template-columns: repeat(5, 1fr); gap: 0 1.8rem; } }
.doors p, .doors ul { font-size: 1.05rem; margin-bottom: .5rem; }
.loud { font-variant-numeric: lining-nums; font-size: 1.2rem; }
.loud small { color: var(--muted); }
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li { margin-bottom: .35rem; }
.twin { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; margin: 0 0 3rem; }
.pull { margin: 0; font-size: 1.35rem; line-height: 1.45; font-style: italic; color: var(--ink-soft);
        border-left: 3px solid var(--accent); padding-left: 1.2rem; }
.pull cite { display: block; font-size: .95rem; font-style: normal; color: var(--muted); margin-top: .4rem; }
.subjects { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.subjects li { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
               padding: .05rem .75rem; font-size: 1rem; }
.subjects small { color: var(--muted); font-variant-numeric: lining-nums; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 1px;
         background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
         align-self: start; }
.stats div { background: var(--page); padding: .7rem .9rem; font-size: .92rem; color: var(--muted); }
.stats strong { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 500;
                color: var(--accent); font-variant-numeric: lining-nums; }

/* ---------------------------------------------------------------- charts */

.chart { margin: 1rem 0 .6rem; }
.chart svg { display: block; width: 100%; }
.chart .volume { height: 46px; }
.chart .stack { height: 300px; margin-top: 4px; }
.chart.spark svg { height: 46px; }
.vol { fill: var(--accent); opacity: .65; }
.ticks { display: flex; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted);
         font-variant-numeric: lining-nums; }
.ticks span { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: visible; }
.band-0 { fill: var(--band-0); background: var(--band-0); } .band-1 { fill: var(--band-1); background: var(--band-1); }
.band-2 { fill: var(--band-2); background: var(--band-2); } .band-3 { fill: var(--band-3); background: var(--band-3); }
.band-4 { fill: var(--band-4); background: var(--band-4); } .band-5 { fill: var(--band-5); background: var(--band-5); }
.band-6 { fill: var(--band-6); background: var(--band-6); } .band-7 { fill: var(--band-7); background: var(--band-7); }
.band-8 { fill: var(--band-8); background: var(--band-8); } .band-9 { fill: var(--band-9); background: var(--band-9); }
.band-10 { fill: var(--band-10); background: var(--band-10); } .band-11 { fill: var(--band-11); background: var(--band-11); }
.band-other { fill: var(--band-other); background: var(--band-other); }
.band:hover { opacity: .8; }
.keys { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; font-size: 1rem; margin: .4rem 0 2rem; }
.key { display: inline-flex; align-items: baseline; gap: .4rem; text-decoration: none; color: var(--ink); }
a.key:hover { color: var(--accent); }
.key small { color: var(--muted); }
.swatch { width: .8rem; height: .8rem; border-radius: 2px; align-self: center; flex: none; }

/* Ranked bars with their figures: one hue, every number printed beside it. */
.trades { margin: 1rem 0 1.2rem; }
.ranked { width: auto; min-width: min(100%, 34rem); font-size: 1.02rem; font-variant-numeric: lining-nums tabular-nums; }
.ranked caption { text-align: left; color: var(--muted); font-size: .95rem; padding-bottom: .4rem; }
.ranked th, .ranked td { padding: .16rem .9rem .16rem 0; border-bottom: 1px dotted var(--line); vertical-align: middle; }
.ranked tbody th { font-weight: 400; font-style: italic; }
.ranked tbody th small { white-space: nowrap; }
.ranked tbody th small { font-style: normal; color: var(--muted); }
/* `barcell`, not `bar`: `.bar` is the header's flex row, and a table cell that
   picks it up stops being a table cell -- the column rode up half a row. */
.ranked td.barcell { color: var(--accent); padding-right: .5rem; }
.ranked td.barcell svg { display: block; }
.ranked td.total { font-weight: 600; }
.ranked td.num { min-width: 2.4rem; }
.ranked tfoot th, .ranked tfoot td { font-weight: 400; color: var(--muted); font-size: .92rem; border-bottom: 0; padding-top: .5rem; white-space: nowrap; }

.dossier { background: var(--page); border: 1px solid var(--line); border-radius: 4px;
           padding: 1rem 1.3rem; margin: 0 0 1.5rem; }
.dossier .who-line { font-style: italic; color: var(--ink-soft); }
.dossier dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: 0 0 .8rem; }
.dossier dt { color: var(--muted); }
.dossier dd { margin: 0; }
.yeargrid { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-variant-numeric: lining-nums tabular-nums; }
.yeargrid a { text-decoration: none; }
.yeargrid a:hover { text-decoration: underline; }
.yeargrid small { color: var(--muted); font-size: .72em; vertical-align: .45em; margin-left: -.15em; }

/* ---------------------------------------------------------------- jurats */

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0 0 1rem; }
.tools input, .searchform select { background: var(--page); border: 1px solid var(--line-strong);
                                   border-radius: 3px; padding: .3rem .7rem; }
.tools input { width: min(100%, 20rem); }
.serie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .9rem; }
.serie-year { background: var(--page); border: 1px solid var(--line); border-radius: 4px; padding: .6rem .9rem .5rem; }
.serie-year h2 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 .3rem;
                 font-variant-numeric: lining-nums; }
.serie-year h2 a { text-decoration: none; }
.seats { margin: 0; padding-left: 1.3rem; font-size: 1.02rem; }
.seats li { margin-bottom: .1rem; }
.seats li::marker { color: var(--muted); font-size: .85em; font-variant-numeric: lining-nums; }
.serie-year .leafmark { margin: .3rem 0 0; }
.serie-year .remark { font-style: italic; color: var(--ink-soft); font-size: 1rem; margin: .2rem 0; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- search */

.facets { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: 1rem 0 .6rem; font-size: 1rem; }
.facets fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.facets legend, .field label { font-family: var(--display); font-size: .8rem; letter-spacing: .12em;
                               text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: .2rem; }
.facets label { margin-right: .8rem; white-space: nowrap; }
.field { margin: 0; display: flex; flex-direction: column; }
.field select { max-width: 22rem; }
.group > h2 { border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.group > h2 small { color: var(--muted); font-size: 1rem; margin-left: .5rem; font-variant-numeric: lining-nums; }
.hit-year { font-family: var(--display); font-variant-numeric: lining-nums; margin: 1.6rem 0 .5rem; }
.hit-year a { text-decoration: none; }
.notice.hit { grid-template-columns: 5.2rem minmax(0, 1fr); max-width: calc(var(--measure) + 6rem); }
.notice.hit .when { font-size: 1rem; }
.more { margin: .4rem 0 1rem; }

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

/* The foot of every Corpus Balear edition: centred, small, quiet. */
.site-footer { margin-top: 4rem; border-top: 2px solid var(--line); background: var(--paper-2); }
.site-footer .wrap { padding-top: 1.6rem; padding-bottom: 1.6rem; font-size: .9rem; line-height: 1.5;
                     color: var(--ink-soft); text-align: center; }
.site-footer p { margin: 0 auto .45rem; max-width: 52rem; }
.site-footer a { color: var(--sepia); }
.site-footer .foot-links { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line);
                           display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem 1.6rem; }
.site-footer .foot-links a { display: inline-flex; align-items: center; gap: .4rem; }
.gh { vertical-align: -.12em; }

/* ------------------------------------------------------------- facsimile */

.facs { width: min(96vw, 62rem); max-height: 94vh; padding: 0; border: 1px solid var(--line-strong);
        border-radius: 4px; background: var(--page); color: var(--ink); box-shadow: 0 12px 40px var(--shadow); }
.facs::backdrop { background: var(--backdrop); }
.facs header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
               gap: .4rem 1rem; padding: .6rem 1rem; border-bottom: 1px solid var(--line);
               position: sticky; top: 0; background: var(--page); }
.facs h2 { margin: 0; font-size: 1.1rem; font-variant-numeric: lining-nums; }
.facs-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; font-size: .95rem; }
.facs-ctl form { margin: 0; }
.facs button { background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 3px; padding: .15rem .7rem; }
.facs button:hover { border-color: var(--accent); color: var(--accent); }
.facs-stage { min-height: 12rem; display: grid; place-items: center; padding: .6rem; }
.facs-stage img { display: block; max-width: 100%; height: auto; background: #f4efe4; }
.facs-stage p, .facs-note { color: var(--muted); font-size: .95rem; text-align: center; }
.facs-note { margin: 0; padding: .4rem 1rem .8rem; }

/* ------------------------------------------------------------------ misc */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .rail, .crumbs, .decade, .jump, .pager, .skip, .facs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: inherit; text-decoration: none; }
  .text { max-width: none; }
}
