/* Cooperantes Seniors de Extremadura — "Gaceta" broadsheet layout.
   Ink + newsprint + one blue (ocean-light primary #0369a1). */
@font-face { font-family: "UnifrakturMaguntia"; src: url("assets/fonts/unifraktur-maguntia-masthead.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("assets/fonts/libre-caslon-text-var-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("assets/fonts/libre-caslon-text-italic-var-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-var-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("assets/fonts/source-serif-4-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("assets/fonts/libre-franklin-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f7f3ea;
  --paper-2: #efe8d9;
  --ink: #141414;
  --ink-2: #3f3b35;
  --hair: #b9ad97;
  --blue: #0369a1;
  --blue-dark: #075985;
  --blue-soft: #e0f2fe;
  --black-letter: "UnifrakturMaguntia", "Old English Text MT", serif;
  --head: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --label: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  font-size: 118.75%; /* 19px base for older readers */
}
html.texto-grande { font-size: 137.5%; } /* 22px via "Texto más grande" */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; overflow-wrap: break-word; font-feature-settings: "kern", "liga", "onum"; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
small { font-size: .875rem; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
q { font-style: italic; }
q::before { content: "«"; } q::after { content: "»"; }
.icon { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.paper { width: min(80rem, 100% - 2.5rem); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: 3rem; }

/* Masthead */
.masthead { padding-top: .75rem; }
.ears { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem 1rem; font-family: var(--label); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); border-bottom: 1px solid var(--ink); padding-bottom: .5rem; }
.ear { margin: 0; }
.ear-right { justify-self: end; }
.nameplate { display: block; text-align: center; color: var(--ink); text-decoration: none; padding: .9rem 0 .4rem; }
.nameplate-title { display: block; font-family: var(--black-letter); font-weight: 400; font-size: clamp(2.7rem, 10vw, 7rem); line-height: 1; letter-spacing: .01em; }
.nameplate-sub { display: block; font-family: var(--head); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-top: .2rem; }
.folio { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; margin: .6rem 0 0; padding: .4rem 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--label); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.text-size { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-weight: 700; text-transform: none; letter-spacing: 0; font-size: .95rem; padding: .35rem .8rem; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
.text-size:hover { background: var(--ink); color: var(--paper); }
.text-size[aria-pressed="true"] { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.ts-short { display: none; }

/* Sections nav — Codrops LineHoverStyles (link--io) rewritten */
.sections { border-bottom: 3px solid var(--ink); }
.sections ul { list-style: none; margin: 0; padding: .35rem 0; display: flex; flex-wrap: wrap; justify-content: center; }
.sections li + li { border-left: 1px solid var(--hair); }
.sections a { display: inline-block; padding: .35rem 1rem; font-family: var(--label); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.menu-toggle { display: none; align-items: center; gap: .4rem; font-family: var(--label); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; padding: .5rem .9rem; margin: .4rem 0; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }

.lnk { position: relative; }
.sections .lnk::before, .sections .lnk::after { content: ""; position: absolute; left: 1rem; right: 1rem; height: 2px; background: currentColor; pointer-events: none; transform: scaleX(0); transition: transform .3s cubic-bezier(.7, 0, .2, 1); }
.sections .lnk::before { bottom: .15rem; transform-origin: 100% 50%; }
.sections .lnk::after { bottom: -.05rem; transform-origin: 0% 50%; background: var(--blue); }
.sections .lnk:hover::before, .sections .lnk:focus-visible::before { transform-origin: 0% 50%; transform: scaleX(1); transition-timing-function: cubic-bezier(.4, 1, .8, 1); }
.sections .lnk:hover::after, .sections .lnk:focus-visible::after { transform-origin: 100% 50%; transform: scaleX(1); transition-timing-function: cubic-bezier(.4, 1, .8, 1); transition-delay: .08s; }
/* Multi-line headline links: same line idea via background-size */
h3 .lnk, h4 .lnk { color: var(--ink); text-decoration: none; background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat; transition: background-size .35s cubic-bezier(.7, 0, .2, 1); }
h3 .lnk:hover, h4 .lnk:hover, h3 .lnk:focus-visible, h4 .lnk:focus-visible { background-size: 100% 2px; color: var(--blue-dark); }

@media (max-width: 47.99em) {
  .ears { grid-template-columns: 1fr auto; }
  .ear-center { display: none; }
  .text-size .ts-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .text-size .ts-short { display: inline; }
  .folio { justify-content: center; text-align: center; }
  .folio span:first-child, .folio span:last-child { display: none; }
  .sections { position: relative; text-align: center; }
  .js .menu-toggle { display: inline-flex; }
  .js .sections ul { display: none; position: absolute; z-index: 40; left: 0; right: 0; top: 100%; flex-direction: column; padding: 0; background: var(--paper); border: 2px solid var(--ink); border-top: 0; box-shadow: 0 10px 20px rgb(20 20 20 / .15); text-align: left; }
  .js .sections.is-open ul { display: flex; }
  .js .sections li + li { border-left: 0; border-top: 1px solid var(--hair); }
  .js .sections a { display: block; padding: .8rem 1rem; }
}

/* Front page */
section { padding-block: 2rem; }
.frontpage { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-top: 1.5rem; }
@media (min-width: 60em) {
  .frontpage { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 0; }
  .lead-story { padding-right: 2rem; }
  .rail { padding-left: 2rem; border-left: 1px solid var(--ink); }
}
.kicker, .section-label { font-family: var(--label); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-dark); margin-bottom: .5rem; }
.headline { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -.01em; margin-bottom: .4em; }
.dek { font-family: var(--body); font-style: italic; font-size: 1.2rem; color: var(--ink-2); border-bottom: 1px solid var(--hair); padding-bottom: 1rem; }
.lead-photo { margin: 0 0 1.25rem; }
.lead-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; filter: saturate(.9); }
figcaption { font-family: var(--label); font-size: .85rem; line-height: 1.45; color: var(--ink-2); padding-top: .4rem; border-bottom: 1px solid var(--hair); padding-bottom: .4rem; }
.story-body p { text-align: left; hyphens: auto; }
@media (min-width: 48em) { .cols-2 { columns: 2; column-gap: 2rem; column-rule: 1px solid var(--hair); } .cols-2 p { break-inside: avoid-column; } }
.dateline { font-family: var(--label); font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
/* Drop cap — after Flowbite "paragraph first-letter" pattern */
.dropcap::first-letter, .dropcap-s::first-letter { float: left; font-family: var(--head); font-weight: 700; font-size: 4.1em; line-height: .82; padding: .06em .1em 0 0; color: var(--blue-dark); }
.dropcap-s::first-letter { font-size: 3.2em; }
.sources { font-family: var(--label); font-size: .85rem; color: var(--ink-2); border-top: 1px solid var(--hair); padding-top: .5rem; }

/* Right rail boxes */
.box { margin: 0 0 1.75rem; }
.box-title { font-family: var(--label); font-weight: 900; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .35rem 0; margin-bottom: .9rem; }
.box-title span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.figures dl { margin: 0; }
.figures dl > div { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px dotted var(--hair); }
.figures dt { margin: 0; }
.num { font-family: var(--head); font-weight: 700; font-size: 1.7rem; color: var(--blue-dark); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.figures dd { margin: 0; font-size: .95rem; line-height: 1.35; }
.box-note { font-family: var(--label); font-size: .85rem; color: var(--ink-2); margin-top: .6rem; }
.brief ul { list-style: none; margin: 0; padding: 0; }
.brief li { padding: .55rem 0; border-bottom: 1px dotted var(--hair); }
.seal { background: #fff; border: 1px solid var(--ink); padding: 1rem; }
.seal figcaption { border-bottom: 0; }

/* Row of three stories with column rules */
.row-3 { display: grid; gap: 2rem; border-top: 3px double var(--ink); padding-top: 1.75rem; }
@media (min-width: 56em) {
  .row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .col-story { padding: 0 1.5rem; }
  .col-story:first-child { padding-left: 0; }
  .col-story:last-child { padding-right: 0; }
  .col-story + .col-story { border-left: 1px solid var(--hair); }
}
.headline-m { font-size: clamp(1.45rem, 2.6vw, 1.8rem); }
.col-photo { margin: 0 0 .9rem; }
.col-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(.25); }
.col-photo-tight { margin-top: 1rem; }

/* Pull quote */
.quote-row { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-block: 1.5rem; padding-block: 2.5rem; text-align: center; }
.pullquote { margin: 0 auto; max-width: 54rem; }
.pullquote blockquote { margin: 0 0 1rem; }
.pullquote blockquote p { font-family: var(--head); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.25; margin: 0; }
.pullquote figcaption { border: 0; }
.blur-reveal .w { display: inline-block; max-width: 100%; will-change: filter; }

/* Chronology + feature photo */
.row-split { display: grid; gap: 2rem; }
@media (min-width: 56em) { .row-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }
.chrono { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.chrono li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px dotted var(--hair); }
.chrono time { font-family: var(--label); font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-dark); padding-top: .15rem; }
@media (max-width: 30em) { .chrono li { grid-template-columns: 1fr; gap: .2rem; } }
.feature-photo { margin: 0; }
.feature-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-photo.small { margin-top: 1.5rem; }

/* Section heads (Hemeroteca, Participa, Contacto) */
.section-head { border-top: 4px solid var(--ink); padding-top: .6rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 2rem; border-bottom: 1px solid var(--ink); }
.section-title { font-size: clamp(1.8rem, 6vw, 3.6rem); margin: 0; letter-spacing: -.01em; }
.section-head p { margin: 0 0 .6rem; font-family: var(--body); font-style: italic; color: var(--ink-2); }

/* Press clippings */
.clips { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; }
@media (min-width: 56em) { .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.clip { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hair); }
.clip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(.35); }
.clip-noimg { grid-template-columns: 1fr; }
.clip h3 { font-size: 1.2rem; margin-bottom: .4em; }
.clip p:last-child { margin: 0; }
.clip-meta { font-family: var(--label); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: .35rem; }
.clip-credit { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; }
@media (max-width: 30em) { .clip { grid-template-columns: 1fr; } .clip img { aspect-ratio: 16 / 9; } }
.context { margin-top: 2.25rem; background: var(--paper-2); border: 1px dashed var(--ink-2); padding: 1rem 1.25rem 1.25rem; }
.context-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.context h4 { font-size: 1.15rem; margin-bottom: .4em; }
.context p:last-child { margin: 0; }

/* Classifieds */
.ads { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.ad { border: 2px solid var(--ink); padding: 1rem 1.15rem; background: #fff; }
.ad h3 { font-family: var(--label); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; text-align: center; border-bottom: 1px solid var(--ink); padding-bottom: .4rem; }
.ad-link { font-family: var(--label); font-weight: 800; color: var(--blue-dark); }
.letters { margin-top: 2.25rem; max-width: 54rem; }
.letters details { border-bottom: 1px solid var(--hair); }
.letters summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .85rem 0; font-family: var(--head); font-weight: 700; font-size: 1.1rem; }
.letters summary::-webkit-details-marker { display: none; }
.letters summary .icon { transition: transform .2s ease; }
.letters details[open] summary .icon { transform: rotate(180deg); }
.letters details p { margin: 0 0 1rem; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px dotted var(--hair); }
.contact-list .icon { color: var(--blue-dark); margin-top: .2rem; }
.btn { font-family: var(--label); font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; padding: .75rem 1.4rem; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* Colophon */
.colophon { margin-top: 2rem; background: var(--ink); color: #ece6da; padding-block: 2.5rem; font-size: .95rem; }
.colophon-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.colophon-name { font-family: var(--black-letter); font-size: 2.2rem; line-height: 1; color: #fff; }
.colophon .box-title { border-color: #ece6da; color: #fff; }
.colophon a { color: #bae6fd; }
.colophon a:hover { color: #fff; }
.colophon a:focus-visible { outline-color: #bae6fd; }
.credits { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.credits li { margin-bottom: .4rem; }

@media (prefers-reduced-motion: reduce) {
  .sections .lnk::before, .sections .lnk::after, h3 .lnk, h4 .lnk, .letters summary .icon { transition: none; }
}

/* 404 page */
a.btn { display: inline-block; text-decoration: none; }
a.btn:hover { color: #fff; }
.notfound { padding-block: 3rem 4rem; max-width: 48rem; }

/* Long e-mail addresses may wrap on narrow screens */
a[href^="mailto:"] { overflow-wrap: anywhere; }
.contact-list li > span { min-width: 0; }
