/* PressTheWord. Contract: DESIGN.md. Black, white and one yellow: the yellow box behind key figures. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	--ptw-black: #000000;
	--ptw-ink: #000000;
	--ptw-text: #1f2328;
	--ptw-muted: #5a6068;
	--ptw-line: #d9dcdf;
	--ptw-soft: #eef0f2;
	--ptw-surface: #ffffff;
	--ptw-yellow: #ffd400;
	--ptw-head: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
	--ptw-serif: var(--ptw-head); /* calculators read this name for the big result */
	--ptw-sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1400px;
	--gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (min-width: 900px) { html, body { overscroll-behavior-y: none; } }
/* Phones too: the bottom-of-page bounce slid the sticky header away on TravelConcern (Pixel, 2026-10-20). No pull-to-refresh needed. */
@media (max-width: 899px) { html, body { overscroll-behavior-y: none; } }
body { margin: 0; background: var(--ptw-surface); color: var(--ptw-text); font: 400 1.0625rem/1.65 var(--ptw-sans); }
img { max-width: 100%; height: auto; }
a { color: var(--ptw-black); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ptw-black); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--ptw-head); color: var(--ptw-black); font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.4rem, 2.1vw, 1.75rem); line-height: 1.2; margin: 44px 0 12px; }
h3 { font-size: 1.2rem; font-weight: 750; line-height: 1.3; margin: 28px 0 8px; }

/* The signature: a key figure on a yellow box. */
.ptw-figure {
	display: inline-block; padding: 0.05em 0.3em; background: var(--ptw-yellow); color: var(--ptw-black);
	font-family: var(--ptw-head); font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -0.01em;
}
.ptw-figure--small { font-size: 0.95rem; font-weight: 800; padding: 0.02em 0.28em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ptw-yellow); color: var(--ptw-black); padding: 8px 14px; border-radius: 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Masthead */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ptw-black); color: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-logo img { display: block; width: 190px; height: auto; filter: invert(1); }
.site-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 8px 14px; color: #fff; font-family: var(--ptw-head); font-weight: 650; font-size: 0.95rem; text-decoration: none; border-radius: 12px; }
.site-nav a:hover { background: #1c1c1c; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ptw-yellow); border-radius: 0; }
.site-nav .site-nav__calc { margin-left: 10px; background: var(--ptw-yellow); color: var(--ptw-black); border-radius: 12px; }
.site-nav .site-nav__calc:hover { background: #fff; }
.nav-toggle { display: none; }

/* Money numbers strip */
.numbers { border-bottom: 1px solid var(--ptw-line); background: #fff; }
.numbers__inner { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.numbers__item { display: grid; gap: 6px; align-content: start; padding: 18px 18px 18px 0; text-decoration: none; color: var(--ptw-text); }
.numbers__item + .numbers__item { padding-left: 18px; border-left: 1px solid var(--ptw-line); }
.numbers__label { font-size: 0.85rem; font-weight: 600; color: var(--ptw-black); }
.numbers__item .ptw-figure { justify-self: start; font-size: 1.45rem; }
.numbers__note { font-size: 0.8rem; color: var(--ptw-muted); }
.numbers__item:hover .numbers__label { text-decoration: underline; }

/* Shared lists */
.section-title { font-size: 1.5rem; margin: 52px 0 6px; padding-bottom: 10px; border-bottom: 3px solid var(--ptw-black); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.row a, .bank-strip__list a { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--ptw-line); text-decoration: none; color: var(--ptw-text); }
.row__title { font-family: var(--ptw-head); font-weight: 750; font-size: 1.08rem; color: var(--ptw-black); line-height: 1.3; }
.row a:hover .row__title, .bank-strip__list a:hover .row__title { text-decoration: underline; text-underline-offset: 3px; }
.row__text { font-size: 0.94rem; color: var(--ptw-muted); line-height: 1.5; }
.row__example { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 0.9rem; }
.row__example-label { color: var(--ptw-muted); }

/* Home */
.home-intro { padding-top: 44px; padding-bottom: 28px; }
.home-intro h1 { max-width: 22ch; font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.home-intro p { max-width: 66ch; font-size: 1.125rem; color: var(--ptw-muted); margin: 0; }
.directory__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.directory__col h3 { margin: 22px 0 0; font-size: 1.15rem; }
.directory__col h3 a { text-decoration: none; }
.directory__empty { color: var(--ptw-muted); font-size: 0.94rem; padding: 16px 0; border-bottom: 1px solid var(--ptw-line); margin: 0; }
.bank-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.latest { padding-bottom: 24px; }

/* Articles and calculator pages */
.article { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 320px); justify-content: space-between; column-gap: 64px; padding-top: 44px; }
.article__head { grid-column: 1 / -1; max-width: 920px; margin-bottom: 28px; }
.article__section { margin: 0 0 12px; font-family: var(--ptw-head); font-weight: 750; font-size: 0.95rem; }
.article__section a { text-decoration: none; background: var(--ptw-yellow); color: var(--ptw-black); padding: 2px 8px; }
.article__section .crumb { background: none; padding: 0; color: var(--ptw-muted); font-weight: 600; }
.article__section .crumb:hover { color: var(--ptw-black); text-decoration: underline; }
.article__section span { color: var(--ptw-muted); margin: 0 6px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; color: var(--ptw-muted); font-size: 0.94rem; }
.article__aside { align-self: start; position: sticky; top: 92px; display: grid; gap: 32px; }
.aside-title { margin: 0 0 4px; font-family: var(--ptw-head); font-weight: 800; font-size: 1rem; color: var(--ptw-black); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--ptw-line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ptw-muted); text-decoration: none; font-size: 0.94rem; line-height: 1.4; }
.toc a:hover { color: var(--ptw-black); border-left-color: var(--ptw-black); }

.calc-page { padding-top: 40px; }
.calc-page__head { max-width: 920px; margin-bottom: 24px; }
.calc-page__lede { font-size: 1.125rem; color: var(--ptw-muted); max-width: 64ch; margin: 0; }
.calc-page__tool .ptw-calc { margin-bottom: 56px; }
.calc-page__body { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 320px); justify-content: space-between; column-gap: 64px; }
.calc-page__body .byline { margin-bottom: 8px; }

/* Long-form text. Direct children only, so an embedded calculator keeps its own styles. */
.prose { font-size: 1.125rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose > p, .prose > ul, .prose > ol { margin: 0 0 1.25em; }
.prose > ul li, .prose > ol li { margin-bottom: 0.4em; }
.prose strong { color: var(--ptw-black); }
.prose > table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 0.95rem; line-height: 1.5; font-variant-numeric: tabular-nums; display: block; overflow-x: auto; }
.prose > table th, .prose > table td { padding: 10px 12px; border-bottom: 1px solid var(--ptw-line); text-align: left; vertical-align: top; }
.prose > table th { background: var(--ptw-soft); font-weight: 600; color: var(--ptw-black); }
.prose > .ptw-calc { margin: 32px 0 40px; font-size: 1rem; line-height: 1.6; }
.prose figure { margin: 0 0 1.5em; }
.prose img { border-radius: 16px; }
.prose blockquote { margin: 0 0 1.25em; padding: 14px 18px; background: var(--ptw-soft); border-radius: 12px; }

/* Hubs, wide data pages, plain pages */
.hub { padding-top: 44px; }
.hub--body { padding-top: 0; padding-bottom: 24px; }
.hub__head { max-width: 760px; padding-bottom: 24px; }
.hub__intro { color: var(--ptw-muted); font-size: 1.125rem; }
.hub__intro p { margin: 0; }
.wide-page { padding-top: 44px; }
.wide-page__body > :not(.ptw-bank):not(.ptw-calc) { max-width: 760px; }
.wide-page__body > p, .wide-page__body > ul { font-size: 1.125rem; line-height: 1.75; margin: 0 0 1.25em; }
/* Phones: a wide table scrolls inside itself instead of pushing the page sideways. */
@media (max-width: 899px) { .wide-page__body > table { display: block; max-width: 100%; overflow-x: auto; } }
.page-plain { padding-top: 44px; padding-bottom: 24px; max-width: calc(760px + var(--gutter) * 2); }
.page-numbers { display: inline-block; padding: 6px 12px; margin: 24px 4px 0 0; border: 1px solid var(--ptw-line); border-radius: 12px; text-decoration: none; }
.page-numbers.current { background: var(--ptw-black); color: #fff; border-color: var(--ptw-black); }
.site-notice { margin: 24px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--ptw-yellow); color: var(--ptw-black); font-weight: 600; }

/* Footer */
.site-footer { margin-top: 96px; background: var(--ptw-black); color: #c9cdd2; font-size: 0.94rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__name { font-family: var(--ptw-head); font-size: 1.6rem; font-weight: 850; color: #fff; margin: 0 0 8px; letter-spacing: -0.02em; }
.site-footer__brand p:last-child { max-width: 42ch; margin: 0; }
.site-footer__heading { color: #fff; font-family: var(--ptw-head); font-weight: 750; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__base { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #2a2a2a; }
.site-footer__base p { margin: 0; color: #9aa0a6; font-size: 0.875rem; }

/* Tablet and phone */
@media (max-width: 1180px) {
	.numbers__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.numbers__item:nth-child(4) { padding-left: 0; border-left: 0; }
	.numbers__item:nth-child(n+4) { border-top: 1px solid var(--ptw-line); }
}
@media (max-width: 1100px) {
	.article, .calc-page__body { grid-template-columns: minmax(0, 1fr); }
	.article__aside { position: static; margin-top: 40px; }
	.rows--grid, .bank-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	:root { --gutter: 16px; }
	.site-header__inner { height: 60px; }
	.site-logo img { width: 156px; }
	.nav-toggle { display: block; padding: 8px 14px; border: 1px solid #3a3a3a; border-radius: 12px; background: var(--ptw-black); font: 650 0.95rem var(--ptw-head); color: #fff; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--ptw-black); border-top: 1px solid #222; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
	.site-nav .site-nav__calc { margin: 8px 0 0; text-align: center; }
	.numbers__inner { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
	.numbers__item { flex: 0 0 62%; scroll-snap-align: start; padding: 14px 14px 14px 0; }
	.numbers__item + .numbers__item, .numbers__item:nth-child(4) { padding-left: 14px; border-left: 1px solid var(--ptw-line); border-top: 0; }
	.directory__cols, .rows--grid, .bank-strip__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.home-intro { padding-top: 28px; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.prose { font-size: 1.0625rem; }
}
