/* ============================================
   Groundwork Labs — Main Stylesheet
   groundworklabs.net
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  --parchment: #FCF6F1;
  --coffee: #1E1002;
  --teal: #006960;
  --steel: #7EB5C4;
  --warm: #EDE4DA;
  --coffee-faint: rgba(30,16,2,0.08);
  --teal-light: rgba(0,105,96,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'IBM Plex Sans', system-ui, sans-serif; background: var(--parchment); color: var(--coffee); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }

.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 0.5rem; }
.eyebrow-light { color: var(--steel); }
.section { padding: 1.75rem 1.25rem; }
.section-dark { background: var(--coffee); color: var(--parchment); padding: 1.75rem 1.25rem; }
.section-warm { background: var(--warm); padding: 1.75rem 1.25rem; }
.lede { font-family: 'Fraunces', Georgia, serif; font-size: 1.08rem; line-height: 1.58; font-weight: 400; font-variation-settings: "opsz" 40; }
.lede-light { color: rgba(252,246,241,0.82); }
.quote-mark { font-family: 'Fraunces', Georgia, serif; font-size: 2.8rem; line-height: 0.7; color: rgba(126,181,196,0.18); display: block; margin-bottom: -0.35rem; }
.muted { font-size: 0.82rem; color: rgba(30,16,2,0.52); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.cards-grid { display: grid; gap: 1rem; }

/* HEADER */
.header { background: var(--parchment); border-bottom: 1.5px solid rgba(30,16,2,0.12); padding: 0 1.25rem; height: 52px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.header-left { display: flex; align-items: center; gap: 0.5rem; }
.gl-logo { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }
.wordmark { font-family: 'Fraunces', Georgia, serif; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--coffee); font-variation-settings: "opsz" 72; }
.desktop-nav { display: none; gap: 1.5rem; align-items: center; }
.desktop-nav a { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(30,16,2,0.42); cursor: pointer; transition: color 0.15s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--teal); }
.hamburger { display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 6px; -webkit-tap-highlight-color: transparent; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--coffee); }

/* MOBILE MENU */
.mobile-menu { background: var(--parchment); border-bottom: 1.5px solid rgba(30,16,2,0.1); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.mobile-menu.open { max-height: 220px; }
.mobile-menu a { display: block; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(30,16,2,0.52); cursor: pointer; padding: 0.6rem 1.25rem; border-bottom: 1px solid var(--coffee-faint); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--teal); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0.45rem 1.15rem; font-family: 'IBM Plex Sans', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em; border-radius: 2px; cursor: pointer; transition: 0.15s; border: 1.5px solid transparent; -webkit-tap-highlight-color: transparent; }
.btn-primary { background: var(--teal); color: var(--parchment); border-color: var(--teal); box-shadow: 2px 2px 0 var(--coffee); }
.btn-primary:hover { box-shadow: 1px 1px 0 var(--coffee); transform: translate(1px,1px); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-sm { min-height: 32px; padding: 0.3rem 0.85rem; font-size: 0.75rem; }
.btn-ghost { background: transparent; color: rgba(30,16,2,0.38); border-color: rgba(30,16,2,0.18); }

/* CARD */
.doc-card { background: var(--parchment); border: 1.5px solid var(--coffee); border-radius: 1px; position: relative; box-shadow: 3px 3px 0 rgba(0,105,96,0.14); overflow: hidden; }
.doc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--teal); z-index: 2; }
.card-body { padding: 0.9rem 1rem 0.85rem; }
.card-body-border { border-bottom: 1px solid rgba(30,16,2,0.09); }
.card-top-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.card-copy { flex: 1; min-width: 0; }
.card-meta { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.32rem; flex-wrap: wrap; }
.card-id { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: rgba(30,16,2,0.27); letter-spacing: 0.1em; }
.cat-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(0,105,96,0.75); background: rgba(0,105,96,0.08); border: 1px solid rgba(0,105,96,0.17); border-radius: 2px; padding: 1px 5px; }
.cat-tag-muted { color: rgba(30,16,2,0.4); background: rgba(30,16,2,0.05); border-color: rgba(30,16,2,0.12); }
.card-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.26rem; font-variation-settings: "opsz" 72; line-height: 1.1; }
.card-desc { font-size: 0.85rem; color: rgba(30,16,2,0.55); line-height: 1.55; }

/* THUMBNAIL */
.thumb-col { flex: 0 0 74px; }
.thumb-wrap { width: 74px; height: 92px; border: 1px solid rgba(30,16,2,0.13); border-radius: 1px; overflow: hidden; background: var(--warm); position: relative; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--warm); color: rgba(30,16,2,0.28); font-family: 'Fraunces', Georgia, serif; font-size: 1rem; }
.thumb-fold { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent var(--parchment) transparent transparent; z-index: 3; }
.thumb-fold-sh { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent rgba(30,16,2,0.13) transparent transparent; z-index: 2; }

/* ASSET PILLS */
.asset-pills { display: flex; flex-direction: column; gap: 3px; margin-top: 0.32rem; }
.asset-pill { font-family: 'IBM Plex Mono', monospace; font-size: 9px; font-weight: 500; color: var(--teal); background: rgba(0,105,96,0.07); border: 1px solid rgba(0,105,96,0.16); border-radius: 2px; padding: 1px 4px; letter-spacing: 0.03em; white-space: nowrap; display: inline-block; }
.asset-pill-blue { color: #4a7c9e; background: rgba(126,181,196,0.09); border-color: rgba(126,181,196,0.24); }

/* RULED LINES */
.ruled-lines { display: grid; gap: 4px; margin: 0.7rem 0 0.75rem; }
.ruled { height: 1px; background: rgba(30,16,2,0.08); }
.ruled-teal { background: rgba(0,105,96,0.22); }

/* DEV BARS — all steel blue, consistent */
.dev-heading { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(30,16,2,0.3); margin-bottom: 0.25rem; }
.dev-sub { font-size: 0.75rem; color: rgba(30,16,2,0.34); margin-bottom: 0.45rem; font-style: italic; }
.dev-levels { display: grid; gap: 0.38rem; }
.dev-row { display: flex; align-items: center; gap: 0.5rem; }
.dev-lbl { font-size: 0.8rem; font-weight: 500; color: rgba(30,16,2,0.58); min-width: 100px; flex: 0 0 100px; }
.bar { display: flex; gap: 2.5px; }
.bar-seg { display: block; width: 10px; height: 3px; border-radius: 1px; background: rgba(30,16,2,0.09); }
.bar-seg.on { background: var(--steel); }
.dev-note { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: rgba(30,16,2,0.28); margin-left: auto; white-space: nowrap; }

/* VOTE */
.vote-bar { padding: 0.65rem 1rem; border-top: 1px solid rgba(30,16,2,0.08); }
.vote-q { font-size: 0.82rem; color: rgba(30,16,2,0.5); margin-bottom: 0.4rem; line-height: 1.4; }
.vote-q strong { font-weight: 600; color: var(--coffee); }
.vote-btns { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.vbtn { font-size: 0.78rem; font-weight: 600; padding: 0.24rem 0.55rem; border-radius: 2px; cursor: pointer; border: 1.5px solid; letter-spacing: 0.02em; white-space: nowrap; transition: 0.15s; -webkit-tap-highlight-color: transparent; }
.vbtn-yes { color: var(--teal); border-color: rgba(0,105,96,0.38); background: transparent; }
.vbtn-yes.voted { background: var(--teal); color: var(--parchment); border-color: var(--teal); }
.vbtn-nr, .vbtn-no { color: rgba(30,16,2,0.4); border-color: rgba(30,16,2,0.18); background: transparent; }
.vbtn-nr.voted, .vbtn-no.voted { background: rgba(30,16,2,0.06); color: var(--coffee); border-color: rgba(30,16,2,0.28); }
.vote-foot { margin-top: 0.4rem; display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.vote-first { font-size: 0.78rem; color: rgba(30,16,2,0.34); font-style: italic; }
.fb-link { display: inline-flex; align-items: center; gap: 3px; font-size: 0.78rem; font-weight: 600; color: var(--teal); opacity: 0.65; cursor: pointer; }
.vote-count { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--teal); }
.why-input { margin-top: 0.4rem; display: none; }
.why-input input { width: 100%; background: rgba(126,181,196,0.12); border: 1.5px solid rgba(126,181,196,0.35); border-radius: 2px; padding: 0.35rem 0.6rem; font-size: 0.72rem; font-family: 'IBM Plex Sans', sans-serif; color: var(--coffee); }
.why-input input::placeholder { color: rgba(30,16,2,0.36); }

/* CARD FOOTER */
.card-foot { padding: 0.7rem 1rem; display: flex; align-items: center; gap: 0.75rem; border-top: 1px solid rgba(30,16,2,0.08); }
.price-big { font-family: 'Fraunces', Georgia, serif; font-size: 1.7rem; font-weight: 600; color: var(--teal); letter-spacing: -0.02em; line-height: 1; font-variation-settings: "opsz" 72; }
.price-coming { font-family: 'Fraunces', Georgia, serif; font-size: 0.9rem; font-weight: 400; color: rgba(30,16,2,0.35); font-style: italic; font-variation-settings: "opsz" 40; }
.phase-link { display: block; margin-top: 3px; font-size: 0.78rem; font-weight: 600; color: var(--teal); text-decoration: underline; text-decoration-color: rgba(0,105,96,0.26); cursor: pointer; }
.phase-link-muted { color: rgba(30,16,2,0.35); text-decoration-color: rgba(30,16,2,0.15); }

/* PHASE TABS */
.phase-section { background: var(--warm); border-bottom: 1px solid rgba(30,16,2,0.1); }
.phase-tab-bar { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1.5px solid rgba(30,16,2,0.1); }
.phase-tab-bar::-webkit-scrollbar { display: none; }
.ptab { flex: 1; min-width: 64px; padding: 0.6rem 0.4rem; text-align: center; cursor: pointer; border-bottom: 2.5px solid transparent; transition: 0.15s; -webkit-tap-highlight-color: transparent; }
.ptab-num { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; color: rgba(30,16,2,0.3); display: block; letter-spacing: 0.06em; }
.ptab-name { font-size: 0.88rem; font-weight: 600; color: rgba(30,16,2,0.42); display: block; white-space: nowrap; }
.ptab.active .ptab-num { color: var(--teal); }
.ptab.active .ptab-name { color: var(--coffee); }
.ptab.active { border-bottom-color: var(--teal); background: rgba(0,105,96,0.04); }
.phase-panel { padding: 1rem 1.25rem 1.25rem; display: none; }
.phase-panel.active { display: block; }
.phase-head { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.phase-desc { font-size: 0.92rem; color: rgba(30,16,2,0.56); line-height: 1.6; margin-bottom: 0.7rem; }
.phase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.phase-col-head { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(30,16,2,0.32); margin-bottom: 0.28rem; }
.phase-item { font-size: 0.88rem; color: rgba(30,16,2,0.6); line-height: 1.55; padding-left: 0.8rem; position: relative; margin-bottom: 0.1rem; }
.phase-item::before { content: "·"; position: absolute; left: 0; color: var(--teal); }
.phase-item-next::before { content: "→"; color: var(--steel); }

/* FOOTER */
.footer { background: var(--coffee); color: var(--parchment); padding: 1.5rem 1.25rem 1.25rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; padding-bottom: 0.9rem; border-bottom: 1px solid rgba(252,246,241,0.09); }
.footer-brand { display: flex; align-items: center; gap: 0.45rem; }
.footer-wordmark { font-family: 'Fraunces', Georgia, serif; font-size: 0.88rem; font-weight: 600; color: var(--parchment); font-variation-settings: "opsz" 72; }
.gl-logo-footer { width: 22px; height: 22px; border-radius: 3px; object-fit: cover; opacity: 0.8; }
.footer-socials { display: flex; gap: 0.8rem; align-items: center; }
.footer-socials a { color: rgba(252,246,241,0.38); cursor: pointer; transition: color 0.15s; }
.footer-socials a:hover { color: var(--steel); }
.footer-domain { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: rgba(252,246,241,0.2); display: block; margin-bottom: 0.6rem; }
.footer-nav { display: flex; gap: 1rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.73rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(252,246,241,0.38); cursor: pointer; transition: color 0.15s; }
.footer-nav a:hover { color: var(--parchment); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; }
.footer-tagline { font-family: 'Fraunces', Georgia, serif; font-size: 0.82rem; color: rgba(252,246,241,0.22); font-variation-settings: "opsz" 40; font-style: italic; }
.footer-admin { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(252,246,241,0.15); cursor: pointer; }

/* ABOUT */
.founder-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(30,16,2,0.08); }
.founder-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(0,105,96,0.2); flex-shrink: 0; }
.founder-name { font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; margin-bottom: 0.15rem; }
.founder-title { font-size: 0.78rem; color: rgba(30,16,2,0.55); }
.founder-meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: rgba(30,16,2,0.32); margin-top: 0.2rem; }

/* CONTACT FORM */
.contact-form { display: grid; gap: 0.75rem; }
.form-field label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(30,16,2,0.55); margin-bottom: 0.3rem; text-transform: uppercase; }
.form-field input, .form-field select, .form-field textarea { width: 100%; background: rgba(126,181,196,0.1); border: 1.5px solid rgba(126,181,196,0.32); border-radius: 2px; padding: 0.5rem 0.75rem; font-size: 0.82rem; font-family: 'IBM Plex Sans', sans-serif; color: var(--coffee); transition: border-color 0.15s; -webkit-appearance: none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--teal); }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(30,16,2,0.35); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231E1002' fill-opacity='.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }

.discount-block { background: rgba(0,105,96,0.05); border: 1px solid rgba(0,105,96,0.15); border-left: 3px solid var(--teal); border-radius: 1px; padding: 0.85rem 1rem; margin-bottom: 1.25rem; }
.discount-block p { font-size: 0.8rem; color: rgba(30,16,2,0.62); line-height: 1.6; }

/* RESPONSIVE */
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
  .section, .section-dark, .section-warm { padding: 2.5rem 2rem; }
  .founder-block { padding: 2rem; gap: 0.75rem; }
  .founder-avatar { width: 88px; height: 88px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.4rem; }
}

/* ── Centered layout wrapper ── */
.inner {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ── Desktop media query additions ── */
@media (min-width: 768px) {
  .inner {
    max-width: 860px;
  }
}

/* ── Hero h1 — use IBM Plex Sans not Fraunces ── */
.hero-headline {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 3.2rem;
  }
}

/* ── Global section centering ── */
.section, .section-dark, .section-warm {
  text-align: center;
}
.inner {
  text-align: center;
}
.eyebrow {
  text-align: center;
}
.btn-row {
  justify-content: center;
}

/* ── Cards grid — side by side centered ── */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.doc-card {
  flex: 0 0 calc(50% - 0.625rem);
  max-width: 520px;
  min-width: 300px;
}
.doc-card.card-full {
  flex: 0 0 min(680px, 100%);
  max-width: 680px;
}
.doc-card.card-home {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  width: 100%;
}

/* Keep card internals left-aligned ── */
.doc-card,
.card-body,
.card-top-row,
.card-copy,
.card-meta,
.card-title,
.card-desc,
.dev-levels,
.dev-row,
.vote-bar,
.vote-q,
.vote-btns,
.vote-foot,
.card-foot,
.asset-pills {
  text-align: left;
}

/* Hero text centered */
.hero-headline {
  text-align: center;
}
.lede {
  text-align: center;
}

/* Footer centered */
.footer-nav {
  justify-content: flex-start;
}
.footer-bottom {
  justify-content: space-between;
}

/* Mobile: cards stack */
@media (max-width: 640px) {
  .doc-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* ── Effort levels two-column ── */
.dev-levels-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
}
@media (max-width: 480px) {
  .dev-levels-2col {
    grid-template-columns: 1fr;
  }
}

/* ── In Progress cards — compact ── */
.card-slim .card-body {
  padding: 0.75rem 1rem;
}
.card-slim .card-title {
  font-size: 1rem;
}
.card-slim .card-desc {
  font-size: 0.8rem;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-slim .thumb-wrap {
  width: 56px;
  height: 70px;
}

/* ── Section subheads ── */
.section-subhead {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
}
.section-divider {
  border: none;
  border-top: 1px solid rgba(30,16,2,0.1);
  margin: 2rem 0 1.5rem;
}

/* ── Site link pill ── */
.site-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--teal);
  background: rgba(0,105,96,0.07);
  border: 1px solid rgba(0,105,96,0.2);
  border-radius: 2px;
  padding: 2px 6px;
  text-decoration: none;
  margin-top: 0.35rem;
  transition: background 0.15s;
}
.site-link-pill:hover {
  background: rgba(0,105,96,0.14);
}

/* ── Contact section on home ── */
.contact-section {
  background: var(--warm);
  padding: 2.5rem 1.25rem;
  text-align: center;
}
@media (min-width: 768px) {
  .contact-section { padding: 3rem 2rem; }
}


/* ── 4-Quadrant card layout ── */
.card-4q {
  display: grid;
  grid-template-columns: 55% 45%;
  grid-template-rows: auto auto;
  border-bottom: 1px solid rgba(30,16,2,0.08);
  min-width: 0;
}
.q-top-left {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  border-right: 1px solid rgba(30,16,2,0.08);
  border-bottom: 1px solid rgba(30,16,2,0.08);
  min-width: 0;
}
.q-top-right {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  border-bottom: 1px solid rgba(30,16,2,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 0;
  overflow: visible;
}
.q-bottom-left {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  border-right: 1px solid rgba(30,16,2,0.08);
  min-width: 0;
}
.q-bottom-right {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  min-width: 0;
  overflow: visible;
}
/* Right column text — allow wrapping, no clip */
.q-top-right .thumb-wrap { width: 90px; height: auto; flex-shrink: 0; }
.q-bottom-right .vote-q { font-size: 0.82rem; margin-top: 0; line-height: 1.5; }
.q-bottom-right .vbtn { white-space: normal; text-align: left; }

/* Mobile: stack all four sections */
@media (max-width: 620px) {
  .card-4q { grid-template-columns: 1fr; }
  .q-top-left,
  .q-top-right,
  .q-bottom-left {
    border-right: none;
    border-bottom: 1px solid rgba(30,16,2,0.08);
  }
  .q-top-right { align-items: flex-start; }
}

/* card-home — full width of inner container */
.doc-card.card-home {
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%;
}
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
