/* 兵團新聞網 shell.
   A dark intro frame (hero) over a reading frame the reader can switch light/dark.
   One accent per category: repair = cyan/lime, cleaning = 清水白 teal. Photo frames are square. */
:root {
  --hero-bg: #060a13; --hero-bg2: #0c1628; --hero-ink: #eef3fb; --hero-ink2: #a9b8cc; --hero-line: rgba(170,195,230,.18);
  --lime: #c8ff5a; --cyan: #5fe6ff;
  --cta: linear-gradient(100deg,#6ff7ff 0%,#b8ff5c 55%,#e9ff7a 100%);
  --water: #072328; --teal-hi: #4fd6cc;
  --bg: #f4f7fb; --bg2: #ffffff; --ink: #0d1726; --ink2: #3c4a5e; --ink3: #6b7a90; --line: #dbe3ee; --chip: #e8eef6;
  --acc: #0b7d97; --acc-soft: #dff4f8; --mark: #e9ff9a;
  --shadow: 0 1px 2px rgba(13,23,38,.06), 0 8px 30px -12px rgba(13,23,38,.18);
  --sans: "PingFang HK","PingFang TC","Noto Sans TC","Noto Sans CJK TC","Microsoft JhengHei",system-ui,sans-serif;
  --mono: ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --top-h: 58px;
}
@media (prefers-color-scheme: dark) { :root:not([data-read="light"]) {
  --bg: #070c16; --bg2: #0d1524; --ink: #e9eff8; --ink2: #b7c3d4; --ink3: #8090a6; --line: rgba(170,195,230,.16); --chip: rgba(255,255,255,.06);
  --acc: #5fe6ff; --acc-soft: rgba(95,230,255,.1); --mark: rgba(200,255,90,.22); --shadow: 0 10px 40px -16px rgba(0,0,0,.7); color-scheme: dark; } }
:root[data-read="dark"] {
  --bg: #070c16; --bg2: #0d1524; --ink: #e9eff8; --ink2: #b7c3d4; --ink3: #8090a6; --line: rgba(170,195,230,.16); --chip: rgba(255,255,255,.06);
  --acc: #5fe6ff; --acc-soft: rgba(95,230,255,.1); --mark: rgba(200,255,90,.22); --shadow: 0 10px 40px -16px rgba(0,0,0,.7); color-scheme: dark; }
:root[data-read="light"] { color-scheme: light; }
body.cat-c { --acc: #0e9f97; --acc-soft: #dcf4f2; --mark: #c9f3ee; }
@media (prefers-color-scheme: dark) { :root:not([data-read="light"]) body.cat-c { --acc: #4fd6cc; --acc-soft: rgba(79,214,204,.12); --mark: rgba(79,214,204,.2); } }
:root[data-read="dark"] body.cat-c { --acc: #4fd6cc; --acc-soft: rgba(79,214,204,.12); --mark: rgba(79,214,204,.2); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { text-wrap: balance; }
p,li { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
/* The dark header, hero frame, menu, viewer and footer keep the bright ring. */
.top :focus-visible, .frame :focus-visible, .menu :focus-visible, .lb :focus-visible, .foot :focus-visible { outline-color: var(--lime); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 80; padding: 8px 14px; border-radius: 10px; background: var(--lime); color: #0b1500; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------------- top bar ---------------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding-inline: 16px; background: rgba(6,10,19,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--hero-ink); border-bottom: 1px solid var(--hero-line); }
/* The name sits on the "Fixes" letters, not on the robot: the logo's cap band is rows 33-216 of 227.
   The logo is 28px tall on every Fixes site, desktop and phone alike. */
.brand { --lw: calc(28px * 871 / 227); display: flex; align-items: flex-start; gap: 10px; text-decoration: none; min-width: 0; }
.brand .logo { display: block; flex: none; width: var(--lw); height: calc(var(--lw) * 227 / 871); }
.brand .logo img { width: 100%; height: 100%; }
.brand b { --cap: calc(var(--lw) * 183 / 871); font-size: calc(var(--cap) * .975); line-height: 1; font-weight: 900; letter-spacing: .04em; white-space: nowrap; margin-top: calc(var(--lw) * 124.5 / 871 - var(--cap) * .4875); position: relative; top: var(--nudge, 1.5px); }
.tnav { display: none; margin-left: 18px; gap: 4px; }
.tnav a { padding: 8px 12px; border-radius: 99px; font-size: 14.5px; font-weight: 700; text-decoration: none; color: var(--hero-ink2); }
.tnav a:hover, .tnav a[aria-current="page"] { color: var(--hero-ink); background: rgba(255,255,255,.07); }
@media (min-width: 900px) { .tnav { display: flex; } .menu-btn { display: none !important; } }
@media (max-width: 899px) { .wide-only { display: none !important; } }
/* Phones: tighter spacing first; the logo stays 28px tall. */
@media (max-width: 440px) { .top { gap: 6px; padding-inline: 12px; } .brand { gap: 8px; } .top .ibtn { width: 36px; height: 36px; } .dropmeter { height: 36px; } .dropmeter .d { width: 32px; height: 34px; } }
.top .sp { flex: 1; }
.ibtn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; border: 1.5px solid var(--hero-line); background: rgba(255,255,255,.04); color: var(--hero-ink); text-decoration: none; }
.ibtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ibtn:hover { border-color: rgba(200,255,140,.6); }
.ibtn .i-moon { display: none; }
:root[data-read="dark"] .ibtn .i-sun { display: none; } :root[data-read="dark"] .ibtn .i-moon { display: block; }
.order { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--cta); color: #051a0b; font-size: 14px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--cta); }
body.cat-c .prog { background: linear-gradient(90deg,#4fd6cc,#bff6f1); }
.menu { position: fixed; z-index: 39; inset: 0; padding: calc(var(--top-h) + 8px) 16px 40px; overflow-y: auto; background: rgba(6,10,19,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--hero-ink); }
.menu[hidden] { display: none; }
.menu-in { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; }
.menu a { padding: 13px 2px; border-bottom: 1px solid var(--hero-line); font-size: 18px; font-weight: 700; text-decoration: none; }
.menu .menu-main { margin-top: 8px; padding: 14px 20px; border: 0; border-radius: 99px; text-align: center; background: var(--cta); color: #051a0b; font-size: 19px; font-weight: 900; }
.menu-h { margin: 22px 0 6px; font: 700 12px/1 var(--mono); letter-spacing: .14em; color: var(--hero-ink2); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--hero-line); }
.seg button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--hero-ink2); font-weight: 700; font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--hero-ink); color: var(--hero-bg); }
body.menu-open { overflow: hidden; }
.dropmeter { flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px 0 2px; height: 40px; border-radius: 99px; background: rgba(79,214,204,.12); border: 1px solid rgba(79,214,204,.35); }
.dropmeter[hidden] { display: none; }
.dropmeter .d { width: 36px; height: 38px; }
.dropmeter .d svg { width: 100%; height: 100%; }
.dropmeter b { font: 700 11.5px/1 var(--mono); color: #bff6f1; font-variant-numeric: tabular-nums; }
@media (max-width: 440px) { .dropmeter b { display: none; } .dropmeter { padding: 0 2px; } }
/* Too narrow for every control: the drop meter goes first (the progress line stays), then the name. */
@media (max-width: 379px) { .dropmeter, .dropmeter[hidden] { display: none; } }
@media (max-width: 334px) { .brand b { display: none; } }
.ip-anim svg g { transform-box: fill-box; transform-origin: center; }
.ip-anim .ipa-body { animation: ipa-bob 2.6s ease-in-out infinite; }
.ip-anim .ipa-l { animation: ipa-float 1.7s ease-in-out infinite; }
.ip-anim .ipa-r { animation: ipa-wave 1.7s ease-in-out infinite .35s; }
.ip-anim .ipa-eyes { animation: ipa-blink 4.2s infinite; }
@keyframes ipa-bob { 50% { transform: translateY(-6px); } }
@keyframes ipa-float { 50% { transform: translate(-2px,-8px); } }
@keyframes ipa-wave { 30% { transform: translate(3px,-9px) rotate(-12deg); } 60% { transform: translate(-1px,-3px) rotate(10deg); } }
@keyframes ipa-blink { 0%,90%,100% { transform: scaleY(1); } 94% { transform: scaleY(.12); } }

/* ---------------- intro frame (always dark) ---------------- */
.frame { position: relative; background: radial-gradient(120% 80% at 80% 0%, var(--hero-bg2) 0%, var(--hero-bg) 60%); color: var(--hero-ink); overflow: hidden; isolation: isolate; }
.frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(140,190,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(140,190,255,.06) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }
.frame .glow { position: absolute; z-index: -1; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; pointer-events: none; }
.frame .glow.a { left: -26vmax; top: -30vmax; background: radial-gradient(circle, rgba(95,230,255,.35), transparent 62%); }
.frame .glow.b { right: -30vmax; bottom: -38vmax; background: radial-gradient(circle, rgba(200,255,90,.18), transparent 62%); animation-direction: alternate-reverse; }
body.cat-c .frame { background: radial-gradient(120% 80% at 80% 0%, #0c3a40 0%, var(--water) 62%); }
body.cat-c .frame .glow.a { background: radial-gradient(circle, rgba(79,214,204,.4), transparent 62%); }
body.cat-c .frame .glow.b { background: radial-gradient(circle, rgba(191,246,241,.18), transparent 62%); }
@keyframes drift { to { transform: translate(6vmax, 4vmax); } }
.reveal { animation: rise .8s var(--ease) both; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* ---------------- home and listing heroes ---------------- */
.home-hero { padding-block: 34px 26px; display: grid; gap: 18px; }
.eb { font: 700 12px/1.4 var(--mono); letter-spacing: .16em; color: var(--lime); }
body.cat-c .eb { color: #bff6f1; }
.home-hero h1 { font-size: clamp(30px, 7vw, 54px); line-height: 1.15; font-weight: 900; letter-spacing: .02em; }
.home-hero h1 em { font-style: normal; background: var(--cta); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.cat-c .home-hero h1 em { background: linear-gradient(100deg,#4fd6cc,#bff6f1); -webkit-background-clip: text; background-clip: text; }
.lede { color: var(--hero-ink2); max-width: 40em; font-size: 16px; }
.find { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; min-height: 58px; padding: 0 8px 0 16px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(95,230,255,.45); box-shadow: 0 0 30px -8px rgba(95,230,255,.4); }
.find svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; }
.find input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; color: var(--hero-ink); font: 500 17px var(--sans); outline: none; }
.find input::placeholder { color: var(--hero-ink2); }
.find input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.find button { flex: none; min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--cta); color: #051a0b; font-weight: 900; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--hero-line); background: rgba(255,255,255,.04); color: var(--hero-ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.chip:hover, .chip[aria-current="page"] { background: var(--hero-ink); color: var(--hero-bg); border-color: transparent; }
/* 兵團小編 in the home hero: a small figure on phones, the figure over three case photos on wide screens. */
.home-hero { position: relative; }
.hh-art { position: absolute; top: 18px; right: 0; width: 84px; pointer-events: none; }
.hh-art .hh-ph, .hh-art .hh-bub { display: none; }
.hh-ed { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.5)) drop-shadow(0 14px 24px rgba(0,0,0,.5)); animation: ipa-bob 3.6s ease-in-out infinite; }
@media (max-width: 359px) { .hh-art { display: none; } }
@media (min-width: 640px) and (max-width: 1179px) { .hh-art { top: 26px; width: 150px; } }
@media (min-width: 1180px) {
  .home-hero { padding-block: 46px 40px; }
  .home-hero > :not(.hh-art) { max-width: 600px; }
  .hh-art { top: 50%; right: 0; width: 430px; height: 400px; transform: translateY(-50%); }
  .hh-art .hh-ph { display: block; position: absolute; width: 196px; aspect-ratio: 1; border-radius: 22px; overflow: hidden; border: 3px solid rgba(238,243,251,.92); box-shadow: 0 30px 60px -24px rgba(0,0,0,.85); }
  .hh-ph img { width: 100%; height: 100%; object-fit: cover; }
  .hh-ph.p1 { left: 40px; top: 34px; rotate: -8deg; }
  .hh-ph.p2 { right: 4px; top: 6px; rotate: 7deg; }
  .hh-ph.p3 { right: 34px; top: 176px; rotate: -3deg; }
  .hh-ed { position: absolute; left: 0; bottom: -6px; width: 200px; }
  .hh-art .hh-bub { display: block; position: absolute; padding: 9px 14px; border-radius: 16px; background: #eef3fb; color: #0d1726; font-size: 15px; font-weight: 900; line-height: 1.3; white-space: nowrap; box-shadow: 0 4px 0 #16393f, 0 18px 30px -14px rgba(0,0,0,.7); border: 2px solid #16393f; }
  .hh-bub.b1 { left: 120px; bottom: 214px; }
  .hh-bub.b1::after { content: ""; position: absolute; left: 22px; bottom: -9px; width: 14px; height: 14px; background: #eef3fb; border: 2px solid #16393f; border-top: 0; border-left: 0; rotate: 45deg; }
  .hh-bub.b2 { right: 0; bottom: 18px; background: var(--lime); }
  .hh-ph { animation: hh-float 7s ease-in-out infinite; }
  .hh-ph.p2 { animation-delay: -2.3s; }
  .hh-ph.p3 { animation-delay: -4.6s; }
  .hh-bub { animation: hh-pop .5s var(--ease) both, ipa-bob 3.6s ease-in-out infinite; }
  .hh-bub.b1 { animation-delay: .6s, 1.1s; }
  .hh-bub.b2 { animation-delay: 1.3s, 2.2s; }
}
@keyframes hh-float { 50% { translate: 0 -7px; } }
@keyframes hh-pop { from { opacity: 0; transform: translateY(8px) scale(.85); } }
.list-hero { padding-block: 30px 28px; display: grid; gap: 14px; }
@media (min-width: 900px) { .list-hero.has-pic { grid-template-columns: minmax(0,1fr) 300px; align-items: center; gap: 48px; } }
.list-hero h1 { font-size: clamp(26px, 6vw, 44px); line-height: 1.2; font-weight: 900; }
.list-hero .pic { max-width: 300px; }
.list-hero .pic.ed img { width: 220px; height: auto; margin-inline: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.5)) drop-shadow(0 20px 30px rgba(0,0,0,.55)); animation: ipa-bob 3.6s ease-in-out infinite; }
.list-hero .pic .sq { border-radius: 20px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--hero-line); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--hero-ink2); }
.crumb a { text-decoration: none; }
.crumb .cat { padding: 4px 10px; border-radius: 99px; font-weight: 900; background: var(--lime); color: #0b1500; }
body.cat-c .crumb .cat { background: var(--teal-hi); color: var(--water); }

/* ---------------- cards and lists ---------------- */
.sect { padding-bottom: 8px; }
.list-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 30px 14px; }
.list-hd h2 { font-size: 20px; font-weight: 900; }
.list-hd p { color: var(--ink3); font-size: 14px; }
.hd-more { font-size: 14px; font-weight: 700; color: var(--acc); text-decoration: none; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.card { display: flex; flex-direction: column; gap: 9px; text-decoration: none; min-width: 0; }
.card .sq { border-radius: 14px; }
.card-t { font-size: 15px; line-height: 1.45; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--ink3); }
.card .meta b { color: var(--acc); font-weight: 700; }
.card.c .meta b { color: #0e9f97; }
.card:hover .card-t { color: var(--acc); }
.card:hover .sq img { transform: scale(1.03); }
.vrail { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.vrail::-webkit-scrollbar { display: none; }
.vrail .card { scroll-snap-align: start; }
@media (min-width: 720px) { .vrail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0,1fr)); margin-inline: 0; padding-inline: 0; } }
.vcard .sq { aspect-ratio: 16/9; }
.vcard .play { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 99px; background: rgba(6,10,19,.78); color: #fff; font: 700 11.5px/1 var(--mono); }
.vcard .play svg { width: 18px; height: 13px; } .vcard .play rect { fill: #ff2d2d; } .vcard .play path { fill: #fff; }
.feat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.cats a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.cats a small { color: var(--ink3); font-weight: 400; font-size: 13px; }
.cats a:hover { border-color: var(--acc); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding-block: 30px 46px; color: var(--ink3); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--bg2); color: var(--ink); font-weight: 700; text-decoration: none; }
.btn:hover { border-color: var(--acc); }
.empty { padding: 40px 0; text-align: center; color: var(--ink3); }
.discover { margin: 0 0 40px; padding: 16px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); }
.discover summary { cursor: pointer; font-weight: 700; }
.discover ul { margin: 10px 0 0; padding-left: 1.2em; font-size: 14.5px; columns: 2 320px; }
.discover li { margin-bottom: 4px; break-inside: avoid; }

/* ---------------- square photo frame ---------------- */
.sq { position: relative; display: block; aspect-ratio: 1; max-width: 100%; overflow: hidden; background: #0b1322; border-radius: 16px; isolation: isolate; }
.sq img, .sq picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.sq img { object-fit: cover; transition: transform .6s var(--ease); }
.sq picture img { position: static; }
.sq.fit img { object-fit: contain; }
.sq .bd { position: absolute; inset: -12%; width: 124%; height: 124%; z-index: -1; filter: blur(22px) saturate(1.2) brightness(.55); }
.sq .bd img { object-fit: cover; }
.sq.ph { display: grid; place-items: center; background: linear-gradient(150deg, #0e1d38, #060a13); }
.sq.ph img { position: static; width: 46%; height: auto; opacity: .9; }

/* ---------------- post hero ---------------- */
.post-hero { padding-block: 22px 30px; display: grid; gap: 22px; }
@media (min-width: 900px) { .post-hero { grid-template-columns: minmax(0,1fr) minmax(0, 420px); align-items: center; gap: 56px; padding-block: 44px 52px; } .post-hero.vid { grid-template-columns: minmax(0,1fr); } }
.post-hero h1 { margin-top: 14px; font-size: clamp(25px, 5.6vw, 42px); line-height: 1.3; font-weight: 900; }
.post-hero .sum { margin-top: 14px; color: var(--hero-ink2); font-size: 15.5px; line-height: 1.75; }
.facts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.fact { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--hero-line); background: rgba(255,255,255,.05); font-size: 13.5px; text-decoration: none; }
.fact small { color: var(--hero-ink2); font-size: 11.5px; }
.fact b { font-weight: 700; }
.fact.code b { color: #ffb84d; font-family: var(--mono); }
a.fact:hover { border-color: rgba(255,184,77,.6); }
.cover-wrap .sq { border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--hero-line); }
.player { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--hero-line); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- reading frame ---------------- */
.read { padding-block: 30px 10px; }
.col { max-width: 680px; margin-inline: auto; display: grid; gap: 28px; min-width: 0; }
.col > * { min-width: 0; }
.byline { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--ink3); font-size: 13.5px; line-height: 1.5; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--ink); }
.byline a { text-decoration: none; }
.prose { overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.05em; }
.prose p, .prose li { color: var(--ink); }
.prose a { color: var(--acc); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose h2 { font-size: 22px; line-height: 1.4; margin-top: 1.4em; }
.prose h3 { font-size: 19px; line-height: 1.4; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: 14px; margin-inline: auto; }
.prose figure { margin-block: 1.4em; }
.prose figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ink3); text-align: center; }
.prose blockquote { margin: 1.2em 0; padding: 12px 16px; border-left: 3px solid var(--acc); background: var(--acc-soft); border-radius: 0 12px 12px 0; }
.prose iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: 16px; background: #000; }
.prose .w-embed, .prose .w-richtext-figure-type-video > div { position: static !important; padding: 0 !important; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.kick { font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--ink3); }

/* photo record: one big + two small, then a swipe strip */
.gal-hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.gal-hd h2 { font-size: 17px; font-weight: 900; }
.gal-hd small { color: var(--ink3); font-size: 13px; }
.m1 .sq { border-radius: 18px; }
.m2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m3 { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; aspect-ratio: 3/2; }
.m3 > :first-child { grid-row: span 2; }
.m3 .sq { height: 100%; aspect-ratio: auto; }
.m2 .sq, .m3 .sq, .strip .sq { border-radius: 12px; }
.gimg { display: block; cursor: zoom-in; }
.strip { position: relative; margin-top: 8px; }
.strip .rail { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.strip .rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .strip .rail { grid-auto-columns: 30%; } }
.strip .gimg { scroll-snap-align: start; position: relative; }
.strip .n { position: absolute; left: 8px; top: 8px; z-index: 2; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; font: 700 12px/1 var(--mono); background: rgba(6,10,19,.72); color: #fff; }
.strip .nav { position: absolute; top: calc(50% - 22px); display: none; width: 40px; height: 40px; border-radius: 99px; border: 0; background: var(--bg2); box-shadow: var(--shadow); font-size: 20px; }
@media (hover: hover) { .strip .nav { display: grid; place-items: center; } }
.strip .nav.l { left: -12px; } .strip .nav.r { right: -12px; }

/* FAQ */
.faq h2 { font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 6px 16px 2px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary > span { flex: 1; min-width: 0; }
.faq summary::-webkit-details-marker { display: none; }
/* A 20px square turned 45deg spans 28.3px; the 6px right padding keeps it inside the row. */
.faq summary::after { content: "+"; flex: none; align-self: flex-start; width: 20px; height: 20px; text-align: center; margin-top: 5px; font: 700 20px/1 var(--mono); color: var(--acc); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .accordion-description { padding: 0 2px 18px; color: var(--ink2); font-size: 16px; }

.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tagrow a { padding: 6px 12px; border-radius: 99px; background: var(--chip); font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--ink2); }
.tagrow a.code { background: rgba(255,184,77,.16); color: #b86e00; font-family: var(--mono); }
.tagrow a:hover { color: var(--acc); }
@media (prefers-color-scheme: dark) { :root:not([data-read="light"]) .tagrow a.code { color: #ffb84d; } }
:root[data-read="dark"] .tagrow a.code { color: #ffb84d; }
.sop { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: var(--water); color: #e6fbf8; text-decoration: none; }
.sop .drop { width: 84px; height: 84px; }
.sop .drop svg { width: 100%; height: 100%; }
.sop b { display: block; font-size: 16.5px; }
.sop p { font-size: 13.5px; color: #a8d9d4; margin-top: 4px; }
.sop span.go { display: inline-block; margin-top: 8px; font-weight: 900; color: #4fd6cc; font-size: 14px; }
.rel { padding-top: 34px; }
.rel h2 { font-size: 18px; font-weight: 900; margin-bottom: 14px; }
.ctaband { margin-top: 46px; }
.ctaband .in { padding-block: 34px; display: grid; gap: 16px; }
@media (min-width: 760px) { .ctaband .in { grid-template-columns: minmax(0,1fr) auto; align-items: center; } }
.ctaband h2 { font-size: clamp(22px, 4.6vw, 30px); font-weight: 900; }
.ctaband p { color: var(--hero-ink2); margin-top: 6px; font-size: 15px; }
.ctaband .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 22px; border-radius: 99px; border: 1.5px solid rgba(200,230,255,.42); color: var(--hero-ink); text-decoration: none; font-weight: 700; }
.bigcta { display: inline-flex; align-items: center; min-height: 56px; padding: 12px 28px; border-radius: 99px; background: var(--cta); color: #051a0b; font-weight: 900; font-size: 17px; text-decoration: none; box-shadow: 0 10px 40px -8px rgba(140,255,200,.5); }
body.cat-c .bigcta { background: linear-gradient(100deg,#4fd6cc,#bff6f1); color: #062a2c; box-shadow: 0 10px 40px -8px rgba(79,214,204,.6); }

/* search */
.results { padding-bottom: 40px; }
.results .status { padding-block: 24px 12px; color: var(--ink3); font-size: 14px; }
.results .status b { color: var(--ink); }

/* contact */
.contact { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); padding-block: 34px 50px; }
.contact a, .contact div { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); text-decoration: none; }
.contact small { color: var(--ink3); font-size: 13px; }
.contact b { font-size: 19px; }

/* footer */
.foot { margin-top: 0; background: var(--hero-bg); color: var(--hero-ink2); font-size: 14px; }
.foot .in { padding-block: 40px 110px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.foot h2 { font: 700 12px/1 var(--mono); letter-spacing: .14em; color: var(--hero-ink); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--hero-ink); }
.foot .legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--hero-line); font-size: 12.5px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(3,6,12,.96); display: grid; grid-template-rows: auto minmax(0,1fr); color: #fff; }
.lb[hidden] { display: none; }
.lb header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font: 700 13px/1 var(--mono); }
.lb header button { width: 42px; height: 42px; border-radius: 99px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 20px; }
.lb .stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 12px 16px; touch-action: pan-y; }
.lb .stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb .nv { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 99px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; }
.lb .nv.p { left: 10px; } .lb .nv.n { right: 10px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Grid children may not grow past the column: long chip rows scroll instead. */
.home-hero > *, .list-hero > *, .post-hero > * { min-width: 0; }

/* ---------------- AI editor layout blocks ---------------- */
figure.media, figure.cmp, figure.vblk { margin: 0; }
.media.seq { margin-top: 0; }
.blk-cap { margin-top: 10px; font-size: 13.5px; color: var(--ink3); display: flex; gap: 8px; }
.blk-cap::before { content: ""; flex: none; width: 14px; height: 2px; margin-top: .75em; background: var(--acc); }
.m4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m4 .sq { border-radius: 12px; }
.card-blk { padding: 16px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.machine { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 14px; align-items: center; }
.machine.nopic { grid-template-columns: minmax(0,1fr); }
.machine .kick { grid-column: 1 / -1; }
.machine .pics { display: grid; gap: 6px; }
.machine .pics .sq { border-radius: 12px; }
@media (min-width: 640px) { .machine { grid-template-columns: 216px minmax(0,1fr); } .machine .pics { grid-template-columns: 1fr 1fr; } .machine .pics .gimg:only-child { grid-column: 1 / -1; } }
.machine dl { margin: 0; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 12px; font-size: 14px; }
.machine dt { color: var(--ink3); }
.machine dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.machine dd.mono { color: var(--acc); font-family: var(--mono); }
.fault { display: grid; gap: 14px; }
@media (min-width: 560px) { .fault { grid-template-columns: 200px minmax(0,1fr); align-items: center; } }
.fault .viz { aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #12223c, #060a13); overflow: hidden; }
.fault .viz svg { display: block; width: 100%; height: 100%; }
.fault .spot { transform-box: fill-box; transform-origin: center; animation: spot 1.8s ease-in-out infinite; }
@keyframes spot { 50% { transform: scale(1.7); opacity: .35; } }
.fault ol { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fault li { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 10px; align-items: baseline; font-size: 14.5px; }
.fault li small { color: var(--ink3); font-size: 12.5px; }
.fault li.hot b { background: var(--mark); padding: 1px 6px; border-radius: 6px; }
.tips { padding: 18px 18px 16px; border-radius: 20px; background: var(--acc-soft); }
.tips h3 { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.tips h3 svg { width: 20px; height: 20px; fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tips p { margin-top: 6px; font-size: 14.5px; color: var(--ink2); }
.tips ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: t; }
.tips li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.6; counter-increment: t; }
.tips li::before { content: counter(t); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 700 12px/1 var(--mono); background: var(--acc); color: var(--bg2); }
.baby { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 12px; align-items: start; }
.baby .av { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--acc); }
.baby .bub { padding: 12px 16px 14px; border-radius: 4px 20px 20px 20px; background: var(--bg2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.baby .who { font-size: 13.5px; }
.baby .say { margin-top: 4px; font-size: 16px; line-height: 1.7; }
.baby .acts:empty, .baby .acts:not(:has(button:not([hidden]))) { display: none; }
.baby .acts { margin-top: 10px; }
.baby .acts button { min-height: 36px; padding: 5px 14px; border-radius: 99px; border: 1.5px solid var(--acc); background: transparent; color: var(--acc); font-size: 13.5px; font-weight: 700; }
.cmp .pic { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #0b1322; user-select: none; }
.cmp .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp .pic .after { clip-path: inset(0 0 0 var(--x, 50%)); }
.cmp .pic .line { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.4); }
.cmp .pic .knob { position: absolute; top: 50%; left: var(--x, 50%); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); color: #072328; font-weight: 900; font-style: normal; }
.cmp .pic .l, .cmp .pic .r { position: absolute; top: 12px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 900; }
.cmp .pic .l { left: 12px; background: rgba(60,40,20,.8); color: #ffe8c9; }
.cmp .pic .r { right: 12px; background: rgba(79,214,204,.92); color: #062a2c; }
.cmp input { width: 100%; margin-top: 10px; accent-color: var(--acc); }
.vblk .player { box-shadow: var(--shadow); }
.chap { margin-top: 12px; padding: 14px 16px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line); }
.chap ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.chap a { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.chap a:hover { background: var(--acc-soft); }
.chap a span { font: 700 13px/1 var(--mono); color: var(--acc); }
