:root {
	--ink: #07111f;
	--ink-2: #24334a;
	--muted: #647084;
	--line: #dce3ee;
	--surface: #f3f6fb;
	--white: #fff;
	--blue: #075cff;
	--blue-dark: #0043c7;
	--lime: #dfff3f;
	--orange: #ff4f2f;
	--red: #e52b32;
	--shadow: 0 18px 60px rgba(7, 17, 31, .12);
	--radius: 18px;
	--radius-sm: 10px;
	--shell: 1240px;
	--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.nav-open, body.search-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
::selection { background: var(--lime); color: var(--ink); }

.site-shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.site-content { min-height: 55vh; }
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; display: block; width: auto; height: auto; top: 8px; left: 8px;
	padding: 12px 16px; background: var(--white); color: var(--ink); z-index: 100000; border: 2px solid var(--blue);
}

/* Header */
.site-header { position: relative; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.breaking-bar { background: var(--ink); color: rgba(255,255,255,.78); font-size: 12px; }
.breaking-bar__inner { min-height: 34px; display: flex; align-items: center; gap: 18px; }
.breaking-bar__live { color: var(--white); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.breaking-bar__live i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,79,47,.18); }
.breaking-bar__date { text-transform: capitalize; }
.breaking-bar a { margin-left: auto; color: var(--lime); font-weight: 800; text-decoration: none; }
.masthead { min-height: 104px; display: grid; grid-template-columns: minmax(245px, 390px) 1fr auto; align-items: center; gap: 34px; }
.brand img, .custom-logo { width: min(100%, 390px); max-height: 88px; object-fit: contain; object-position: left center; }
.brand a { display: inline-flex; align-items: center; text-decoration: none; }
.masthead__tagline { margin: 0; max-width: 350px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.masthead__actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .menu-button, .search-panel__close {
	appearance: none; border: 0; cursor: pointer; background: transparent; color: var(--ink);
}
.icon-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.icon-button:hover { border-color: var(--blue); color: var(--blue); }
.icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu-button { display: none; min-height: 46px; align-items: center; gap: 9px; padding: 0 14px; border-radius: 30px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.menu-button__lines { display: grid; gap: 3px; }
.menu-button__lines i { width: 16px; height: 2px; display: block; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] .menu-button__lines i:first-child { transform: translateY(5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__lines i:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .menu-button__lines i:last-child { transform: translateY(-5px) rotate(-45deg); }

.primary-navigation { background: var(--white); border-top: 1px solid var(--line); }
.primary-menu { list-style: none; display: flex; align-items: stretch; gap: 30px; margin: 0; padding: 0; }
.primary-menu > li { position: relative; }
.primary-menu > li > a { min-height: 52px; display: flex; align-items: center; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.primary-menu > li > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 3px; background: var(--blue); transition: right .18s ease; }
.primary-menu > li:hover > a::after, .primary-menu > li.current-menu-item > a::after, .primary-menu > li.current-menu-ancestor > a::after { right: 0; }
.primary-menu .menu-tools { margin-left: auto; }
.primary-menu .menu-tools > a { color: var(--blue); }
.primary-menu .menu-tools > a::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 15px; }
.primary-menu .sub-menu { list-style: none; position: absolute; top: 100%; left: -16px; min-width: 230px; margin: 0; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-menu .sub-menu a { display: block; padding: 9px 10px; border-radius: 7px; font-size: 14px; font-weight: 700; text-decoration: none; }
.primary-menu .sub-menu a:hover { background: var(--surface); color: var(--blue); }

.search-panel { position: absolute; inset: 34px 0 auto; z-index: 20; padding: 28px 0; background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.search-panel[hidden] { display: none; }
.search-panel__inner { display: flex; gap: 14px; align-items: center; }
.search-form { display: flex; width: 100%; gap: 8px; }
.search-field { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); }
.search-field:focus { outline: 3px solid rgba(7,92,255,.25); border-color: var(--blue); }
.search-form button, .button-link { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: var(--radius-sm); background: var(--blue); color: var(--white); font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; }
.search-form button:hover, .button-link:hover { background: var(--blue-dark); }
.search-panel__close { color: var(--white); font-size: 13px; font-weight: 800; text-decoration: underline; }

/* Common headings */
.home-main { padding-top: 26px; }
.home-title { max-width: 950px; margin: 0 0 22px; font-size: clamp(29px, 4.2vw, 54px); line-height: .98; letter-spacing: -.048em; }
.section-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.section-kicker i { height: 1px; flex: 1; background: var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3.5vw, 40px); line-height: 1; letter-spacing: -.035em; }
.section-heading__overline { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.section-heading > a { color: var(--blue); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.section-heading > a:hover { text-decoration: underline; }
.eyebrow { display: inline-flex; width: max-content; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 20px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .07em; line-height: 1; text-decoration: none; text-transform: uppercase; }

/* Hero */
.lead-news { margin-bottom: 34px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .8fr); gap: 14px; }
.lead-story { position: relative; min-height: 592px; overflow: hidden; border-radius: var(--radius); background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.lead-story__media, .lead-story__media::after { position: absolute; inset: 0; }
.lead-story__media::after { content: ""; background: linear-gradient(180deg, rgba(7,17,31,.02) 18%, rgba(7,17,31,.92) 91%); }
.lead-story__media img, .lead-story__media .image-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lead-story:hover .lead-story__media img { transform: scale(1.025); }
.lead-story__content { position: absolute; inset: auto 0 0; z-index: 2; padding: clamp(24px, 5vw, 46px); }
.lead-story__content h2 { max-width: 790px; margin: 13px 0 12px; font-size: clamp(30px, 4vw, 54px); line-height: 1.01; letter-spacing: -.045em; }
.lead-story__content h2 a, .lead-mini h2 a, .news-card h3 a, .topic-section h3 a, .side-list a { text-decoration: none; }
.lead-story__content h2 a:hover, .lead-mini h2 a:hover, .news-card h3 a:hover, .topic-section h3 a:hover, .side-list a:hover { color: var(--blue); }
.lead-story__content p { max-width: 680px; margin: 0 0 13px; color: rgba(255,255,255,.82); font-size: 16px; }
.lead-story__content time, .lead-mini time, .news-card time, .topic-section time { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.lead-story__content time { color: rgba(255,255,255,.65); }
.lead-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-mini { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.lead-mini__media { display: block; height: 145px; overflow: hidden; background: var(--surface); }
.lead-mini__media img, .lead-mini__media .image-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.lead-mini:hover .lead-mini__media img { transform: scale(1.04); }
.lead-mini__content { padding: 15px 16px 17px; }
.lead-mini h2 { margin: 9px 0 10px; font-size: 17px; line-height: 1.18; letter-spacing: -.018em; }

/* Image fallback */
.image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 150px; background: linear-gradient(135deg, var(--blue), #23a0ff); }
.image-placeholder svg { width: 64%; max-width: 240px; fill: var(--lime); opacity: .88; }

/* Calculators */
.tools-home { position: relative; overflow: hidden; padding: 48px 0 52px; background: var(--ink); color: var(--white); }
.tools-home::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -190px; border: 58px solid var(--blue); border-radius: 50%; opacity: .33; }
.tools-home::after { content: ""; position: absolute; width: 170px; height: 16px; left: 4%; bottom: 10px; background: var(--orange); transform: skewX(-28deg); opacity: .8; }
.tools-home .site-shell { position: relative; z-index: 1; }
.section-heading--light .section-heading__overline { color: var(--lime); }
.section-heading--light > a { color: var(--white); }
.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.tool-card { min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.065); color: var(--white); text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.tool-card:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.tool-card__code { flex: 0 0 46px; min-height: 46px; display: grid; place-items: center; padding: 4px; border-radius: 11px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 950; letter-spacing: -.02em; }
.tool-card__text { min-width: 0; display: grid; line-height: 1.15; }
.tool-card__text strong { font-size: 14px; }
.tool-card__text small { margin-top: 5px; color: rgba(255,255,255,.6); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tool-card__arrow { margin-left: auto; color: var(--lime); font-size: 18px; }

/* Cards and home sections */
.home-feed { padding-top: 54px; padding-bottom: 78px; }
.home-section { margin-bottom: 72px; }
.card-grid { display: grid; gap: 26px 18px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.news-card { min-width: 0; }
.news-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: var(--surface); }
.news-card__media img, .news-card__media .image-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-card__media img { transform: scale(1.035); }
.news-card__body { padding: 15px 3px 0; }
.news-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-card h3 { margin: 11px 0 8px; font-size: clamp(18px, 2vw, 22px); line-height: 1.15; letter-spacing: -.025em; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }
.topic-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 34px; }
.topic-section { min-width: 0; padding-top: 26px; border-top: 4px solid var(--ink); }
.topic-section:nth-child(3n+1) { border-color: var(--blue); }
.topic-section:nth-child(3n+2) { border-color: var(--orange); }
.topic-section:nth-child(3n) { border-color: #12a66a; }
.topic-section .section-heading { margin-bottom: 18px; }
.topic-section .section-heading h2 { font-size: 30px; }
.topic-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(220px,.88fr); gap: 18px; }
.topic-feature__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 13px; background: var(--surface); }
.topic-feature__media img, .topic-feature__media .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.topic-feature h3 { margin: 8px 0; font-size: 22px; line-height: 1.12; letter-spacing: -.025em; }
.topic-feature p { margin: 0; color: var(--muted); font-size: 13px; }
.topic-list { display: grid; align-content: start; }
.topic-list-item { display: grid; grid-template-columns: 88px 1fr; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.topic-list-item:first-child { padding-top: 0; }
.topic-list-item:last-child { border-bottom: 0; }
.topic-list-item__media { width: 88px; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--surface); }
.topic-list-item__media img, .topic-list-item__media .image-placeholder { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.topic-list-item h3 { margin: 5px 0 0; font-size: 15px; line-height: 1.18; letter-spacing: -.012em; }

/* Breadcrumbs and archives */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 22px 0; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span[aria-hidden] { color: #a9b2bf; }
.archive-shell { padding-bottom: 76px; }
.archive-header { position: relative; overflow: hidden; margin-bottom: 30px; padding: 44px clamp(24px, 5vw, 60px); border-radius: var(--radius); background: var(--ink); color: var(--white); }
.archive-header::after { content: ""; position: absolute; right: -50px; top: -90px; width: 240px; height: 240px; border: 38px solid var(--blue); border-radius: 50%; }
.archive-header h1 { position: relative; z-index: 1; max-width: 850px; margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: -.05em; }
.archive-header .section-heading__overline { position: relative; z-index: 1; color: var(--lime); }
.archive-description { position: relative; z-index: 1; max-width: 680px; margin-top: 16px; color: rgba(255,255,255,.72); }
.archive-description p { margin: 0; }
.archive-grid { margin-top: 36px; }
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Article */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 999; height: 3px; pointer-events: none; }
.admin-bar .reading-progress { top: 32px; }
.reading-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.single-article { padding-bottom: 80px; }
.article-header { max-width: 1040px; margin: 18px 0 30px; }
.article-header h1 { margin: 14px 0 18px; font-size: clamp(39px, 6.6vw, 78px); line-height: .98; letter-spacing: -.052em; }
.article-lead { max-width: 820px; margin: 0 0 20px; color: var(--ink-2); font-size: clamp(18px, 2.3vw, 23px); line-height: 1.45; }
.post-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; color: var(--muted); font-size: 12px; }
.post-meta span { position: relative; }
.post-meta span + span::before { content: ""; position: absolute; left: -10px; top: .6em; width: 3px; height: 3px; border-radius: 50%; background: var(--orange); }
.post-meta a { color: var(--ink); font-weight: 800; text-decoration: none; }
.article-hero { margin: 0 0 42px; }
.article-hero img, .page-hero img { width: 100%; max-height: 720px; object-fit: cover; border-radius: var(--radius); }
.article-hero figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 790px) minmax(250px, 320px); gap: clamp(42px, 7vw, 94px); align-items: start; }
.article-main { min-width: 0; }
.entry-content { color: #162238; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 2vw, 20px); line-height: 1.78; }
.entry-content > * { max-width: 760px; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); font-family: var(--font); line-height: 1.12; letter-spacing: -.03em; }
.entry-content h2 { margin-top: 2.1em; font-size: clamp(28px, 4vw, 42px); }
.entry-content h3 { margin-top: 1.8em; font-size: clamp(23px, 3vw, 30px); }
.entry-content a { color: var(--blue-dark); font-weight: 650; }
.entry-content a:hover { color: var(--orange); }
.entry-content blockquote { margin: 1.7em 0; padding: 9px 0 9px 26px; border-left: 5px solid var(--orange); color: var(--ink); font-size: 1.12em; line-height: 1.55; }
.entry-content blockquote p { margin: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li { padding-left: .25em; margin-bottom: .42em; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: 15px; }
.entry-content th { background: var(--ink); color: var(--white); text-align: left; }
.entry-content th, .entry-content td { padding: 12px 13px; border: 1px solid var(--line); }
.entry-content tr:nth-child(even) td { background: var(--surface); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { border-radius: 12px; }
.entry-content figcaption { color: var(--muted); font-family: var(--font); font-size: 12px; }
.entry-content .alignwide { width: min(100vw - 40px, 1080px); max-width: none; }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.article-sidebar { position: sticky; top: 26px; display: grid; gap: 24px; }
.admin-bar .article-sidebar { top: 58px; }
.side-widget { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.side-widget--tools { background: var(--ink); color: var(--white); border-color: var(--ink); }
.side-widget__title { margin: 0 0 13px; font-size: 22px; line-height: 1.08; letter-spacing: -.025em; }
.side-widget p { color: var(--muted); font-size: 13px; }
.side-widget--tools p:not(.section-heading__overline) { color: rgba(255,255,255,.7); }
.side-widget--tools .button-link { width: 100%; min-height: 46px; margin-top: 7px; background: var(--lime); color: var(--ink); font-size: 13px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); }
.side-list li > span { color: var(--orange); font-size: 11px; font-weight: 900; }
.side-list a { font-size: 13px; font-weight: 800; line-height: 1.25; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 38px 0; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--font); font-size: 12px; }
.article-tags > span { padding: 6px 0; color: var(--muted); font-weight: 800; }
.article-tags a { padding: 6px 9px; border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; }
.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 20px; margin: 42px 0 0; padding: 24px; border-radius: 14px; background: var(--surface); font-family: var(--font); }
.author-box img { border-radius: 50%; }
.author-box__label { margin: 0 0 4px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.author-box h2 { margin: 0 0 5px; font-size: 21px; }
.author-box p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.related-posts { margin-top: 72px; padding-top: 34px; border-top: 4px solid var(--ink); }

/* Pages, 404 and empty */
.page-shell { max-width: 1040px; padding-bottom: 80px; }
.page-header { max-width: 860px; margin: 20px 0 34px; }
.page-header h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -.05em; }
.page-header p { color: var(--muted); font-size: 20px; }
.page-hero { margin: 0 0 38px; }
.page-content { max-width: 760px; margin-inline: auto; }
.error-page, .empty-state { padding: clamp(70px, 12vw, 150px) 0; text-align: center; }
.error-page { max-width: 760px; }
.error-page__score, .empty-state__code { display: block; margin-bottom: 12px; color: var(--blue); font-size: clamp(70px, 15vw, 150px); font-weight: 950; line-height: .8; letter-spacing: -.08em; }
.error-page h1, .empty-state h2 { margin: 15px 0; font-size: clamp(34px, 6vw, 62px); line-height: 1; }
.error-page > p:not(.section-heading__overline), .empty-state > p { color: var(--muted); font-size: 18px; }
.error-page .search-form, .empty-state .search-form { max-width: 620px; margin: 30px auto 16px; }
.error-page > .button-link { margin-top: 8px; }
.empty-state { grid-column: 1 / -1; }

/* Comments */
.comments-area { max-width: 790px; margin-top: 64px; padding-top: 32px; border-top: 4px solid var(--ink); }
.comments-area > h2, .comment-reply-title { font-size: 28px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.comment-meta { font-size: 13px; }
.comment-author { display: flex; align-items: center; gap: 9px; }
.comment-author img { border-radius: 50%; }
.comment-content { margin-top: 12px; }
.comment-form label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 800; }
.comment-form input:not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.comment-form .submit { padding: 12px 20px; border: 0; border-radius: 8px; background: var(--blue); color: var(--white); font-weight: 800; cursor: pointer; }

/* Footer */
.site-footer { overflow: hidden; background: var(--ink); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.7fr .7fr .7fr; gap: 60px; padding-top: 60px; padding-bottom: 54px; }
.footer-brand img { width: min(100%, 340px); height: auto; }
.footer-brand p { max-width: 430px; color: rgba(255,255,255,.62); font-size: 14px; }
.footer-column h2 { margin: 0 0 15px; color: var(--lime); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin: 8px 0; }
.footer-column a { color: rgba(255,255,255,.78); font-size: 14px; text-decoration: none; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.footer-bottom p { margin: 0; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1080px) {
	.masthead { grid-template-columns: minmax(230px, 330px) 1fr auto; }
	.primary-menu { gap: 20px; overflow-x: auto; scrollbar-width: none; }
	.primary-menu::-webkit-scrollbar { display: none; }
	.lead-grid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); }
	.lead-story { min-height: 540px; }
	.tools-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.topic-grid { grid-template-columns: 1fr; }
	.topic-list { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
	.topic-list-item { grid-template-columns: 1fr; align-content: start; border: 0; padding: 0; }
	.topic-list-item__media { width: 100%; aspect-ratio: 16/10; }
	.article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
}

@media (max-width: 820px) {
	.site-shell { width: min(calc(100% - 28px), var(--shell)); }
	.breaking-bar__date { display: none; }
	.masthead { min-height: 84px; grid-template-columns: minmax(180px, 285px) 1fr; gap: 14px; }
	.masthead__tagline { display: none; }
	.masthead__actions { justify-self: end; }
	.menu-button { display: flex; }
	.primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 118px; max-height: calc(100vh - 118px); overflow-y: auto; background: var(--white); box-shadow: var(--shadow); }
	.admin-bar .primary-navigation { max-height: calc(100vh - 150px); }
	.primary-navigation.is-open { display: block; }
	.primary-menu { display: block; padding: 12px 0 24px; overflow: visible; }
	.primary-menu > li > a { min-height: 50px; border-bottom: 1px solid var(--line); font-size: 16px; }
	.primary-menu > li > a::after { display: none; }
	.primary-menu .menu-tools { margin: 8px 0 0; }
	.primary-menu .sub-menu { position: static; min-width: 0; padding: 0 0 6px 15px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.search-panel { inset: 34px 0 auto; }
	.lead-grid { grid-template-columns: 1fr; }
	.lead-story { min-height: 530px; }
	.lead-stack { grid-template-columns: 1fr 1fr; }
	.tools-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.card-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.topic-sections { grid-template-columns: 1fr; }
	.topic-grid { grid-template-columns: minmax(0,1.1fr) minmax(220px,.9fr); }
	.topic-list { grid-template-columns: 1fr; gap: 0; }
	.topic-list-item { grid-template-columns: 82px 1fr; border-bottom: 1px solid var(--line); padding: 9px 0; }
	.topic-list-item__media { width: 82px; aspect-ratio: 1; }
	.article-layout { grid-template-columns: 1fr; }
	.article-sidebar { position: static; grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
}

@media (max-width: 600px) {
	.breaking-bar__inner { gap: 10px; }
	.breaking-bar a { font-size: 0; }
	.breaking-bar a span { font-size: 15px; }
	.masthead { min-height: 75px; grid-template-columns: minmax(155px, 235px) auto; }
	.brand img, .custom-logo { max-height: 63px; }
	.icon-button { width: 42px; height: 42px; }
	.menu-button { width: 42px; min-height: 42px; justify-content: center; padding: 0; }
	.menu-button > span:last-child { display: none; }
	.primary-navigation { top: 109px; }
	.search-panel__inner { align-items: stretch; flex-direction: column; }
	.search-form { gap: 6px; }
	.search-form button { padding: 0 13px; }
	.search-panel__close { align-self: flex-end; }
	.home-main { padding-top: 20px; }
	.home-title { font-size: 34px; }
	.lead-story { min-height: 470px; }
	.lead-story__content p { display: none; }
	.lead-story__content h2 { font-size: 34px; }
	.lead-stack { grid-template-columns: 1fr; }
	.lead-mini { display: grid; grid-template-columns: 122px 1fr; min-height: 126px; }
	.lead-mini__media { height: 100%; }
	.lead-mini h2 { font-size: 16px; }
	.tools-home { padding: 40px 0 44px; }
	.tools-grid { grid-template-columns: 1fr; }
	.tool-card { min-height: 72px; }
	.home-feed { padding-top: 44px; }
	.card-grid--3 { grid-template-columns: 1fr; }
	.news-card { display: grid; grid-template-columns: 130px 1fr; gap: 13px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
	.news-card__media { aspect-ratio: 1; border-radius: 10px; }
	.news-card__body { padding: 0; }
	.news-card p { display: none; }
	.news-card h3 { font-size: 17px; }
	.news-card__top { align-items: start; flex-direction: column; gap: 4px; }
	.section-heading { align-items: start; }
	.section-heading h2 { font-size: 29px; }
	.section-heading > a { margin-top: 4px; }
	.topic-sections { gap: 46px; }
	.topic-grid { grid-template-columns: 1fr; }
	.topic-list-item { grid-template-columns: 86px 1fr; }
	.archive-header { padding: 34px 22px; }
	.article-header h1 { font-size: 42px; }
	.article-hero { width: calc(100% + 28px); margin-left: -14px; }
	.article-hero img { border-radius: 0; }
	.post-meta span + span::before { display: none; }
	.entry-content { font-size: 18px; line-height: 1.72; }
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
	.article-sidebar { grid-template-columns: 1fr; }
	.author-box { grid-template-columns: 56px 1fr; padding: 18px; }
	.author-box img { width: 56px; height: 56px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-bottom { display: block; }
	.footer-bottom p + p { margin-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
	.site-header, .site-footer, .article-sidebar, .reading-progress, .related-posts, .comments-area { display: none !important; }
	.site-shell, .article-layout { width: 100%; display: block; }
	.entry-content { color: #000; font-size: 12pt; }
	a { color: #000; text-decoration: none; }
}
