/*
Theme Name: SpideeScoop
Theme URI: https://spideescoop.com/
Author: SpideeScoop
Description: A fast, ad-ready magazine theme for SpideeScoop: the inside scoop on how the future gets built. Includes homepage intro, newsletter signup, AdSense ad slots, auto table of contents, author box, related posts and reading progress. No page builder or jQuery required.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spideescoop
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0E1B2C;
	--ink-2: #16263C;
	--ink-line: #22324A;
	--amber: #F2AE45;
	--amber-deep: #A8650B;
	--teal: #1F7A7A;
	--teal-light: #7FD3D0;
	--paper: #F5F6F8;
	--white: #FFFFFF;
	--text: #121A26;
	--muted: #5A6577;
	--line: #DDE1E8;
	--on-ink: #EEF1F5;
	--on-ink-muted: #B2BDCC;

	--f-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
	--f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

	--radius: 10px;
	--wrap: 1200px;
	--narrow: 760px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 17px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 .5em; color: var(--text); }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 14px; border-radius: 6px; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow, .kicker, .hero-label, .author-label, .toc-title {
	font: 500 .74rem/1.2 var(--f-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
}
.eyebrow { color: var(--amber-deep); margin-bottom: 12px; }
.kicker { display: inline-block; color: var(--teal); text-decoration: none; margin-bottom: 10px; }
.kicker:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 8px; border: 0; font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #f6bd63; color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--ink-line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-ink); flex-shrink: 0; }
.brand:hover { color: var(--on-ink); }
.brand-word { font: 800 1.5rem/1 var(--f-display); letter-spacing: -.02em; }
.brand-word em { font-style: normal; color: var(--amber); }
.custom-logo-link img { max-height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
#primary-menu { display: flex; gap: 22px; }
#primary-menu > li { position: relative; }
#primary-menu a { color: var(--on-ink-muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; display: block; }
#primary-menu a:hover, #primary-menu .current-menu-item > a, #primary-menu .current-menu-ancestor > a, #primary-menu .current-cat > a { color: var(--white); box-shadow: inset 0 -2px 0 var(--amber); }
#primary-menu .sub-menu { position: absolute; top: 100%; left: -14px; min-width: 220px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 8px; padding: 8px 14px; display: none; }
#primary-menu li:hover > .sub-menu, #primary-menu li:focus-within > .sub-menu { display: block; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.search-toggle { background: none; border: 1px solid var(--ink-line); color: var(--on-ink); width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.search-toggle:hover { border-color: var(--amber); color: var(--amber); }
.site-search { border-top: 1px solid var(--ink-line); padding-block: 16px; }
.site-search .search-field { background: var(--ink-2); border-color: var(--ink-line); color: var(--on-ink); }

.nav-toggle { display: none; background: none; border: 1px solid var(--ink-line); width: 44px; height: 44px; border-radius: 8px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--on-ink); content: ""; transition: transform .2s ease; }
.nav-toggle-bars { top: 20px; }
.nav-toggle-bars::before { left: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid var(--ink-line); flex-direction: column; align-items: stretch; gap: 16px; padding: 12px var(--gutter) 22px; }
	.site-nav.is-open { display: flex; }
	#primary-menu { flex-direction: column; gap: 0; }
	#primary-menu a { padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
	#primary-menu a:hover { box-shadow: none; }
	#primary-menu .sub-menu { position: static; display: block; border: 0; background: none; padding: 0 0 0 14px; }
	.nav-actions .btn { flex: 1; }
}

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; max-width: 620px; }
.search-field { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.search-submit { padding: 12px 18px; border: 0; border-radius: 8px; background: var(--amber); color: var(--ink); font-weight: 600; cursor: pointer; }

/* ---------- Homepage hero ---------- */
.home-hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.home-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image:
		linear-gradient(var(--ink-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 80% 30%, #000 10%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 10%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 7vw, 88px); }
.home-hero .eyebrow { color: var(--amber); }
.hero-title { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.hero-text { color: var(--on-ink-muted); font-size: 1.12rem; max-width: 46ch; margin-bottom: 26px; }
.hero-feature { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 14px; overflow: hidden; }
.hero-media { display: block; aspect-ratio: 16 / 9; background: var(--ink); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature-body { padding: 20px 22px 22px; }
.hero-label { color: var(--teal-light); margin-bottom: 10px; }
.hero-feature h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 10px; }
.hero-feature h2 a { color: var(--white); text-decoration: none; }
.hero-feature h2 a:hover { color: var(--amber); }
.hero-byline { color: var(--on-ink-muted); font-size: .9rem; margin: 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-title { font-size: 1.6rem; font-weight: 800; margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(14, 27, 44, .1); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--teal); }
.card-excerpt { color: var(--muted); font-size: .94rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; }

.thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 70% 30%, var(--ink-2), var(--ink)); }
.thumb-fallback svg { opacity: .9; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.meta > * + *::before { content: "·"; margin-right: 14px; color: var(--line); }
.meta-author { font-weight: 600; color: var(--text); }

/* ---------- Topics ---------- */
.topics { padding-top: 0; }
.topic-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-list a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); background: var(--white); border-radius: 99px; color: var(--text); text-decoration: none; font-weight: 500; }
.topic-list a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.topic-list span { font: 500 .75rem var(--f-mono); color: var(--muted); }
.topic-list a:hover span { color: var(--amber); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--text); text-decoration: none; font-weight: 500; }
.page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Archive ---------- */
.archive-head { margin-bottom: 36px; max-width: 760px; }
.archive-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
.archive-desc { color: var(--muted); font-size: 1.08rem; }
.archive-search { margin-top: 16px; }
.not-found { text-align: center; display: flex; flex-direction: column; align-items: center; }
.not-found .search-form { width: 100%; margin-inline: auto; }
.not-found-mark { --mark-frame: var(--ink); --mark-web: var(--teal); --mark-node: var(--amber); --mark-node2: var(--ink); margin-bottom: 18px; }

/* ---------- Article ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }

.article-head, .page-head { background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(32px, 6vw, 64px) 32px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.article-title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.article-dek { font-size: 1.22rem; color: var(--muted); line-height: 1.5; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.byline-avatar { border-radius: 50%; }
.byline-name { font-weight: 600; color: var(--text); text-decoration: none; }
.meta-updated { margin-top: 2px; }

.article-media { margin-block: 32px 0; }
.article-media img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-media figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

.article-layout { display: grid; grid-template-columns: minmax(0, var(--narrow)) 300px; gap: 56px; justify-content: center; padding-block: 40px 56px; }
@media (max-width: 1080px) { .article-layout { grid-template-columns: minmax(0, var(--narrow)); } .article-aside { display: none; } }
.aside-sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 28px; }

/* Article typography */
.entry-content { font-size: 1.1rem; line-height: 1.75; min-width: 0; }
.entry-content > * { margin-block: 0; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.7rem; font-weight: 800; margin: 1.9em 0 .5em; }
.entry-content h3 { font-size: 1.3rem; font-weight: 600; margin: 1.6em 0 .4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--amber-deep); font-weight: 600; }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--amber); font-family: var(--f-display); font-size: 1.35rem; line-height: 1.4; color: var(--ink); }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.wp-caption { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--paper); }
.entry-content code { font-family: var(--f-mono); font-size: .88em; background: var(--white); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.entry-content pre { overflow-x: auto; background: var(--ink); color: var(--on-ink); padding: 18px; border-radius: 8px; font-size: .9rem; }
.entry-content a { color: var(--teal); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }

.toc { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 8px; padding: 18px 22px; margin-bottom: 2em; }
.toc-title { color: var(--teal); margin: 0 0 8px !important; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 1rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--teal); text-decoration: underline; }

.tag-list { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em !important; }
.tag-list a { font: 500 .8rem var(--f-mono); color: var(--muted); text-decoration: none; background: var(--white); border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2em !important; padding-block: 18px; border-block: 1px solid var(--line); font-size: .92rem; }
.share span { font-weight: 600; margin-right: 4px; }
.share a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--text); text-decoration: none; }
.share a:hover { border-color: var(--ink); }

.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 2em !important; }
.author-avatar { border-radius: 50%; flex-shrink: 0; }
.author-label { color: var(--muted); margin: 0 0 4px; }
.author-name { font-size: 1.25rem; margin: 0 0 6px; }
.author-name a { color: var(--text); text-decoration: none; }
.author-bio { color: var(--muted); font-size: .98rem; margin: 0 0 8px; }
.author-link { font-size: .9rem; font-weight: 600; }

/* Sidebar widgets */
.widget { font-size: .95rem; }
.widget-title { font: 500 .74rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.mini-list { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.mini-list li { counter-increment: m; display: grid; grid-template-columns: 28px 1fr; padding-block: 10px; border-bottom: 1px solid var(--line); }
.mini-list li::before { content: counter(m); font: 800 1.2rem/1.2 var(--f-display); color: var(--amber-deep); grid-row: span 2; }
.mini-list a { color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.mini-list a:hover { color: var(--teal); }
.mini-list span { font-size: .8rem; color: var(--muted); }

.related { background: var(--white); border-top: 1px solid var(--line); }
.comments-wrap { padding-block: 40px 64px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .88rem; color: var(--muted); }
.comment-author img { border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }

/* ---------- Ads ---------- */
.ad-slot { margin-block: 28px; text-align: center; min-height: 100px; }
.ad-label { display: block; font: 500 .66rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-header { margin-block: 20px; min-height: 90px; }
.ad-sidebar { min-height: 250px; margin: 0; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--amber); color: var(--ink); }
.newsletter-inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(36px, 5vw, 56px) var(--gutter); display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.newsletter p { margin: 0; max-width: 48ch; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 8px; border: 2px solid var(--ink); background: var(--white); color: var(--text); }
.newsletter-form button { padding: 14px 22px; border-radius: 8px; border: 0; background: var(--ink); color: var(--white); font-weight: 600; cursor: pointer; }
.newsletter-form button:hover { background: var(--ink-2); }
@media (max-width: 760px) { .newsletter-inner { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .newsletter-form { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-brand p { max-width: 42ch; margin-top: 16px; }
.footer-title { font: 500 .74rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .social a { color: var(--on-ink); text-decoration: none; }
.footer-nav a:hover, .social a:hover { color: var(--amber); }
.social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-block; padding: 6px 12px; border: 1px solid var(--ink-line); border-radius: 6px; font-size: .85rem; }
.footer-widgets { grid-column: 1 / -1; }
.footer-bottom { border-top: 1px solid var(--ink-line); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.affiliate-note { max-width: 60ch; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Writing patterns (also styled in the editor) ---------- */
.entry-content .scoop-lede { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.entry-content .scoop-takeaways { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: 10px; padding: 20px 24px; }
.entry-content .scoop-takeaways h3 { margin-top: 0; font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); }
.entry-content .scoop-takeaways ul { margin: 8px 0 0; }
.entry-content .scoop-tip { background: #E6F3F2; border-left: 4px solid var(--teal); border-radius: 8px; padding: 14px 18px; }
.entry-content .scoop-cta { background: var(--ink); color: var(--on-ink); border-radius: 12px; padding: 22px 24px; }
.entry-content .scoop-cta h3 { color: var(--white); margin-top: 0; }
.entry-content .scoop-cta p { color: var(--on-ink-muted); }
.entry-content .wp-block-details { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.entry-content .wp-block-details + .wp-block-details { margin-top: 10px; }
.entry-content .wp-block-details summary { font-weight: 600; cursor: pointer; }
.entry-content .wp-block-details[open] summary { margin-bottom: 8px; }

/* ---------- Guest writers ---------- */
.author-initial { width: 72px; height: 72px; display: inline-grid; place-items: center; background: var(--ink); color: var(--amber); font: 800 1.8rem/1 var(--f-display); border-radius: 50%; flex-shrink: 0; }
.byline .author-initial { width: 44px; height: 44px; font-size: 1.1rem; }
.guest-badge { font: 500 .68rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); border: 1px solid var(--teal); border-radius: 4px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }

/* ---------- Write for us form ---------- */
.write-wrap { padding-block: 8px 72px; }
.write-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.write-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.write-form legend { font: 800 1.3rem var(--f-display); margin-bottom: 14px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--amber); outline-offset: 0; border-color: var(--ink); background: var(--white); }
.field textarea#gp_content { font: 1rem/1.6 var(--f-body); min-height: 360px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: .84rem; color: var(--muted); margin: 0; }
.word-count { font: 500 .8rem var(--f-mono); color: var(--muted); align-self: flex-end; }
.word-count.is-ok { color: #2F7D4F; }
.field-check { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { border-radius: 10px; padding: 18px 22px; margin-bottom: 20px; }
.form-notice p { margin: 0; }
.form-notice--ok { background: #E3F2E8; border-left: 4px solid #2F7D4F; }
.form-notice--ok h2 { font-size: 1.4rem; margin-bottom: 6px; }
.form-notice--error { background: #FBE7E5; border-left: 4px solid #C2362B; color: #7A1E17; font-weight: 600; }
