/* fsbuyspreadsheet.net -- FSBuy Spreadsheet: Deep Shelf
   Prefix: hvv-  |  Brand palette from FSBuy's own Element Plus theme override
   (see _planning/04-design-dna.md). Self-hosted Poppins, no external font CDN. */

:root{
  --hvv-red:#E60012;
  --hvv-red-deep:#B4000E;
  --hvv-pink:#FFF2F3;
  --hvv-gray-50:#F9FAFB;
  --hvv-gray-100:#F5F5F5;
  --hvv-gray-400:#9CA3AF;
  --hvv-gray-600:#666666;
  --hvv-ink:#111827;
  --hvv-white:#FFFFFF;
  --hvv-line:#E8E3E2;
  --hvv-radius-s:10px;
  --hvv-radius-m:16px;
  --hvv-radius-l:26px;
  --hvv-shadow:0 10px 30px -18px rgba(17,24,39,.28);
  --hvv-maxw:1180px;
  --hvv-bg:var(--hvv-white);
  --hvv-fg:var(--hvv-ink);
  --hvv-card-bg:var(--hvv-white);
  --hvv-muted:var(--hvv-gray-600);
  --hvv-surface:var(--hvv-gray-50);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark){
  :root{
    --hvv-bg:#15181f;
    --hvv-fg:#F3F1EF;
    --hvv-card-bg:#1D2129;
    --hvv-muted:#B6BAC3;
    --hvv-surface:#1A1E25;
    --hvv-line:#2A2F39;
    --hvv-pink:#2A1619;
  }
}
@font-face{
  font-family:"Poppins";
  src:url("/assets/fonts/poppins-400-latin.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Poppins";
  src:url("/assets/fonts/poppins-500-latin.woff2") format("woff2");
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Poppins";
  src:url("/assets/fonts/poppins-600-latin.woff2") format("woff2");
  font-weight:600; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Poppins";
  src:url("/assets/fonts/poppins-700-latin.woff2") format("woff2");
  font-weight:700; font-style:normal; font-display:swap;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:"Poppins",-apple-system,"Segoe UI",Arial,sans-serif;
  background:var(--hvv-bg);
  color:var(--hvv-fg);
  line-height:1.6;
  font-size:17px;
}
img{max-width:100%;display:block}
a{color:var(--hvv-red-deep)}
a:hover{color:var(--hvv-red)}
h1,h2,h3,h4{font-weight:600;line-height:1.22;margin:0 0 .5em}
h1{font-size:clamp(2rem,1.3rem + 2.6vw,3.1rem)}
h2{font-size:clamp(1.45rem,1.15rem + 1vw,2rem)}
h3{font-size:1.2rem}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.25em}
.hvv-wrap{max-width:var(--hvv-maxw);margin:0 auto;padding:0 24px}
.hvv-skip{position:absolute;left:-999px;top:0;background:var(--hvv-red);color:#fff;padding:10px 16px;z-index:200;border-radius:0 0 8px 0}
.hvv-skip:focus{left:0}

/* ---------- header / nav ---------- */
.hvv-header{border-bottom:1px solid var(--hvv-line);background:var(--hvv-bg);position:sticky;top:0;z-index:50}
.hvv-header__row{display:flex;align-items:center;gap:20px;padding:14px 24px;max-width:var(--hvv-maxw);margin:0 auto}
.hvv-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--hvv-ink);font-weight:600;flex:0 0 auto;min-height:44px}
.hvv-brand img{height:34px;width:auto}
.hvv-brand__name{font-size:1.02rem;white-space:nowrap}
.hvv-brand__name b{color:var(--hvv-red)}
.hvv-nav{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:auto}
.hvv-nav::-webkit-scrollbar{display:none}
.hvv-nav a{
  white-space:nowrap;text-decoration:none;color:var(--hvv-fg);font-size:.95rem;font-weight:500;
  padding:9px 13px;border-radius:999px;min-height:44px;display:inline-flex;align-items:center;
}
.hvv-nav a:hover{background:var(--hvv-pink);color:var(--hvv-red-deep)}
.hvv-nav a[aria-current="page"]{background:var(--hvv-red);color:#fff}
.hvv-notice{background:var(--hvv-ink);color:#fff;font-size:.82rem;text-align:center;padding:7px 10px}
.hvv-notice p{margin:0}
.hvv-notice a{color:#ffd9dc}

/* ---------- hero (hard gate 1) ---------- */
.hvv-hero{padding:52px 0 36px;background:linear-gradient(180deg,var(--hvv-pink),var(--hvv-bg) 72%)}
.hvv-hero__eyebrow{display:inline-block;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--hvv-red-deep);font-weight:600;margin-bottom:14px}
.hvv-hero__lede{max-width:62ch;color:var(--hvv-muted);font-size:1.08rem;margin-bottom:26px}
.hvv-search{
  display:flex;gap:10px;background:var(--hvv-card-bg);border:1px solid var(--hvv-line);
  border-radius:999px;padding:7px;box-shadow:var(--hvv-shadow);max-width:720px;
}
.hvv-search input[type=search]{
  flex:1;border:0;background:transparent;padding:12px 18px;font:inherit;color:var(--hvv-fg);min-width:0;
}
.hvv-search input[type=search]:focus{outline:none}
.hvv-search button{
  border:0;background:var(--hvv-red);color:#fff;font:inherit;font-weight:600;
  padding:12px 26px;border-radius:999px;cursor:pointer;flex:0 0 auto;min-height:44px;
}
.hvv-search button:hover{background:var(--hvv-red-deep)}
.hvv-subnav{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.hvv-subnav a{
  font-size:.86rem;color:var(--hvv-muted);text-decoration:none;border:1px solid var(--hvv-line);
  border-radius:999px;padding:5px 16px;min-height:44px;display:inline-flex;align-items:center;
}
.hvv-subnav a:hover{border-color:var(--hvv-red);color:var(--hvv-red-deep)}

/* ---------- category wall (hard gate 2) ---------- */
.hvv-wall{padding:34px 0 10px}
.hvv-wall__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.hvv-wall__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:860px){.hvv-wall__grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.hvv-wall__grid{grid-template-columns:repeat(2,1fr)}}
.hvv-cat{
  display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--hvv-fg);
  background:var(--hvv-card-bg);border:1px solid var(--hvv-line);border-radius:var(--hvv-radius-m);
  padding:14px;transition:transform .15s ease,box-shadow .15s ease;
}
.hvv-cat:hover{transform:translateY(-3px);box-shadow:var(--hvv-shadow);color:var(--hvv-fg)}
.hvv-cat img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:12px}
.hvv-cat__label{font-weight:600;font-size:.98rem}
.hvv-cat__note{font-size:.82rem;color:var(--hvv-muted);margin:0}
.hvv-cat__dest{font-size:.72rem;color:var(--hvv-gray-400);text-transform:uppercase;letter-spacing:.05em}

/* ---------- sections / cards ---------- */
.hvv-section{padding:46px 0}
.hvv-section--surface{background:var(--hvv-surface)}
.hvv-section__head{max-width:70ch;margin-bottom:26px}
.hvv-section__head p{color:var(--hvv-muted)}
.hvv-grid-2{display:grid;grid-template-columns:1.1fr 1fr;gap:34px;align-items:stretch}
@media(max-width:780px){.hvv-grid-2{grid-template-columns:1fr}}
.hvv-grid-2--rev{grid-template-columns:1fr 1.1fr}
@media(max-width:780px){.hvv-grid-2--rev{grid-template-columns:1fr}}
.hvv-grid-2 .hvv-figure{align-self:start}
.hvv-figure{margin:0;display:flex;flex-direction:column}
.hvv-figure__frame{border-radius:var(--hvv-radius-m);overflow:hidden;border:1px solid var(--hvv-line);background:var(--hvv-surface);flex:1;display:flex;align-items:center;max-width:960px}
.hvv-figure__frame img{width:100%;height:auto}
.hvv-figure figcaption{font-size:.84rem;color:var(--hvv-muted);margin-top:10px}
.hvv-stack{max-width:min(860px,100%);margin:0 auto 30px}

.hvv-cardgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}
.hvv-card{background:var(--hvv-card-bg);border:1px solid var(--hvv-line);border-radius:var(--hvv-radius-m);padding:20px}
.hvv-card h3{margin-bottom:.4em;font-size:1.05rem}
.hvv-card p{margin-bottom:0;color:var(--hvv-muted);font-size:.94rem}
.hvv-card > a,.hvv-callout > a{
  display:inline-flex;align-items:center;min-height:44px;min-width:44px;margin-top:6px;
  font-weight:600;text-decoration:none;
}

/* warehouse-log table styling (signature module, see design-dna.md) */
.hvv-log{border:1px solid var(--hvv-line);border-radius:var(--hvv-radius-m);overflow:hidden;background:var(--hvv-card-bg)}
.hvv-log__row{display:grid;grid-template-columns:18px 1fr auto;gap:14px;align-items:center;padding:13px 18px;border-top:1px solid var(--hvv-line)}
.hvv-log__row:first-child{border-top:0}
.hvv-log__dot{width:10px;height:10px;border-radius:50%;background:var(--hvv-red)}
.hvv-log__label{font-weight:500}
.hvv-log__value{color:var(--hvv-muted);font-size:.92rem;text-align:right}

table.hvv-table{width:100%;border-collapse:collapse;font-size:.92rem}
table.hvv-table caption{text-align:left;color:var(--hvv-muted);font-size:.82rem;margin-bottom:8px}
table.hvv-table th,table.hvv-table td{border:1px solid var(--hvv-line);padding:10px 12px;text-align:left;vertical-align:top}
table.hvv-table th{background:var(--hvv-surface);font-weight:600}

.hvv-faq__item{border-bottom:1px solid var(--hvv-line);padding:16px 0}
.hvv-faq__item summary{cursor:pointer;font-weight:600;list-style:none}
.hvv-faq__item summary::-webkit-details-marker{display:none}
.hvv-faq__item summary::before{content:"+ ";color:var(--hvv-red)}
.hvv-faq__item[open] summary::before{content:"- "}
.hvv-faq__item p{margin-top:10px;color:var(--hvv-muted)}

.hvv-steps{counter-reset:hvv-step;display:flex;flex-direction:column;gap:30px}
.hvv-step{display:grid;grid-template-columns:56px 1fr;gap:18px}
.hvv-step__num{counter-increment:hvv-step;width:40px;height:40px;border-radius:50%;background:var(--hvv-red);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.hvv-step__num::before{content:counter(hvv-step)}
.hvv-step__body h3{margin-bottom:.3em}

.hvv-vslot,.hvv-gslot{aspect-ratio:16/9;border-radius:var(--hvv-radius-m);background:var(--hvv-surface);border:1px dashed var(--hvv-line)}

.hvv-video{position:relative;border-radius:var(--hvv-radius-m);overflow:hidden;border:1px solid var(--hvv-line);background:#000;aspect-ratio:960/464;max-width:960px}
.hvv-video img{width:100%;height:100%;object-fit:cover;opacity:.85}
.hvv-video__play{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(17,24,39,.25);
  border:0;cursor:pointer;color:#fff;
}
.hvv-video__play span{
  width:72px;height:72px;border-radius:50%;background:rgba(230,0,18,.92);display:flex;align-items:center;justify-content:center;
}
.hvv-video__play span::after{content:"";border-style:solid;border-width:13px 0 13px 21px;border-color:transparent transparent transparent #fff;margin-left:5px}
.hvv-video iframe{width:100%;height:100%;border:0}

.hvv-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 24px;
  border-radius:999px;text-decoration:none;font-weight:600;font-size:.95rem;border:1px solid transparent;
}
.hvv-btn--primary{background:var(--hvv-red);color:#fff}
.hvv-btn--primary:hover{background:var(--hvv-red-deep);color:#fff}
.hvv-btn--ghost{border-color:var(--hvv-line);color:var(--hvv-fg)}
.hvv-btn--ghost:hover{border-color:var(--hvv-red);color:var(--hvv-red-deep)}

.hvv-badge{display:inline-flex;align-items:center;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--hvv-gray-400);border:1px solid var(--hvv-line);border-radius:999px;padding:3px 14px;min-height:44px}

.hvv-tool{background:var(--hvv-card-bg);border:1px solid var(--hvv-line);border-radius:var(--hvv-radius-m);padding:24px}
.hvv-tool__row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:16px}
.hvv-tool label{display:block;font-size:.84rem;color:var(--hvv-muted);margin-bottom:6px}
.hvv-tool input,.hvv-tool select{
  width:100%;padding:10px 12px;border:1px solid var(--hvv-line);border-radius:10px;font:inherit;background:var(--hvv-bg);color:var(--hvv-fg);min-height:44px;
}
.hvv-tool__out{background:var(--hvv-surface);border-radius:12px;padding:16px;font-size:.95rem}
.hvv-tool__out b{color:var(--hvv-red-deep)}

.hvv-toc{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 30px}
.hvv-toc a{font-size:.86rem;color:var(--hvv-muted);text-decoration:none;border:1px solid var(--hvv-line);border-radius:999px;padding:6px 13px;min-height:36px;display:inline-flex;align-items:center}
.hvv-toc a:hover{border-color:var(--hvv-red);color:var(--hvv-red-deep)}

/* ---------- footer ---------- */
.hvv-footer{background:var(--hvv-ink);color:#E7E7EA;padding:48px 0 26px;margin-top:40px}
.hvv-footer a{color:#fff}
.hvv-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}
@media(max-width:780px){.hvv-footer__grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.hvv-footer__grid{grid-template-columns:1fr}}
.hvv-footer h4{color:#fff;font-size:.86rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:14px}
.hvv-footer ul{list-style:none;padding:0;margin:0}
.hvv-footer li{margin-bottom:2px;font-size:.92rem}
.hvv-footer li a{color:#C7C9D1;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 2px}
.hvv-footer li a:hover{color:#fff}
.hvv-footer__base{border-top:1px solid #2A2F39;margin-top:34px;padding-top:18px;font-size:.8rem;color:#9099A6;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}
.hvv-footer__disc{font-size:.78rem;color:#8089967;max-width:80ch}

.hvv-callout{border:1px solid var(--hvv-line);background:var(--hvv-pink);border-radius:var(--hvv-radius-m);padding:18px 22px;font-size:.92rem}
.hvv-callout--line{border-left:4px solid var(--hvv-red)}

@media(max-width:600px){
  .hvv-header__row{flex-wrap:wrap}
  .hvv-nav{order:3;width:100%}
  .hvv-search{flex-direction:row}
  .hvv-step{grid-template-columns:40px 1fr}
}
@media (prefers-reduced-motion: reduce){
  .hvv-cat{transition:none}
}
