/* The Guardia — public site styles. Calm, readable, mobile first. */

@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url(../fonts/playfair-display-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 900; font-display: swap; src: url(../fonts/playfair-display-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url(../fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url(../fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-display: swap; src: url(../fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); }

:root {
  --paper: #faf8f4;
  --surface: #ffffff;
  --ink: #121212;
  --ink-2: #33312e;
  --muted: #6b6862;
  --line: #e3dfd6;
  --line-strong: #121212;
  --red: #d7261e;
  --red-ink: #b51f18;
  --red-soft: #fbe9e7;
  --court: #f3efe6;
  --head: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121314; --surface: #1a1b1d; --ink: #f1efe9; --ink-2: #d6d3cb; --muted: #a29e95;
    --line: #2d2e31; --line-strong: #f1efe9; --red: #ff5a4e; --red-ink: #ff7a70; --red-soft: #3a1d1b; --court: #1f1e1b;
    color-scheme: dark;
  }
  .logo img, .drawer-head img { filter: invert(1) hue-rotate(180deg); }
}
@media (min-width: 760px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; font-family: var(--sans); }
.skip:focus { left: 8px; }
.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); }
.topbar { display: flex; justify-content: space-between; align-items: center; font: 500 13px/1 var(--sans); color: var(--muted); padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.top-links { display: flex; gap: 18px; }
.top-links a, .top-links button { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font: inherit; }
.top-links .i { width: 16px; height: 16px; }
.masthead { display: flex; align-items: center; justify-content: center; position: relative; padding-top: 18px; padding-bottom: 16px; }
.logo { display: block; line-height: 0; }
.logo-full { width: 380px; height: auto; }
.logo-compact { display: none; width: 190px; height: auto; }
.menu-btn, .search-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
.menu-btn { left: var(--gutter); }
.search-btn { right: var(--gutter); display: none; }
.menu-btn:hover, .search-btn:hover { background: var(--line); }
.menu-btn .i, .search-btn .i { width: 22px; height: 22px; }
.searchbar { display: flex; gap: 8px; padding-bottom: 14px; }
.searchbar[hidden] { display: none; }
.searchbar input, .search-page-form input { flex: 1; min-width: 0; font: 400 17px var(--sans); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); }
.searchbar button { font: 600 15px var(--sans); background: var(--ink); color: var(--paper); padding: 0 18px; border-radius: 4px; }
.nav { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { font: 600 15px/1 var(--sans); padding: 14px 12px 13px; white-space: nowrap; border-bottom: 3px solid transparent; color: var(--ink-2); }
.nav-inner a:hover { text-decoration: none; color: var(--ink); border-bottom-color: var(--line); }
.nav-inner a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.breaking { background: var(--red); color: #fff; font: 500 15px/1.35 var(--sans); }
.breaking-inner { display: flex; gap: 14px; align-items: baseline; padding-top: 10px; padding-bottom: 10px; }
.breaking-inner strong { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; background: #fff; color: var(--red); padding: 3px 7px; border-radius: 2px; flex: none; }
.breaking-list { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.breaking-list a { font-weight: 600; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: var(--paper); overflow-y: auto; padding: 16px 20px 40px; box-shadow: 0 0 40px rgba(0,0,0,.25); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-head button { width: 40px; height: 40px; display: grid; place-items: center; }
.drawer-search input { width: 100%; font: 16px var(--sans); padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.drawer-list { list-style: none; padding: 0; margin: 14px 0 0; font: 600 17px/1.3 var(--sans); }
.drawer-list > li { border-bottom: 1px solid var(--line); }
.drawer-list a { display: block; padding: 12px 0; }
.drawer-list ul { list-style: none; padding: 0 0 8px 14px; margin: -4px 0 0; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.drawer-list ul a { padding: 6px 0; }

/* ---------- Cards ---------- */
.kicker { display: inline-block; font: 700 12.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .07em; color: var(--red-ink); margin-bottom: 6px; }
.live { display: inline-block; font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--red); padding: 4px 6px 3px; border-radius: 2px; margin-right: 4px; vertical-align: 1px; }
.card-title { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.18; letter-spacing: -.005em; }
.card-title a:hover { text-decoration-color: var(--red); }
.standfirst { color: var(--ink-2); margin: 8px 0 0; }
.meta { font: 500 13px/1.3 var(--sans); color: var(--muted); margin-top: 8px; }
.card-img { display: block; overflow: hidden; background: var(--line); border-radius: 2px; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.02); }
.card-lead .card-title { font-size: clamp(27px, 4.2vw, 40px); font-weight: 900; line-height: 1.1; margin-top: 2px; }
.card-lead .card-body { padding-top: 14px; }
.card-lead .standfirst { font-size: 19px; }
.card-standard .card-body { padding-top: 10px; }
.card-standard .card-title { font-size: 21px; }
.card-standard .standfirst { font-size: 16px; }
.card-compact { display: flex; gap: 14px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.card-compact .card-title { font-size: 18.5px; }
.card-compact .card-img { flex: none; width: 112px; align-self: flex-start; }
.card-compact .card-img img { aspect-ratio: 4 / 3; }
.card-text { padding: 12px 0; border-top: 1px solid var(--line); }
.card-text .card-title { font-size: 18px; }
.most-read ol { list-style: none; counter-reset: mr; padding: 0; margin: 0; }
.card-number { counter-increment: mr; display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font: 700 17px/1.25 var(--head); }
.card-number::before { content: counter(mr); font: 900 30px/0.9 var(--head); color: var(--red); min-width: 26px; }

/* ---------- Home ---------- */
.top-stories { display: grid; gap: 22px; padding-top: 22px; padding-bottom: 8px; }
.side-col { display: grid; gap: 0; align-content: start; }
.side-col .card-standard { padding-bottom: 14px; }
.layout-2col { display: grid; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--line-strong); padding-top: 10px; margin: 6px 0 4px; }
.section-head h2 { font: 900 24px/1.2 var(--head); margin: 0; }
.section-head .more { font: 600 14px var(--sans); color: var(--red-ink); display: inline-flex; gap: 4px; align-items: center; }
.section-head .more .i { width: 16px; height: 16px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px 6px; margin-bottom: 22px; }
.box-title { font: 900 21px var(--head); margin: 0 0 6px; }
.home-section { padding-top: 14px; padding-bottom: 14px; }
.section-courts .section-head { border-top-color: var(--red); }
.section-grid { display: grid; gap: 18px; margin-top: 12px; }
.section-rest .card-text:first-child { border-top: 0; padding-top: 0; }
.photo-promo { padding-top: 20px; padding-bottom: 30px; }
.photo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 10px; }
.photo-strip a { position: relative; display: block; overflow: hidden; border-radius: 3px; }
.photo-strip img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.photo-strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; font: 600 13px/1.3 var(--sans); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.empty-state { text-align: center; padding: 80px 16px; }
.empty-state h2 { font: 900 30px var(--head); }

/* ---------- Article ---------- */
.preview-bar { background: #fff3cd; color: #5c4400; font: 500 14px var(--sans); text-align: center; padding: 10px; }
.article-wrap { display: grid; gap: 32px; padding-top: 18px; }
.crumbs { font: 600 13px var(--sans); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.crumbs a { color: var(--red-ink); }
.article-head h1 { font: 900 clamp(30px, 5.2vw, 46px)/1.1 var(--head); margin: 6px 0 0; letter-spacing: -.01em; }
.article-head .standfirst { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.45; margin-top: 14px; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 14px/1.35 var(--sans); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 17px var(--head); flex: none; }
.byline-text { display: flex; flex-direction: column; font-weight: 700; }
.byline-text a { color: var(--red-ink); }
.byline-text small { font-weight: 500; color: var(--muted); font-size: 13px; }
.dates { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); margin-left: auto; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.share a:hover, .share button:hover { text-decoration: none; border-color: var(--ink); color: var(--ink); }
.share .share-whatsapp { color: #128c4a; }
.share .share-facebook { color: #1b61d1; }
.article-figure { margin: 8px 0 22px; }
.article-figure img { width: 100%; border-radius: 2px; }
.article-figure figcaption { font: 400 14px/1.45 var(--sans); color: var(--muted); padding-top: 8px; }
.credit { white-space: nowrap; }
.toc { background: var(--surface); border-left: 3px solid var(--red); padding: 12px 16px; margin: 0 0 22px; font: 500 15px/1.4 var(--sans); }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.toc a { color: var(--red-ink); }
.article-body { font-size: 19px; line-height: 1.72; color: var(--ink); max-width: 680px; }
.article-body > * { margin: 0; }
.article-body > * + * { margin-top: 1.05em; }
.article-body > p:first-of-type::first-letter { float: left; font: 900 3.6em/0.8 var(--head); padding: 6px 8px 0 0; color: var(--ink); }
.article-body.has-dateline > p:first-of-type::first-letter { float: none; font: inherit; padding: 0; }
.dateline { font: 700 15px var(--sans); letter-spacing: .04em; }
.article-body h2 { font: 700 26px/1.25 var(--head); margin-top: 1.6em; }
.article-body h3 { font: 700 21px/1.3 var(--head); margin-top: 1.4em; }
.article-body a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.article-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); font-style: italic; color: var(--ink-2); font-size: 21px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .35em; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { font: 14px/1.4 var(--sans); color: var(--muted); padding-top: 6px; }
.article-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.article-body table { border-collapse: collapse; width: 100%; font: 15px var(--sans); display: block; overflow-x: auto; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.article-body .key-points, .article-body aside.key-points { background: var(--court); border-radius: 4px; padding: 16px 20px; font: 16px/1.55 var(--sans); }
.source-box { margin: 28px 0 10px; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 4px; font: 15px/1.5 var(--sans); max-width: 680px; }
.source-box p { margin: 6px 0 0; }
.source-box a { color: var(--red-ink); text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.tags a { font: 600 13px var(--sans); padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); }
.tags a:hover { border-color: var(--ink); text-decoration: none; }
.alerts-cta { display: flex; gap: 14px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--ink); color: var(--paper); padding: 18px 20px; border-radius: 4px; margin: 20px 0; font-family: var(--sans); max-width: 680px; }
.alerts-cta p { margin: 4px 0 0; opacity: .8; font-size: 15px; }
.author-box { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); font: 15px/1.5 var(--sans); max-width: 680px; }
.author-box p { margin: 4px 0 0; color: var(--ink-2); }
.article-side .sticky, .col-side .sticky { position: sticky; top: 64px; }
.related { padding-top: 12px; padding-bottom: 30px; }
.grid-4, .grid-3 { display: grid; gap: 20px; margin-top: 14px; }

/* ---------- Lists ---------- */
.list-head { padding-top: 24px; padding-bottom: 6px; }
.list-head h1 { font: 900 clamp(30px, 5vw, 44px)/1.1 var(--head); margin: 0; padding-bottom: 6px; border-bottom: 3px solid var(--line-strong); }
.list-head.section-courts h1 { border-bottom-color: var(--red); }
.list-head .intro { color: var(--ink-2); font-size: 18px; margin: 12px 0 0; max-width: 760px; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.subnav a { font: 600 14px var(--sans); padding: 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.list-lead { padding-bottom: 18px; }
.latest-list .card-compact:first-child { border-top: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; font: 600 15px var(--sans); }
.pager a, .pager span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .gap { border: 0; background: none; }
.feed-link { font: 500 14px var(--sans); color: var(--muted); }
.empty { font-size: 18px; color: var(--muted); padding: 30px 0; }
.search-page-form { display: flex; gap: 8px; margin-top: 16px; max-width: 640px; }
.archive { padding-bottom: 40px; }
.archive-year { border-top: 1px solid var(--line); padding: 16px 0; }
.archive-year h2 { font: 900 26px var(--head); margin: 0 0 10px; }
.archive-year h2 small { font: 500 14px var(--sans); color: var(--muted); }
.archive-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font: 600 15px var(--sans); }
.archive-months a, .archive-months span { padding: 9px 10px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); }
.archive-months span { color: var(--muted); opacity: .5; background: none; }
.archive-months small { color: var(--muted); font-weight: 500; }

/* ---------- Static pages & forms ---------- */
.page-wrap { padding-top: 26px; padding-bottom: 40px; max-width: 800px; }
.static-page .article-body > p:first-of-type::first-letter { float: none; font: inherit; padding: 0; }
.notfound { text-align: center; }
.notfound h1 { font: 900 38px var(--head); }
.notfound .search-page-form { margin: 18px auto; }
.form { display: grid; gap: 16px; font-family: var(--sans); max-width: 560px; margin-top: 20px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { font: 400 16px var(--sans); padding: 11px 12px; border: 1px solid #bdb8ad; border-radius: 4px; background: var(--surface); color: var(--ink); }
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; font: 600 15px/1 var(--sans); background: var(--red); color: #fff; padding: 12px 18px; border-radius: 4px; }
.btn:hover { background: var(--red-ink); text-decoration: none; }
.btn-light { background: #fff; color: #121212; }
.btn-light:hover { background: #f1efe9; }
.btn-link { font: 500 14px var(--sans); color: var(--muted); text-decoration: underline; }
.notice { padding: 12px 14px; border-radius: 4px; font: 15px var(--sans); margin: 14px 0; }
.notice-success { background: #e7f6ec; color: #135c2c; }
.notice-error { background: var(--red-soft); color: var(--red-ink); }

/* ---------- Ads ---------- */
.ad { margin: 18px auto; text-align: center; min-height: 100px; }
.ad-label { display: block; font: 500 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad img { margin: 0 auto; }
.ad-header { min-height: 90px; }
.ad-sidebar { min-height: 250px; }
.article-body .ad { margin: 1.6em 0; }
.mobile-anchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); box-shadow: 0 -2px 12px rgba(0,0,0,.15); padding: 4px 30px 4px 4px; }
.mobile-anchor .ad { margin: 0; min-height: 50px; }
.mobile-anchor .ad-label { display: none; }
.mobile-anchor button { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; display: grid; place-items: center; }
@media (min-width: 760px) { .mobile-anchor { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: #121212; color: #e9e6df; margin-top: 30px; font-family: var(--sans); }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding: 32px 0 22px; border-bottom: 1px solid #333; }
.footer-logo img { width: 240px; }
.footer-alerts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.footer-alerts p { margin: 0; max-width: 340px; color: #bdb9b0; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 26px 0; }
.footer-cols h3 { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #8f8b82; margin: 0 0 10px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0 28px; border-top: 1px solid #333; font-size: 13px; color: #8f8b82; }
.footer-bottom p { margin: 0; }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #444; }

/* ---------- Alerts prompt & toast ---------- */
.alerts-prompt { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.2); border-radius: 8px; padding: 14px 16px; font-family: var(--sans); max-width: 460px; }
.alerts-prompt[hidden] { display: none; }
.alerts-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.alerts-text { flex: 1; min-width: 180px; }
.alerts-text p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.alerts-actions { display: flex; gap: 12px; align-items: center; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); font: 500 14px var(--sans); padding: 10px 16px; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }

/* ---------- Photo store ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-top: 16px; padding-bottom: 30px; }
.photo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-family: var(--sans); }
.photo-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-card div { padding: 10px 12px 12px; }
.photo-card h3 { font: 700 16px/1.3 var(--head); margin: 0; }
.photo-card .price { font-size: 14px; color: var(--red-ink); font-weight: 700; margin-top: 6px; }
.photo-detail { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 40px; }
.photo-detail img { width: 100%; border-radius: 3px; }
.photo-detail h1 { font: 900 32px/1.15 var(--head); margin: 0; }
.licences { display: grid; gap: 10px; margin: 18px 0; font-family: var(--sans); }
.licences label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 12px 14px; border-radius: 4px; background: var(--surface); cursor: pointer; }
.licences label:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.licences strong { display: block; }
.licences small { color: var(--muted); }
.licences .amount { margin-left: auto; font-weight: 700; white-space: nowrap; }
.facts { font: 14px/1.6 var(--sans); color: var(--muted); }

/* ---------- Breakpoints ---------- */
@media (max-width: 759px) {
  .topbar { display: none; }
  .masthead { padding-top: 12px; padding-bottom: 10px; }
  .logo-full { display: none; }
  .logo-compact { display: block; }
  .search-btn { display: grid; }
  .card-lead .card-img { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .byline .dates { margin-left: 0; width: 100%; }
  .article-body { font-size: 18px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .archive-months { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 760px) {
  .top-stories { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; }
  .side-col { border-left: 1px solid var(--line); padding-left: 24px; }
  .section-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .card-compact .card-img { width: 168px; }
  .card-compact .card-title { font-size: 20px; }
}
@media (min-width: 1100px) {
  .layout-2col, .article-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .photo-detail { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; }
  .article { max-width: 760px; }
}
@media (max-width: 1099px) { .col-side .sticky { position: static; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header .nav, .topbar, .share, .ad, .alerts-cta, .site-footer, .col-side, .related, .mobile-anchor, .alerts-prompt { display: none !important; }
  body { background: #fff; color: #000; }
}
