/* =========================================================================
   thegiftcardmall.com — main stylesheet
   Critical above-the-fold rules live inline in inc/header.php.
   This file carries everything below the fold and is loaded async.
   ========================================================================= */

/* ---------- Content width ------------------------------------------------ */
.prose { max-width: 760px; }
.prose > * + h2 { margin-top: 2.4em; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 650; }
.prose a { font-weight: 550; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--brand);
  color: var(--fg-soft); font-style: italic;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--bg-sunk);
  padding: .16em .42em; border-radius: 5px;
}

/* ---------- Layout ------------------------------------------------------- */
.section { padding: 8px 0 12px; }
.section--sunk { background: var(--bg-soft); padding: 46px 0; margin: 48px 0; border-block: 1px solid var(--line); }
.layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 40px; align-items: start; }
@media (min-width: 1040px) {
  .layout--aside { grid-template-columns: minmax(0, 1fr) 312px; gap: 56px; }
  .layout--aside .prose { max-width: none; }
}
.aside { position: sticky; top: 84px; display: grid; gap: 18px; }
@media (max-width: 1039px) { .aside { position: static; } }

/* ---------- Hero (home) -------------------------------------------------- */
.hero { padding: 40px 0 8px; }
.hero__grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 52px; } }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero__art { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.hero__art img { width: 100%; }
.hero .lead { font-size: 1.22rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px;
  font-size: .97rem; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dk); }
@media (prefers-color-scheme: dark) { .btn--primary { color: #11131c; } }
.btn--ghost { border-color: var(--line); color: var(--fg); background: var(--bg); }
.btn--ghost:hover { background: var(--bg-sunk); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--fg-mute);
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row .ico { color: var(--ok); }

/* ---------- Cards -------------------------------------------------------- */
.cards { display: grid; gap: 18px; margin: 30px 0; padding: 0; list-style: none; }
@media (min-width: 620px)  { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px)  { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px)  { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: border-color .14s ease, transform .14s ease, box-shadow .14s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.card__ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 4px;
}
.card__ico .ico { width: 21px; height: 21px; }
.card h3 { margin: 0; font-size: 1.06rem; }
.card p { margin: 0; font-size: .93rem; color: var(--fg-soft); line-height: 1.6; }
.card__more { margin-top: auto; padding-top: 6px; font-size: .88rem; font-weight: 650; color: var(--brand); display: inline-flex; align-items: center; gap: 5px; }
.card--warn .card__ico { background: var(--danger-soft); color: var(--danger); }
.card--ok   .card__ico { background: var(--ok-soft);     color: var(--ok); }
.card--gold .card__ico { background: var(--gold-soft);   color: var(--gold); }

/* ---------- Numbered steps ---------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 30px 0; padding: 0; display: grid; gap: 4px; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 58px; margin: 0;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-size: .98rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) { .steps > li::before { color: #11131c; } }
.steps > li::after {
  content: ""; position: absolute; left: 18.5px; top: 40px; bottom: 6px;
  width: 2px; background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.steps p { margin: 0 0 .7em; color: var(--fg-soft); font-size: .97rem; }
.steps p:last-child { margin-bottom: 0; }

/* ---------- Tables ------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; }
caption { caption-side: top; text-align: left; padding: 14px 18px 0; font-size: .86rem; color: var(--fg-mute); }
th, td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-soft); font-weight: 650; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }
td .yes { color: var(--ok); font-weight: 650; }
td .no  { color: var(--danger); font-weight: 650; }

/* ---------- Checklists --------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; line-height: 1.6; }
.checklist .ico { margin-top: .28em; color: var(--ok); }
.checklist--bad .ico { color: var(--danger); }

/* ---------- Figures ------------------------------------------------------ */
figure { margin: 34px 0; }
figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); }
figcaption { margin-top: 11px; font-size: .84rem; color: var(--fg-mute); line-height: 1.55; }

/* ---------- Table of contents ------------------------------------------- */
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 32px 0; }
.toc h2 { margin: 0 0 10px; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fg-mute); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .94rem; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: .42em; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- CTA box ------------------------------------------------------ */
.cta {
  background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--gold-soft) 60%, var(--brand-soft)));
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  border-radius: 18px; padding: 28px; margin: 38px 0;
}
.cta h2 { margin: 0 0 8px; font-size: 1.24rem; }
.cta p { margin: 0 0 4px; font-size: .96rem; color: var(--fg-soft); }
.cta .btn-row { margin-top: 20px; }

/* ---------- Aside widgets ------------------------------------------------ */
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); }
.widget h2 { margin: 0 0 12px; font-size: .96rem; }
.widget ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: .92rem; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }
.widget--warn { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 28%, transparent); }

/* ---------- Accordion (FAQ) --------------------------------------------- */
.faq { margin: 28px 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 650; font-size: 1.02rem; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--fg-mute); border-bottom: 2px solid var(--fg-mute);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brand); }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.faq__a { padding: 0 0 20px; color: var(--fg-soft); font-size: .97rem; }
.faq__a > *:last-child { margin-bottom: 0; }

/* ---------- Scam comparison --------------------------------------------- */
.compare { display: grid; gap: 16px; margin: 30px 0; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border-radius: var(--radius); padding: 22px; border: 1px solid; }
.compare__col h3 { margin: 0 0 12px; font-size: 1.02rem; display: flex; align-items: center; gap: 9px; }
.compare__col ul { margin: 0; padding-left: 1.2em; font-size: .94rem; }
.compare__col li { margin-bottom: .5em; }
.compare--safe { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.compare--safe h3 { color: var(--ok); }
.compare--risk { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 32%, transparent); }
.compare--risk h3 { color: var(--danger); }

/* ---------- Key/value stat strip ---------------------------------------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 32px 0; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg); padding: 22px; }
.stat__n { font-size: 1.62rem; font-weight: 750; letter-spacing: -.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat__l { font-size: .88rem; color: var(--fg-soft); margin-top: 3px; line-height: 1.5; }

/* ---------- External link marker ---------------------------------------- */
.ext { font-weight: 650; white-space: nowrap; }
.ext .ico { opacity: .75; }

/* ---------- Definition list --------------------------------------------- */
.dl { margin: 28px 0; display: grid; gap: 0; }
.dl > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dl > div:first-child { border-top: 1px solid var(--line); }
.dl dt { font-weight: 650; margin-bottom: 5px; }
.dl dd { margin: 0; color: var(--fg-soft); font-size: .96rem; }

/* ---------- Contact form ------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 560px; margin: 30px 0; }
.field { display: grid; gap: 7px; }
.field label { font-size: .91rem; font-weight: 650; }
.field .hint { font-size: .82rem; color: var(--fg-mute); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; font-size: .97rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: 10px; padding: 14px 16px; font-size: .94rem; }
.form-msg--ok  { background: var(--ok-soft);     border: 1px solid color-mix(in srgb, var(--ok) 34%, transparent); }
.form-msg--err { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 34%, transparent); }
.form-err { color: var(--danger); font-size: .85rem; }

/* ---------- Related links ------------------------------------------------ */
.related { margin: 62px 0 8px; padding-top: 34px; border-top: 1px solid var(--line); }
.related__title { margin: 0 0 20px; font-size: 1.16rem; }
.related__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 680px)  { .related__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .related__list { grid-template-columns: repeat(4, 1fr); } }
.related__link {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color .14s ease, transform .14s ease;
}
.related__link:hover { border-color: var(--brand); transform: translateY(-2px); }
.related__head { font-weight: 650; font-size: .98rem; color: var(--brand); }
.related__desc {
  font-size: .86rem; color: var(--fg-mute); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Footer ------------------------------------------------------- */
.site-foot { margin-top: 70px; background: var(--bg-soft); border-top: 1px solid var(--line); padding: 44px 0 34px; }
.foot-legal {
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 36%, transparent);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 42px;
  font-size: .89rem; line-height: 1.68; color: var(--fg-soft);
}
.foot-legal__title { margin: 0 0 10px; font-size: .97rem; color: var(--fg); display: flex; align-items: center; gap: 9px; }
.foot-legal__title .ico { color: var(--gold); }
.foot-legal p { margin: 0 0 .85em; }
.foot-legal p:last-child { margin-bottom: 0; }
.foot-legal strong { color: var(--fg); font-weight: 650; }
.foot-legal__never { padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--gold) 40%, transparent); }
.foot-legal__never .ico { color: var(--gold); vertical-align: -.18em; margin-right: 4px; }

.foot-grid { display: grid; gap: 34px; }
@media (min-width: 700px)  { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; } }
.foot-col--brand .brand { margin-bottom: 14px; }
.foot-blurb { font-size: .88rem; color: var(--fg-mute); line-height: 1.65; margin: 0 0 10px; max-width: 42ch; }
.foot-blurb a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.foot-blurb a:hover { text-decoration: underline; }
.foot-h { margin: 0 0 14px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute); font-weight: 650; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.foot-col ul a { color: var(--fg-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.foot-col ul a:hover { color: var(--brand); text-decoration: underline; }
.foot-base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--fg-mute); display: grid; gap: 6px;
}
.foot-base p { margin: 0; }

/* ---------- Back to top -------------------------------------------------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: var(--shadow);
  text-decoration: none;
}
@media (prefers-color-scheme: dark) { .to-top { color: #11131c; } }
.to-top[hidden] { display: none; }
.to-top__ico { transform: rotate(-90deg); width: 20px; height: 20px; }

/* ---------- Focus + print ------------------------------------------------ */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

@media print {
  .site-head, .nav, .to-top, .related, .cta, .btn-row { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .foot-legal { border: 1px solid #000; }
}
