/*
Theme Name: FANZA Baseline
Author: FANZA STEP 1.5 Project
Description: Presentation-only database theme for the production-migratable STEP 1.5 baseline.
Version: 0.7.2
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: fanza-baseline
*/

:root {
	--ink: #17202a;
	--muted: #65717e;
	--line: #dfe5ea;
	--paper: #ffffff;
	--canvas: #f5f7f8;
	--brand: #0f5f66;
	--brand-dark: #093f45;
	--accent: #d95f4b;
	--accent-dark: #b84635;
	--soft: #e9f3f3;
	--radius: 14px;
	--shadow: 0 10px 28px rgba(19, 39, 48, 0.08);
	--content: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.7;
}
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-shell { width: min(calc(100% - 32px), var(--content)); margin-inline: auto; }
.site-main { min-height: 66vh; padding-block: 30px 64px; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.header-row { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 18px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--brand); color: #fff; font-size: 13px; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.site-nav a { color: #3e4b57; text-decoration: none; }
.site-nav a:hover { color: var(--brand); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before { position: absolute; top: -6px; }
.nav-toggle-lines::after { position: absolute; top: 6px; }

.notice-strip { background: var(--ink); color: #fff; font-size: 12px; text-align: center; }
.notice-strip .site-shell { padding-block: 6px; }

.hero { overflow: hidden; margin-bottom: 34px; padding: 34px; border: 1px solid #cfe2e3; border-radius: 20px; background: linear-gradient(135deg, #fff 0%, var(--soft) 100%); }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .archive-header h1, .product-header h1 { margin: 0; font-size: clamp(28px, 5vw, 46px); line-height: 1.22; letter-spacing: -.03em; }
.hero h1 { max-width: 860px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.hero p { max-width: 720px; margin: 14px 0 0; color: #52616d; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-stat { padding: 8px 12px; border: 1px solid #cfe0e0; border-radius: 999px; background: #fff; color: #32414b; font-size: 13px; font-weight: 700; }
.search-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); align-items: center; gap: 28px; margin-bottom: 42px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.search-panel h2 { margin: 0; font-size: 24px; }
.search-panel p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.site-search { display: flex; min-width: 0; gap: 9px; }
.site-search input { min-width: 0; flex: 1; min-height: 48px; padding: 10px 14px; border: 1px solid #bdc8ce; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.site-search input:focus { outline: 3px solid rgba(15,95,102,.16); border-color: var(--brand); }
.site-search button { min-height: 48px; padding: 10px 19px; border: 0; border-radius: 9px; background: var(--brand); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.header-search { width: clamp(250px, 31vw, 430px); }
.header-search input, .header-search button { min-height: 42px; }
.header-search input { padding-block: 7px; background: #f7f9fa; }
.header-search button { padding: 7px 16px; }
.explore-section { margin-top: 42px; padding-top: 4px; scroll-margin-top: 92px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.section-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-grid.single-result-grid { grid-template-columns: minmax(0, 280px); }

.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 10px rgba(20, 40, 50, .04); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-cover-link { display: block; color: inherit; text-decoration: none; }
.cover-placeholder { position: relative; display: grid; aspect-ratio: 3 / 4; place-items: center; overflow: hidden; background: linear-gradient(145deg, #dbe9e9 0%, #eef3ef 50%, #eedfd9 100%); color: #21363a; }
.cover-placeholder::before, .cover-placeholder::after { position: absolute; content: ""; border: 1px solid rgba(15,95,102,.18); border-radius: 50%; }
.cover-placeholder::before { width: 70%; aspect-ratio: 1; top: -18%; right: -25%; }
.cover-placeholder::after { width: 58%; aspect-ratio: 1; bottom: -22%; left: -20%; }
.cover-placeholder span { position: relative; z-index: 1; max-width: 80%; font-size: 14px; font-weight: 800; line-height: 1.5; text-align: center; }
.cover-placeholder small { position: absolute; z-index: 1; bottom: 13px; color: #557075; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.product-cover-image { width: 100%; aspect-ratio: 3 / 4; background: #fff; object-fit: contain; }
.card-body { padding: 15px; }
.card-title { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-meta { display: grid; gap: 5px; margin: 0 0 13px; color: var(--muted); font-size: 12px; }
.card-meta a { font-weight: 700; }
.card-action { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; border: 1px solid var(--brand); border-radius: 9px; color: var(--brand); font-size: 13px; font-weight: 800; text-decoration: none; }
.card-action:hover { background: var(--brand); color: #fff; }

.breadcrumb { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { margin-left: 7px; content: "/"; color: #a1abb3; }
.breadcrumb a { color: inherit; }

.product-header { margin-bottom: 24px; }
.product-header h1 { max-width: 980px; font-size: clamp(28px, 4vw, 44px); line-height: 1.24; text-wrap: balance; overflow-wrap: anywhere; }
.product-identity { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.product-identity span { display: inline-flex; gap: 6px; }
.product-identity b { color: #3e4b57; }
.product-flow { display: grid; gap: 0; }
.product-cover-panel { width: min(100%, 390px); margin: 0 auto 24px; }
.product-cover-panel .cover-placeholder, .product-cover-panel .product-cover-image { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-cover-panel .product-cover-image { max-height: 580px; object-fit: contain; }
.editorial-hook { margin: 0 0 18px; padding: 14px 16px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: #fff7f2; color: #392f2b; font-size: 16px; font-weight: 750; line-height: 1.6; }
.cta-box { margin: 0; padding: 22px; border: 1px solid #f0b5aa; border-radius: 18px; background: linear-gradient(135deg, #fff4f0 0%, #fff 100%); text-align: center; box-shadow: 0 14px 34px rgba(157,45,29,.13); }
.cta-button { display: inline-flex; width: min(100%, 620px); min-height: 66px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #ef5b44 0%, #c73e2b 100%); color: #fff; font-size: clamp(17px, 2vw, 20px); font-weight: 900; letter-spacing: .02em; text-decoration: none; box-shadow: 0 11px 24px rgba(183,70,53,.28); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.cta-button::after { content: "→"; font-size: 1.2em; }
.cta-button:hover { transform: translateY(-2px); background: linear-gradient(135deg, #e95039 0%, #ad3020 100%); color: #fff; box-shadow: 0 15px 28px rgba(183,70,53,.34); }

.content-panel { margin-bottom: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.site-information-page { max-width: 840px; margin-inline: auto; }
.site-information-content { overflow-wrap: anywhere; }
.site-information-content > :first-child { margin-top: 0; }
.site-information-content > :last-child { margin-bottom: 0; }
.content-panel h2 { margin: 0 0 16px; font-size: 22px; }
.panel-heading { margin-bottom: 16px; }
.panel-heading h2, .panel-heading .eyebrow { margin-bottom: 0; }
.product-facts { width: 100%; border-collapse: collapse; }
.product-facts th, .product-facts td { padding: 10px 4px; border-bottom: 1px solid #edf0f2; text-align: left; vertical-align: top; }
.product-facts th { width: 126px; color: var(--muted); font-size: 12px; font-weight: 750; }
.product-facts td { font-size: 14px; font-weight: 600; }
.product-facts tr:last-child th, .product-facts tr:last-child td { border-bottom: 0; }
.product-facts .secondary-fact th, .product-facts .secondary-fact td { padding-top: 15px; color: #89939b; font-size: 11px; font-weight: 500; }
.sample-stage { scroll-margin-top: 112px; }
.sample-panel { padding: 22px 20px 20px; border-color: #cbdfe0; box-shadow: 0 12px 30px rgba(19, 54, 60, .07); }
.sample-stack { display: grid; justify-items: center; gap: 12px; width: min(100%, 820px); margin-inline: auto; }
.sample-page { width: 100%; margin: 0; padding: 0; text-align: center; }
.sample-image { width: 100%; max-width: 820px; height: auto; margin-inline: auto; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 3px 12px rgba(19,39,48,.06); }
.post-sample-cta { margin: 20px 0 8px; }
.sample-appeal-panel { margin: 0 0 22px; padding: 18px 20px; border: 1px solid #efd8ca; border-radius: var(--radius); background: linear-gradient(135deg, #fffaf6 0%, #fff 100%); }
.sample-appeal-panel h2 { margin: 0; font-size: clamp(20px, 2.6vw, 25px); }
.sample-appeal-panel ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.sample-appeal-panel li { position: relative; padding: 10px 12px 10px 28px; border-radius: 9px; background: #fff; color: #3e3531; font-size: 14px; font-weight: 700; line-height: 1.5; box-shadow: 0 2px 8px rgba(70,42,26,.05); }
.sample-appeal-panel li::before { position: absolute; top: 10px; left: 11px; color: var(--accent); content: "◆"; font-size: 9px; }
.official-trial-fallback { padding: 28px; background: linear-gradient(135deg, #fff 0%, #eff8f7 100%); }
.official-trial-message { display: flex; align-items: center; gap: 18px; width: min(100%, 720px); margin-inline: auto; padding: 20px; border: 1px solid #cde1df; border-radius: 12px; background: rgba(255,255,255,.84); }
.official-trial-icon { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 20px; font-weight: 850; }
.official-trial-message h3 { margin: 0 0 4px; font-size: 18px; }
.official-trial-message p, .sample-unavailable > p { margin: 0; color: var(--muted); font-size: 13px; }
.editorial-finale { width: min(100%, 920px); margin: 38px auto 0; }
.editorial-panel { scroll-margin-top: 112px; }
.editorial-panel .editorial-copy { margin: 0; }
.editorial-panel .editorial-copy + .editorial-copy { margin-top: 16px; }
.editorial-lead { color: #2f3f49; font-weight: 600; }
.editorial-toggle { display: none; min-height: 44px; margin: 14px auto 0; padding: 7px 22px; border: 1px solid #bed4d5; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.editorial-copy { white-space: pre-line; }
.entity-group { margin-top: 18px; }
.entity-group h3 { margin: 0 0 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.term-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.term-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #d7e0e3; border-radius: 999px; background: #f8fafb; color: #40505a; font-size: 12px; font-weight: 700; text-decoration: none; }
.term-chip span { color: var(--muted); font-size: 10px; font-weight: 600; }
.term-chip:hover { border-color: var(--brand); color: var(--brand); }

.discovery-section { margin-top: 42px; padding: 30px; scroll-margin-top: 112px; border: 1px solid #cfe0e1; border-radius: 20px; background: linear-gradient(145deg, #f6fbfb, #eef5f2); }
.discovery-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.discovery-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); }
.discovery-heading > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 13px; }
.related-section { margin-top: 26px; }
.related-section .section-heading { align-items: center; margin-bottom: 14px; }
.related-section .section-heading h3 { margin: 0; font-size: 21px; }
.relation-kicker { display: inline-flex; margin: 0 0 5px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.relation-kicker.verified { background: var(--brand); color: #fff; }
.relation-kicker.generic { border: 1px solid #ccd6d9; background: #fff; color: #58666d; }
.semantic-related-section { padding: 22px; border: 1px solid #bdd9d7; border-radius: var(--radius); background: #fff; }
.semantic-related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.semantic-related-list li { min-width: 0; padding: 14px 16px; border: 1px solid #d8e5e5; border-radius: 11px; background: #f8fbfb; }
.relation-type { display: block; margin-bottom: 5px; color: var(--brand); font-size: 11px; font-weight: 800; }
.semantic-related-list a, .semantic-related-list strong { display: flex; justify-content: space-between; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 750; line-height: 1.55; text-decoration: none; }
.semantic-related-list a:hover { color: var(--brand); }
.generic-related-section { padding-top: 8px; }
.related-section .product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.related-group + .related-group { margin-top: 34px; }
.related-group > h4 { margin: 0 0 14px; font-size: 16px; }
.product-information { width: min(100%, 920px); margin: 38px auto 0; }
.genre-fact .term-list { gap: 7px; }
.genre-fact .term-chip { padding: 6px 10px; border-color: #c9dddd; background: #f1f8f7; color: var(--brand-dark); }
.fact-unavailable { color: var(--muted); font-weight: 500; }
.archive-header { margin-bottom: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.archive-header h1 { font-size: clamp(28px, 4vw, 40px); }
.archive-description { max-width: 760px; margin: 12px 0 0; color: var(--muted); }
.archive-type { display: inline-flex; margin-top: 12px; padding: 5px 9px; border-radius: 6px; background: var(--soft); color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.archive-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; margin: 0; }
.archive-facts div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f2; }
.archive-facts dt { color: var(--muted); font-size: 12px; font-weight: 750; }
.archive-facts dd { margin: 0; font-size: 14px; font-weight: 650; }
.search-header .site-search { max-width: 680px; margin-top: 20px; }
.empty-state { padding: 48px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.pagination .page-numbers { display: grid; min-width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; }
.pagination .current, .pagination a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 38px; }
.footer-title { margin: 0 0 8px; font-size: 16px; font-weight: 850; }
.footer-copy { margin: 0; color: var(--muted); font-size: 13px; }
.footer-links { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.footer-links li + li { margin-top: 5px; }
.footer-notes { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; padding-bottom: 30px; }
.footer-notes details { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); font-size: 12px; }
.footer-notes summary { color: #3f4c55; font-weight: 750; cursor: pointer; }
.footer-notes p { margin: 8px 0 0; color: var(--muted); }
.footer-bottom { padding-block: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 920px) {
	.product-grid, .related-section .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
	.site-brand { font-size: 16px; }
	.header-search { width: min(31vw, 300px); }
	.site-nav { gap: 10px; font-size: 12px; }
	.footer-notes { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
	.site-shell { width: min(calc(100% - 24px), var(--content)); }
	.site-main { padding-block: 18px 48px; }
	.header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; gap: 8px 12px; padding-block: 8px; }
	.site-brand { min-width: 0; font-size: 16px; }
	.brand-mark { width: 31px; height: 31px; }
	.header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
	.header-search input, .header-search button { min-height: 44px; }
	.nav-toggle { display: inline-flex; }
	.site-nav { position: absolute; top: 100%; right: 12px; left: 12px; display: none; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
	.site-nav.is-open { display: grid; }
	.site-nav a { padding: 10px 12px; border-radius: 7px; }
	.site-nav a:hover { background: var(--soft); }
	.hero { padding: 24px 20px; }
	.search-panel { grid-template-columns: 1fr; gap: 16px; padding: 21px 18px; }
	.product-grid, .related-section .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
	.product-grid.single-result-grid { grid-template-columns: 1fr; }
	.breadcrumb { margin-bottom: 13px; line-height: 1.45; }
	.product-header { margin-bottom: 18px; }
	.product-header h1 { font-size: clamp(27px, 8vw, 35px); line-height: 1.25; }
	.product-identity { gap: 5px 13px; margin-top: 10px; font-size: 12px; }
	.product-cover-panel { width: min(82vw, 330px); margin-bottom: 18px; }
	.product-cover-panel .product-cover-image { max-height: none; }
	.editorial-hook { margin-bottom: 15px; padding: 11px 13px; font-size: 14px; line-height: 1.55; }
	.content-panel { padding: 19px 16px; }
	.sample-stage, .editorial-panel, .discovery-section { scroll-margin-top: 124px; }
	.sample-panel { padding: 17px 12px 12px; }
	.sample-stack { gap: 9px; }
	.post-sample-cta { margin: 14px 0 4px; }
	.sample-appeal-panel { margin-bottom: 18px; padding: 16px 14px; }
	.sample-appeal-panel ul { grid-template-columns: 1fr; gap: 7px; margin-top: 11px; }
	.sample-appeal-panel li { padding-block: 9px; font-size: 13px; }
	.cta-box { padding: 16px 13px; border-radius: 15px; }
	.cta-button { min-height: 62px; border-radius: 12px; font-size: 17px; }
	.official-trial-fallback { padding: 20px 14px; }
	.official-trial-message { align-items: flex-start; gap: 13px; padding: 16px 14px; }
	.official-trial-icon { width: 46px; height: 46px; flex-basis: 46px; font-size: 17px; }
	.official-trial-message h3 { font-size: 16px; }
	.editorial-panel.is-collapsible:not(.is-expanded) .editorial-copy-wrap { position: relative; max-height: 12.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
	.editorial-panel.is-collapsible .editorial-toggle { display: block; }
	.discovery-section { margin-top: 30px; padding: 21px 13px; border-radius: 16px; }
	.discovery-heading { display: block; }
	.discovery-heading > p { margin-top: 8px; }
	.semantic-related-section { padding: 17px 13px; }
	.semantic-related-list { grid-template-columns: 1fr; }
	.related-section .section-heading h3 { font-size: 19px; }
	.related-group + .related-group { margin-top: 27px; }
	.related-group > h4 { font-size: 14px; }
	.product-information { margin-top: 28px; }
	.editorial-finale { margin-top: 28px; }
	.archive-facts { grid-template-columns: 1fr; }
	.related-grid .card-meta, .related-grid .card-action { display: none; }
	.related-grid .card-title { margin-bottom: 0; font-size: 13px; line-height: 1.45; }
	.related-grid .card-body { padding: 10px; }
	.footer-grid { grid-template-columns: 1fr; gap: 22px; }
	.footer-notes { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
	body { font-size: 15px; }
	.product-grid, .related-section .product-grid { gap: 10px; }
	.site-shell { width: min(calc(100% - 20px), var(--content)); }
	.header-row { gap: 7px 10px; }
	.product-cover-panel { width: min(84vw, 320px); }
	.card-body { padding: 12px; }
	.card-title { font-size: 14px; }
	.card-meta { font-size: 11px; }
	.product-facts th { width: 96px; }
	.site-search { display: grid; grid-template-columns: minmax(0,1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
