/*
Theme Name: 修理図鑑
Description: 製品・型番・故障症状から探せる、修理情報メディア向け。「プロの道具図鑑 v2」と共通の白・罫線・写真中心のデザイン。ブロックエディターに対応。
Version: 1.1.0
Author: 81AI
Requires at least: 6.4
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: shuri-zukan
Tags: blog, custom-logo, custom-menu, featured-images, block-patterns, wide-blocks
*/

/* 修理図鑑 / 図鑑シリーズ。参照：プロの道具図鑑 v2。 */
:root {
  --ink: #222222;
  --body: #222222;
  --muted: #68645f;
  --green: #222222;
  --green-pale: #f7f6f3;
  --paper: #ffffff;
  --cream: #f7f6f3;
  --line: #dedbd6;
  --orange: #7f0019;
  --white: #ffffff;
  --radius: 0;
  --shadow: none;
  --series-max: 1320px;
  --series-narrow: 820px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.5; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--orange); }
a, button, input, textarea { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; vertical-align: middle; }
svg { vertical-align: middle; }
.icon { flex: none; }
button .icon { width: 19px; }
.container { width: min(calc(100% - 64px), var(--series-max)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) {
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap;
}
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 10000; padding: 12px 20px; background: #fff; color: #222; }
[hidden] { display: none !important; }

/* Header: 文字ロゴ、72px、細い下罫線。 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.975); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); flex: none; }
.brand-mark, .brand small { display: none; }
.brand strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: .03em; line-height: 1.35; }
.custom-logo-link { display: inline-block; flex: none; }
.custom-logo { width: auto; max-width: 240px; max-height: 40px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 30px; padding: 0; margin: 0; }
.nav-list a { color: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .015em; }
.nav-list a:hover { color: var(--orange); }
.nav-list li { position: relative; }
.nav-list .sub-menu { list-style: none; padding: 12px 18px; background: #fff; border: 1px solid var(--line); position: absolute; left: 0; top: 100%; width: 210px; z-index: 30; display: none; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-search { display: flex; align-items: center; padding: 4px 2px; color: var(--ink); background: none; border: 0; }
.nav-search svg { width: 25px; height: 25px; stroke-width: 1.3; }
.nav-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.menu-toggle { display: none; }

/* Hero: 装飾イラストを使わず、コピーと余白で構成。 */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero-grid { display: block; min-height: 350px; }
.hero-copy { padding: 58px 0 62px; }
.hero-art { display: none; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .18em; margin: 0 0 14px; }
.hero .eyebrow { display: block; font-size: 11px; letter-spacing: .18em; }
.eyebrow > span { display: none; }
.hero h1 { max-width: 1100px; margin: 0; font-size: clamp(36px,4.7vw,62px); line-height: 1.24; letter-spacing: -.03em; font-weight: 650; }
.hero h1 br { display: none; }
.hero-description { margin: 20px 0 0; color: var(--muted); font-size: clamp(15px,1.25vw,18px); line-height: 1.95; }
.hero-note { margin-top: 24px; font-size: 13px; color: var(--muted); }
.hero-note svg { display: none; }

/* Search: 罫線式フォーム。検索先・入力仕様は既存テーマのまま。 */
.search-panel { margin-top: 0; padding: 48px 0 0; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
.search-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.search-heading h2 { font-size: 21px; font-weight: 650; margin: 0; letter-spacing: -.015em; }
.search-heading p { font-size: 12px; margin: 0; color: var(--muted); }
.repair-search { display: flex; align-items: center; gap: 14px; padding: 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; width: 100%; }
.repair-search > svg { width: 21px; color: var(--muted); }
.repair-search input { border: 0; background: transparent; min-width: 0; flex: 1; height: 54px; padding: 12px 2px; color: var(--ink); font-size: 17px; }
.repair-search input::placeholder { color: #99938c; }
.repair-search button { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: var(--ink); padding: 8px 4px 8px 24px; border-radius: 0; white-space: nowrap; font-size: 13px; font-weight: 600; }
.repair-search button:hover { color: var(--orange); }
.search-help { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin: 13px 0 0; }
.search-help span { color: var(--muted); }

/* Home sections: シリーズ共通の1320px幅と余白。 */
.home-content { width: 100%; padding-top: 0; }
.section-block { padding: clamp(58px,6vw,84px) 0; }
.home-content > .section-block { width: min(calc(100% - 64px), var(--series-max)); margin-inline: auto; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 8px; font-size: 11px; letter-spacing: .18em; }
.section-heading h2 { font-size: clamp(25px,3.2vw,38px); margin: 0; letter-spacing: -.018em; font-weight: 650; line-height: 1.3; }
.section-caption { color: var(--muted); font-size: 13px; padding-bottom: 4px; }
#latest { border-top: 1px solid var(--line); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link svg { width: 17px; height: 17px; }

/* 製品カテゴリは道具図鑑のカテゴリリンクと同じ罫線式。 */
.category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); gap: 0; }
.category-tile { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; }
.category-tile:nth-child(odd) { margin-right: 34px; }
.category-tile:hover { color: var(--orange); }
.category-icon { display: none; }
.category-tile > span:not(.category-icon) { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.category-tile strong { font-size: 14px; font-weight: 600; }
.category-tile small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.category-tile > svg { margin-left: auto; width: 17px; height: 17px; }

/* Catalog cards: 4列、正方形写真、装飾枠なし。 */
.article-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 42px 22px; }
.repair-card { min-width: 0; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.card-image { display: block; position: relative; height: 0; padding-top: 100%; background: var(--cream); overflow: hidden; }
.card-image > img, .card-image > .image-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-image img { object-fit: cover; transition: opacity .2s ease, transform .25s ease; }
.repair-card:hover .card-image img { opacity: .93; transform: scale(1.012); }
.image-placeholder { display: grid; place-items: center; background: var(--cream); color: #aaa49b; }
.image-placeholder > svg { display: none; }
.image-placeholder > span { font-size: 10px; letter-spacing: .14em; font-weight: 400; }
.card-body { padding: 13px 0 0; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.category-label { display: inline-block; background: none; color: var(--muted); padding: 0; border: 0; border-radius: 0; font-size: 11px; font-weight: 600; letter-spacing: .035em; }
.card-topline time { font-size: 10px; color: var(--muted); white-space: nowrap; }
.repair-card h3 { font-size: 15px; font-weight: 600; line-height: 1.62; margin: 6px 0 0; overflow-wrap: anywhere; }
.repair-card h3 a { color: var(--ink); }
.repair-card h3 a:hover { color: var(--orange); }
.card-model { font-size: 12px; color: var(--muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.card-excerpt { font-size: 12px; line-height: 1.9; margin: 10px 0 0; color: var(--muted); }
.card-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.card-facts:empty { display: none; }
.card-facts span { display: inline-flex; align-items: center; gap: 5px; }
.card-facts svg { width: 13px; height: 13px; }

/* Guide: 図鑑シリーズのABOUTストリップ。 */
.guide-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: start; background: var(--cream); border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 72px max(32px,calc((100% - 1320px)/2)); margin: 0; }
.guide-section h2 { font-size: clamp(25px,3.2vw,38px); font-weight: 650; letter-spacing: -.018em; line-height: 1.3; margin-bottom: 20px; }
.guide-section p { font-size: 14px; line-height: 2; color: var(--muted); margin: 0; }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { display: flex; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.guide-list li:first-child { padding-top: 0; }
.guide-list li:last-child { border: 0; padding-bottom: 0; }
.guide-list li > span { font-size: 12px; color: var(--orange); padding-top: 3px; font-weight: 600; }
.guide-list h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.guide-list p { font-size: 13px; }
.empty-state { background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 34px; color: var(--muted); }
.empty-state > svg { color: var(--muted); width: 30px; height: 30px; margin-bottom: 14px; }
.empty-state h2, .empty-state h3 { font-size: 20px; font-weight: 600; }
.empty-state p { font-size: 13px; margin-bottom: 0; }
.empty-state .repair-search { max-width: 820px; margin: 25px 0; }
.empty-state .eyebrow { margin-bottom: 12px; }
.empty-state h1 { font-size: 34px; }

/* Archives and pages. */
.breadcrumbs { font-size: 11px; color: var(--muted); padding: 25px 0 0; overflow-wrap: anywhere; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #aaa49b; }
.listing-page { padding-bottom: 100px; min-height: 65vh; }
.listing-heading { padding: 64px 0 46px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.listing-heading h1 { font-size: clamp(34px,4.4vw,56px); line-height: 1.2; letter-spacing: -.025em; font-weight: 650; margin: 0 0 20px; overflow-wrap: anywhere; }
.listing-heading p { color: var(--muted); font-size: 14px; }
.listing-heading .repair-search { max-width: 820px; margin-top: 24px; }
.archive-description { max-width: 820px; }
.pagination { margin-top: 64px; }
.nav-links { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); background: #fff; border-radius: 0; font-size: 13px; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-content { max-width: var(--series-narrow); min-height: 65vh; padding-bottom: 90px; }

/* Repair article: 既存の結論・修理情報・目次をカタログ調に。 */
.article-page { padding-bottom: 80px; }
.article-header { max-width: 980px; padding: 54px 0 40px; }
.article-header > .category-label { margin-bottom: 14px; border-bottom: 1px solid currentColor; }
.article-header h1 { font-size: clamp(34px,4.6vw,66px); line-height: 1.28; letter-spacing: -.03em; font-weight: 650; margin: 0 0 24px; overflow-wrap: anywhere; }
.article-byline { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.article-lead { font-size: 17px; line-height: 1.95; margin: 22px 0 0; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.7fr); gap: clamp(30px,4vw,64px); align-items: start; }
.article-main { min-width: 0; }
.verdict-box { padding: 26px 30px; background: var(--cream); border: 0; border-left: 2px solid var(--orange); border-radius: 0; margin-bottom: 40px; }
.verdict-box .eyebrow { display: flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: .035em; margin-bottom: 12px; }
.verdict-box .eyebrow svg { width: 18px; height: 18px; color: var(--orange); }
.verdict-box > p:last-child { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0; }
.article-featured { margin: 0 0 40px; background: var(--cream); }
.article-featured img { width: 100%; border-radius: 0; }
.article-featured figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; background: #fff; }
.entry-content { font-size: 16px; line-height: 2.05; overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(25px,2.8vw,35px); line-height: 1.45; margin: 72px 0 24px; padding: 20px 0 0; border: 0; border-top: 1px solid var(--ink); font-weight: 650; }
.entry-content h3 { font-size: 21px; font-weight: 600; margin: 44px 0 16px; padding: 0; border: 0; }
.entry-content h4 { font-size: 18px; margin: 28px 0 15px; }
.entry-content p { margin-bottom: 1.75em; }
.entry-content a { text-decoration: underline; color: var(--orange); }
.entry-content ul, .entry-content ol { padding-left: 25px; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { margin: 40px 0; padding: 26px 30px; border-left: 2px solid var(--orange); background: var(--cream); }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 13px; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); }
.entry-content th { background: var(--cream); }
.entry-content .wp-block-table { overflow-x: auto; margin-inline: 0; }
.entry-content pre { overflow-x: auto; background: var(--cream); padding: 20px; }
.entry-content figcaption { font-size: 12px; color: var(--muted); }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-image { margin: 46px 0; }
.entry-content .wp-block-button__link { color: #fff; background: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 0; }
.entry-content .wp-block-button__link:hover { background: var(--orange); border-color: var(--orange); }
.entry-content .alignwide { max-width: 100%; }
.page-content .alignwide { width: min(calc(100vw - 64px),1100px); max-width: 1100px; margin-left: 50%; transform: translateX(-50%); }
.alignleft { float: left; margin: 0 24px 20px 0; }
.alignright { float: right; margin: 0 0 20px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 12px; color: var(--muted); }
.bypostauthor { border-color: var(--ink); }
.sticky h3 a { text-decoration: underline; }
.repair-info, .toc, .safety-note { padding: 0; background: transparent; border: 0; border-top: 1px solid var(--ink); border-radius: 0; margin-bottom: 30px; }
.article-sidebar h2 { font-size: 12px; font-weight: 600; letter-spacing: .035em; margin: 16px 0; }
.repair-info dl { margin: 0; }
.repair-info dl > div { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.repair-info dt { font-size: 11px; color: var(--muted); }
.repair-info dd { margin: 0; font-size: 13px; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.info-note { font-size: 11px; color: var(--muted); margin: 18px 0 0; line-height: 1.8; }
.toc ol { padding-left: 20px; font-size: 12px; margin: 0; }
.toc li { padding: 5px 0; }
.toc-sub { margin-left: 10px; list-style-type: circle; }
.safety-note { padding: 24px; background: var(--cream); border: 0; border-left: 2px solid var(--orange); }
.safety-note > svg { width: 22px; height: 22px; color: var(--orange); margin-bottom: 10px; }
.safety-note h2 { margin: 0 0 10px; }
.safety-note p { font-size: 12px; color: var(--muted); margin: 0; }
.tag-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0; }
.tag-links a { font-size: 12px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.sources-box { margin: 40px 0; border-top: 1px solid var(--line); padding: 25px 0; }
.sources-box h2 { font-size: 18px; font-weight: 600; }
.sources-box p { font-size: 13px; margin: 8px 0; }
.sources-box a { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; }
.sources-box svg { width: 16px; }
.author-box { display: flex; gap: 18px; background: var(--cream); padding: 26px 30px; border-radius: 0; }
.author-box img { border-radius: 50%; width: 64px; height: 64px; }
.author-box h2 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.author-box p { font-size: 13px; margin: 0; }

/* WordPress standard content. */
.comments-area { max-width: 820px; margin: 50px 0 0; border-top: 1px solid var(--line); padding-top: 30px; }
.comments-area h2 { font-size: 22px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { background: #fff; padding: 20px 0; margin: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 13px; }
.comment-author .avatar { margin-right: 10px; border-radius: 50%; }
.comment-metadata { font-size: 11px; }
.comment-form label { display: block; font-size: 12px; margin-bottom: 5px; }
.comment-form input:not([type=checkbox]), .comment-form textarea, .post-password-form input { max-width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.comment-form textarea { width: 100%; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: start; }
.comment-form .submit, .post-password-form input[type=submit] { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.form-submit { margin-top: 20px; }
.page-links { padding: 20px 0; }
.home-editor-content { padding-bottom: 40px; }

/* Footer: 道具図鑑と同じ白地、罫線、文字ロゴ。 */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 50px 0 28px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 38px; }
.footer-top .brand strong { font-size: 20px; }
.footer-top .custom-logo { max-width: 200px; max-height: 40px; }
.footer-top p { max-width: 500px; font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 0; margin: 0; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 11px; color: var(--muted); }
.footer-bottom small { font-size: 11px; }

/* Responsive: 4 → 3 → 2 columns, matching the reference series. */
@media (max-width: 1120px) {
  .primary-nav { gap: 24px; }
  .nav-list { gap: 24px; }
}
@media (max-width: 980px) {
  .menu-toggle { display: flex; align-items: center; gap: 0; background: transparent; border: 0; border-radius: 0; padding: 4px; color: var(--ink); margin-left: auto; }
  .menu-toggle svg { width: 27px; height: 27px; stroke-width: 1; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .header-inner { flex-wrap: wrap; gap: 0 24px; }
  .primary-nav { width: 100%; display: flex; padding: 18px 0 22px; flex-direction: column; align-items: stretch; gap: 14px; border-top: 1px solid var(--line); }
  .js-ready .primary-nav { display: none; }
  .js-ready .primary-nav.is-open { display: flex; }
  .nav-list { display: grid; width: 100%; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 14px 0; }
  .nav-list .sub-menu { position: static; width: auto; display: block; border: 0; padding: 0 14px; font-size: 12px; }
  .nav-list .sub-menu a { padding: 8px 0; }
  .nav-search { gap: 10px; padding: 8px 0; font-size: 12px; }
  .nav-search span { position: static; width: auto; height: auto; clip: auto; white-space: normal; }
  .nav-search svg { width: 20px; height: 20px; }
  .article-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .article-layout { display: flex; flex-direction: column; gap: 40px; }
  .article-sidebar { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .article-sidebar .toc { order: -1; grid-column: 1/-1; }
  .repair-info { grid-column: 1/-1; }
  .repair-info dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .safety-note { grid-column: 1/-1; }
  .guide-section { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 700px) {
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  .brand strong { font-size: 17px; }
  .custom-logo { max-width: 220px; max-height: 36px; }
  .hero-grid { min-height: auto; }
  .hero-copy { padding: 52px 0 54px; }
  .hero h1 { font-size: 36px; }
  .hero h1 br { display: initial; }
  .hero-description { font-size: 15px; line-height: 1.95; }
  .hero-note { font-size: 12px; margin-top: 24px; }
  .hero .eyebrow { font-size: 10px; }
  .search-panel { padding: 32px 0 0; }
  .search-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .search-heading h2 { font-size: 20px; }
  .search-heading p { font-size: 11px; }
  .repair-search { gap: 8px; }
  .repair-search > svg { width: 18px; height: 18px; }
  .repair-search input { font-size: 13px; height: 50px; }
  .repair-search button { font-size: 12px; padding: 8px 0 8px 12px; gap: 5px; }
  .repair-search button svg { width: 14px; height: 14px; }
  .search-help { font-size: 10px; gap: 5px 12px; }
  .home-content { width: 100%; }
  .section-block { padding: 54px 0; }
  .home-content > .section-block { width: calc(100% - 32px); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 28px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading .eyebrow { font-size: 10px; }
  .section-caption { font-size: 12px; padding: 0; }
  .text-link { font-size: 12px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-tile:nth-child(odd) { margin-right: 0; }
  .category-tile { min-height: 64px; padding-right: 8px; }
  .category-tile strong { font-size: 13px; }
  .category-tile small { font-size: 10px; }
  .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 12px; }
  .repair-card h3 { font-size: 13px; line-height: 1.55; }
  .card-topline { align-items: flex-start; flex-direction: column; gap: 3px; }
  .category-label, .card-model { font-size: 10px; }
  .card-topline time { font-size: 9px; }
  .card-excerpt { font-size: 11px; line-height: 1.85; }
  .card-facts { font-size: 9px; gap: 6px; padding-top: 9px; }
  .guide-section { padding: 54px 16px; gap: 28px; }
  .guide-section h2 { font-size: 25px; }
  .guide-section p { font-size: 13px; }
  .guide-list h3 { font-size: 14px; }
  .guide-list p { font-size: 12px; }
  .empty-state { padding: 26px 20px; }
  .empty-state h1 { font-size: 28px; }
  .empty-state p { font-size: 12px; }
  .listing-page { padding-bottom: 76px; }
  .listing-heading { padding: 50px 0 28px; margin-bottom: 32px; }
  .listing-heading h1 { font-size: 34px; }
  .breadcrumbs { font-size: 10px; padding: 20px 0 0; }
  .article-header { padding: 40px 0 28px; }
  .article-header h1 { font-size: 34px; }
  .article-byline { font-size: 10px; gap: 7px 12px; }
  .article-lead { font-size: 15px; }
  .verdict-box { padding: 22px 23px; margin-bottom: 32px; }
  .verdict-box > p:last-child { font-size: 15px; }
  .entry-content { font-size: 15px; }
  .entry-content h2 { font-size: 25px; margin-top: 54px; }
  .entry-content h3 { font-size: 20px; margin-top: 34px; }
  .entry-content blockquote { padding: 22px 24px; }
  .article-sidebar { display: block; }
  .repair-info dl { display: block; }
  .repair-info dl > div { grid-template-columns: 88px minmax(0,1fr); }
  .author-box { padding: 24px; gap: 14px; }
  .author-box img { width: 45px; height: 45px; }
  .page-content .alignwide { width: 100%; margin: 0; transform: none; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 22px; }
  .footer-nav { gap: 12px 20px; }
  .footer-bottom { gap: 8px; }
  .alignleft, .alignright { float: none; margin-inline: 0; }
  .comment-list .children { padding-left: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .article-sidebar, .tag-links, .comments-area, .section-block, .search-panel { display: none; }
  .container { width: 100%; }
  .article-layout { display: block; }
  .entry-content { font-size: 11pt; }
  .article-header h1 { font-size: 22pt; }
  body { background: white; color: #000; }
}
