/* =========================================================================
   דופק, main stylesheet
   Palette from the Shalom Digital reports: lime on olive, soft lilac-grey.
   ========================================================================= */

@font-face { font-family: "Ploni"; src: url(../fonts/PloniMLv2AAA-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Ploni"; src: url(../fonts/PloniMLv2AAA-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ploni"; src: url(../fonts/PloniMLv2AAA-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ploni"; src: url(../fonts/PloniMLv2AAA-D-Bold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Ploni"; src: url(../fonts/PloniMLv2AAA-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Ploni"; src: url(../fonts/PloniMLv2AAA-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
	--lime: #d4ee4a; --lime-600: #b6d12a; --lime-200: #ecf6b4; --lime-100: #f5fbd8;
	--olive: #222a10; --olive-2: #3a4420; --olive-3: #55603a;
	--bg: #e9e7ec; --bg-2: #f2f1f4;
	--card: #ffffff; --tile: #f4f3f6; --tile-2: #ebeaee;
	--ink: #111111; --ink-2: rgba(17,17,17,.66); --ink-3: rgba(17,17,17,.46); --ink-4: rgba(17,17,17,.16);
	--line: rgba(17,17,17,.07);
	--r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
	--shadow: 0 1px 2px rgba(20,20,40,.04), 0 12px 32px -14px rgba(20,20,40,.16);
	--shadow-lg: 0 2px 6px rgba(20,20,40,.05), 0 28px 60px -26px rgba(20,20,40,.28);
	--spring: cubic-bezier(.34,1.56,.64,1);
	--ease: cubic-bezier(.2,.8,.2,1);
	--wrap: 1240px;
	--gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
	font-family: "Ploni", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	/* Ploni has extreme negative kerning for Latin pairs (te, co), kerning off. */
	font-kerning: none;
	font-size: 17px; line-height: 1.55; color: var(--ink);
	-webkit-font-smoothing: antialiased;
	background-color: var(--bg);
	background-image:
		radial-gradient(rgba(17,17,17,.075) 1px, transparent 1.2px),
		radial-gradient(1200px 700px at 50% -10%, #f7f6f9 0%, transparent 70%);
	background-size: 26px 26px, 100% 100%;
	background-attachment: fixed;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime-600); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--olive); color: var(--lime); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- masthead ---------- */
.site-header { background: rgba(255,255,255,.6); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; flex: none; }
.mast-side { display: flex; align-items: center; gap: 16px; }
.today { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.icon-btn { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ink-4); border-radius: 10px; background: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--lime); border-color: var(--lime-600); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }

/* ---------- main nav: straight news bar ---------- */
.mainnav { position: sticky; top: 0; z-index: 30; background: var(--olive); box-shadow: 0 1px 0 rgba(0,0,0,.08); transition: box-shadow .3s; }
.mainnav.stuck { box-shadow: 0 10px 24px -16px rgba(20,20,40,.55); }
.mainnav-in { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.mainnav-in::-webkit-scrollbar { display: none; }
.mainnav a { position: relative; flex: none; display: flex; align-items: center; height: 50px; padding: 0 20px; font-size: 16.5px; font-weight: 700; color: rgba(255,255,255,.86); white-space: nowrap; transition: color .2s, background .2s; }
.mainnav a + a::before { content: ""; position: absolute; right: 0; top: 16px; bottom: 16px; width: 1px; background: rgba(255,255,255,.14); }
.mainnav a::after { content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 4px; background: var(--lime); transform: scaleX(0); transition: transform .3s var(--ease); }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.mainnav a:hover::after { transform: scaleX(.5); }
.mainnav a.on { color: var(--lime); }
.mainnav a.on::after { transform: scaleX(1); }

/* ---------- ticker ---------- */
.ticker-bar { background: #fff; border-bottom: 1px solid var(--line); }
.ticker { display: flex; align-items: center; gap: 14px; height: 42px; font-size: 14.5px; }
.ticker-tag { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; background: var(--lime); color: var(--olive); font-weight: 900; font-size: 13.5px; border-radius: 4px; }
.ticker-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); animation: beat 1.4s infinite; }
.ticker-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(to left, transparent, #000 3%, #000 94%, transparent); }
.ticker-run { display: flex; gap: 40px; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-run { animation-play-state: paused; }
.ticker-run a { white-space: nowrap; color: var(--ink); font-weight: 500; transition: color .2s; }
.ticker-run time { color: var(--olive-3); font-weight: 800; margin-inline-end: 8px; font-variant-numeric: tabular-nums; }
.ticker-run a:hover { color: var(--olive-3); text-decoration: underline; text-decoration-color: var(--lime-600); text-underline-offset: 4px; }
@keyframes ticker { to { transform: translateX(50%); } }
@keyframes beat { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .5; } }

.brand-logo { height: 52px; width: auto; }
.site-footer .brand-logo { height: 52px; }
.logo-mark { display: block; width: 46px; height: 46px; flex: none; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(34,42,16,.25)); }
.search-panel { padding-top: 12px; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; height: 54px; padding: 0 22px; border: 0; border-radius: 99px; background: #fff; box-shadow: var(--shadow); font: inherit; font-size: 17px; }
.search-form input:focus { outline: 3px solid var(--lime); }
.search-form button, .btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px; border: 0; border-radius: 99px; background: var(--olive); color: var(--lime); font-weight: 900; cursor: pointer; transition: transform .3s var(--spring); }
.search-form button:hover, .btn:hover { transform: translateY(-2px); }

main.wrap { padding-top: 22px; padding-bottom: 80px; min-height: 60vh; }

/* ---------- shared bits ---------- */
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; background: var(--lime-100); color: var(--olive-2); font-weight: 700; font-size: 13px; transition: background .2s; }
.chip:hover { background: var(--lime-200); }
.chip-lime { background: var(--lime); color: var(--olive); }
.badge { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 10px; background: var(--olive); color: var(--lime); font-weight: 900; font-size: 16px; box-shadow: 0 6px 14px -8px rgba(34,42,16,.8); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime-600); box-shadow: 0 0 0 4px var(--lime-200); animation: beat 1.6s infinite; flex: none; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--olive) 0%, var(--olive-2) 100%); color: var(--lime); }
.ph img { width: 26%; height: auto; max-width: 96px; opacity: .95; }
.lead .ph img { max-width: 140px; }

/* ---------- lead grid ---------- */
.home-h1 { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 18px; font-weight: 800; color: var(--ink-2); letter-spacing: 0; }
.home-h1::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime-600); box-shadow: 0 0 0 4px var(--lime-200); flex: none; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; margin-top: 8px; }
.lead { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--olive); box-shadow: var(--shadow-lg); min-height: 520px; display: flex; isolation: isolate; }
.lead-media { position: absolute; inset: 0; z-index: -1; }
.lead-media > img, .lead-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lead:hover .lead-media > img { transform: scale(1.04); }
.lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(18,22,8,.94) 0%, rgba(18,22,8,.55) 42%, rgba(18,22,8,0) 72%); }
.lead-body { align-self: flex-end; padding: 34px 36px; color: #fff; }
.lead .meta { color: rgba(255,255,255,.75); }
.lead-title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; line-height: 1.08; letter-spacing: -.015em; margin: 14px 0 12px; text-wrap: balance; }
.lead-title a { background: linear-gradient(var(--lime), var(--lime)) no-repeat right 92% / 0% 6px; transition: background-size .5s var(--ease); }
.lead:hover .lead-title a { background-size: 100% 6px; }
.lead-excerpt { margin: 0; max-width: 60ch; font-size: 18px; color: rgba(255,255,255,.82); }

.latest { border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); padding: 24px 24px 8px; }
.latest-h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 21px; font-weight: 900; }
.latest-list { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.latest-list li { counter-increment: l; position: relative; padding: 16px 44px 16px 0; border-top: 1px solid var(--line); }
.latest-list li:first-child { border-top: 0; }
.latest-list li::before { content: counter(l); position: absolute; right: 0; top: 18px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--tile); font-weight: 900; color: var(--olive-3); font-size: 15px; }
.latest-title { display: block; margin-top: 6px; font-size: 18px; font-weight: 700; line-height: 1.3; transition: color .2s; }
.latest-title:hover { color: var(--olive-3); }

/* ---------- sections & cards ---------- */
.section { margin-top: 54px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.01em; }
.more { font-size: 15px; font-weight: 700; color: var(--ink-2); padding: 8px 16px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); transition: color .2s, transform .3s var(--spring); }
.more:hover { color: var(--olive); transform: translateX(-3px); }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); transition: transform .45s var(--spring), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tile); }
.card-media > img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media > img { transform: scale(1.05); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.28; text-wrap: pretty; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .chip { position: relative; z-index: 1; }
.card-excerpt { margin: 0; font-size: 15.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- article ---------- */
.article { max-width: 1040px; margin: 0 auto; }
.article-head { max-width: 780px; margin: 22px auto 0; text-align: center; }
.crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-3); padding: 6px 14px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); }
.crumbs a:hover { color: var(--ink); }
.article-title { font-size: clamp(32px, 4.4vw, 54px); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; margin: 20px 0 14px; text-wrap: balance; }
.article-dek { font-size: 21px; color: var(--ink-2); margin: 0 auto; max-width: 62ch; line-height: 1.5; }
.byline { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; font-size: 14.5px; color: var(--ink-3); }
.by { display: inline-flex; align-items: center; gap: 10px; text-align: start; }
.by .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
.by b { display: block; color: var(--ink); font-size: 15px; }
.by small { display: block; font-size: 12.5px; }
.by small a { text-decoration: underline; text-decoration-color: var(--lime-600); text-underline-offset: 3px; }
.by b a:hover { color: var(--olive-3); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.article-media { margin: 30px 0 0; }
.article-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.article-media figcaption { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 22px; max-width: 860px; margin: 30px auto 0; align-items: start; }
.article-body { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 40px 48px; }
.share { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.share-h { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.share-btn { width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--shadow); cursor: pointer; transition: transform .3s var(--spring), background .2s; }
.share-btn:hover { transform: scale(1.08); background: var(--lime); }
.share-btn svg { width: 19px; height: 19px; fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-btn.copied { background: var(--lime); }
.tags { max-width: 860px; margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 8px; padding-inline-end: 78px; }
.tags a { padding: 6px 13px; border-radius: 99px; background: #fff; box-shadow: var(--shadow); font-size: 14px; color: var(--ink-2); }
.tags a:hover { background: var(--lime-100); }

/* prose */
.prose { font-size: 19px; line-height: 1.8; color: #1b1b1b; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 28px; font-weight: 900; line-height: 1.2; margin: 1.6em 0 .55em; letter-spacing: -.01em; }
.prose h3 { font-size: 22px; font-weight: 800; line-height: 1.25; margin: 1.4em 0 .5em; }
.prose a { color: var(--olive-2); font-weight: 600; background: linear-gradient(var(--lime-200), var(--lime-200)) no-repeat 0 100% / 100% 40%; transition: background-size .25s; }
.prose a:hover { background-size: 100% 100%; }
.prose strong { font-weight: 800; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--lime-600); font-weight: 900; }
.prose blockquote { margin: 1.4em 0; padding: 18px 24px; border-radius: var(--r-md); background: var(--lime-100); border-inline-start: 5px solid var(--lime-600); font-size: 20px; font-weight: 600; }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--r-md); height: auto; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.4em 0; overflow: hidden; border-radius: var(--r-sm); }
.prose th, .prose td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.prose th { background: var(--olive); color: var(--lime); font-weight: 800; }
.prose tr:nth-child(even) td { background: var(--tile); }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--tile); direction: ltr; unicode-bidi: isolate; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose .key-points, .prose .tldr { margin: 0 0 1.4em; padding: 20px 24px; border-radius: var(--r-md); background: var(--tile); }
.page-article .article-body { max-width: 860px; margin: 26px auto 0; }

/* ---------- archive ---------- */
.archive-head { margin: 18px 0 26px; padding: 34px 38px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.archive-head h1 { font-size: clamp(34px, 4.5vw, 58px); font-weight: 900; line-height: 1.05; margin: 12px 0 0; letter-spacing: -.02em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.archive-desc { margin-top: 10px; font-size: 18px; color: var(--ink-2); max-width: 70ch; }
.archive-desc p { margin: 0; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 99px; background: #fff; box-shadow: var(--shadow); font-weight: 700; }
.pager .current { background: var(--olive); color: var(--lime); }

.empty { text-align: center; padding: 70px 24px; margin: 30px auto; max-width: 640px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.empty .logo-mark { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; }
.empty h1, .empty h2 { font-size: 34px; font-weight: 900; margin: 0 0 8px; }
.empty p { color: var(--ink-2); margin: 0 0 22px; }

/* ---------- evergreen SEO guide (home + sections) ---------- */
.seo-guide { margin: 56px auto 0; max-width: 900px; padding: 40px 48px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); font-size: 17.5px; }
.seo-guide h2:first-child { margin-top: 0; }
.seo-guide .lead-p { font-size: 19px; color: var(--ink); }
.seo-guide table { font-size: 15.5px; }
.seo-guide h3 { font-size: 19px; }
@media (max-width: 860px) { .seo-guide { padding: 26px 20px; border-radius: var(--r-lg); font-size: 16.5px; } }

/* ---------- author box ---------- */
.author-box { max-width: 860px; margin: 24px auto 0; display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); padding-inline-end: 26px; }
.author-box .logo-mark { width: 64px; height: 64px; }
.author-eyebrow { font-size: 13px; font-weight: 800; color: var(--olive-3); }
.author-box h2 { margin: 2px 0 6px; font-size: 22px; font-weight: 900; }
.author-box p { margin: 0 0 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.author-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.author-facts li { padding: 4px 10px; border-radius: 99px; background: var(--lime-100); color: var(--olive-2); font-size: 13px; font-weight: 700; }
.author-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; font-weight: 700; }
.author-links a { color: var(--olive-2); text-decoration: underline; text-decoration-color: var(--lime-600); text-underline-offset: 3px; }
@media (max-width: 560px) { .author-box { flex-direction: column; padding: 20px; } .author-box .logo-mark { width: 52px; height: 52px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--olive); color: rgba(255,255,255,.74); padding: 54px 0 22px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .9fr .9fr 1.4fr 1.1fr; gap: 34px; }
.foot-brand p { margin: 16px 0 14px; max-width: 44ch; line-height: 1.65; }
.foot-brand strong { color: #fff; }
.foot-cta { display: inline-block; font-weight: 800; color: var(--lime); border-bottom: 2px solid transparent; transition: border-color .2s; }
.foot-cta:hover { border-color: var(--lime); }
.foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.foot-col h3 { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 2px solid var(--lime); width: fit-content; color: #fff; font-size: 17px; font-weight: 900; }
.foot-col > a { width: fit-content; max-width: 100%; transition: color .2s; }
.foot-col > a:hover { color: var(--lime); }
.foot-recent > a { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.foot-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.foot-tags a { padding: 5px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.foot-tags a:hover { background: var(--lime); color: var(--olive); border-color: var(--lime); }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; }
.foot-legal a:hover, .to-top:hover { color: var(--lime); }
.foot-copy { display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.5); }

/* sources box at the end of articles */
.prose .sources { margin-top: 2em; padding: 18px 22px; border-radius: var(--r-md); background: var(--tile); font-size: 15.5px; line-height: 1.6; }
.prose .sources h2 { font-size: 17px; margin: 0 0 8px; }
.prose .sources ul { margin: 0; padding-inline-start: 1.1em; }
.prose .sources li { margin: 0 0 4px; }
.prose .sources a { font-weight: 500; background: none; text-decoration: underline; text-decoration-color: var(--lime-600); text-underline-offset: 3px; }
.prose .tldr { border-inline-start: 4px solid var(--lime-600); }
.prose .tldr strong { color: var(--olive); }

/* ---------- motion ---------- */
.js .pop { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .55s var(--ease), transform .7s var(--spring); transition-delay: var(--d, 0s); }
.js .pop.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .45s var(--ease), transform .6s var(--spring), box-shadow .3s; }
.js .in .stagger > *, .js .stagger.in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .pop, .js .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
	.ticker-run { animation: none; }
	html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.foot-grid { grid-template-columns: 1fr 1fr 1fr; }
	.foot-brand { grid-column: 1 / -1; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lead-grid { grid-template-columns: 1fr; }
	.lead { min-height: 440px; }
}
@media (max-width: 860px) {
	:root { --gutter: 16px; }
	.masthead { padding-top: 12px; padding-bottom: 10px; }
	.brand-logo { height: 40px; }
	.today { display: none; }
	.mainnav-in { justify-content: space-between; padding: 0 6px; }
	.mainnav a { height: 46px; padding: 0 7px; font-size: 15px; }
	.mainnav a + a::before { display: none; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article-layout { grid-template-columns: 1fr; }
	.share { position: static; flex-direction: row; justify-content: center; order: 2; }
	.tags { padding-inline-end: 0; }
	.article-body { padding: 26px 20px; border-radius: var(--r-lg); }
	.prose { font-size: 18px; }
	.foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.foot-brand, .foot-recent { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.prose table.stack, .prose table.stack tbody, .prose table.stack tr, .prose table.stack td { display: block; width: 100%; }
	.prose table.stack thead { display: none; }
	.prose table.stack { border-radius: 0; overflow: visible; }
	.prose table.stack tr { margin: 0 0 12px; border-radius: var(--r-md); background: var(--tile); padding: 6px 14px; }
	.prose table.stack tr:nth-child(even) td { background: transparent; }
	.prose table.stack td { border: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
	.prose table.stack td:last-child { border-bottom: 0; }
	.prose table.stack td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 800; color: var(--olive-3); margin-bottom: 2px; }
	.prose table.stack td:first-child { font-weight: 800; font-size: 17px; }
	body { font-size: 16px; }
	.grid-4, .grid-3 { grid-template-columns: 1fr; gap: 12px; }
	/* compact news rows on phones */
	.grid .card { flex-direction: row; align-items: stretch; border-radius: var(--r-md); }
	.grid .card-media { flex: none; width: 36%; aspect-ratio: auto; min-height: 104px; }
	.grid .card-body { padding: 12px 14px; gap: 6px; }
	.grid .card-title { font-size: 16.5px; }
	.grid .card-excerpt { display: none; }
	.grid .meta { font-size: 12.5px; gap: 8px; }
	.grid .chip { height: 22px; font-size: 12px; padding: 0 8px; }
	.ph img { width: 40%; }
	.lead { min-height: 400px; border-radius: var(--r-lg); }
	.lead-body { padding: 22px 20px; }
	.lead-excerpt { font-size: 16px; }
	.section { margin-top: 40px; }
	.section-head h2 { font-size: 24px; }
	.archive-head { padding: 24px 20px; }
	.brand-logo { height: 36px; }
	.foot-copy { flex-direction: column; gap: 8px; }
}

/* accessibility plugin in brand colours (plugin ships navy with !important) */
html body .onetap-container-toggle .onetap-toggle img { background-color: var(--olive) !important; box-shadow: 0 8px 20px -8px rgba(34,42,16,.7); }
html body nav.onetap-accessibility.onetap-plugin-onetap .onetap-container .onetap-accessibility-settings header.onetap-header-top .onetap-site-container,
html body nav.onetap-accessibility.onetap-plugin-onetap .onetap-container .onetap-accessibility-settings .onetap-reset-settings button { background-color: var(--olive) !important; }
