/* =============================================================
   papersizes.de — Full CSS
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; background: #fff; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 15px; line-height: 1.55; color: #111827; background: #fff;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:root {
    --text: #111827; --text-mid: #4b5563; --text-light: #6b7280;
    --bg: #fff; --card-bg: #fff; --border: #e5e7eb;
    --blue: #2563eb; --blue-hover: #1d4ed8; --red: #ef4444;
    --gutter: 20px; --radius: 6px;
}

html[data-theme="dark"] {
    --text: #f3f4f6; --text-mid: #d1d5db; --text-light: #9ca3af;
    --bg: #0f172a; --card-bg: #1e293b; --border: #334155;
}

body { background: var(--bg); color: var(--text); }

h1,h2,h3,h4 { font-weight: 700; color: var(--text); line-height: 1.25; letter-spacing: -.02em; }
h1 { font-size: 2rem; } h2 { font-size: 1.25rem; margin-bottom: 12px; } h3 { font-size: 1.05rem; margin-bottom: 10px; }
p { color: var(--text-mid); margin-bottom: 12px; } p:last-child { margin-bottom: 0; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: none; }
ul, ol { padding-left: 22px; color: var(--text-mid); }
li { margin-bottom: 6px; }
strong { color: var(--text); font-weight: 600; }

.container { width: 100%; margin: 0 auto; padding: 0 var(--gutter); max-width: 1280px; position: relative; z-index: 1; }
main { min-height: 60vh; padding-bottom: 40px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 0; color: #fff; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; overflow: visible !important; }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); max-width: 1280px; margin: 0 auto; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--text); flex-shrink: 0; }
.logo svg { color: var(--text); }

.header-search { position: relative; flex: 1; max-width: 300px; margin-left: auto; display: flex; align-items: center; }
.header-search > svg { position: absolute; left: 14px; color: var(--text-light); pointer-events: none; }
.header-search input { width: 100%; padding: 8px 14px 8px 36px; font-size: .875rem; font-family: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 20px; outline: none; transition: border-color .15s; }
.header-search input:focus { border-color: var(--text); }

.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0,0,0,.15); max-height: 320px; overflow-y: auto; z-index: 9999; display: none; }
.search-results.is-open { display: block; }
.search-results a { display: block; padding: 10px 14px; color: var(--text); font-size: .9rem; border-bottom: 1px solid var(--border); }
.search-results a:hover { background: var(--border); }
.search-results .sr-empty { padding: 10px 14px; font-size: .85rem; color: var(--text-light); }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: .82rem; font-family: inherit; font-weight: 500; background: transparent; border: 1px solid var(--border); border-radius: 20px; color: var(--text); cursor: pointer; transition: all .15s; white-space: nowrap; text-decoration: none; }
.header-btn:hover { background: var(--card-bg); }
.header-icon { padding: 7px 9px; }

/* Unit dropdown */
.unit-dropdown { position: relative; }
.unit-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0,0,0,.15); min-width: 160px; padding: 6px; z-index: 9999; }
.unit-option { display: block; width: 100%; text-align: left; padding: 8px 12px; background: transparent; border: 0; font-family: inherit; font-size: .85rem; color: var(--text); cursor: pointer; border-radius: 4px; position: relative; }
.unit-option:hover { background: var(--border); }
.unit-option.is-active { background: var(--text); color: var(--bg); font-weight: 600; }
.unit-option.is-active::before { content: "✓"; position: absolute; right: 12px; font-size: .75rem; }

/* Category nav */
.cat-nav { border-top: 1px solid var(--border); background: var(--bg); position: relative; z-index: 200; overflow: visible; }
.cat-nav-inner { display: flex; gap: 6px; padding: 10px var(--gutter); max-width: 1280px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; align-items: center; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-tab { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; font-size: .82rem; font-weight: 500; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; white-space: nowrap; transition: all .15s; flex-shrink: 0; cursor: pointer; font-family: inherit; text-decoration: none; }
.cat-tab:hover { background: var(--card-bg); }
.cat-tab.is-active { border-color: var(--text); font-weight: 600; }

/* More menu */
.cat-more-menu { position: fixed; background-color: #fff; color: #111827; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 8px; max-height: 70vh; overflow-y: auto; z-index: 2147483647; width: 260px; opacity: 0; transform: translateY(-8px); transition: opacity .15s,transform .15s; pointer-events: none; }
.cat-more-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cat-more-menu[hidden] { display: none; }
.cat-more-menu a { display: block; padding: 10px 14px; font-size: .88rem; font-weight: 500; color: #111827; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.cat-more-menu a:hover { background-color: #f3f4f6; }
.cat-more-menu a.is-active { background-color: #111827; color: #fff; font-weight: 600; }
html[data-theme="dark"] .cat-more-menu { background-color: #1e293b; color: #f3f4f6; border-color: #334155; }
html[data-theme="dark"] .cat-more-menu a { color: #f3f4f6; }
html[data-theme="dark"] .cat-more-menu a:hover { background-color: #334155; }
html[data-theme="dark"] .cat-more-menu a.is-active { background-color: #f3f4f6; color: #111827; }

/* Breadcrumb */
.breadcrumb { padding: 16px 0 4px; font-size: .82rem; color: var(--text-light); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--text); }

/* Home */
.intro-text { font-size: 1rem; color: var(--text-mid); padding: 20px 0 8px; max-width: 720px; line-height: 1.6; }
.section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.category-section { margin: 24px 0; }
.category-title { display: flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 500; margin-bottom: 10px; }
.category-title a { color: var(--text-mid); display: inline-flex; align-items: center; gap: 6px; }
.category-title a:hover { color: var(--text); }
.category-title .arrow { color: var(--text-light); font-size: .85rem; }

/* Tool cards */
.popular-tools { margin: 32px 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); transition: all .15s; }
.tool-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.tool-icon { font-size: 1.5rem; font-weight: 700; color: var(--blue); line-height: 1; }
.tool-name { font-weight: 600; font-size: .95rem; color: var(--text); }
.tool-desc { font-size: .82rem; color: var(--text-light); }

/* Grids */
.home-grid, .sizes-grid, .sizes-grid-4 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: stretch; width: 100%; }

/* Size cards */
.size-card { display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1 / .7; padding: 8px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text); transition: all .15s; overflow: hidden; min-width: 0; width: 100%; box-sizing: border-box; min-height: 60px; }
.size-card:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.size-name { font-size: 1.1rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.size-dim { font-size: .68rem; color: var(--text-light); margin-top: 4px; line-height: 1.3; }
.size-unit { color: var(--text-light); }
.size-card-viewall { justify-content: center; align-items: center; text-align: center; background: var(--card-bg); }
.viewall-text { font-size: .75rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.viewall-arrow { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--text-light); border-radius: 50%; font-size: .8rem; color: var(--text-light); line-height: 1; transition: all .15s; }
.size-card-viewall:hover .viewall-arrow { border-color: var(--text); color: var(--text); }

/* Category diagram */
.category-diagram { display: flex; justify-content: center; margin: 24px 0 32px; padding: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; }
.category-diagram svg { width: 100%; max-width: 520px; height: auto; display: block; }

/* Size hero */
.cat-h1 { font-size: 2rem; margin: 20px 0 24px; }
.size-hero { margin: 12px 0 24px; }
.size-hero-row { display: flex; gap: 24px; align-items: flex-start; margin-top: 16px; flex-wrap: wrap; }
.size-visual { width: 100px; height: 140px; display: flex; align-items: center; justify-content: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; padding: 16px; flex-shrink: 0; }
.size-visual-box { width: 100%; height: 100%; background: var(--bg); border: 1.5px solid var(--text); }
.size-hero-info { flex: 1; min-width: 200px; }
.size-hero-dim { font-size: 1.15rem; color: var(--text); font-weight: 500; margin-bottom: 12px; }
.size-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .8rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: inherit; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { background: var(--card-bg); }

/* Change unit dropdown */
.change-unit-wrap { position: relative; display: inline-block; }
.change-unit-menu { position: absolute; top: calc(100% + 6px); left: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0,0,0,.15); min-width: 140px; padding: 6px; z-index: 9999; }
.change-unit-menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; background: transparent; border: 0; font-family: inherit; font-size: .85rem; color: var(--text); cursor: pointer; border-radius: 4px; position: relative; }
.change-unit-menu button:hover { background: var(--border); }
.change-unit-menu button.is-active { background: var(--text); color: var(--bg); font-weight: 600; }
.change-unit-menu button.is-active::before { content: "✓"; position: absolute; right: 12px; font-size: .75rem; }

/* Content sections */
.content-section { margin: 40px 0; }

/* Tables */
.table-block { margin: 32px 0; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); }
.table-title { font-size: .92rem; font-weight: 600; color: var(--text); padding: 14px 16px 0; margin: 0; }
.sizes-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sizes-table th, .sizes-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.sizes-table th { font-weight: 500; font-size: .82rem; color: var(--text-light); }
.sizes-table tr:last-child td { border-bottom: 0; }
.sizes-table a { color: var(--text); font-weight: 500; }
.sizes-table a:hover { color: var(--blue); }
.sizes-table-units td:first-child { color: var(--text-light); }

/* Compare */
.compare-unit-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.compare-unit-label { font-size: .82rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.compare-unit-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.unit-pill { padding: 6px 14px; font-size: .82rem; font-family: inherit; font-weight: 500; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.unit-pill:hover { border-color: var(--text); background: var(--card-bg); }
.unit-pill.is-active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 24px 0 32px; align-items: start; }
.compare-form { display: flex; flex-direction: column; gap: 6px; }
.compare-label { font-size: .82rem; font-weight: 500; color: var(--text-mid); margin-top: 10px; }
.compare-select { width: 100%; padding: 10px 14px; font-size: .9rem; font-family: inherit; color: var(--text); background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; outline: none; }
.compare-visual { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 300px; overflow: hidden; }
.compare-box { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 2px solid var(--text); border-radius: 2px; transition: all .3s; }
.compare-box-a { background: rgba(37,99,235,.12); border-color: #2563eb; }
.compare-box-b { background: rgba(239,68,68,.12); border-color: #ef4444; }
.compare-box-label { position: absolute; top: 4px; left: 6px; font-size: .72rem; font-weight: 700; color: var(--text); background: var(--bg); padding: 1px 6px; border-radius: 3px; white-space: nowrap; z-index: 2; }
.compare-summary { margin: 32px 0; padding: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.compare-summary-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.compare-summary-text { font-size: .95rem; line-height: 1.7; color: var(--text-mid); margin: 0; }

/* Converter */
.converter-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.converter-row { display: flex; flex-direction: column; gap: 6px; }
.converter-row label { font-size: .82rem; font-weight: 500; color: var(--text-mid); }
.converter-row input, .converter-row select { padding: 10px 12px; font-family: inherit; font-size: .95rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; outline: none; }
.converter-row input:focus, .converter-row select:focus { border-color: var(--blue); }
.converter-buttons { grid-column: 1 / -1; display: flex; gap: 10px; margin-top: 8px; }
.btn-primary { padding: 10px 20px; background: var(--blue); color: #fff; border: 0; border-radius: 6px; font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: var(--blue-hover); }
.converter-results { margin: 24px 0; }
.converter-results h2 { margin-bottom: 12px; }
.converter-formula { font-size: .82rem; color: var(--text-light); margin-top: 12px; padding: 10px 14px; background: var(--card-bg); border-radius: 6px; }

/* Presets */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.preset-btn { display: block; padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; text-decoration: none; transition: all .15s; }
.preset-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.preset-btn.is-active { border-color: var(--blue); background: rgba(37,99,235,.08); color: var(--blue); }
.preset-dim { display: block; font-size: .72rem; color: var(--text-light); font-weight: 400; margin-top: 4px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 24px 0 40px; }
.blog-card { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text); transition: all .15s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.blog-card-diagram { aspect-ratio: 4 / 3; background: var(--card-bg); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 16px; }
.blog-card-diagram svg { width: 100%; height: 100%; max-height: 220px; }
.blog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-cat { display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.blog-card-body p { font-size: .88rem; color: var(--text-mid); flex: 1; margin-bottom: 12px; }
.blog-card-meta { font-size: .72rem; color: var(--text-light); }

.blog-post { max-width: 720px; margin: 0 auto; padding: 16px 0 60px; font-size: 1.0625rem; line-height: 1.7; color: var(--text-mid); }
.blog-post-header { margin-bottom: 32px; text-align: center; }
.blog-post-meta { display: inline-flex; gap: 8px; font-size: .8rem; color: var(--text-light); margin-bottom: 16px; font-weight: 500; }
.blog-post-title { font-size: 2.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 16px; color: var(--text); }
.blog-post-excerpt { font-size: 1.125rem; color: var(--text-mid); max-width: 620px; margin: 0 auto; }
.blog-post-diagram { margin: 40px 0; padding: 32px 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.blog-post-diagram svg { width: 100%; max-width: 520px; height: auto; }
.blog-post-content h2 { font-size: 1.5rem; margin: 48px 0 16px; color: var(--text); }
.blog-post-content h3 { font-size: 1.1875rem; margin: 32px 0 12px; color: var(--text); }
.blog-post-content p { margin: 0 0 20px; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 22px; padding-left: 26px; }
.blog-post-content li { margin-bottom: 10px; }
.blog-post-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.blog-post-footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.blog-post-footer p { font-size: .82rem; color: var(--text-light); margin: 0; }
.blog-post-footer p strong { display: block; margin-bottom: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mid); }

/* Legal */
.legal-content { max-width: 820px; margin: 0 auto; padding: 8px 0 48px; }
.legal-content p { font-size: .95rem; line-height: 1.75; color: var(--text-mid); margin-bottom: 12px; }
.legal-content a { color: var(--blue); text-decoration: underline; }

/* Ads */
.ad-slot { margin: 32px auto; width: 100%; text-align: center; min-height: 100px; overflow: hidden; }
.ad-slot[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: 6px; }
.ad-slot ins.adsbygoogle { display: block !important; width: 100% !important; min-height: 100px !important; }

/* Footer */
.site-footer { margin-top: 60px; padding: 24px 0; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-light); background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 0 var(--gutter); max-width: 1280px; margin: 0 auto; }
.footer-left, .footer-right { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer-left a, .footer-right a { color: var(--text-light); }
.footer-left a:hover, .footer-right a:hover { color: var(--text); }
.footer-right a.is-active { color: var(--text); font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; padding: 10px 18px; background: var(--text); color: var(--bg); border-radius: 6px; font-weight: 500; font-size: .9rem; text-decoration: none; }
.btn:hover { opacity: .9; color: var(--bg); }

/* Error */
.error-page { text-align: center; padding: 60px 20px; }
.error-page h1 { font-size: 4rem; margin: 0 0 12px; line-height: 1; }
.error-page p { font-size: 1.05rem; color: var(--text-mid); margin-bottom: 24px; }

/* Responsive */
@media (max-width: 1280px) { .home-grid, .sizes-grid, .sizes-grid-4 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .home-grid, .sizes-grid, .sizes-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .home-grid, .sizes-grid, .sizes-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
    .blog-post-title { font-size: 1.75rem; }
    .blog-post { font-size: 1rem; }
    .converter-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    :root { --gutter: 14px; }
    .header-inner { flex-wrap: wrap; padding: 10px var(--gutter); }
    .header-search { order: 3; flex: 1; max-width: none; width: 100%; margin-top: 4px; margin-left: 0; }
    .header-actions { order: 2; gap: 4px; margin-left: auto; }
    .header-btn span { display: none; }
    .header-btn { padding: 7px 9px; }
    .home-grid, .sizes-grid, .sizes-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .compare-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-post-title { font-size: 1.5rem; }
    .cat-h1 { font-size: 1.5rem; }
}
@media print { .site-header, .site-footer, .ad-slot, .cat-nav, .header-search, .compare-unit-row { display: none !important; } body { background: #fff; color: #000; } }