/* ==========================================================================
   DINK DISTRICT — Court Theme · FAQ page styles
   (extends theme.css + product.css — tokens, type, buttons, .acc accordion, footer reused)
   ========================================================================== */

/* ---------- hero + search ---------- */
.fhero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff; border-radius: 32px;
  padding: clamp(32px, 5vw, 80px) clamp(24px, 4.6vw, 72px);
  display: grid; gap: 24px; justify-items: start;
}
.fhero::before { /* ball watermark (same motif as the newsletter band) */
  content: ""; position: absolute; z-index: -2; right: -140px; top: -170px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e9ff6a, var(--lime) 40%, #a9c516);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 0 13px, #000 14px) 0 0 / 46px 46px;
          mask: radial-gradient(circle at 50% 50%, transparent 0 13px, #000 14px) 0 0 / 46px 46px;
}
.fhero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--ink) 40%, rgba(10, 31, 28, .15)); }
.fhero .eyebrow { color: var(--lime); }
.fhero h1 { font-size: clamp(44px, 6vw, 92px); max-width: 12ch; }
.fhero h1 em { color: var(--lime); font-style: italic; font-weight: 850; display: block; }
.fhero > p { color: rgba(255, 255, 255, .76); max-width: 50ch; font-size: clamp(15px, 1.25vw, 17.5px); }
.fhero > * { animation: cardIn .8s var(--ease) both; }
.fhero > :nth-child(2) { animation-delay: .07s; }
.fhero > :nth-child(3) { animation-delay: .14s; }
.fhero > :nth-child(4) { animation-delay: .21s; }
.fhero > :nth-child(5) { animation-delay: .28s; }

.fsearch {
  width: min(640px, 100%); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 22px;
  background: var(--paper); color: var(--ink); border: 2px solid transparent; border-radius: 999px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); transition: border-color .25s, box-shadow .25s;
}
.fsearch:focus-within { border-color: var(--lime); box-shadow: 0 0 0 5px rgba(215, 242, 58, .35), 0 24px 50px -24px rgba(0, 0, 0, .6); }
.fsearch > .i { width: 22px; height: 22px; color: var(--ink-3); }
.fsearch input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; font: 600 17px var(--f-body); color: var(--ink); }
.fsearch input::placeholder { color: rgba(92, 108, 103, .8); font-weight: 500; }
.fsearch input::-webkit-search-cancel-button { display: none; }
.fsearch kbd { font: 700 12px var(--f-body); color: var(--muted); border: 1.5px solid var(--line); border-radius: 8px; padding: 3px 9px; margin-right: 6px; }
.fsearch:focus-within kbd, .fsearch.has-value kbd { display: none; }
.fsearch__clear { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: var(--cream); transition: background .25s; }
.fsearch__clear:hover { background: var(--lime); }
.fsearch__clear .i { width: 18px; height: 18px; stroke-width: 2.2; }
.fsearch.has-value .fsearch__clear { display: grid; }
.pop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 600 13px var(--f-body); color: rgba(255, 255, 255, .65); }
.pop button { height: 36px; padding: 0 15px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 700 13px var(--f-body); transition: all .25s var(--ease); }
.pop button:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: translateY(-2px); }

/* ---------- topic tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tile-c {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 18px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, background .3s;
}
.tile-c:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: var(--ink); }
.tile-c .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 14px; transition: background .3s, transform .45s var(--ease); }
.tile-c:hover .ico { background: var(--lime); transform: rotate(-8deg) scale(1.06); }
.tile-c .ico .i { width: 21px; height: 21px; }
.tile-c b { font: 800 15px/1.15 var(--f-display); font-stretch: 112%; letter-spacing: -.015em; text-transform: uppercase; }
.tile-c small { font: 600 12.5px var(--f-body); color: var(--muted); }
.tile-c.is-dim { opacity: .45; }

/* ---------- layout ---------- */
.fwrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fside { position: sticky; top: 96px; display: grid; gap: 16px; }
.fside h4 { font: 700 11px var(--f-display); font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 2px; }
.fnav { display: grid; gap: 2px; }
.fnav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 14px; font: 700 14px var(--f-body); transition: background .25s, color .25s, padding .3s var(--ease); }
.fnav a em { font: 800 11px var(--f-body); font-style: normal; min-width: 24px; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--cream-2); color: var(--ink-3); transition: background .25s, color .25s; }
.fnav a:hover { background: rgba(10, 31, 28, .06); padding-left: 18px; }
.fnav a.is-on { background: var(--ink); color: #fff; }
.fnav a.is-on em { background: var(--lime); color: var(--ink); }
.fnav a.is-dim { opacity: .4; }
.fhelp { padding: 22px; border-radius: var(--r-l); background: var(--lime); color: var(--ink); display: grid; gap: 10px; }
.fhelp b { font: 800 18px/1.1 var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.015em; }
.fhelp p { font-size: 13.5px; opacity: .8; }
.fhelp .btn { --bg: var(--ink); --fg: #fff; --bd: var(--ink); margin-top: 4px; }

.ftools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.fstatus { font-size: 14px; font-weight: 600; color: var(--muted); }
.fstatus b { color: var(--ink); font-weight: 800; }
.expand { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: 700 12.5px var(--f-display); font-stretch: 108%; letter-spacing: .06em; text-transform: uppercase; transition: border-color .25s; }
.expand:hover { border-color: var(--ink); }
.expand .i { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------- groups ---------- */
.qgroup { scroll-margin-top: 96px; padding-top: clamp(28px, 4vw, 48px); }
.qgroup[hidden] { display: none; }
.qgroup__head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.qgroup__head .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; flex: none; }
.qgroup__head .ico .i { width: 24px; height: 24px; }
.qgroup__head h2 { font: 800 clamp(24px, 2.8vw, 36px)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.025em; }
.qgroup__head small { display: block; margin-top: 6px; font: 600 13.5px var(--f-body); color: var(--muted); letter-spacing: 0; }
.qa[hidden] { display: none; }
.qa summary > span:first-child { min-width: 0; }
.qa mark { background: var(--lime); color: var(--ink); border-radius: 4px; padding: 0 3px; margin: 0 -1px; }
.qa .ans { display: grid; gap: 16px; }
.qa .ans p + p { margin-top: 10px; }
.qa .ans a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: background .2s; }
.qa .ans a:hover { background: var(--lime); }
.qa .ans ul { margin: 10px 0 0; padding-left: 20px; list-style: disc; display: grid; gap: 4px; }
.qfeed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 12.5px var(--f-body); color: var(--muted); }
.qfeed button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 700 12.5px var(--f-body); transition: all .25s var(--ease); }
.qfeed button .i { width: 15px; height: 15px; }
.qfeed button[data-v="no"] .i { transform: rotate(180deg); }
.qfeed button:hover { border-color: var(--ink); transform: translateY(-1px); }
.qfeed button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.qfeed button.is-on .i { color: var(--lime); }
.qfeed.is-done button:not(.is-on) { opacity: .45; pointer-events: none; }

/* empty state */
.fempty { display: none; text-align: center; justify-items: center; gap: 14px; padding: clamp(40px, 7vw, 88px) 20px; border: 1.5px dashed rgba(10, 31, 28, .25); border-radius: 32px; margin-top: 24px; }
.fempty.is-on { display: grid; animation: cardIn .5s var(--ease); }
.fempty .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.fempty .ico .i { width: 30px; height: 30px; }
.fempty h3 { font: 800 clamp(24px, 3vw, 36px)/1.05 var(--f-display); font-stretch: 112%; letter-spacing: -.025em; text-transform: uppercase; max-width: 20ch; overflow-wrap: anywhere; }
.fempty p { color: var(--muted); max-width: 42ch; }
.fempty__cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- closing band (reuses .news) ---------- */
.news--cta { grid-template-columns: 1.2fr .8fr; }
.news--cta::before { right: -250px; top: -270px; }
.news--cta .news__btns { display: grid; gap: 12px; }
.news--cta .news__btns .btn { height: 56px; }
.news--cta .btn--ghost { --bg: rgba(10, 31, 28, .6); }
.news--cta .btn--ghost:hover { --bg: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fwrap { grid-template-columns: 1fr; }
  .fside { display: none; }
}
@media (max-width: 900px) {
  .news--cta { grid-template-columns: 1fr; }
  .fhero::after { background: linear-gradient(0deg, var(--ink) 62%, rgba(10, 31, 28, .55)); }
  .fhero::before { right: -230px; top: -280px; }
}
@media (max-width: 640px) {
  .fhero, .news--cta { border-radius: 24px; }
  .fhero h1 { font-size: clamp(34px, 10.4vw, 56px); }
  .fhero::before { width: 380px; height: 380px; right: -170px; top: -210px; }
  .fsearch { padding-left: 16px; }
  .fsearch input { font-size: 16px; height: 48px; }
  .fsearch kbd { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile-c { padding: 16px; }
  .qgroup__head .ico { width: 46px; height: 46px; }
  .qgroup__head .ico .i { width: 21px; height: 21px; }
  .ftools { align-items: flex-start; }
  .fempty { border-radius: 24px; }
}
