@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/jakarta.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #f7fbff;
  --surface: #ffffff;
  --soft: #eaf6fd;
  --ink: #0b2545;
  --muted: #55657a;
  --line: #dbe8f3;
  --sky: #0ea5e9;
  --sky-strong: #0284c7;
  --sky-soft: #e0f2fe;
  --mint: #10b981;
  --mint-ink: #047857;
  --mint-soft: #d1fae5;
  --rose: #f43f5e;
  --rose-ink: #be123c;
  --rose-soft: #ffe4e8;
  --amber-ink: #92400e;
  --amber-soft: #fef3c7;
  --box-top: #bae6fd;
  --box-front: #0ea5e9;
  --box-side: #0369a1;
  --box-handle: #0369a1;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 37, 69, .05), 0 10px 30px rgba(14, 165, 233, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071426; --surface: #0d1f38; --soft: #10284a; --ink: #e8f1fb; --muted: #9db0c7; --line: #1d3557;
    --sky: #38bdf8; --sky-strong: #7dd3fc; --sky-soft: #0c3354; --mint: #34d399; --mint-ink: #6ee7b7; --mint-soft: #0b3b30;
    --rose: #fb7185; --rose-ink: #fda4af; --rose-soft: #3d1621; --amber-ink: #fcd34d; --amber-soft: #3a2c0b;
    --box-top: #7dd3fc; --box-front: #38bdf8; --box-side: #0284c7; --box-handle: #075985; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #071426; --surface: #0d1f38; --soft: #10284a; --ink: #e8f1fb; --muted: #9db0c7; --line: #1d3557;
  --sky: #38bdf8; --sky-strong: #7dd3fc; --sky-soft: #0c3354; --mint: #34d399; --mint-ink: #6ee7b7; --mint-soft: #0b3b30;
  --rose: #fb7185; --rose-ink: #fda4af; --rose-soft: #3d1621; --amber-ink: #fcd34d; --amber-soft: #3a2c0b;
  --box-top: #7dd3fc; --box-front: #38bdf8; --box-side: #0284c7; --box-handle: #075985; --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--sky-strong); text-underline-offset: 3px; }
h1, h2, h3, .brand, .big, .big-note, .summary .count, .tile strong, .checker h2 { font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); margin: .25em 0 .35em; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 2em 0 .6em; }
h2 a { color: inherit; text-decoration: none; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 760px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin-top: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-strong); }
.num { font-variant-numeric: tabular-nums; }
.sub { color: var(--muted); font-size: .9rem; }
.cc { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; background: var(--sky-soft); color: var(--sky-strong); vertical-align: middle; }

/* header & footer */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; font-size: .93rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { background: var(--sky-soft); color: var(--sky-strong); }
.site-foot { margin-top: 80px; background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--muted); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 1fr; gap: 24px; }
.foot-grid strong { display: block; color: var(--ink); margin-bottom: 6px; }
.foot-grid > div:not(:first-child) a { display: block; color: var(--muted); text-decoration: none; padding: 2px 0; }
.foot-grid > div a:hover { color: var(--sky-strong); }
.fine { font-size: .82rem; margin-top: 24px; }

/* hero */
.hero { padding: 36px 0 4px; }
.hero.home { padding-top: 52px; text-align: center; }
.hero.home .lead { margin: 0 auto; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }
.toc { font-size: .92rem; }

/* cards */
.answer { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card.accent { background: linear-gradient(135deg, var(--sky-soft), var(--surface)); }
.card.mint { background: linear-gradient(135deg, var(--mint-soft), var(--surface)); }
.label { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.big { font-size: clamp(1.6rem, 4.2vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; overflow-wrap: anywhere; }
.pill { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: none; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--mint-soft); color: var(--mint-ink); }
.pill.bad { background: var(--rose-soft); color: var(--rose-ink); }
.pill.info { background: var(--amber-soft); color: var(--amber-ink); }

/* diagrams */
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; box-shadow: var(--shadow); }
.figure figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.figure-note { display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 240px; }
.figure-note p { color: var(--muted); max-width: 360px; margin: 8px auto; }
.big-note { font-size: 1.6rem; font-weight: 800; color: var(--sky-strong); }
.diagrams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.box-top { fill: var(--box-top); } .box-front { fill: var(--box-front); } .box-side { fill: var(--box-side); } .box-handle { fill: var(--box-handle); }
.dim { fill: var(--ink); font: 700 14px "Inter", sans-serif; } .dim-line { stroke: var(--muted); stroke-width: 1.5; }
.bar-bg { fill: var(--soft); } .bar { fill: var(--sky); } .bar-label { fill: var(--ink); font: 600 14px "Inter", sans-serif; } .bar-value { fill: var(--muted); font: 600 12.5px "Inter", sans-serif; }

/* checker */
.checker { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin: 28px 0; box-shadow: var(--shadow); }
.checker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.checker h2 { margin: 0; font-size: 1.5rem; }
.checker form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 14px; }
.checker form .wide { grid-column: span 2; }
.checker form .wide:last-child { grid-column: span 3; }
.checker label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.checker .opt { font-weight: 500; opacity: .8; }
.checker input, .checker select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 48px; }
.checker input:focus, .checker select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; }
.seg button { font: inherit; font-size: .9rem; font-weight: 700; border: 0; background: transparent; color: var(--muted); padding: 8px 16px; min-height: 40px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--sky); color: #fff; box-shadow: 0 2px 8px rgba(14, 165, 233, .35); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { font: inherit; font-size: .85rem; font-weight: 700; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chip span { font-weight: 500; color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--sky); }
.guide { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-top: 14px; }
.guide:empty { display: none; }
.guide p { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--sky-soft); color: var(--ink); font-size: .92rem; font-weight: 600; flex: 1 1 320px; }
.use-size { font: inherit; font-size: .9rem; font-weight: 800; border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; background: var(--sky); color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(14, 165, 233, .35); }
.use-size:hover { background: var(--sky-strong); }
.summary { margin-top: 18px; font-weight: 700; display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.summary .count { font-size: 1.35rem; font-weight: 800; }
.results { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 560px; overflow-y: auto; padding-right: 2px; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.result.current { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
.result .why { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.result a { color: var(--ink); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result a .cc { margin-right: 6px; }
.hint { color: var(--muted); font-size: .86rem; margin: 12px 0 0; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td a { color: var(--ink); font-weight: 700; }
td .sub { font-size: .82rem; }

/* tiles */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.tile:hover { border-color: var(--sky); transform: translateY(-2px); }
.tile strong { font-size: 1.08rem; }
.tile span { color: var(--muted); font-size: .88rem; }
.tile .cc { align-self: flex-start; color: var(--sky-strong); font-size: .68rem; margin-bottom: 4px; }
.grid.regions .tile { background: linear-gradient(135deg, var(--sky-soft), var(--surface)); }
.grid.regions .tile strong { font-size: 1.2rem; }
.notes li, .facts li { margin: 6px 0; }
.source { font-size: .88rem; color: var(--muted); }
.source.warn { background: var(--amber-soft); color: var(--amber-ink); padding: 10px 14px; border-radius: 12px; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 8px 0; padding: 0 16px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details.faq p { margin: 0 0 14px; color: var(--muted); }

/* bags */
.bag-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin: 22px 0; }
.bag-hero .card p { margin: 12px 0 0; }
.bag-hero .figure svg { display: block; max-height: 340px; margin: 0 auto; }
.bag-photo { width: 100%; height: auto; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.buy { display: inline-block; margin-top: 14px; font-weight: 800; text-decoration: none; background: #ff9f1c; color: #1f1300; padding: 12px 20px; border-radius: 999px; box-shadow: 0 2px 8px rgba(255, 159, 28, .35); }
.buy:hover { background: #f08c00; }
.buy.alt { background: var(--sky); color: #fff; box-shadow: 0 2px 8px rgba(14, 165, 233, .35); }
.bag-tile .verdict { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
table.specs th { width: 40%; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--muted); background: var(--soft); }
table.matrix th, table.matrix td { text-align: center; white-space: nowrap; padding: 10px 8px; }
table.matrix tbody th { text-align: left; white-space: normal; min-width: 220px; background: var(--surface); text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); }
table.matrix thead th a { color: var(--muted); text-decoration: none; }
.mark { font-weight: 800; font-size: 1.05rem; }
.mark.fits { color: var(--mint-ink); background: var(--mint-soft); }
.mark.too_big { color: var(--rose-ink); background: var(--rose-soft); }
.mark.unknown { color: var(--amber-ink); background: var(--amber-soft); }
.converter form { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* cookie choice */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 640px; margin: 0 auto; display: flex; gap: 12px 16px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 40px rgba(11, 37, 69, .18); font-size: .9rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 280px; }
.consent div { display: flex; gap: 8px; }
.consent button { font: inherit; font-weight: 700; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.consent button.ok { background: var(--sky); border-color: var(--sky); color: #fff; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.post-card:hover { transform: translateY(-2px); border-color: var(--sky); }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.post-card > div { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.post-card strong { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-size: 1.15rem; line-height: 1.3; }
.post { max-width: 760px; }
.post-head { padding-top: 28px; }
.post-meta { color: var(--muted); font-size: .9rem; }
.cover { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 8px 0 18px; display: block; }
.toc-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 0 0 8px; }
.toc-box ol { margin: 6px 0 0; padding-left: 20px; }
.toc-box li { margin: 3px 0; }
.post-body { font-size: 1.08rem; line-height: 1.8; }
.post-body h2 { margin-top: 1.8em; scroll-margin-top: 80px; }
.post-body p, .post-body li { color: var(--ink); }
.post-body li { margin: 6px 0; }
.post-body blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--sky); background: var(--sky-soft); border-radius: 0 12px 12px 0; }
.post-body blockquote p { margin: 0; }
.post-body code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.post-body .table-wrap, .post-body .checker, .post-body .grid { margin: 20px 0; font-size: 1rem; line-height: 1.6; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .checker form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checker form .wide, .checker form .wide:last-child { grid-column: span 3; }
  .results { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: span 3; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .answer, .diagrams, .bag-hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .hero.home { text-align: left; }
  .checker { padding: 16px; border-radius: 20px; }
  .seg { width: 100%; } .seg button { flex: 1; }
  .site-head { position: static; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-right: -16px; }
  .chip { white-space: nowrap; flex: none; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 1.02rem; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
  .nav a { padding: 6px 9px; font-size: .88rem; }
}
