/* answers-widget.css — styles for partials/answers-widget.ejs
   Namespaced .aw-*. Uses the global --rd-* / --font-* tokens from ouma-shared.css, with literal fallbacks. */

.aw {
  --aw-teal: var(--rd-teal, #0D3A38);
  --aw-accent: var(--rd-accent, #23B1A6);
  --aw-body: var(--rd-body, #33514E);
  --aw-terracotta: var(--rd-terracotta, #C4836A);
  --aw-cream: var(--rd-cream, #FBF8F5);
  --aw-hair: rgba(13, 58, 56, 0.1);
  --aw-serif: var(--font-serif, 'Lora', Georgia, serif);
  --aw-sans: var(--font-sans, 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif);
  box-sizing: border-box;
  font-family: var(--aw-sans);
  color: var(--aw-body);
}
.aw *, .aw *::before, .aw *::after { box-sizing: border-box; }
/* Reset at (0,1,1) so it beats global element styles; margin-bearing rules below are written at (0,2,0) to beat the reset. */
.aw p, .aw h2, .aw h3, .aw ul { margin: 0; }
.aw a { text-decoration: none; }

.aw .aw-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aw-terracotta); margin-bottom: 0.9rem; }
.aw .aw-label   { font-size: 0.7rem;  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aw-teal); margin-bottom: 0.5rem; }

/* ---------- Shelf (1160 max) ---------- */
.aw-shelf {
  position: relative; z-index: 2;
  width: calc(100% - 2.5rem); max-width: 1160px; margin: 5.5rem auto;
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: #fff; border: 1px solid var(--aw-hair); border-radius: 24px; overflow: hidden;
  box-shadow: var(--rd-shadow-soft, 0 40px 90px -30px rgba(13, 58, 56, 0.22));
}
/* Hanging-card placement: the widget is the last child of a ground with display:flow-root,
   and the NEXT ground needs padding-top >= 150px + breathing room (e.g. 246px). */
.aw-shelf.aw--hang { margin: 5.5rem auto calc(var(--rd-overhang, 150px) * -1); }

.aw-shelf__main { position: relative; overflow: hidden; background: var(--aw-cream); padding: 3rem 3.25rem; }
.aw-shelf__body { position: relative; display: flex; flex-direction: column; height: 100%; }
.aw-orb, .aw-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.aw-orb  { right: -80px; bottom: -110px; width: 260px; height: 260px;
           background: radial-gradient(circle at 38% 38%, rgba(200,234,228,0.9) 0%, rgba(200,234,228,0.35) 55%, transparent 100%); }
.aw-ring { right: -40px; bottom: -150px; width: 300px; height: 300px; border: 1.5px solid rgba(35,177,166,0.35); }

.aw-shelf .aw-q { font-family: var(--aw-serif); font-size: 1.875rem; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; color: var(--aw-teal); margin-bottom: 1.4rem; }
.aw .aw-short { font-family: var(--aw-serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--aw-teal); max-width: 32.5rem; margin-bottom: 2rem; }
.aw .aw-short em { color: var(--aw-terracotta); }
.aw-foot { display: flex; align-items: center; gap: 1.1rem; margin-top: auto; }
.aw-cta {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.85rem 1.65rem; border-radius: 100px;
  background: var(--aw-teal); color: #fff; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.aw-cta:hover { background: #155755; transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(13,58,56,0.45); color: #fff; }
.aw-cta span { transition: transform 0.25s; }
.aw-cta:hover span { transform: translateX(3px); }
.aw-byline { font-size: 0.82rem; line-height: 1.45; color: var(--aw-body); }
.aw-byline strong { font-weight: 600; color: var(--aw-teal); }

.aw-shelf__side { padding: 3rem 3rem 2.5rem; display: flex; flex-direction: column; }
.aw-shelf__side > .aw-label { margin-bottom: 0.9rem; }
.aw-rel { list-style: none; padding: 0; }
.aw-rel__link { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 0; border-top: 1px solid var(--aw-hair); color: var(--aw-teal); }
.aw-rel__text { flex-grow: 1; }
.aw-rel__aud { display: block; font-size: 0.69rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aw-body); margin-bottom: 0.4rem; }
.aw-rel__q { font-family: var(--aw-serif); font-size: 1.2rem; line-height: 1.35; font-weight: 500; color: var(--aw-teal); }
.aw-arr { flex-shrink: 0; font-size: 1.1rem; color: var(--aw-accent); transition: transform 0.25s, color 0.25s; }
.aw-rel__link .aw-arr { padding-top: 1.1rem; }
.aw-rel__link:hover .aw-rel__q { text-decoration: underline; text-decoration-color: var(--aw-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.aw-rel__link:hover .aw-arr, .aw-all:hover .aw-arr { transform: translateX(3px); color: var(--aw-teal); }
.aw-all { margin-top: auto; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-top: 1.25rem; border-top: 1px solid var(--aw-hair); font-size: 0.9rem; font-weight: 600; color: var(--aw-teal); }
.aw-num { font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .aw-shelf { grid-template-columns: 1fr; }
  .aw-shelf__side { padding-top: 1.5rem; }
  .aw-rel__link .aw-arr { padding-top: 1.2rem; }
}
@media (max-width: 600px) {
  .aw-shelf { width: calc(100% - 2rem); margin: 3rem auto; border-radius: 22px; }
  .aw-shelf.aw--hang { margin: 3rem auto calc(var(--rd-overhang, 150px) * -1); }
  .aw-shelf__main { padding: 1.75rem 1.4rem 1.6rem; }
  .aw-orb, .aw-ring { display: none; }
  .aw-shelf .aw-q { font-size: 1.5rem; margin-bottom: 1rem; }
  .aw .aw-short { font-size: 1.125rem; margin-bottom: 1.4rem; }
  .aw-foot { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .aw-cta { justify-content: center; min-height: 48px; }
  .aw-byline br { display: none; }
  .aw-shelf__side { padding: 1.25rem 1.4rem 0.4rem; }
  .aw-rel__link { padding: 1rem 0; }
  .aw-rel__q { font-size: 1.06rem; }
  .aw-all { min-height: 52px; padding-top: 0; }
}

/* ---------- Inline card (sits inside a section, max 520) ---------- */
.aw-inline {
  position: relative; max-width: 520px; padding: 2.25rem 2.25rem 1.9rem; overflow: hidden;
  background: #fff; border: 1px solid var(--aw-hair); border-radius: 20px;
  box-shadow: var(--ouma-shadow-md, 0 2px 12px rgba(0,0,0,0.06));
  display: flex; flex-direction: column;
}
.aw-inline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #23B1A6 0%, #C8EAE4 55%, #E8C4B8 100%); }
.aw-inline__top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.aw-inline__top .aw-eyebrow { margin-bottom: 0; }
.aw-rule { height: 1px; flex-grow: 1; background: var(--aw-hair); }
.aw-inline .aw-q { font-family: var(--aw-serif); font-size: 1.45rem; line-height: 1.25; font-weight: 600; color: var(--aw-teal); margin-bottom: 0.75rem; }
.aw-dek { font-size: 0.97rem; line-height: 1.65; color: var(--aw-body); }
.aw-inline__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.aw-link { font-size: 0.9rem; font-weight: 600; color: var(--aw-teal); border-bottom: 1.5px solid var(--aw-accent); padding: 0.5rem 0 2px; }
.aw-link:hover { color: var(--aw-accent); }
.aw-muted { font-size: 0.85rem; color: var(--aw-body); padding: 0.5rem 0; }
.aw-muted:hover { color: var(--aw-teal); }
@media (max-width: 600px) { .aw-inline { padding: 1.75rem 1.4rem 1.4rem; } .aw-inline .aw-q { font-size: 1.3rem; } }
