/*
Theme Name: BREAK
Theme URI: https://example.com/break
Author: hum inc.
Description: 映画・アニメ・ドラマのカルチャーメディア「BREAK」用テーマ。黒基調、カテゴリ別セクション、ランキング（PV計測つき）、特集、記事タイプ、広告枠ウィジェットを備えています。
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.2
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: break
Tags: news, blog, dark, two-columns, right-sidebar, custom-logo, custom-menu, featured-images
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #000;
	--surface: #161616;
	--surface-2: #1f1f1f;
	--line: #2b2b2b;
	--text: #f4f4f1;
	--sub: #a3a3a0;
	--mute: #74746f;
	--cat: #f4f4f1;
	--section: #f4f4f1;
	--font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	--tech: "Chakra Petch", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
	--display: var(--tech);
	--wrap: 1280px;
	--gutter: 20px;
	--radius: 2px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.7;
	font-feature-settings: "palt";
	-webkit-font-smoothing: antialiased;
}
html.drawer-open { overflow: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; }
.skip-link:focus { top: 8px; color: var(--bg); }
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { display: block; }

/* ---------- Wordmark ---------- */
/* Light, widely spaced letters between two hairlines (film-credit style) */
.logo { margin: 0; font-size: inherit; line-height: 1; display: flex; }
.logo .custom-logo { width: auto; max-height: 40px; }
.wordmark {
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	gap: .3em;
	font-family: var(--tech);
	font-weight: 300;
	font-size: 24px;
	line-height: 1;
	color: var(--text);
}
.wordmark::before, .wordmark::after { content: ""; display: block; height: 1px; background: currentColor; }
/* Trailing letter-spacing is balanced by the same amount on the left */
.wordmark-text { display: block; letter-spacing: .42em; padding-left: .42em; text-align: center; }

/* Condensed, slightly tall Latin for labels and headings */
.tall { display: inline-block; transform: scaleY(1.14); transform-origin: 50% 60%; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.branding-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; }
.site-header.is-home .branding-bar { justify-content: center; padding: 30px 0 20px; position: relative; }
.site-header.is-home .wordmark { font-size: 36px; }
.site-header:not(.is-home) .wordmark { font-size: 20px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.site-header.is-home .menu-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 46px; }
.site-nav-menu { display: flex; }
.site-nav-menu li a {
	display: block;
	padding: 12px 20px 10px;
	font-family: var(--tech);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .06em;
	color: var(--sub);
	border-bottom: 2px solid transparent;
}
.site-nav-menu li:first-child a { padding-left: 0; }
.site-nav-menu li a:hover { color: var(--text); }
.site-nav-menu .current-menu-item a { color: var(--text); border-bottom-color: var(--text); }
.site-nav-info { display: flex; align-items: center; gap: 16px; color: var(--mute); font-size: 12px; font-family: var(--tech); letter-spacing: .04em; }
.sns { display: flex; gap: 12px; }
.sns a { color: var(--sub); display: block; }
.sns a:hover { color: var(--text); }
.sns .icon { width: 18px; height: 18px; }

.sub-nav { border-top: 1px solid var(--line); background: var(--surface); }
.sub-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sub-nav-menu { display: flex; flex-wrap: wrap; }
.sub-nav-menu a { display: block; padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--sub); }
.sub-nav-menu li:first-child a { padding-left: 0; }
.sub-nav-menu a:hover, .sub-nav-menu a[aria-current] { color: var(--text); }
.sub-nav-menu a[aria-current] { box-shadow: inset 0 -2px 0 var(--section); }

.search-form { display: flex; align-items: center; border: 1px solid var(--line); background: var(--bg); }
.search-field { background: transparent; border: 0; padding: 7px 10px; width: 220px; font-size: 13px; }
.search-field::placeholder { color: var(--mute); }
.search-field:focus { outline: none; }
.search-form:focus-within { border-color: var(--sub); }
.search-submit { background: none; border: 0; padding: 6px 10px; cursor: pointer; color: var(--sub); }
.search-submit:hover { color: var(--text); }

/* Drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); }
.drawer-inner {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
	background: var(--bg); border-left: 1px solid var(--line);
	padding: 64px 24px 32px; overflow-y: auto; display: grid; gap: 28px; align-content: start;
}
.drawer-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; padding: 8px; cursor: pointer; }
.drawer .site-nav-menu { flex-direction: column; }
.drawer .site-nav-menu li a { padding: 10px 0; font-size: 22px; border: 0; }
.drawer .sub-nav-menu { flex-direction: column; }
.drawer .sub-nav-menu a { padding: 8px 0; font-size: 15px; }
.drawer .search-field { width: 100%; }

/* ---------- Shared pieces ---------- */
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-title h2 {
	position: relative;
	font-family: var(--tech);
	font-weight: 700;
	font-size: 34px;
	line-height: 1;
	letter-spacing: .02em;
	padding-left: 22px;
}
/* Slanted marker in the section's color */
.section-title h2::before {
	content: "";
	position: absolute; left: 0; top: 50%;
	width: 8px; height: 24px; margin-top: -12px;
	background: var(--cat);
	transform: skewX(-20deg);
}
.section-title p { color: var(--sub); font-size: 13px; }
/* A thin rule fills the space up to the "more" link */
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); order: 2; min-width: 24px; }
.section-title .btn-more { order: 3; margin-left: 0; }
.btn-more {
	position: relative;
	display: inline-block;
	margin-left: auto;
	border: 1px solid var(--line);
	padding: 6px 18px 6px 14px;
	font-family: var(--tech);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--sub);
	white-space: nowrap;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.btn-more::after {
	content: ""; position: absolute; right: -2px; bottom: 3px;
	width: 13px; height: 1px; background: var(--line); transform: rotate(-45deg);
}
.btn-more:hover { border-color: var(--text); color: var(--text); }
.btn-more:hover::after { background: var(--text); }
.btn-block { display: block; text-align: center; margin-top: 12px; }

.cat-label {
	display: inline-block;
	font-family: var(--tech);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .05em;
	line-height: 1;
	color: var(--bg);
	background: var(--cat);
	padding: 5px 12px 4px 8px;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.cat-label:hover { color: var(--bg); background: var(--text); }
.type-label { font-size: 12px; color: var(--sub); border: 1px solid var(--line); padding: 2px 8px; line-height: 1.4; }
.entry-date { color: var(--mute); font-family: var(--tech); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .06em; }

.entry-thumb { display: block; position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 3 / 2; }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.entry-summary:hover .entry-thumb img { opacity: .82; }
.no-image {
	display: grid; place-items: center; width: 100%; height: 100%;
	font-family: var(--tech); font-weight: 700; font-size: 22px; letter-spacing: .2em;
	color: var(--line); background: var(--surface);
}
.rank-num {
	position: absolute; left: 0; top: 0; z-index: 1;
	min-width: 28px; height: 28px; display: grid; place-items: center;
	font-family: var(--tech); font-weight: 700; font-size: 15px;
	background: var(--text); color: var(--bg);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.entry-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-excerpt {
	color: var(--sub); font-size: 13px; line-height: 1.7; margin-top: 8px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-author { color: var(--mute); font-size: 12px; margin-top: 8px; }
.entry-source { display: flex; align-items: center; gap: 6px; }
.reprint-mark {
	display: inline-block; font-family: var(--tech); font-weight: 700; font-size: 10px; letter-spacing: .12em;
	line-height: 1; padding: 3px 5px 2px; border: 1px solid currentColor; color: var(--sub); letter-spacing: .04em;
}
.entry-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Home: highlights ---------- */
.highlights { padding: 32px 0; border-bottom: 1px solid var(--line); }
.highlights .row { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 32px; }
.card-hero { position: relative; height: 100%; min-height: 440px; }
/* Faint scanlines and corner brackets over the lead image */
.card-hero .entry-thumb::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
.card-hero::before, .card-hero::after {
	content: ""; position: absolute; z-index: 2; width: 18px; height: 18px; pointer-events: none;
	border-color: rgba(244, 244, 241, .7); border-style: solid;
}
.card-hero::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.card-hero::after { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.card-hero .entry-thumb { position: absolute; inset: 0; aspect-ratio: auto; }
.card-hero .entry-text {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 80px 24px 22px;
	background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, 0));
	display: grid; gap: 10px; justify-items: start;
}
.card-hero .entry-title { font-size: 28px; line-height: 1.4; font-weight: 900; }
.col-secondary { display: grid; grid-template-rows: repeat(4, 1fr); }
.card-side { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.card-side:first-child { border-top: 0; padding-top: 0; }
.card-side .entry-text { display: grid; gap: 8px; justify-items: start; }
.card-side .entry-title { font-size: 16px; font-weight: 700; line-height: 1.5; }

/* ---------- Home: features ---------- */
.features { padding: 40px 0 36px; border-bottom: 1px solid var(--line); }
.features-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
	scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.feature-card { scroll-snap-align: start; display: grid; gap: 10px; }
.feature-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-name { font-weight: 700; font-size: 14px; line-height: 1.5; }
.feature-card:hover .feature-name { text-decoration: underline; text-underline-offset: 3px; }
.feature-count { color: var(--mute); font-size: 12px; }
.features-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; padding-bottom: 60px; }

/* ---------- Home: category sections ---------- */
.latest { padding: 44px 0 40px; border-bottom: 1px solid var(--line); }
.row-large { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.row-small { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.latest-recommend .row-small { margin-top: 0; padding-top: 0; border-top: 0; }
.card-large .entry-text, .card-small .entry-text, .card-card .entry-text { padding-top: 12px; }
.card-large .entry-title { font-size: 18px; font-weight: 900; line-height: 1.5; margin-top: 4px; }
.card-small .entry-title { font-size: 15px; font-weight: 700; line-height: 1.55; margin-top: 4px; }
.home-ad { padding: 32px var(--gutter); text-align: center; }

/* ---------- Article / archive layout ---------- */
.breadcrumb { padding: 14px 0; font-size: 12px; color: var(--mute); font-family: var(--tech); letter-spacing: .04em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.breadcrumb a { color: var(--sub); }
.breadcrumb a:hover { color: var(--text); }
.col-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-bottom: 72px; }

.entry-header { display: grid; gap: 14px; padding-top: 10px; }
.entry-single .entry-title { font-size: 30px; font-weight: 900; line-height: 1.5; letter-spacing: .01em; }
.entry-header .entry-author { margin: 0; color: var(--sub); font-size: 13px; }
.entry-tag { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.entry-tag a { color: var(--sub); }
.entry-tag a:hover { color: var(--text); }
.entry-tag .is-feature a { color: var(--text); border-bottom: 1px solid var(--section); }
.entry-header .entry-thumb { aspect-ratio: auto; margin: 10px 0 0; background: none; }
.entry-header .entry-thumb img { height: auto; }
.entry-header figcaption { font-size: 12px; color: var(--mute); padding-top: 8px; }

.entry-body-wrapper { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 32px; padding-top: 36px; }
.entry-body-wrapper .entry-body { width: 100%; max-width: 700px; margin: 0 auto; }
.fixed-share .share { position: sticky; top: 24px; flex-direction: column; }
.share { display: flex; gap: 8px; }
.share a, .share button {
	position: relative; display: grid; place-items: center; width: 40px; height: 40px;
	border: 1px solid var(--line); background: none; color: var(--sub); cursor: pointer; padding: 0;
}
.share a:hover, .share button:hover, .share .is-copied { color: var(--text); border-color: var(--text); }
.share-copied { position: absolute; left: 48px; white-space: nowrap; font-size: 12px; color: var(--text); }
.share-copied:empty { display: none; }

.entry-body { font-size: 17px; line-height: 1.95; letter-spacing: .02em; overflow-wrap: anywhere; }
.entry-body > * + * { margin-top: 1.6em; }
.entry-body h2 { font-size: 22px; font-weight: 900; line-height: 1.55; padding: 0 0 10px; border-bottom: 1px solid var(--line); margin-top: 2.4em; }
.entry-body h3 { font-size: 19px; font-weight: 700; margin-top: 2em; padding-left: 12px; border-left: 3px solid var(--section); }
.entry-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--mute); }
.entry-body a:hover { text-decoration-color: var(--text); }
.entry-body blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--line); color: var(--sub); }
.entry-body figure { margin-left: 0; margin-right: 0; }
.entry-body figcaption, .entry-body .wp-element-caption { font-size: 12px; color: var(--mute); margin-top: 8px; }
.entry-body ul, .entry-body ol { padding-left: 1.4em; }
.entry-body ul { list-style: disc; }
.entry-body ol { list-style: decimal; }
.entry-body hr { border: 0; border-top: 1px solid var(--line); }
.entry-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-body th, .entry-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-body iframe { display: block; margin-left: auto; margin-right: auto; }
/* Interview Q&A: wrap the interviewer line in <strong> */
.entry-body p > strong:first-child:only-child { color: var(--sub); }
.page-links { display: flex; align-items: center; gap: 8px; margin-top: 40px; }
.page-links-title { font-size: 13px; color: var(--sub); margin-right: 6px; }
.page-links a span, .page-links > span:not(.page-links-title) {
	display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--line); font-size: 14px; text-decoration: none;
}
.page-links a { text-decoration: none; }
.page-links > span.current span, .page-links > span:not(.page-links-title) { background: var(--text); color: var(--bg); border-color: var(--text); }
.entry-share-bottom { display: flex; align-items: center; gap: 16px; padding-top: 28px; margin-top: 48px; border-top: 1px solid var(--line); }
.entry-share-bottom p { font-size: 13px; color: var(--sub); }
.entry-body .share { list-style: none; padding: 0; }
.entry-body .share li { margin: 0; }
.article-ad { margin-top: 40px; text-align: center; }

.related-entry-list { margin-top: 56px; }
.entry-list-header { font-size: 17px; font-weight: 900; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.entry-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card-card .entry-title { font-size: 14px; font-weight: 700; line-height: 1.55; margin-top: 2px; }
.card-card .entry-info { gap: 4px; }

/* Reprint credit (RE) */
.reprint-credit {
	display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
	margin-top: 28px; padding: 12px 16px; border: 1px solid var(--line); background: var(--surface);
	font-size: 13px; color: var(--sub);
}
.reprint-credit .reprint-mark { color: var(--text); }
.reprint-credit p { flex: 1; min-width: 12em; }
.reprint-link { font-family: var(--tech); font-size: 12px; letter-spacing: .04em; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.reprint-credit-bottom { margin-top: 40px; }
.entry-body .reprint-credit a { text-decoration-color: var(--sub); }

/* Partner media (RE page) */
.partners { margin: 0 0 40px; padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.partners-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--sub); }
.partners-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
.partner-name { font-family: var(--tech); font-weight: 700; font-size: 18px; letter-spacing: .04em; }
a.partner-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.partner-desc { color: var(--sub); font-size: 13px; margin-top: 4px; }

/* Sidebar */
.col-aside { display: grid; gap: 36px; align-content: start; }
.widget-title { font-size: 16px; font-weight: 900; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.widget-ad { text-align: center; }
.widget-ad .widget-title { text-align: left; }
.widget-ad ul { text-align: left; }
.widget-ad li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.widget-ad .widget + .widget { margin-top: 16px; }
.widget-sticky { position: sticky; top: 20px; }
.rank-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 6px; }
.rank-tabs button { background: none; border: 0; padding: 6px 0; font-size: 12px; font-weight: 700; color: var(--mute); cursor: pointer; letter-spacing: .04em; }
.rank-tabs button + button { border-left: 1px solid var(--line); }
.rank-tabs [aria-selected="true"] { background: var(--text); color: var(--bg); }
.card-rank .entry-link { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.card-rank .rank-num { position: static; background: none; color: var(--text); font-size: 26px; height: auto; min-width: 0; line-height: 1; place-items: start; clip-path: none; }
.rank-list li:nth-child(n+4) .rank-num { color: var(--mute); }
.card-rank .entry-title { font-size: 14px; font-weight: 700; line-height: 1.55; }
.card-rank .entry-link:hover .entry-title { text-decoration: underline; text-underline-offset: 3px; }
.rank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.card-rank-img .entry-text { padding-top: 6px; }
.card-rank-img .entry-title { font-size: 12px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-rank-img .rank-num { min-width: 22px; height: 22px; font-size: 14px; }
.card-list { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.card-list .entry-title { font-size: 13px; font-weight: 700; line-height: 1.5; margin-top: 2px; }

/* Archive */
.archive-header { padding: 6px 0 28px; display: grid; gap: 10px; }
.archive-title { font-family: var(--tech); font-weight: 700; font-size: 44px; line-height: 1.1; letter-spacing: .02em; }
.archive-title { position: relative; padding-left: 26px; }
.archive-title::before { content: ""; position: absolute; left: 0; top: .18em; width: 10px; height: .8em; background: var(--section); transform: skewX(-20deg); }
.archive-description { color: var(--sub); font-size: 14px; }
.archive-header .search-form { max-width: 420px; margin-top: 8px; }
.archive-header .search-field { width: 100%; }
.archive-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.archive-filters a { display: block; border: 1px solid var(--line); padding: 4px 12px; font-size: 13px; color: var(--sub); }
.archive-filters a:hover, .archive-filters a[aria-current] { color: var(--bg); background: var(--text); border-color: var(--text); }
.archive-lead { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.empty-state { color: var(--sub); padding: 40px 0; }
.pagination { margin-top: 56px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); font-size: 14px; font-family: var(--tech); }
.pagination a:hover { border-color: var(--text); }
.pagination .current { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .dots { border: 0; }

/* Pages & 404 */
.page-single { max-width: 760px; margin: 0 auto; padding: 16px 0 80px; }
.entry-page .entry-title { margin-bottom: 32px; }
.not-found { max-width: 640px; margin: 0 auto; padding: 40px 0 100px; display: grid; gap: 18px; justify-items: start; }
.not-found-code { font-family: var(--tech); font-weight: 700; font-size: 120px; line-height: .9; letter-spacing: .1em; color: var(--line); }
.not-found h1 { font-size: 26px; font-weight: 900; }
.not-found p { color: var(--sub); }
.not-found .search-form { width: 100%; }
.not-found .search-field { width: 100%; }
.not-found .btn-more { margin-left: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 36px; font-size: 13px; }
.footer-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-head .wordmark { font-size: 16px; }
.footer-about-text { color: var(--sub); }
.footer-list { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.footer-list ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-list a, .footer-list li { color: var(--sub); }
.footer-list a:hover { color: var(--text); }
.footer-list-title { color: var(--mute); font-family: var(--tech); font-size: 12px; letter-spacing: .08em; }
.list-categories { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.list-categories dl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 20px; align-items: baseline; margin: 0; }
.list-categories dt a { font-family: var(--tech); font-weight: 700; font-size: 16px; letter-spacing: .05em; color: var(--text); }
.list-categories dt a:hover { color: var(--sub); }
.list-categories dd { margin: 0; }
.footer-about { padding: 24px 0 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-menu a { color: var(--sub); }
.footer-menu a:hover { color: var(--text); }
.copyright { color: var(--mute); font-family: var(--tech); font-size: 13px; letter-spacing: .03em; padding-top: 22px; }
.copyright small { font-size: inherit; }

/* ---------- Gutenberg alignment helpers ---------- */
.alignwide, .alignfull { margin-left: 0; margin-right: 0; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.wp-block-embed__wrapper { display: flex; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.col-wrapper { grid-template-columns: minmax(0, 1fr); }
	.col-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
	.widget-sticky { position: static; }
	.features-track { grid-auto-columns: calc((100% - 3 * 16px) / 3.6); }
}
@media (max-width: 900px) {
	.highlights .row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.col-secondary { grid-template-rows: none; }
	.row-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.row-small, .entry-list, .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-nav-info p { display: none; }
	.entry-body-wrapper { grid-template-columns: minmax(0, 1fr); }
	.fixed-share { display: none; }
}
@media (max-width: 767px) {
	:root { --gutter: 16px; }
	body { font-size: 14px; }
	.menu-toggle { display: block; }
	.branding-bar, .site-header.is-home .branding-bar { padding: 12px 0 8px; justify-content: space-between; }
	.site-header .wordmark, .site-header.is-home .wordmark { font-size: 17px; }
	.site-nav { min-height: 0; }
	.site-nav-menu { overflow-x: auto; scrollbar-width: none; }
	.site-nav-menu li a { font-size: 13px; padding: 8px 10px; letter-spacing: .05em; }
	.site-nav-info, .sub-nav { display: none; }
	.section-title { flex-wrap: wrap; gap: 6px 12px; margin-bottom: 16px; }
	.section-title h2 { font-size: 26px; }
	.section-title::after { display: none; }
	.section-title .btn-more { margin-left: auto; }
	.section-title p { order: 4; width: 100%; }
	.highlights { padding: 16px 0 24px; }
	.card-hero { min-height: 0; aspect-ratio: 4 / 3; }
	.card-hero .entry-text { padding: 60px 16px 16px; }
	.card-hero .entry-title { font-size: 20px; }
	.card-side { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
	.card-side .entry-title { font-size: 14px; }
	.features { padding: 28px 0 24px; }
	.features-track { grid-auto-columns: 62%; }
	.latest { padding: 32px 0 28px; }
	.row-large { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.row-small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; margin-top: 28px; padding-top: 24px; }
	.card-small .entry-excerpt, .card-small .entry-author { display: none; }
	.card-small .entry-title { font-size: 14px; }
	.col-aside { grid-template-columns: minmax(0, 1fr); }
	.entry-single .entry-title { font-size: 22px; }
	.entry-body { font-size: 16px; line-height: 1.9; }
	.entry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
	.archive-title { font-size: 32px; }
	.archive-lead { grid-template-columns: minmax(0, 1fr); }
	.archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
	.archive-grid .entry-excerpt, .archive-grid .entry-author { display: none; }
	.features-grid { gap: 24px 14px; }
	.footer-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.footer-list { grid-template-columns: minmax(0, 1fr); }
	.list-categories dl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
