/* CowFace — estilo editorial en blanco y negro (inspirado en Grailed) con el aire vintage de @cowface.cr.
   base.css: tokens, tipografía, botones, formularios, encabezado, portada, tarjetas, búsqueda y artículo. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f5f4f1;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e4e2dd;
  --ink: #111111;
  --accent: #c8102e;
  --ok: #1d7a46;
  --ok-soft: #e7f3ec;
  --warn: #9a5b00;
  --warn-soft: #fbf1df;
  --danger: #b42318;
  --info: #2f3e9e;
  --info-soft: #e9ecfb;
  --radius: 2px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 15px/1.5 var(--font); background: var(--bg); color: var(--text);
  display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 1rem; font-weight: 700; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: .82rem; margin: .4rem 0 0; }
.inline { display: inline; }
section { margin: 2.5rem 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Botones: negros, rectos, en mayúsculas ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .8rem 1.4rem; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; font: 700 .8rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.btn:hover { background: #333; text-decoration: none; }
.btn-small { padding: .55rem .9rem; font-size: .72rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--soft); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn + .btn { margin-left: .4rem; }
.btn-block + .btn-block { margin: .5rem 0 0; }
.btn:disabled { opacity: .5; cursor: wait; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formularios ---------- */
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
label .muted, label .hint, label .error { text-transform: none; letter-spacing: 0; }
input, select, textarea {
  font: 400 .95rem var(--font); padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--text); width: 100%; text-transform: none; letter-spacing: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input[type="checkbox"], input[type="file"] { width: auto; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack.compact { gap: .6rem; margin: .5rem 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.error { color: var(--danger); font-weight: 500; font-size: .8rem; }
.alert { background: #fdecea; color: var(--danger); padding: .8rem 1rem; border-left: 3px solid var(--danger); margin: 0 0 1rem; }
.flash { margin-top: 1rem; }
.notice { background: var(--warn-soft); color: #5c3a00; padding: .8rem 1rem; border-left: 3px solid var(--warn); margin: 1rem 0; }
.notice-ok { background: var(--ok-soft); color: var(--ok); border-left-color: var(--ok); }

/* ---------- Encabezado ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 900; font-size: 1.35rem; letter-spacing: -.03em; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.topsearch { flex: 1; max-width: 640px; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; background: var(--soft); border: 1px solid transparent; }
.topsearch:focus-within { background: #fff; border-color: var(--ink); }
.topsearch svg { color: var(--muted); flex-shrink: 0; }
.topsearch input { border: 0; background: transparent; padding: .7rem 0; box-shadow: none; }
.topsearch input:focus { box-shadow: none; }
.topnav { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.topnav .linklike { text-decoration: none; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; font-size: inherit; }
.nav-strong { border-bottom: 2px solid var(--ink); }
.nav-messages { display: inline-flex; align-items: center; gap: .3rem; }
.badge {
  min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 800; display: inline-grid; place-items: center; letter-spacing: 0;
}
.badge[hidden] { display: none; }
.catnav { border-top: 1px solid var(--line); }
.catnav-inner { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: center; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav a { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }

/* ---------- Portada ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; margin-top: 1.5rem; background: var(--soft); min-height: 460px; }
.hero-text { padding: clamp(1.75rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; text-transform: uppercase; }
.hero-sub { max-width: 46ch; color: #3b3b3b; font-size: 1rem; margin: .5rem 0 1.5rem; }
.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.hero-photo { display: block; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 4px; }
.strip a { aspect-ratio: 1; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.strip a:hover img { transform: scale(1.04); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: .5rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.link-arrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.link-arrow::after { content: ' →'; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); color: #fff; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .65)); }
.cat-label { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; font-weight: 900; font-size: 1.3rem; text-transform: uppercase; letter-spacing: -.01em; display: flex; flex-direction: column; }
.cat-label small { font-size: .72rem; font-weight: 600; letter-spacing: .05em; opacity: .85; }
.cat-tile:hover { text-decoration: none; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2rem 0; }
.values h3 { text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; }
.values p { margin: 0; color: var(--muted); font-size: .9rem; }
.cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 2rem; background: var(--ink); color: #fff; }
.cta img { border-radius: 50%; background: #fff; }
.cta div { flex: 1; min-width: 220px; }
.cta h2 { font-size: 1.4rem; text-transform: none; letter-spacing: -.01em; }
.cta p { margin: 0; opacity: .8; }

/* ---------- Tarjetas de artículo ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 16px; }
.card { display: block; color: var(--text); }
.card:hover { text-decoration: none; }
.card-img { position: relative; aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.03); }
.tag { position: absolute; top: .5rem; left: .5rem; padding: .2rem .45rem; background: #fff; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.featured-pill { display: inline-block; padding: .1rem .4rem; background: var(--ink); color: #fff; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; vertical-align: middle; }
.card-body { padding-top: .6rem; }
.card-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--muted); }
.card-size { color: var(--text); font-weight: 600; }
.card-brand { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; margin-top: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { font-weight: 700; font-size: .92rem; margin-top: .2rem; }

/* ---------- Búsqueda ---------- */
.search-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; margin-top: 1.5rem; }
.filters form { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 1rem; }
.filters-toggle { display: none; }
.filters-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: .5rem; }
.filters-head h2 { margin: 0; }
.filters-head a { font-size: .75rem; text-decoration: underline; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.size-group-label { font-size: .72rem; color: var(--muted); margin: .5rem 0 .25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; min-width: 2.4rem; text-align: center; padding: .35rem .5rem; border: 1px solid var(--line); font-size: .8rem; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 500; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; gap: 1rem; }
.results-head p { margin: 0; font-size: .85rem; }
.sort select { width: auto; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 2.5rem 0; }
.empty { text-align: center; padding: 3rem 1rem; }

/* ---------- Artículo ---------- */
.crumbs { margin: 1.25rem 0 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.product { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.gallery-main { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.thumbs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.thumb { padding: 0; border: 1px solid transparent; cursor: pointer; background: none; }
.thumb.active { border-color: var(--ink); }
.thumb img { width: 72px; height: 72px; object-fit: cover; }
.product-info { position: sticky; top: 130px; }
.product-brand { display: inline-block; font-weight: 900; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; text-decoration: underline; text-underline-offset: 4px; }
.product-info h1 { font-size: 1.35rem; font-weight: 500; letter-spacing: 0; }
.product-facts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--muted); }
.product-facts strong { color: var(--text); }
.price { font-size: 1.7rem; font-weight: 800; margin: 1rem 0 .2rem; }
.deal-box { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; }
.deal-box form { margin: 0; }
.offer-panel > summary { list-style: none; }
.offer-panel > summary::-webkit-details-marker { display: none; }
.offer-panel[open] > summary { background: var(--ink); color: #fff; }
.offer-form, .ask-form { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; padding: 1rem; border: 1px solid var(--line); }
.protect { background: var(--soft); padding: .8rem 1rem; font-size: .85rem; border-left: 3px solid var(--ink); }
.seller-box { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.5rem 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.details-title { margin-top: 1rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); margin-right: 1rem; }
.specs dt { font-size: .8rem; color: var(--muted); }
.specs dd { margin: 0; font-size: .85rem; font-weight: 600; text-align: right; }
.description { white-space: pre-line; color: #333; }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--ink); margin-top: 4rem; padding: 2.5rem 0 1.5rem; font-size: .88rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .logo img { width: 40px; height: 40px; }
.footer-brand p { max-width: 36ch; }
.footer-ig { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-col { display: flex; flex-direction: column; gap: .45rem; }
.footer-col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-height: 420px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .search-layout { grid-template-columns: 1fr; gap: 1rem; }
  .filters form { position: static; }
  .filters-toggle { display: block; cursor: pointer; padding: .8rem 1rem; border: 1px solid var(--ink); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
  .filters[open] .filters-toggle { margin-bottom: 1rem; }
  .product { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-info { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: .6rem; padding-bottom: .6rem; row-gap: .5rem; }
  .logo { font-size: 1.15rem; }
  .logo img { width: 36px; height: 36px; }
  .topsearch { order: 3; flex-basis: 100%; max-width: none; }
  .topnav { gap: .8rem; font-size: .7rem; }
  .topnav .btn-small { padding: .45rem .6rem; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip a:nth-child(n + 4) { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
  .values { grid-template-columns: 1fr; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs div { margin-right: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta { padding: 1.5rem; }
}
.cat-tile-empty { background: var(--ink); }
.cat-tile-empty img { width: 42%; height: auto; margin: 22% auto 0; border-radius: 50%; filter: invert(1); mix-blend-mode: screen; opacity: .9; }
.cat-tile-empty::after { background: none; }

/* ---------- Galería: foto completa (sin recortar) y pantalla completa ---------- */
.gallery-main-btn { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; }
.gallery-main { object-fit: contain; }
.zoom-hint { position: absolute; right: .6rem; bottom: .6rem; background: rgba(255, 255, 255, .9); padding: .3rem .55rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.thumb img { background: var(--soft); }
body.no-scroll { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 10, 10, .96); display: flex; align-items: center; justify-content: center; overflow: auto; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; cursor: zoom-in; }
.lightbox img.zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.lb-close, .lb-nav { position: fixed; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font-size: 2rem; line-height: 1; width: 48px; height: 48px; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .8rem; letter-spacing: .08em; }

/* ---------- Artículo: envío, total y medidas ---------- */
.ship-line { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; margin: .2rem 0 .5rem; }
.price-breakdown { border: 1px solid var(--line); padding: .8rem 1rem; display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.price-breakdown div { display: flex; justify-content: space-between; gap: 1rem; }
.price-breakdown-total { font-weight: 800; border-top: 1px solid var(--line); padding-top: .35rem; margin-top: .15rem; }
.price-breakdown .hint { margin: .2rem 0 0; }
.measures dt { display: flex; flex-direction: column; }
.measure-hint { font-size: .7rem; color: var(--muted); }
.back-to-results { margin-right: .8rem; font-weight: 700; color: var(--ink); }
.back-to-results[hidden] { display: none; }
.protect a { text-decoration: underline; }

/* Menú de categorías en pantallas angostas: se nota que hay más hacia la derecha. */
@media (max-width: 1000px) {
  .catnav { position: relative; }
  .catnav::after { content: '›'; position: absolute; right: 0; top: 0; bottom: 0; width: 44px; display: grid; place-items: center end; padding-right: 10px; font-weight: 900; font-size: 1.2rem; pointer-events: none; background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 60%); }
  .catnav-inner { padding-right: 44px; }
}

/* ---------- Búsqueda: filtros activos, avisos y sin resultados ---------- */
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 1rem; }
.active-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid var(--ink); font-size: .78rem; font-weight: 600; }
.active-chip:hover { background: var(--ink); color: #fff; text-decoration: none; }
.clear-all { font-size: .78rem; text-decoration: underline; margin-left: .3rem; }
.results-tools { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.empty form { margin: 1rem 0; }
.empty-suggest-title { margin-top: 1.5rem; }
.empty-suggest { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* Sugerencias de la barra de búsqueda */
.topsearch { position: relative; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; margin: 0; padding: .3rem 0; list-style: none; background: #fff; border: 1px solid var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.suggest a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; font-size: .92rem; }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--soft); }
.suggest-hint { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.suggest-all { border-top: 1px solid var(--line); font-weight: 700; }

/* ---------- Menú hamburguesa (celular) ---------- */
.menu-toggle, .menu-icon, .menu-only { display: none; }
@media (max-width: 760px) {
  .topbar-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; column-gap: .4rem; row-gap: .5rem; height: auto; padding-top: .55rem; padding-bottom: .55rem; }
  .topbar-inner > .logo { grid-column: 1; grid-row: 1; }
  .menu-icon { grid-column: 2; grid-row: 1; }
  .menu-toggle { grid-column: 3; grid-row: 1; }
  .topsearch { grid-column: 1 / -1; grid-row: 2; order: 0; max-width: none; }
  .menu-icon { display: grid; place-items: center; position: relative; width: 44px; height: 44px; color: var(--ink); }
  .menu-icon .badge { position: absolute; top: 4px; right: 2px; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topnav { display: none; grid-column: 1 / -1; grid-row: 3; flex-direction: column; align-items: stretch; gap: 0; margin: 0 -16px; padding: .3rem 16px .8rem; border-top: 1px solid var(--line); font-size: .9rem; }
  .topnav.open { display: flex; }
  .topnav > a, .topnav > form { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .topnav > a.btn { margin: .6rem 0 .3rem; padding: .85rem; text-align: center; border-bottom: 0; }
  .topnav .menu-only { display: block; }
  .topnav .nav-messages { justify-content: space-between; }
  .topnav form .linklike { width: 100%; text-align: left; }
}
