/* Card guides extend the established article typography, colours and shell. */
.article-header h1 { font-size: clamp(29px, 5.2vw, 46px); }
.article-header .standfirst { font-size: 18px; color: var(--bone-dim); }
.article-meta { margin-top: 18px; }
.article-hero { width: 100%; max-width: 860px; margin: 0 0 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--felt-dark); }
.article-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.article-toc { max-width: 860px; margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(201,162,75,.035); }
.article-toc p, .example-kicker { margin: 0 0 10px; color: var(--brass); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.article-toc ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.article-toc a { display: inline-block; padding: 4px 0; color: var(--bone-dim); font-size: 13px; text-underline-offset: 4px; }
.article-toc a:hover { color: var(--bone); }
article h2[id], .worked-example { scroll-margin-top: 100px; }
article ul, article ol { margin: 0 0 22px; padding-left: 24px; }
article li { margin-bottom: 10px; }
article li::marker { color: var(--brass); }
.guide-note { margin: 24px 0; padding: 17px 20px; border-left: 3px solid var(--brass); border-radius: 0 10px 10px 0; background: rgba(201,162,75,.07); }
.guide-note p, .worked-example p:last-child, .worked-example ol { margin-bottom: 0; }
.table-wrap { max-width: 100%; margin: 22px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
article table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.5; }
article caption { padding: 13px 15px; color: var(--bone-dim); font-size: 12px; text-align: left; }
article th, article td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: left; }
article thead th { background: linear-gradient(180deg,#14503c,var(--felt)); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
article tbody th { font-weight: 600; }
article tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
article tbody tr:last-child > * { border-bottom: 0; }
.worked-example { margin: 20px 0; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg,#0d2118,#091711); }
.worked-example h3 { margin: 0 0 17px; font: 600 23px/1.3 "Iowan Old Style",Palatino,Georgia,serif; }
.example-hand { display: flex; gap: 10px; margin: 0 0 22px; }
.example-card { display: flex; width: 76px; min-height: 104px; flex-direction: column; justify-content: space-between; padding: 10px 0 0; border: 2px solid #b5af9f; border-radius: 8px; background: #e9e3d5; color: #20241e; font: 700 24px/1.1 Georgia,serif; text-align: center; box-shadow: 0 3px 10px #0004; }
.example-card.is-red { color: #a41e22; }
.example-card.is-held { border-color: var(--brass); background: #fffaf0; box-shadow: 0 0 0 2px #c9a24b25; }
.example-card small { display: block; margin-top: 10px; padding: 6px 1px; border-radius: 0 0 5px 5px; background: #303e36; color: #ece7d9; font: 700 10px/1 system-ui,sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.example-card.is-held small { background: var(--brass); color: #201904; }
article a.btn-primary { color: #1a1304; border: 1px solid var(--brass); }
@media(max-width:600px) {
  .article-toc { padding: 16px; }
  .article-toc ul { gap: 7px 16px; }
  .worked-example { padding: 17px 14px; }
  .example-hand { gap: 6px; }
  .example-card { width: calc((100% - 24px) / 5); max-width: 70px; min-height: 90px; font-size: 21px; }
  .example-card small { font-size: 8px; letter-spacing: 0; }
  article th, article td { padding: 10px 12px; }
  .article-header .standfirst { font-size: 17px; }
}
