/* Officiata · blog.css: /blog and /blog/<slug>, built by blog/build.mjs. Load order: tokens.css, site.css, pages.css,
   blog.css, color.css. Only tokens from tokens.css; header, footer, hero, cards, buttons and the closing band come from
   site.css and pages.css unchanged. This file adds the post list and one readable column of article text. */

/* ---------- the label above the H1: "Blog · Football", with Blog as a link ---------- */
.sec--navy .t-label a{color:var(--c-orange-on-navy);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.sec--navy .t-label a:hover{color:#fff}

/* ---------- /blog: the list of posts, newest first ---------- */
.post-list{display:grid;gap:var(--space-5);max-width:820px}
.post-card{display:grid;gap:var(--space-3);align-content:start}
.post-card h2,.post-card h3{font-size:var(--fs-h3);line-height:var(--lh-h3);letter-spacing:0;max-width:none}
.post-card h2 a,.post-card h3 a{color:var(--c-ink);text-decoration:none}
.post-card h2 a:hover,.post-card h3 a:hover{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
/* the whole card is the link's target area, without nesting a block in the link */
.post-card{position:relative}
.post-card h2 a::after,.post-card h3 a::after{content:"";position:absolute;inset:0;border-radius:var(--r-card)}
.post-card h2 a:focus-visible,.post-card h3 a:focus-visible{outline:none}
.post-card h2 a:focus-visible::after,.post-card h3 a:focus-visible::after{outline:2px solid var(--focus);outline-offset:2px}
.post-card .t-label{margin:0}

/* ---------- /blog with no posts yet ---------- */
.empty h2 + p{margin-top:var(--space-4)}

/* ---------- /blog/<slug>: one column of text ---------- */
.post-body{padding-top:var(--space-7)}
.prose{max-width:var(--w-text);color:var(--c-text)}
.prose > * + *{margin-top:var(--space-4)}
.prose h2{font-size:var(--fs-h2);line-height:var(--lh-h2);margin-top:var(--space-8)}
.prose h3{margin-top:var(--space-6)}
.prose h2 + *,.prose h3 + *{margin-top:var(--space-3)}
.prose > :first-child{margin-top:0}
.prose strong{color:var(--c-ink)}
.prose a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.prose a:hover{color:var(--link-hover);text-decoration-thickness:2px}
/* lists: site.css removes markers everywhere, so the article puts them back */
.prose ul{list-style:disc;padding-left:1.3em}
.prose ol{list-style:decimal;padding-left:1.5em}
.prose li + li{margin-top:var(--space-2)}
.prose li::marker{color:var(--acc-d,var(--c-ink));font-weight:var(--fw-bold)}
.prose blockquote{border-left:3px solid var(--c-line-strong);padding-left:var(--space-4);color:var(--c-ink)}
.prose figure{margin-top:var(--space-6)}
.prose figure img{width:100%;border-radius:var(--r-card);border:1px solid var(--c-line)}
.prose figcaption{margin-top:var(--space-3)}
.prose hr{border:0;border-top:1px solid var(--c-line);margin-block:var(--space-7)}
/* a table scrolls sideways on a phone instead of widening the page */
.prose .table{overflow-x:auto}
.prose table{border-collapse:collapse;width:100%;font-size:var(--fs-small);line-height:var(--lh-small)}
.prose th,.prose td{text-align:left;padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--c-line);vertical-align:top}
.prose th{color:var(--c-ink);font-weight:var(--fw-bold)}
.post-back{margin-top:var(--space-8);padding-top:var(--space-5);border-top:1px solid var(--c-line);max-width:var(--w-text)}
.post-card > p:not(.t-label){margin-top:0}

/* ---------- cards in a grid: "Read next" under a post (two) and "From the blog" on the home page (three) ---------- */
.post-list--two,.post-list--three{max-width:none}
@media (min-width:720px){.post-list--two{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.post-list--three{grid-template-columns:repeat(3,1fr)}}
@media (min-width:720px) and (max-width:1023px){.post-list--three{grid-template-columns:repeat(2,1fr)}}
.read-next h2{margin-bottom:var(--space-6)}
#blog .sec-head{margin-bottom:var(--space-6)}
