/* Hallmark · shape: Long Document · genre: editorial · theme: Almanac (deal 1/3, seed monthly-observatory-which-geo-2b3e·619ba084·2026-11-17·r0) · job: listen · draw: d03f5c
 * hero: Ledge · nav: edge-aligned · footer: mast · left out: Band and Figures · imagery: none, words and figures · signature: the month's table on the sheet, every figure in mono, the reader can download it
 * axes: light/grotesk-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: H, no picture; the month's top five on the sheet stands beside the head instead */
/* Hallmark · waive 77 · shape is Long Document (macrostructures/02): single column at 65ch, sheet sized to the measure · the narrow body is the shape, the sheet of thirteen rows gives the page its mass */
/* Hallmark · waive 78 · shape is Long Document: h2.inline lead-ins per craft § 7 item 3 · section heads emerge from the paragraph at body size by the shape's rule; the close keeps a full h2 (craft § 7.3) */
/* Hallmark · dismissed 58 · the h1 runs 8 words because the market (en España) belongs in the head of a national observatory */
@import url("./tokens.css");
@import url("./base.css");

body { color: var(--color-ink-2); line-height: 1.65; }
h1, h2, h3 { color: var(--color-ink); }
a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-underline-offset: 0.15em; transition: text-decoration-thickness var(--dur-micro) var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }
.n { text-align: right; font-family: var(--font-outlier); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* nav: edge-aligned */
.nav { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 64px; }
.nav__marca { font: var(--display-weight) var(--text-lg)/1 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: none; white-space: nowrap; }
.nav__der { display: flex; align-items: center; gap: var(--space-lg); }
.nav__edicion { font: 400 var(--text-sm)/1 var(--font-outlier); color: var(--color-muted); }
.nav__enlace { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); }

/* hero: Ledge, the head resting at the base of a tall field */
.hero { min-height: calc(100dvh - 64px); box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap-columns); align-items: end; padding-block: var(--space-xl) var(--space-3xl); border-bottom: var(--rule-bar) solid var(--color-ink); }
.hero__pie { display: grid; gap: var(--space-xl); }
.hero h1 { max-width: 15ch; letter-spacing: -0.035em; }
.hero .lead { max-width: 46ch; }

.muestra { margin: 0; padding: var(--space-lg) var(--space-lg) var(--space-md); background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); }
.muestra figcaption { font-size: var(--text-sm); color: var(--color-muted); padding-bottom: var(--space-sm); border-bottom: var(--rule-bar) solid var(--color-ink); }
.muestra ol { margin: 0; padding: 0; list-style: none; }
.muestra li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); font: var(--display-weight) var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); }
.muestra li:last-child { border-bottom: 0; }
.muestra .n { font: 500 var(--text-title)/1.2 var(--font-outlier); letter-spacing: 0; }

/* contents, as an index */
.indice { padding-block: var(--section-gap-s); }
.indice h2 { margin-bottom: var(--space-lg); font: 500 var(--text-md)/1.3 var(--font-body); letter-spacing: normal; color: var(--color-muted); }
.indice ol { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.indice a { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font: var(--display-weight) var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); text-decoration: none; }
.indice a:hover { color: var(--color-accent-2); }
.indice__n { font: 400 var(--text-md)/1 var(--font-outlier); color: var(--color-muted); }

/* the document: one column, inline heads, the sheet sized to the measure */
.doc { max-width: calc(48rem + 2 * var(--gutter)); }
.doc__tramo + .doc__tramo { margin-top: var(--section-gap-s); }
.prosa { max-width: 65ch; font-size: var(--text-lead); }
.prosa h2.inline, .prosa h3.inline { display: inline; max-width: none; font-family: var(--font-display); font-weight: 600; font-size: inherit; line-height: inherit; letter-spacing: normal; }
.prosa h2.inline + p, .prosa h3.inline + p { display: inline; }
.prosa a { display: inline; }
.prosa + .prosa, .preguntas + .prosa { margin-top: var(--space-xl); }

.hoja { margin-top: var(--space-xl); background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); overflow-x: auto; }
.hoja:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.hoja table { width: 100%; border-collapse: collapse; }
.hoja th, .hoja td { padding: var(--space-sm) var(--space-md); text-align: left; border-bottom: var(--rule-hair) solid var(--color-rule); }
.hoja td.n, .hoja th.n { text-align: right; }
.hoja thead th { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-ink-2); border-bottom: var(--rule-bar) solid var(--color-ink); }
.hoja tbody th { font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.hoja .todas { color: var(--color-ink); font-weight: 500; }
.hoja tfoot th, .hoja tfoot td { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); border-bottom: 0; }
.nota { margin-top: var(--space-md); max-width: 65ch; font-size: var(--text-sm); color: var(--color-muted); }

.preguntas { margin-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.preguntas + .preguntas { margin-top: 0; }
.preguntas:last-of-type { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.preguntas summary { display: flex; align-items: center; min-height: 48px; font: 500 var(--text-md)/1.3 var(--font-display); color: var(--color-ink); cursor: pointer; }
.preguntas summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.preguntas ol, .preguntas p { margin: 0 0 var(--space-lg); }
.preguntas li + li { margin-top: var(--space-xs); }

/* the close: more of the catalogue */
.mas { padding-block: var(--section-gap) var(--section-gap-s); }
.mas h2 { margin-bottom: var(--space-xl); }
.mas ul { margin: 0; padding: 0; list-style: none; border-top: var(--rule-bar) solid var(--color-ink); }
.mas li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.mas a { font: var(--display-weight) var(--text-title)/1.2 var(--font-display); letter-spacing: var(--tracking-display); }
.mas span { color: var(--color-muted); }

/* footer: mast */
.pie { padding-block: var(--space-2xl) var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule-2); }
.pie__marca { font: var(--display-weight) var(--text-display-s)/1 var(--font-display); letter-spacing: -0.035em; color: var(--color-ink); overflow-wrap: break-word; min-width: 0; }
.pie__enlaces { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.pie__enlaces a { display: inline-block; padding-block: var(--space-xs); }

@media (max-width: 48rem) {
  :root { --gutter: 20px; }
  .hero { min-height: auto; padding-block: var(--space-2xl); grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
  .nav__edicion { display: none; }
  .hero__pie { margin-top: var(--space-3xl); }
  .hoja th, .hoja td { padding: var(--space-xs) var(--space-2xs); font-size: var(--text-xs); }
  .hoja tbody th { white-space: normal; }
  .hoja thead th { font-size: 0.75rem; }
  .hoja { margin-inline: calc(var(--gutter) * -1); }
  .hoja th:first-child { padding-left: var(--space-xs); }
  .hoja tr > :last-child { padding-right: var(--space-xs); }
  .mas li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .indice a { grid-template-columns: 2rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { a { transition: none; } }
/* hero actions */
.acciones { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font: 500 var(--text-md)/1 var(--font-display); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); }
.btn--secondary { border: var(--rule-hair) solid var(--color-ink); color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn:active, .indice a:active { transform: translateY(1px); }
a:active { color: var(--color-accent-2); }
@media (max-width: 48rem) { .acciones .btn { flex: 1 1 12rem; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* 18/11: tres listas de terceros seguidas en «Medios y directorios» */
.doc__tramo .muestra + .muestra { margin-top: var(--space-md); }
