/* Al Zeina residents' answers: look & feel of the Community Circles poster
   (dark teal, bold yellow headlines, mint accents, cream cards with coloured top stripes). */
:root {
  /* exact palette from Anna's Community Circles pptx (#D2H) */
  --teal-900: #0C2224; --teal-800: #0D4A4F; --teal-700: #145a5f; --teal-600: #1d6a6f; --line: #5A9F9D;
  --yellow: #FFC24B; --mint: #7FD1C7; --coral: #FF8A65; --sand: #F2D7A6; --cream: #F7F3EA; --ink: #0C2224; --muted: #BFD8D6;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
main { min-width: 0; }
body { overflow-x: hidden; background: var(--teal-800); color: #fff; font: 16px/1.55 'DM Sans', system-ui, sans-serif; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
/* Palm-beach photo from Anna's Community Circles pptx, fading into the page teal */
header.hero { background: linear-gradient(180deg, rgba(13,74,79,.05) 0%, rgba(13,74,79,.25) 45%, var(--teal-800) 100%),
  url('/static/palms.jpg') center 68% / cover no-repeat; padding: 26px 0 30px; margin-bottom: 8px; min-height: 230px; }
.hero-panel { background: rgba(13,74,79,.86); border-radius: 22px; padding: 18px 24px 22px; margin-top: 64px; max-width: 820px;
  box-shadow: 0 10px 30px rgba(12,34,36,.25); backdrop-filter: blur(2px); }
.hero-panel h1 { margin-top: 4px; }
header.hero.tall { min-height: 340px; }
.pill { display: inline-block; background: var(--teal-900); color: #fff; border-radius: 999px; padding: 6px 16px;
  font: 700 12px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: .28em; text-transform: uppercase; text-decoration: none; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -.02em; margin: 0; }
h1 { color: var(--yellow); font-weight: 800; font-size: clamp(34px, 6vw, 58px); line-height: 1.02; margin: 14px 0 8px; }
.lead { color: #e3f1ee; margin: 0 0 18px; max-width: 720px; }
form.search { display: flex; gap: 8px; max-width: 760px; }
form.search input { flex: 1; min-width: 0; border: 2px solid var(--line); background: var(--teal-900); color: #fff; border-radius: 999px;
  padding: 14px 20px; font: inherit; font-size: 17px; outline: none; }
form.search input:focus { border-color: var(--yellow); }
button, .btn { background: var(--yellow); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 22px;
  font: 700 16px 'Plus Jakarta Sans', sans-serif; cursor: pointer; text-decoration: none; display: inline-block; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding: 10px 0 60px; }
nav.topics { position: sticky; top: 16px; align-self: start; background: var(--teal-700); border: 1px solid rgba(90,159,157,.5);
  border-radius: var(--radius); padding: 14px; }
nav.topics h3 { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--mint); margin: 4px 8px 10px; }
nav.topics a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: #e9f4f2; }
nav.topics a:hover { background: var(--teal-600); }
nav.topics a.on { background: var(--yellow); color: var(--ink); font-weight: 700; }
nav.topics .n { margin-left: auto; font-size: 13px; opacity: .7; }
.meta { color: var(--muted); font-size: 14px; }
.result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.result h2, .result .snip, .card.q h2 { overflow-wrap: anywhere; }
.result h2 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.result h2 a { color: var(--yellow); text-decoration: none; }
.result h2 a:hover { text-decoration: underline; }
.result .snip { margin: 6px 0 4px; color: #e6f2ef; }
mark { background: rgba(246,196,69,.28); color: #fff; border-radius: 4px; padding: 0 2px; }
.chip { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--teal-900); color: var(--mint); margin-right: 6px; text-decoration: none; }
.card { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--mint); }
.card.q::before { background: var(--yellow); }
.card.q { margin-bottom: 18px; }
.card.q h2 { font-size: 22px; line-height: 1.35; font-weight: 700; white-space: pre-wrap; }
.card .when { color: #4d6966; font-size: 14px; margin-top: 6px; }
.answers { display: grid; gap: 12px; }
.answer { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.answer:nth-child(3n+2)::before { background: var(--coral); }
.answer:nth-child(3n)::before { background: var(--yellow); }
.answer .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.answer.top { outline: 3px solid var(--yellow); }
.badge { display: inline-block; background: var(--yellow); color: var(--ink); font: 700 12px 'Plus Jakarta Sans'; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.votes { display: flex; flex-direction: column; gap: 6px; }
.votes button { background: #fff; border: 2px solid #d9cfbd; color: var(--ink); padding: 6px 12px; font-size: 15px; min-width: 64px; }
.votes button.on { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 18px 0 30px; }
.tile { text-decoration: none; }
.tile .card { height: 100%; }
.tile b { display: block; font-family: 'Plus Jakarta Sans'; font-size: 17px; margin-top: 6px; }
.section-title { color: var(--yellow); font-size: 26px; font-weight: 800; margin: 8px 0 4px; }
.note { background: var(--teal-700); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; color: #dcebe8; font-size: 14px; }
.login { max-width: 460px; margin: -40px auto 80px; position: relative; }
.login .card { padding: 26px; }
.login label { display: block; font-weight: 700; margin: 6px 0; }
.login input { width: 100%; border: 2px solid #d9cfbd; border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 18px; margin-bottom: 14px; }
.err { background: #fde3dc; color: #7a2412; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.pager { display: flex; gap: 10px; margin-top: 20px; }
footer { color: var(--muted); font-size: 13px; padding: 30px 0 40px; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero-panel { margin-top: 90px; padding: 14px 16px 16px; }
  header.hero { padding-top: 16px; }
  nav.topics { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 10px; }
  nav.topics h3 { display: none; }
  nav.topics a { white-space: nowrap; flex: none; }
  nav.topics .n { display: none; }
  .answer { grid-template-columns: 1fr; }
  .votes { flex-direction: row; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile .card { padding: 14px; }
  .tile b { font-size: 15px; }
  .lead { font-size: 15px; }
}

.picked { color: #0D4A4F; font-weight: 700; }

/* Residents' guide (Anna's docx) */
.guide-hit { border-left: 5px solid var(--yellow); }
.card.guide h2 { margin: 8px 0 2px; }
.gbody { margin-top: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.gbody h3 { margin: 16px 0 4px; font-size: 1.05rem; }
.gbody p { margin: 6px 0; }
.gbody a { color: #0D4A4F; font-weight: 700; }
.gimg { display: block; max-width: 100%; max-height: 520px; border-radius: 12px; margin: 10px 0; box-shadow: 0 2px 10px rgba(12,34,36,.15); }

.chip.tag { background: transparent; border: 1px solid var(--mint); color: var(--mint); }
.card .chip.tag { color: #0D4A4F; border-color: #5A9F9D; }

/* link from Barry's WhatsApp preview to one answer (#a-<id>) */
.card.answer:target { outline: 4px solid var(--yellow); scroll-margin-top: 16px; }

/* "Resend code" under "Use another number" (Anna #299) */
.resend { margin: -10px 0 0; }
.linkbtn { background: none; border: 0; padding: 0; color: #4d6966; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; box-shadow: none; }

/* Q&A under a section (Anna #Z4A) */
.qa { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; overflow-wrap: anywhere; }
.qa h3 { margin: 0 0 6px; font-size: 1.05rem; }
.qa h3 a { color: var(--teal-800); text-decoration: none; }
blockquote.asked { margin: 6px 0 10px; padding: 6px 10px; border-left: 3px solid var(--mint); color: #4d6966; font-style: italic; background: rgba(127,209,199,.12); border-radius: 6px; }
.card.q blockquote.asked { color: #4d6966; }
.bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 8px 12px; margin: 6px 0; max-width: 92%; box-shadow: 0 1px 2px rgba(12,34,36,.12); white-space: pre-wrap; }
.bubble .when, blockquote.asked .when { display: block; font-size: 12px; color: #4d6966; margin-top: 2px; font-style: normal; }
.qa .rate { font-size: 13px; color: #4d6966; }
