/*
Theme Name:  ComparePress
Theme URI:   https://example.com/comparepress
Description: BtoB比較メディア向けの独自テーマ。ComparePress Coreプラグインと組み合わせて、サービス比較表・資料一括請求・口コミを備えた比較サイトを構築します。業種はカスタマイザーの配色とカテゴリ設定で差し替え可能です。
Version:     1.4.2
Requires at least: 6.2
Requires PHP: 7.4
Author:      ComparePress
Text Domain: comparepress
License:     GPL-2.0-or-later
*/

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
	--ground: #f5f7f7;
	--surface: #ffffff;
	--surface-2: #f0f3f3;
	--ink: #1d2730;
	--muted: #5b6772;
	--accent: #16604f;
	--accent-ink: #0e4a3d;
	--accent-soft: #e4efec;
	--line: #dbe1e4;
	--star: #e8a417;
	--maxw: 1300px;
	--radius: 12px;
	--gap: clamp(20px, 4vw, 40px);
	--font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;

	/* Expose to the plugin's component styles. */
	--cp-accent: var(--accent);
	--cp-accent-ink: var(--accent-ink);
	--cp-accent-soft: var(--accent-soft);
	--cp-ink: var(--ink);
	--cp-muted: var(--muted);
	--cp-surface: var(--surface);
	--cp-line: var(--line);
	--cp-star: var(--star);
	--cp-radius: var(--radius);
}

@media (prefers-color-scheme: dark) {
	:root {
		--ground: #131a1f;
		--surface: #1b232a;
		--surface-2: #212b33;
		--ink: #e6eaed;
		--muted: #9aa6af;
		--accent: #55b39c;
		--accent-ink: #7fcbb8;
		--accent-soft: #1e3630;
		--line: #2b353d;
		--star: #f0b429;
	}
}
:root[data-theme="dark"] {
	--ground: #131a1f;
	--surface: #1b232a;
	--surface-2: #212b33;
	--ink: #e6eaed;
	--muted: #9aa6af;
	--accent: #55b39c;
	--accent-ink: #7fcbb8;
	--accent-soft: #1e3630;
	--line: #2b353d;
	--star: #f0b429;
}
:root[data-theme="light"] {
	--ground: #f5f7f7;
	--surface: #ffffff;
	--surface-2: #f0f3f3;
	--ink: #1d2730;
	--muted: #5b6772;
	--accent: #16604f;
	--accent-ink: #0e4a3d;
	--accent-soft: #e4efec;
	--line: #dbe1e4;
	--star: #e8a417;
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(36px, 6vw, 64px); }
.section--tight { padding-top: 28px; padding-bottom: 28px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; border-radius: 6px; }

h1, h2, h3, h4 { line-height: 1.4; text-wrap: balance; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 0; padding-left: 14px; border-left: 5px solid var(--accent); }
.sec-head a { font-size: .9rem; text-decoration: none; font-weight: 700; white-space: nowrap; }
.sec-head a:hover { text-decoration: underline; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.site-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); letter-spacing: .01em; flex: 0 1 auto; min-width: 0; }
.site-brand__mark { color: var(--accent); }
.site-brand img { max-width: 100%; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header-tools__list-cta,
.site-nav a.header-tools__list-cta {
	text-decoration: none; color: var(--accent); font-weight: 700; font-size: .85rem;
	white-space: nowrap; padding: 7px 14px; border: 1px solid var(--accent); border-radius: 999px;
	transition: background .15s ease, color .15s ease;
}
.header-tools__list-cta:hover,
.site-nav a.header-tools__list-cta:hover { background: var(--accent); color: #fff; }
.cart-link { position: relative; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: 0 0 auto; }
.cart-badge {
	background: var(--accent); color: #fff; border-radius: 999px;
	font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
	display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.menu-toggle { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
	position: relative;
	background:
		linear-gradient(90deg, rgba(5,12,28,0.90) 0%, rgba(5,12,28,0.66) 42%, rgba(6,16,34,0.34) 74%, rgba(6,18,38,0.16) 100%),
		url('assets/img/hero-bg.jpg') center center / cover no-repeat;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero__inner { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); max-width: 760px; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); margin: 0 0 16px; color: #ffffff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.90); margin: 0 0 28px; text-shadow: 0 1px 10px rgba(0,0,0,.30); }
.hero__search { display: flex; gap: 8px; max-width: 520px; }
.hero__search input[type="search"] { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }

/* =========================================================================
   Category grid
   ========================================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat-card {
	display: block; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink);
	transition: border-color .15s ease, transform .15s ease;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-card__name { font-weight: 700; margin: 0 0 4px; }
.cat-card__count { font-size: .82rem; color: var(--muted); }
.cat-card--featured { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cat-card--featured__label { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--accent); }
.cat-card--featured__title { flex: 1 1 240px; min-width: 0; font-size: 1.1rem; }
.cat-card__children { margin: 8px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* Category directory section header: small accent "eyebrow" kicker above
   the usual sec-head, echoing the editorial look of category-directory
   pages on other comparison sites (SEARCH BY CATEGORY-style label). */
.cat-directory__head { text-align: center; margin-bottom: 8px; }
.cat-directory__eyebrow {
	margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .18em;
	color: var(--accent); text-transform: uppercase;
}
.cat-directory__head .sec-head { justify-content: center; text-align: center; margin-top: 6px; }
.cat-directory__head .sec-head h2 { border-left: none; padding-left: 0; }
.cat-directory__head .sec-head a { position: absolute; right: 0; }
.cat-directory__head .sec-head { position: relative; }

/* Grouped category directory (parent group -> child categories). Children
   wrap onto extra rows within the card as before; nowrap here only stops an
   individual long name from breaking mid-word onto its own second line. */
.cat-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cat-group {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 18px 20px;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cat-group:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,.06); transform: translateY(-2px); }
.cat-group__title { margin: 0 0 12px; font-size: 1rem; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cat-group__title a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.cat-group__title a:hover { color: var(--accent); }
.cat-group__title a:hover .cat-group__icon { background: var(--accent); color: #fff; }
.cat-group__icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 999px;
	background: var(--accent-soft); color: var(--accent);
	transition: background .15s ease, color .15s ease;
}
.cat-group__icon svg { width: 19px; height: 19px; }
.cat-group__name { flex: 1 1 auto; min-width: 0; }
.cat-group__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cat-group__list li { flex: 0 0 auto; }
.cat-group__list a { font-size: .84rem; color: var(--muted); text-decoration: none; line-height: 1.7; white-space: nowrap; }
.cat-group__list a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 640px) {
	.cat-directory__head .sec-head { flex-direction: column; gap: 4px; }
	.cat-directory__head .sec-head a { position: static; }
}

/* =========================================================================
   Article / post cards
   ========================================================================= */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.post-card a { text-decoration: none; color: inherit; }
.post-card__thumb { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.post-card__cat { font-size: 11px; font-weight: 700; color: var(--accent); }
.post-card__title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.5; }
.post-card__title a:hover { color: var(--accent); }
.post-card:hover .post-card__title { color: var(--accent); }
.post-card__date { font-size: .78rem; color: var(--muted); margin-top: auto; }

/* Interview carousel */
.iv-scroller { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.iv-scroller .post-card { flex: 0 0 280px; scroll-snap-align: start; }

/* =========================================================================
   Layout: content + sidebar
   ========================================================================= */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget h3 { margin: 0 0 12px; font-size: 1rem; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* Front-page popular-ranking: two side-by-side category rankings. */
.ranking-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.ranking-col__title { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; padding-left: 12px; border-left: 4px solid var(--accent); }
@media (max-width: 720px) {
	.ranking-cols { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
   Article body
   ========================================================================= */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); }
.article__title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 10px; }
.article__meta { color: var(--muted); font-size: .85rem; margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; }
/* Cap line length on prose only (68ch is a readability guideline for running
   text); wide components like the comparison table, service cards, and the
   ranking list need the article's full width, or their rightmost column
   (e.g. the 資料リストに追加 button) gets squeezed into cp-tablewrap's
   horizontal scroll and is easy to miss. */
.article__content > p,
.article__content > ul,
.article__content > ol,
.article__content > blockquote,
.article__content > h2,
.article__content > h3 { max-width: 68ch; }
.article__content > * + * { margin-top: 1.1em; }
.article__content h2 { font-size: 1.4rem; margin-top: 2em; padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft); }
.article__content h3 { font-size: 1.15rem; margin-top: 1.6em; padding-left: 12px; border-left: 4px solid var(--accent); }
.article__content img { border-radius: 8px; }
.article__content a { color: var(--accent); }
/* The comparison-table/card CTA buttons are solid accent-colored pills with
   white label text (see blocks.css .cp-btn/.cp-add). The rule above matches
   any link inside article prose and was winning on specificity, recoloring
   those labels to the same green as their own background — invisible text.
   Ghost buttons (.cp-btn--ghost) are excluded: they're outline-style with
   accent-colored text on a transparent background, which is correct as-is. */
.article__content a.cp-btn:not(.cp-btn--ghost),
.article__content a.cp-add { color: #fff; }
/* Editorial tables written into the article body (as opposed to the generated
   [cp_table] comparison, which brings its own .cp-compare styles). The markup
   always wraps these in .cp-tablewrap — defined in the plugin's blocks.css and
   loaded on every front-end page — so a wide table scrolls inside its own box.
   Never let one sit directly in .article__content: an unwrapped table cannot
   shrink below its content width and blows the whole CSS grid out past the
   viewport, which is the same failure the .layout minmax(0,1fr) fix addressed. */
.cp-article-table { width: 100%; min-width: 480px; border-collapse: collapse; background: var(--surface); font-size: .92rem; }
.cp-article-table th,
.cp-article-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cp-article-table thead th { background: var(--accent-soft); font-size: .85rem; white-space: nowrap; }
.cp-article-table tbody tr:last-child th,
.cp-article-table tbody tr:last-child td { border-bottom: 0; }
/* Source/as-of notes under a figure or price claim. */
.article__content .cp-note { color: var(--muted); font-size: .85rem; }

.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--ink); }

/* Table of contents */
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 0 0 28px; }
.toc__title { font-weight: 700; margin: 0 0 8px; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: .9rem; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.updated-badge { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 4px; }

/* =========================================================================
   Service detail
   ========================================================================= */
.service-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.service-hero__logo { width: 110px; height: 110px; object-fit: contain; border-radius: 10px; flex: 0 0 auto; background: var(--surface-2); }
.service-hero__main { flex: 1 1 280px; min-width: 0; }
.service-hero__main h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.service-hero__cta { display: flex; flex-direction: column; gap: 10px; }
/* Site first-view screenshot under the hero. Framed the same way as the
   category card's .cp-card__screenshot (blocks.css) so the identical image
   reads consistently on both pages. */
.service-shot { margin: 0 0 28px; }
.service-shot__img {
	display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
	border-radius: var(--radius); border: 1px solid var(--line);
}

.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--surface-2); width: 30%; font-size: .9rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 0 0 28px; }
.plan-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--surface); }
.plan-card__name { font-weight: 700; margin: 0 0 6px; }
.plan-card__price { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin: 0 0 8px; }
.plan-card__detail { font-size: .88rem; color: var(--muted); margin: 0; }

/* Reviews */
.reviews { margin: 0 0 28px; }
.review-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--surface-2); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.review-summary__score { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent); }
.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.review-item { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--surface); }
.review-item__head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: .82rem; color: var(--muted); }
.review-item__body { margin: 0; }

/* =========================================================================
   Request page (cart / form)
   ========================================================================= */
.request-cart { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.request-cart__row { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.request-cart__row img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.request-cart__name { font-weight: 700; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.request-cart__name:hover { color: var(--accent); text-decoration: underline; }
.request-cart__remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; }
.request-cart__remove:hover { color: #b32d2e; }

.cp-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); max-width: 620px; }

/* Listing-application page (/keisai/): center the whole page in a readable
   column instead of letting text and the form stretch edge-to-edge across
   the site's full (1300px) width. */
.keisai-wrap { max-width: 760px; margin: 0 auto; }
.keisai-wrap .cp-form { margin: 0 auto; }
.cp-form .field { margin-bottom: 18px; }
.cp-form label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.cp-form label .req { color: #b32d2e; font-size: .8rem; margin-left: 4px; }
.cp-form input[type="text"], .cp-form input[type="email"], .cp-form input[type="tel"], .cp-form textarea, .cp-form select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--ground); color: var(--ink);
}
.cp-form .consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.cp-form .hp { position: absolute; left: -9999px; }
.cp-form__msg { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: .92rem; }
.cp-form__msg--ok { background: var(--accent-soft); color: var(--accent-ink); }
.cp-form__msg--err { background: #fbeaea; color: #a3231f; }

.notice { padding: 12px 16px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 20px; }

/* =========================================================================
   Filters (category hub)
   ========================================================================= */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 24px; }
.filters .field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.filters select, .filters input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--ground); color: var(--ink); }

/* Category hub overview: benefits / cost / flow, shown right below the H1 */
.cat-overview { margin-bottom: 40px; }
.cat-overview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cat-overview__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.cat-overview__title { margin: 0 0 16px; font-size: 1.2rem; font-weight: 700; padding-left: 12px; border-left: 4px solid var(--accent); }
.cat-overview__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 1.05rem; color: var(--ink); }
.cat-overview__list li { padding-left: 28px; position: relative; line-height: 1.7; }
.cat-overview__list li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.cat-overview__list--steps { counter-reset: cp-step; }
.cat-overview__list--steps li { counter-increment: cp-step; }
.cat-overview__list--steps li::before {
	content: counter(cp-step); background: var(--accent); color: #fff;
	width: 20px; height: 20px; border-radius: 50%; display: inline-flex;
	align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; top: 2px;
}
.cat-overview__text { font-size: 1.05rem; color: var(--ink); line-height: 1.8; margin: 0; }
@media (max-width: 900px) {
	.cat-overview__grid { grid-template-columns: minmax(0, 1fr); }
}

/* FAQ */
.faq { margin-top: 32px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px; margin-bottom: 10px; background: var(--surface); }
.faq summary { font-weight: 700; cursor: pointer; padding: 12px 0; }
.faq p { margin: 0 0 14px; color: var(--muted); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 48px; }
.site-footer__inner { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer h4 { margin: 0 0 12px; font-size: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: .8rem; color: var(--muted); text-align: center; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; }
	.site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 680px) {
	.site-header__inner { gap: 10px; }
	.site-brand img { max-height: 34px; width: auto; }
	.header-tools { gap: 8px; }
	.cart-link { font-size: .82rem; }
	.site-nav { display: none; }
	.site-nav.is-open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 20px; z-index: 60; }
	.site-nav.is-open ul { flex-direction: column; align-items: flex-start; gap: 14px; }
	.site-nav.is-open a.header-tools__list-cta { margin-top: 4px; }
	.menu-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--ink); }
	.site-footer__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
