/* Ako Lang Ba? — app styles. Uses design-tokens.css variables, plus ONE local token
   (--alb-card) for the bright card surface (Mig, 2026-06-11: cards must stand out
   from the page — page drops to the darker paper-shade, cards go lighter than any
   token, so they read as real cards sitting on a desk).
   Mobile-first; single centered column; paper base, pop colors as punctuation. */

:root {
  --alb-bg: #F3EFE6;   /* warm off-white "oat" page — light + modern, still warm (not stark white) */
  --alb-card: #FFFDF7; /* near-white cream card — floats above the oat page via shadow */
}

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

html { -webkit-text-size-adjust: 100%; }

/* Visually hidden but read by crawlers/screen readers (real heading, not cloaking). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

body { min-height: 100vh; position: relative; }
/* Page surface: warm oat off-white (cards pop against it). Overrides .mw-page. */
body.mw-page { background-color: var(--alb-bg); }

/* Flatter, modern paper: drop the heavy letterpress grain + vignette (the warm radial washes
   in the base image stay, so the page is still warm, just clean). Also un-stalls rasterizing. */
.mw-paper-texture::before { display: none; }
.mw-paper-texture::after { display: none; }

/* Fixed paper texture behind everything (so the page can scroll freely). */
.paper-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}
/* The texture utility paints its own paper color — match it to the oat page. */
.paper-bg.mw-paper-texture { background-color: var(--alb-bg); }

/* Single centered column, mobile-first. */
.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header { padding-top: 18px; border-bottom: 1px solid var(--mw-paper-shade); }
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--mw-font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--mw-ink);
  text-decoration: none;
}
.header-search {
  flex: 1 1 150px;
  max-width: 280px;
  min-width: 130px;
  font-family: var(--mw-font-ui);
  font-size: 0.95rem;
  padding: 8px 14px;
  border: 1.5px solid var(--mw-millstone);
  border-radius: 999px;
  background: var(--mw-paper-warm);
  color: var(--mw-ink-sepia);
}
.header-search:focus { outline: none; border-color: var(--mw-oak); }

.topnav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
  font-family: var(--mw-font-ui);
  font-size: 0.85rem;
}
.topnav > a {
  color: var(--mw-oak);
  text-decoration: none;
  font-weight: 700;
}
.topnav > a:hover { text-decoration: underline; }
.account {
  margin-left: auto;
  font-family: var(--mw-font-ui);
  font-size: 0.8rem;
  color: var(--mw-ink-light);
}
.account button {
  font: inherit;
  background: none;
  border: none;
  color: var(--mw-oak);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Intro blurb at the top of the feed */
.intro {
  margin-top: 18px;
}
.intro p {
  font-family: var(--mw-font-serif);
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--mw-ink-sepia);
  max-width: 56ch;
}

/* ---------- Tabs + search ---------- */
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
/* Outlined, segmented tabs so it's obvious they're a toggle */
.tabs { display: flex; gap: 8px; }
.tab {
  font-family: var(--mw-font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--mw-ink-mid);
  background: var(--mw-paper-warm);
  border: 1.5px solid var(--mw-paper-shade);
  border-radius: 999px;
  cursor: pointer;
  padding: 7px 18px;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.tab:hover { border-color: var(--mw-millstone); }
/* Selected = a solid ink pill (clean, single visual language shared with the topic chips). */
.tab.active {
  color: var(--mw-paper);
  background: var(--mw-ink);
  border-color: var(--mw-ink);
}
/* ---------- Topic filter chips ---------- */
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.topic-chip {
  font-family: var(--mw-font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--mw-ink-mid);
  background: var(--mw-paper-warm);
  border: 1.5px solid var(--mw-paper-shade);
  border-radius: 999px;
  cursor: pointer;
  padding: 6px 13px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.topic-chip:hover { border-color: var(--mw-millstone); }
/* Selected topic chip — solid ink pill (matches the sort tabs; clean single accent system).
   Multi-select, so any number can be lit at once. */
.topic-chip.active {
  background: var(--mw-ink);
  border-color: var(--mw-ink);
  color: var(--mw-paper);
}

/* Small topic tag on each card (next to the date). */
.topic-tag { font-weight: 600; color: var(--mw-ink-mid); }

/* Mobile popup menu — hidden entirely on desktop (controls live inline there). */
.menu-overlay { display: none; }

.search-toggle {
  font-family: var(--mw-font-ui);
  font-size: 0.85rem;
  background: none;
  border: none;
  color: var(--mw-oak);
  cursor: pointer;
  padding: 4px;
}
.search-bar {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.search-bar[hidden] { display: none; }
.search-bar input {
  flex: 1 1 auto;
  font-family: var(--mw-font-ui);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1.5px solid var(--mw-millstone);
  border-radius: 8px;
  background: var(--mw-paper-warm);
  color: var(--mw-ink-sepia);
}
.search-bar input:focus { outline: none; border-color: var(--mw-oak); }
.search-bar button {
  font-family: var(--mw-font-ui);
  font-size: 0.9rem;
  background: none;
  border: none;
  color: var(--mw-ink-light);
  cursor: pointer;
}

/* ---------- Composer ---------- */
.composer {
  margin-top: 20px;
  background: var(--alb-card);
  border: 1px solid rgba(61, 47, 35, 0.12);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(61, 47, 35, 0.12), 0 6px 18px rgba(61, 47, 35, 0.16);
}
.composer h2 {
  font-family: var(--mw-font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mw-ink-mid);
  margin-bottom: 10px;
}
.composer textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  font-family: var(--mw-font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--mw-ink-sepia);
  background: var(--mw-paper);
  border: 1.5px solid var(--mw-paper-shade);
  border-radius: 8px;
  padding: 12px;
}
.composer textarea:focus { outline: none; border-color: var(--mw-oak); }
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}
.counter {
  font-family: var(--mw-font-ui);
  font-size: 0.85rem;
  color: var(--mw-ink-light);
}
.counter.warn { color: var(--mw-hibiscus); font-weight: 700; }
.btn-primary {
  font-family: var(--mw-font-ui);
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 20px;
  border: none;
  border-radius: 8px;
  background: var(--mw-ink);
  color: var(--mw-paper);
  cursor: pointer;
}
.btn-primary:disabled { opacity: 0.45; cursor: default; }
.composer .guidelines {
  font-family: var(--mw-font-ui);
  font-size: 0.78rem;
  color: var(--mw-ink-light);
  margin-top: 10px;
  line-height: 1.5;
}
.composer .guidelines a { color: var(--mw-oak); }
.form-msg {
  font-family: var(--mw-font-ui);
  font-size: 0.88rem;
  margin-top: 10px;
  min-height: 1.1em;
  color: var(--mw-ink-mid);
}
.form-msg.err { color: var(--mw-hibiscus); }
.form-msg.ok { color: var(--mw-oak); }

/* Login (gated composer) */
.composer .login-row { display: flex; gap: 8px; margin-top: 4px; }
.composer .login-row input {
  flex: 1 1 auto;
  font-family: var(--mw-font-ui);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1.5px solid var(--mw-millstone);
  border-radius: 8px;
  background: var(--mw-paper);
  color: var(--mw-ink-sepia);
}
.composer .login-row input:focus { outline: none; border-color: var(--mw-oak); }

.composer .full-input {
  width: 100%;
  font-family: var(--mw-font-ui);
  font-size: 1rem;
  padding: 11px 12px;
  border: 1.5px solid var(--mw-millstone);
  border-radius: 8px;
  background: var(--mw-paper);
  color: var(--mw-ink-sepia);
}
.composer .full-input:focus { outline: none; border-color: var(--mw-oak); }
.opt-note {
  font-family: var(--mw-font-ui);
  font-size: 0.78rem;
  color: var(--mw-ink-light);
  margin: 12px 0 8px;
}
.opt-check {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px;
  font-family: var(--mw-font-ui); font-size: 0.85rem; color: var(--mw-ink-mid); cursor: pointer;
}
.opt-check input { margin-top: 2px; }
.opt-more { margin-top: 10px; }
.opt-more summary {
  font-family: var(--mw-font-ui); font-size: 0.85rem; color: var(--mw-oak); cursor: pointer;
}
.opt-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opt-grid select, .opt-grid input {
  flex: 1 1 30%; min-width: 110px;
  font-family: var(--mw-font-ui); font-size: 0.95rem; padding: 9px 10px;
  border: 1.5px solid var(--mw-millstone); border-radius: 8px;
  background: var(--mw-paper); color: var(--mw-ink-sepia);
}

/* ---------- Feed (vertical; swipe up for the next, feed-style) ---------- */
.feed { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; }

.card {
  background: var(--alb-card);
  border: 1px solid rgba(61, 47, 35, 0.1);
  border-radius: 16px;
  padding: 22px 20px 18px;
  /* Floating card: a tight contact shadow + a soft, wider drop so it lifts off the paper. */
  box-shadow: 0 1px 2px rgba(61, 47, 35, 0.1), 0 10px 28px rgba(61, 47, 35, 0.16);
}

/* Topic landing pages (/t/<topic>): whole-card link + page heading + cross-links. */
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .12s ease, box-shadow .12s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(61,47,35,.12), 0 14px 32px rgba(61,47,35,.2); }
.topic-h1 { font-family: var(--mw-font-display); font-weight: 900; font-size: clamp(1.8rem,7vw,2.4rem); color: var(--mw-ink); letter-spacing: -.02em; margin: 18px 0 4px; }
.topic-more { font-family: var(--mw-font-ui); font-size: .85rem; color: var(--mw-ink-light); margin-top: 24px; line-height: 1.9; }
.topic-more a { color: var(--mw-oak); text-decoration: none; }
.topic-more a:hover { text-decoration: underline; }
.topic-links { margin-bottom: 10px; }

/* "Most relatable" badge on the lead card of the trending / 🔥 Hugot deck. */
.hugot-badge {
  display: inline-block;
  font-family: var(--mw-font-ui);
  font-weight: 800;
  font-size: 0.68rem;
  color: #fff;
  background: var(--mw-hibiscus);
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.confession {
  font-family: var(--mw-font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--mw-ink-sepia);
  white-space: pre-wrap;
  word-break: break-word;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.date {
  font-family: var(--mw-font-ui);
  font-size: 0.75rem;
  color: var(--mw-ink-light);
}
.meta-actions { display: flex; gap: 8px; align-items: center; }
.score {
  font-family: var(--mw-font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mw-ink-mid);
}
.share-btn, .report-btn {
  font-family: var(--mw-font-ui);
  font-size: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
}
.share-btn { color: var(--mw-oak); }
.report-btn { color: var(--mw-ink-light); }
.report-btn:hover { color: var(--mw-hibiscus); }

/* Vote buttons + chips */
.votes { display: flex; gap: 10px; margin-top: 14px; }
.vote {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mw-font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--mw-ink);
  background: var(--mw-paper);
  border: 1.5px solid var(--mw-paper-shade);
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.vote:hover { border-color: var(--mw-millstone); }
.vote .chip {
  font-family: var(--mw-font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 22px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
}
.vote.akodin .chip { background: var(--mw-cyan); color: var(--mw-ink-sepia); }
.vote.akongako .chip { background: var(--mw-hibiscus); color: #fff; }

/* Active (your current) vote — tap again to cancel, or tap the other to switch. */
.vote.akodin.voted { border-color: var(--mw-cyan); background: var(--mw-cyan-whisper); }
.vote.akongako.voted { border-color: var(--mw-hibiscus); background: var(--mw-hibiscus-whisper); }
.vote.busy { opacity: 0.7; cursor: progress; }

/* ---------- States ---------- */
.empty, .loading {
  text-align: center;
  padding: 40px 12px;
}
.empty h3 {
  font-family: var(--mw-font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--mw-ink);
  margin-bottom: 10px;
}
.empty p, .loading p {
  font-family: var(--mw-font-serif);
  font-size: 1.1rem;
  color: var(--mw-ink-mid);
  max-width: 32ch;
  margin: 0 auto;
}
.load-more {
  display: block;
  margin: 8px auto 0;
  font-family: var(--mw-font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  background: none;
  border: 1.5px solid var(--mw-paper-shade);
  border-radius: 999px;
  color: var(--mw-ink-mid);
  padding: 9px 18px;
  cursor: pointer;
}

/* Single-post (share) view banner */
.back-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mw-font-ui);
  font-size: 0.9rem;
  color: var(--mw-oak);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  margin: 36px auto 28px;
  text-align: center;
  font-family: var(--mw-font-ui);
  font-size: 0.78rem;
  color: var(--mw-ink-light);
  line-height: 1.8;
}
.site-footer a { color: var(--mw-oak); text-decoration: none; }
.site-footer .dot { opacity: 0.5; padding: 0 6px; }

/* ---------- Document pages (guidelines / privacy) ---------- */
.doc { max-width: 640px; margin: 0 auto; padding: 8px 20px 60px; }
.doc .doc-back {
  display: inline-block; margin: 16px 0 8px;
  font-family: var(--mw-font-ui); font-size: 0.85rem; color: var(--mw-oak); text-decoration: none;
}
.doc h1 {
  font-family: var(--mw-font-display); font-weight: 900; font-size: clamp(1.8rem, 7vw, 2.4rem);
  color: var(--mw-ink); margin: 8px 0 4px; letter-spacing: -0.02em;
}
.doc .updated { font-family: var(--mw-font-ui); font-size: 0.8rem; color: var(--mw-ink-light); margin-bottom: 20px; }
.doc h2 {
  font-family: var(--mw-font-ui); font-weight: 800; font-size: 1.15rem;
  color: var(--mw-ink); margin: 26px 0 8px;
}
.doc p, .doc li {
  font-family: var(--mw-font-serif); font-size: 1.12rem; line-height: 1.6; color: var(--mw-ink-sepia);
}
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--mw-ink); }
.doc a { color: var(--mw-oak); }
.doc .lead { font-size: 1.2rem; }
.doc .care {
  background: var(--mw-paper-warm); border: 1px solid var(--mw-paper-shade);
  border-left: 3px solid var(--mw-hibiscus); border-radius: 12px; padding: 16px 18px; margin: 16px 0;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--mw-ink);
  color: var(--mw-paper);
  font-family: var(--mw-font-ui);
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Hamburger + mobile sticky header ---------- */
.hamburger {
  display: none;
  width: 40px; height: 36px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--mw-paper-warm);
  border: 1.5px solid var(--mw-paper-shade);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--mw-ink); border-radius: 2px; }

@media (max-width: 640px) {
  .site-header {
    position: sticky; top: 0; z-index: 30;
    background: var(--alb-bg); /* match the oat page surface */
    padding-top: 8px;
  }
  .header-row { padding: 4px 0; }

  /* TikTok-ish cadence on phones: each swipe-up gently settles the next card under the sticky
     header. proximity (not mandatory) so scrolling the composer/intro at the top stays free. */
  html { scroll-snap-type: y proximity; scroll-padding-top: 64px; }
  .card { scroll-snap-align: start; scroll-margin-top: 8px; }

  /* Scroll-collapse nav: at the top of the page the sort toggle + topic chips + nav links
     show inline above the fold and the hamburger is hidden. Search lives in the hamburger
     popup (not inline). Once .collapsed is set (app.js, after ~60px scroll) the inline
     controls hide and the hamburger appears; app.js moves sort/topic/nav (+ search) into it. */
  .hamburger { display: none; }
  .site-header.collapsed .hamburger { display: flex; }
  .header-search { display: none; }
  .topnav { display: flex; }
  .site-header.collapsed .topnav { display: none; }
  #controls { display: flex; }
  #topicsHome { display: block; }

  /* The popup itself (shown when app.js clears [hidden]). */
  .menu-overlay:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(40, 25, 15, 0.45);
    z-index: 60;
  }
  .menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100%;
    background: var(--mw-paper);
    box-shadow: -6px 0 26px rgba(40, 25, 15, 0.32);
    padding: 16px 18px 36px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .menu-close {
    align-self: flex-end;
    font-size: 1.25rem;
    line-height: 1;
    background: none;
    border: none;
    color: var(--mw-ink);
    cursor: pointer;
    padding: 4px 6px;
  }
  .menu-label {
    font-family: var(--mw-font-ui);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mw-ink-light);
    margin-top: 14px;
    margin-bottom: 2px;
  }
  /* "See results" button under the search — closes the popup to reveal the live results. */
  .menu-search-done {
    margin-top: 8px;
    align-self: flex-start;
    font-family: var(--mw-font-ui);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--mw-oak);
    background: none;
    border: 1.5px solid var(--mw-paper-shade);
    border-radius: 999px;
    padding: 6px 16px;
    cursor: pointer;
  }

  /* The moved controls, now living inside the panel. */
  .menu-panel .header-search { display: block; width: 100%; max-width: none; margin: 0; }
  .menu-panel #controls { display: flex; margin: 0; }
  .menu-panel #topics { display: flex; margin: 0; }
  .menu-panel .topnav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 18px 0 0;
  }
  .menu-panel .topnav .account { margin-left: 0; }
}

/* ---------- Sticky bottom CTA ribbon ---------- */
body.with-ribbon { padding-bottom: 84px; }
body.with-ribbon .toast { bottom: 96px; }
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: var(--mw-ink);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(40, 25, 15, 0.25);
}
.sticky-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sticky-cta p {
  font-family: var(--mw-font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mw-paper);
}
.sticky-cta .btn-primary {
  margin-left: auto;
  white-space: nowrap;
  background: var(--mw-hibiscus);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
}

/* ---------- Share sheet (client-side card) ---------- */
.share-overlay { display: none; }
.share-overlay:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 70;
  align-items: flex-end;
  justify-content: center;
  background: rgba(40, 25, 15, 0.55);
}
.share-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--mw-paper);
  border-radius: 20px 20px 0 0;
  padding: 22px 20px 28px;
  max-height: 92vh;
  overflow: auto;
  animation: sheet-up 0.25s ease;
}
@keyframes sheet-up {
  from { transform: translateY(40px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.share-sheet h3 {
  font-family: var(--mw-font-ui);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--mw-ink);
  margin-bottom: 3px;
}
.share-sheet .share-sub {
  font-family: var(--mw-font-ui);
  font-size: 0.8rem;
  color: var(--mw-ink-light);
  margin-bottom: 16px;
}
.share-close {
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--mw-font-ui);
  font-size: 1.6rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--mw-ink-light);
  cursor: pointer;
}

.preview-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.sharecard {
  width: 270px;
  position: relative;
  overflow: hidden;
  background: var(--mw-paper);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(60, 40, 25, 0.25);
}
.sharecard.ratio916 { aspect-ratio: 9 / 16; }
.sc-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background-image: radial-gradient(circle at 20% 20%, rgba(140, 100, 60, 0.07) 0%, transparent 55%);
}
.sc-top {
  font-family: var(--mw-font-ui);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--mw-ink);
  letter-spacing: -0.02em;
}
.sc-q {
  font-family: var(--mw-font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--mw-ink-light);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sc-body { flex: 1; display: flex; align-items: center; }
.sc-conf {
  font-family: var(--mw-font-serif);
  font-size: 1.25rem;
  line-height: 1.42;
  color: var(--mw-ink-sepia);
}
.sc-foot { margin-top: auto; }
.sc-chips { display: flex; gap: 7px; margin-bottom: 12px; }
.sc-chip {
  font-family: var(--mw-font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.sc-chip.din { background: var(--mw-cyan); color: var(--mw-ink-sepia); }
.sc-chip.ako { background: var(--mw-hibiscus); color: #fff; }
.sc-url {
  font-family: var(--mw-font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mw-ink-mid);
  background: var(--mw-paper-shade);
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 0.2px;
  margin-bottom: 9px;
}
.sc-url b { font-weight: 900; color: var(--mw-ink); font-size: 0.8rem; letter-spacing: -0.01em; }
.sc-tag {
  font-family: var(--mw-font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--mw-ink-light);
  text-align: center;
}
.sc-flag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: var(--mw-hibiscus);
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.share-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mw-font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mw-ink-mid);
}
.share-ico {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.share-ico svg { width: 26px; height: 26px; }
.ico-save { background: var(--mw-oak); }
.ico-ig { background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF); }
.ico-tt { background: #000; }
.ico-fb { background: #1877F2; }
.ico-x { background: #000; }
.ico-copy { background: var(--mw-millstone); }
.sheet-note {
  font-family: var(--mw-font-ui);
  font-size: 0.68rem;
  color: var(--mw-ink-light);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* Text inputs share the bright card surface so they read as clean, light fields
   (Mig, 2026-06-14) — instead of the darker paper wells they used before. */
.header-search,
.composer textarea,
.composer .login-row input,
.composer .full-input,
.opt-grid select,
.opt-grid input,
.search-bar input {
  background: var(--alb-card);
}
