/* =====================================================================
   The reading template for blog posts (/blog/article.css).

   One column of plain paragraphs, the way a news article reads on a
   phone: a dark opening with the headline, the picture, a bold
   standfirst, then prose broken up by pictures. No cards, no contents
   list, no numbered bands. Posts that use this sheet carry no styles of
   their own and do not load blog-polish.css or blog-enhance.js.

   Fonts: Fraunces (headline, subheads), DM Sans (reading text).
   ===================================================================== */

:root {
    --a-ground: #16233a;
    --a-ground-ink: #f7eee1;
    --a-ground-soft: #aab6ca;
    --a-ground-line: rgba(247, 238, 225, 0.16);
    --a-paper: #faf8f5;
    --a-ink: #1a1a1a;
    --a-ink-soft: #3d3a34;
    --a-muted: #6b6459;
    --a-line: #e4dfd5;
    --a-link: #a9475d;
    --a-link-hover: #80508c;
    --a-dusk: linear-gradient(100deg, #2c4566 0%, #4f4c8e 26%, #80508c 50%, #c4576a 74%, #d98a3d 100%);
    --a-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --a-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --a-gutter: 16px;
    --a-measure: 680px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body.art-page {
    margin: 0;
    background: var(--a-paper);
    color: var(--a-ink);
    font-family: var(--a-sans);
    font-size: 18px;
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.art-page img { max-width: 100%; height: auto; display: block; }

.art-page a { color: var(--a-link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.art-page a:hover { color: var(--a-link-hover); }
.art-page :focus-visible { outline: 2px solid #d98a3d; outline-offset: 3px; }

/* ---------- the bar ---------- */
.art-bar {
    background: var(--a-ground);
    border-bottom: 1px solid var(--a-ground-line);
}
.art-bar-in {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--a-gutter);
    height: 56px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.art-page a.art-bar-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-right: auto;
    font-family: var(--a-serif);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--a-ground-ink);
    text-decoration: none;
}
.art-bar-brand img { width: 24px; height: 24px; }
.art-bar-brand em { font-weight: 400; color: #a9b6e2; }
.art-bar a.art-bar-link {
    color: var(--a-ground-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 2px;
}
.art-bar a.art-bar-link:hover { text-decoration: underline; color: var(--a-ground-ink); }

/* ---------- the opening: headline on the dark ground, picture across the join ---------- */
.art-open {
    background: linear-gradient(var(--a-ground), var(--a-ground)) top / 100% calc(100% - var(--a-hero-drop, 72px)) no-repeat;
    padding: 14px var(--a-gutter) 0;
}
.art-open-in { max-width: var(--a-measure); margin: 0 auto; }

.art-crumb {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--a-ground-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.art-crumb a { color: var(--a-ground-ink); text-decoration: none; }
.art-crumb a:hover { text-decoration: underline; color: var(--a-ground-ink); }
.art-crumb span { padding: 0 6px; opacity: 0.6; }

.art-open h1 {
    margin: 0;
    font-family: var(--a-serif);
    font-weight: 300;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.005em;
    color: var(--a-ground-ink);
    text-wrap: balance;
}

.art-by {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin: 14px 0 20px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--a-ground-soft);
}
.art-by p { margin: 0; }
.art-by b { display: block; color: var(--a-ground-ink); font-weight: 500; }
.art-by i { font-style: normal; padding: 0 5px; opacity: 0.6; }
.art-share {
    flex: none;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    font: 500 13px/1 var(--a-sans);
    color: var(--a-ground-ink);
    background: none;
    border: 1px solid rgba(247, 238, 225, 0.5);
    border-radius: 18px;
    cursor: pointer;
}
.art-share:hover { border-color: var(--a-ground-ink); }
.art-share svg { width: 14px; height: 14px; }

.art-hero { margin: 0; }
.art-hero img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 2px;
    background: #e9e3d8;
}

/* ---------- the reading column ---------- */
.art-body {
    max-width: calc(var(--a-measure) + 2 * var(--a-gutter));
    margin: 0 auto;
    padding: 22px var(--a-gutter) 8px;
}

.art-stand {
    margin: 0;
    font-size: 20px;
    line-height: 1.42;
    font-weight: 700;
    letter-spacing: -0.003em;
    text-wrap: pretty;
}
.art-stand::after {
    content: '';
    display: block;
    width: 150px;
    height: 2px;
    margin: 26px auto 24px;
    background: var(--a-dusk);
}

.art-body p { margin: 0 0 1em; text-wrap: pretty; overflow-wrap: break-word; }

.art-body h2 {
    margin: 1.9em 0 0.5em;
    font-family: var(--a-serif);
    font-weight: 600;
    font-size: 23px;
    line-height: 1.28;
    letter-spacing: -0.005em;
    text-wrap: balance;
}
.art-body h3 {
    margin: 1.6em 0 0.3em;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.art-body ul, .art-body ol { margin: 0 0 1em; padding-left: 1.15em; }
.art-body li { margin: 0 0 0.45em; padding-left: 0.2em; }

.art-body blockquote {
    margin: 1.5em 0;
    padding: 0 0 0 18px;
    font-family: var(--a-serif);
    font-size: 21px;
    line-height: 1.5;
    font-style: italic;
    color: var(--a-ink-soft);
}
.art-body blockquote p { margin: 0; }
.art-body blockquote cite {
    display: block;
    margin-top: 8px;
    font: 500 13px/1.4 var(--a-sans);
    font-style: normal;
    color: var(--a-muted);
}

/* pictures between the paragraphs */
.art-fig { margin: 26px 0 30px; }
.art-fig img { width: 100%; border-radius: 2px; background: #efeae1; }
.art-fig.is-shot img { width: min(100%, 460px); height: auto; margin-inline: auto; border: 1px solid var(--a-line); }
.art-fig.is-shot figcaption { max-width: 460px; margin-inline: auto; }
.art-fig.is-tall img { width: auto; max-height: 560px; margin: 0 auto; }
.art-fig figcaption {
    margin-top: 9px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--a-muted);
}

/* figures the page draws itself: a few bars or a ladder of prices */
.art-chart { margin: 26px 0 30px; padding: 18px 0 0; border-top: 1px solid var(--a-line); }
.art-chart-title { margin: 0 0 14px; font-size: 15px; line-height: 1.4; font-weight: 700; }
.art-chart-row { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 4px 12px; align-items: center; margin: 0 0 10px; font-size: 14px; line-height: 1.35; }
.art-chart-row span:first-child { color: var(--a-ink-soft); }
.art-chart-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.art-chart-bar i { display: block; height: 14px; min-width: 2px; background: #2c4566; border-radius: 1px; }
.art-chart-row.is-us .art-chart-bar i { background: #c4576a; }
.art-chart-bar b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.art-chart figcaption, .art-chart-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--a-muted); }

/* tables people come for: plain rows, scroll in their own box */
.art-table { margin: 24px 0 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--a-ink); }
.art-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.art-table th, .art-table td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--a-line); }
.art-table th { font-size: 13px; font-weight: 700; color: var(--a-muted); }
.art-table td:first-child, .art-table th:first-child { min-width: 84px; }
.art-table td:first-child { font-weight: 600; }
.art-table-note { margin: -18px 0 28px; font-size: 13.5px; color: var(--a-muted); }

/* another article, set between paragraphs */
.art-more {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    align-items: start;
    margin: 26px 0 26px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--a-line);
    text-decoration: none;
    color: var(--a-ink);
}
.art-page a.art-more { color: var(--a-ink); }
.art-more img { width: 112px; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.art-more small { display: block; margin: 0 0 4px; font-size: 12.5px; line-height: 1.4; color: var(--a-muted); }
.art-more b { display: block; font-size: 16.5px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-more span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--a-ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-more:hover b { text-decoration: underline; }

.art-cta { margin: 1.6em 0 0.4em; }
.art-page a.art-btn {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 22px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--a-ground-ink);
    background: var(--a-ground);
    border-radius: 2px;
    text-decoration: none;
}
.art-page a.art-btn:hover { background: #22375a; color: var(--a-ground-ink); }

/* ---------- after the article ---------- */
.art-end { margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid var(--a-line); font-size: 14px; line-height: 1.5; color: var(--a-muted); }
.art-end p { margin: 0 0 6px; }
.art-body .art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.art-body .art-tags li { margin: 0; padding: 5px 13px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--a-ink); border: 1px solid var(--a-ink); border-radius: 16px; }

.art-faq { margin: 34px 0 0; }
.art-faq h2 { margin-top: 0; }
.art-faq h3 { margin: 1.3em 0 0.25em; }
.art-faq p { color: var(--a-ink-soft); }

.art-next { margin-top: 40px; padding: 30px 0 34px; background: var(--a-ground); color: var(--a-ground-ink); }
.art-next h2 {
    max-width: calc(var(--a-measure) + 2 * var(--a-gutter));
    margin: 0 auto 18px;
    padding: 0 var(--a-gutter);
    font-family: var(--a-serif);
    font-weight: 300;
    font-size: 26px;
    line-height: 1.2;
}
.art-next-row {
    display: flex;
    gap: 14px;
    max-width: calc(var(--a-measure) + 2 * var(--a-gutter));
    margin: 0 auto;
    padding: 0 var(--a-gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--a-gutter);
    scrollbar-width: none;
}
.art-next-row::-webkit-scrollbar { display: none; }
.art-page .art-next a { flex: 0 0 168px; scroll-snap-align: start; color: var(--a-ground-ink); text-decoration: none; }
.art-next a img { width: 168px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; background: #22375a; }
.art-next a b { display: block; margin-top: 9px; font-size: 15px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-next a:hover b { text-decoration: underline; }
.art-next-all { max-width: calc(var(--a-measure) + 2 * var(--a-gutter)); margin: 20px auto 0; padding: 0 var(--a-gutter); font-size: 14.5px; }
.art-page .art-next-all a { color: var(--a-ground-ink); }

.art-foot { background: var(--a-ground); border-top: 1px solid var(--a-ground-line); color: var(--a-ground-soft); font-size: 13px; line-height: 1.5; }
.art-foot p { max-width: calc(var(--a-measure) + 2 * var(--a-gutter)); margin: 0 auto; padding: 18px var(--a-gutter) 26px; display: flex; align-items: center; gap: 10px; }
.art-page .art-foot a { color: var(--a-ground-ink); }
.art-foot img { width: 22px; height: 22px; }

.region-us .uk-only, .region-eu .uk-only { display: none; }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
    .art-fig.is-shot img { width: auto; max-width: min(100%, 460px); max-height: 640px; }
    :root { --a-gutter: 28px; }
    body.art-page { font-size: 19px; }
    .art-open { padding-top: 26px; --a-hero-drop: 130px; }
    .art-open h1 { font-size: clamp(34px, 4.6vw, 46px); line-height: 1.16; }
    .art-crumb { margin-bottom: 26px; }
    .art-by { margin: 20px 0 30px; font-size: 14px; }
    .art-body { padding-top: 34px; }
    .art-stand { font-size: 23px; line-height: 1.4; }
    .art-stand::after { margin: 34px auto 32px; }
    .art-body h2 { font-size: 28px; }
    .art-body h3 { font-size: 20px; }
    .art-fig { margin: 34px 0 38px; }
    .art-table table { font-size: 15.5px; min-width: 0 !important; }
    .art-more { grid-template-columns: 150px 1fr; gap: 20px; }
    .art-more img { width: 150px; }
    .art-next h2 { font-size: 32px; }
    .art-page .art-next a { flex-basis: 208px; }
    .art-next a img { width: 208px; }
}

@media (prefers-reduced-motion: no-preference) {
    .art-share, .art-page a.art-btn { transition: background-color 0.15s, border-color 0.15s; }
}

@media print {
    .art-bar, .art-share, .art-next, .art-foot, .art-cta, .art-more, .art-crumb { display: none; }
    .art-table { overflow: visible; }
    .art-table table { min-width: 0 !important; }
    .art-table td:empty { height: 30px; }
    .art-fig, .art-chart, .art-table tr { break-inside: avoid; }
    .art-open { background: none; }
    .art-open h1, .art-by b { color: #000; }
    .art-by, .art-crumb, .art-crumb a { color: #444; }
}
