/*
 * Global component styles ported from site-preview/assets/css/site.css
 * (Base + sections 6.1-6.10), renamed to the --gp-* tokens in tokens.css.
 * Loads on every page. Shop-specific sections (8.x) live in shop.css.
 */

/* ===================================================== GeneratePress override */
/*
 * GeneratePress's own CSS sets `.site-content { display: flex }` (only
 * forced to flex-direction: column below 768px) because it expects exactly
 * one `.content-area` flex child alongside an optional sidebar. This theme
 * never provides that wrapper or uses a sidebar — header.php/footer.php put
 * full-width <section> elements directly inside #content.site-content — so
 * on desktop those sections become side-by-side flex items instead of
 * stacking. Overriding to block fixes every page built on that pattern
 * (archive-product.php, single-product.php, and any future one).
 */
.site-content { display: block; }

/* ===================================================== Base */

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

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--gp-surface);
  color: var(--gp-text);
  font-family: var(--gp-font-body);
  font-size: var(--gp-fs-body);
  line-height: var(--gp-lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--gp-font-heading);
  color: var(--gp-ink);
  line-height: var(--gp-lh-heading);
  text-wrap: balance;
}
h1 { font-size: var(--gp-fs-h1); font-weight: 700; line-height: var(--gp-lh-tight); letter-spacing: -0.015em; }
h2 { font-size: var(--gp-fs-h2); font-weight: 700; }
h3 { font-size: var(--gp-fs-h3); font-weight: 600; }
h4 { font-size: var(--gp-fs-h4); font-weight: 600; }

p { margin: 0; max-width: var(--gp-measure); }
.lead { font-size: var(--gp-fs-lead); line-height: 1.6; }
.small { font-size: var(--gp-fs-small); color: var(--gp-muted); }

a { color: var(--gp-teal-text); text-underline-offset: 0.15em; transition: color 150ms ease; }
a:hover { color: var(--gp-ink); }

:focus-visible { outline: 2px solid var(--gp-focus-ring); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--gp-container-max);
  margin-inline: auto;
  padding-inline: var(--gp-gutter);
}
.section { padding-block: var(--gp-section-pad); }
.section--alt { background: var(--gp-surface-alt); }
.section--rule { border-top: 1px solid var(--gp-border); }
.stack { display: flex; flex-direction: column; gap: var(--gp-space-6); }

.skip-link {
  position: absolute; left: var(--gp-space-4); top: -100px;
  background: var(--gp-brand-yellow); color: var(--gp-on-brand);
  padding: var(--gp-space-3) var(--gp-space-4); border-radius: var(--gp-radius-md);
  font-family: var(--gp-font-heading); font-weight: 600; z-index: 100;
}
.skip-link:focus { top: var(--gp-space-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.prose p + p { margin-top: 1em; }
.prose { line-height: 1.5; }
.placeholder {
  display: inline-block;
  padding: var(--gp-space-1) var(--gp-space-2);
  border: 1px dashed var(--gp-control-border);
  border-radius: var(--gp-radius-sm);
  background: var(--gp-surface-alt);
  color: var(--gp-muted);
  font-style: italic;
  font-size: var(--gp-fs-small);
}

/* ===================================================== 6.1 Button */

.btn {
  display: inline-flex; align-items: center; gap: var(--gp-space-2);
  min-height: 52px; padding: 0 1.75rem;
  border: 2px solid transparent; border-radius: var(--gp-radius-md);
  font-family: var(--gp-font-heading); font-weight: 600; font-size: var(--gp-fs-button);
  text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--gp-brand-yellow); color: var(--gp-on-brand); }
.btn--primary:hover, .btn--primary:active { background: var(--gp-brand-yellow-hover); color: var(--gp-on-brand); }
.btn--secondary { border-color: var(--gp-ink); color: var(--gp-ink); background: transparent; padding: 0 1.5rem; }
.btn--secondary:hover { background: var(--gp-surface-alt); color: var(--gp-ink); }
.btn--dark { background: var(--gp-ink); color: var(--gp-surface); }
.btn--dark:hover, .btn--dark:active { background: var(--gp-ink-hover); color: var(--gp-surface); }
.btn.is-added { background: var(--gp-success); color: #fff; border-color: var(--gp-success); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--gp-space-4); }
.text-link { font-family: var(--gp-font-heading); font-weight: 600; font-size: var(--gp-fs-button); color: var(--gp-teal-text); padding-block: var(--gp-space-3); display: inline-block; background: none; border: none; cursor: pointer; text-decoration: underline; }

/* ===================================================== 6.2 Pill */

.pill { align-self: flex-start; display: inline-flex; padding: var(--gp-space-2) var(--gp-space-4); border-radius: var(--gp-radius-pill); background: var(--gp-teal-tint); color: var(--gp-teal-text); font-family: var(--gp-font-heading); font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.pill--brand { background: var(--gp-brand-teal); color: var(--gp-on-brand); }

/* ===================================================== 6.3 Header and mobile menu */

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--gp-border); background: var(--gp-surface); }
.site-header .container { max-width: 1340px; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gp-space-3); padding-block: var(--gp-space-4); }
.site-header__logo img { height: 48px; width: auto; }

.menu-toggle { display: inline-flex; align-items: center; gap: var(--gp-space-2); min-height: var(--gp-tap-target); padding: 0 var(--gp-space-4); border: 2px solid var(--gp-ink); border-radius: var(--gp-radius-md); background: transparent; color: var(--gp-ink); font-family: var(--gp-font-heading); font-weight: 600; font-size: 1rem; }

.site-nav { flex-basis: 100%; display: none; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: var(--gp-space-2) 0 var(--gp-space-4); display: flex; flex-direction: column; }
.site-nav a { display: flex; align-items: center; min-height: var(--gp-tap-target); padding: 0 var(--gp-space-1); border-bottom: 1px solid var(--gp-border); color: var(--gp-text); text-decoration: none; font-family: var(--gp-font-heading); font-weight: 600; font-size: 1.0625rem; transition: color 150ms ease, border-bottom-color 150ms ease; }
.site-nav a[aria-current="page"] { color: var(--gp-ink); box-shadow: inset 4px 0 0 var(--gp-teal-text); padding-left: var(--gp-space-4); }
.site-header__donate { min-height: var(--gp-tap-target); padding: 0 var(--gp-space-3); border-radius: var(--gp-radius-pill); }

@media (min-width: 900px) {
  .site-header__inner { flex-wrap: nowrap; padding-block: 1.25rem; }
  .site-header__logo img { height: 64px; }
  .menu-toggle { display: none; }
  .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: var(--gp-space-1) var(--gp-space-3); padding: 0; }
  .site-nav a { border-bottom: 3px solid transparent; padding: var(--gp-space-3) 0; min-height: auto; font-size: 1rem; }
  .site-nav a:hover { color: var(--gp-ink); border-bottom-color: var(--gp-border); }
  .site-nav a[aria-current="page"] { box-shadow: none; padding-left: 0; border-bottom-color: var(--gp-teal-text); }
}

/* ===================================================== 6.3b Basket link */

.basket-link { display: inline-flex; align-items: center; gap: var(--gp-space-2); min-height: var(--gp-tap-target); padding: 0 var(--gp-space-3); color: var(--gp-ink); text-decoration: none; font-family: var(--gp-font-heading); font-weight: 600; font-size: 1rem; }
.basket-link__count { font-size: var(--gp-fs-small); color: var(--gp-muted); }
.basket-link:hover { color: var(--gp-ink-hover); }

/* ===================================================== 6.4 Hero */

.hero__grid { display: grid; gap: var(--gp-space-12); align-items: center; }
.hero__title { font-size: var(--gp-fs-h1); }
.hero__media > * { aspect-ratio: 4 / 3; width: 100%; border-radius: var(--gp-radius-lg); object-fit: cover; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--gp-space-16); }
  .hero__title { font-size: 4rem; line-height: 1.08; }
}

.accent-underline { position: relative; display: inline-block; }
.accent-underline__mark { position: absolute; left: -3%; width: 106%; bottom: -0.14em; height: 0.32em; overflow: visible; }

/* ===================================================== Media/text and bio grids */

.media-text { display: grid; gap: var(--gp-space-8); align-items: center; }
@media (min-width: 900px) { .media-text { grid-template-columns: 1fr 1fr; gap: var(--gp-space-16); } }
.media-text img { border-radius: var(--gp-radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.bio-grid { display: grid; gap: var(--gp-space-8); align-items: start; }
.bio-grid__photo { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--gp-radius-lg); object-fit: cover; }
@media (min-width: 900px) { .bio-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--gp-space-16); } }

.book-cover {
  border-radius: 3px; width: 100%;
  box-shadow:
    2px 2px 0 0 var(--gp-surface),
    2px 2px 0 1px rgba(26, 26, 26, 0.14),
    4px 4px 0 0 var(--gp-surface),
    4px 4px 0 1px rgba(26, 26, 26, 0.1),
    6px 9px 16px rgba(26, 26, 26, 0.22);
}

/* ===================================================== 6.5 Card */

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gp-space-4); }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gp-space-6); } }
.card { display: flex; flex-direction: column; gap: 1.25rem; padding: var(--gp-space-8); background: var(--gp-surface); border: 1px solid var(--gp-border); border-radius: var(--gp-radius-lg); }
.card__bar { width: 48px; height: 10px; border-radius: 5px; }
.card__bar--yellow { background: var(--gp-brand-yellow); }
.card__bar--teal { background: var(--gp-brand-teal); }
.card__bar--ink { background: var(--gp-ink); }
.card__text { font-family: var(--gp-font-heading); font-weight: 600; font-size: 1.375rem; line-height: 1.3; color: var(--gp-ink); }
.card__icon { width: 72px; height: 72px; border-radius: var(--gp-radius-md); object-fit: cover; }
.card__icon-badge { width: 72px; height: 72px; border-radius: var(--gp-radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card__icon-badge svg { color: var(--gp-on-brand); }
.card__icon-badge--yellow { background: var(--gp-brand-yellow); }
.card__icon-badge--teal { background: var(--gp-brand-teal); }
.card__icon-badge--ink { background: var(--gp-ink); }
.card__icon-badge--ink svg { color: var(--gp-surface); }

/* ===================================================== 6.6 Panel */

.panel { display: flex; flex-direction: column; gap: var(--gp-space-4); padding: var(--gp-space-8); background: var(--gp-teal-tint); border-radius: var(--gp-radius-lg); }
@media (min-width: 900px) { .panel { padding: 2.25rem; } }

/* ===================================================== 6.7 Quote */

.quote { margin: 0; display: flex; flex-direction: column; gap: var(--gp-space-3); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--gp-font-heading); font-weight: 600; font-size: 1.25rem; line-height: 1.35; color: var(--gp-teal-text); }
@media (min-width: 900px) { .quote blockquote p { font-size: 1.5rem; } }
.quote figcaption { font-size: var(--gp-fs-small); color: var(--gp-muted); }

/* ===================================================== 6.8 Call-to-action band */

.cta-band { background: var(--gp-brand-yellow); color: var(--gp-on-brand); padding-block: var(--gp-space-16); }
.cta-band--seam { border-top: 6px solid var(--gp-surface); }
.cta-band h2, .cta-band p, .cta-band a:not(.btn) { color: var(--gp-on-brand); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gp-space-6); }
.cta-band .btn--dark { background: #1a1a1a; color: #fff; }
.cta-band .btn--dark:hover, .cta-band .btn--dark:active { background: #3d3d3d; color: #fff; }

/* ===================================================== 6.9 Form field */

.field { display: flex; flex-direction: column; gap: var(--gp-space-2); }
.field label { font-family: var(--gp-font-heading); font-weight: 600; font-size: 1rem; color: var(--gp-ink); }
.field__hint { font-size: var(--gp-fs-small); color: var(--gp-muted); margin: 0; }
.field__error { font-size: var(--gp-fs-small); font-weight: 700; color: var(--gp-error); margin: 0; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1.0625rem; color: var(--gp-text); background: var(--gp-surface);
  min-height: var(--gp-tap-target); padding: 0.625rem 0.875rem; width: 100%;
  border: 2px solid var(--gp-control-border); border-radius: var(--gp-radius-sm);
  transition: border-color 150ms ease;
}
.field textarea { min-height: 8rem; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gp-brand-teal); outline-offset: 1px; border-color: var(--gp-ink); }
.field [aria-invalid="true"] { border-color: var(--gp-error); }

.notice { padding: var(--gp-space-6); border-radius: var(--gp-radius-lg); }
.notice--error { background: var(--gp-error-tint); }
.notice--success { background: var(--gp-success-tint); }
.notice--success h2 { color: var(--gp-success); }

.form { display: flex; flex-direction: column; gap: var(--gp-space-6); max-width: 40rem; }

.form-grid { display: grid; gap: var(--gp-space-8); align-items: start; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1.3fr 1fr; gap: var(--gp-space-12); } }

/* ===================================================== Page title banner */
/*
 * Used sitewide as the standard page-title banner (every content page, not
 * just the shop) — ported here rather than shop.css despite living under
 * site.css's "Page-specific" heading rather than its own 6.x section. The
 * --card variant (overlapping breadcrumb pill) is used on About Nokhaya/
 * About Tell Somebody — the plain variant is what the shop/product pages
 * already use.
 */

/*
 * Contained, not full-bleed -- a deliberate departure from the signed-off
 * static site (where every page-banner spans the full viewport width),
 * per the user's own call: everything else full-bleed stays full-bleed
 * (two-col-bands, cta-band, gift-tiers, the footer), only this banner
 * becomes a boxed "card" matching the page's own content width.
 */
.page-banner { position: relative; background: var(--gp-brand-teal); color: var(--gp-on-brand); padding-block: var(--gp-space-12); max-width: var(--gp-container-max); margin: var(--gp-space-8) auto; border-radius: var(--gp-radius-lg); }
.page-banner h1, .page-banner p { color: var(--gp-on-brand); }
.page-banner__crumb { display: flex; gap: var(--gp-space-2); font-family: var(--gp-font-heading); font-weight: 600; font-size: var(--gp-fs-small); margin-top: var(--gp-space-2); }
.page-banner__crumb a { color: var(--gp-on-brand); text-decoration: underline; }

.page-banner--card { padding-bottom: calc(var(--gp-space-12) + 28px); }
.page-banner__crumb-wrap { position: absolute; left: 0; right: 0; bottom: -26px; }
.page-banner--card .page-banner__crumb { display: inline-flex; margin-top: 0; align-items: center; gap: var(--gp-space-2); background: var(--gp-surface); color: var(--gp-ink); padding: var(--gp-space-3) var(--gp-space-6); border-radius: var(--gp-radius-pill); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14); }
.page-banner--card .page-banner__crumb a { color: var(--gp-teal-text); }

/*
 * Cancels GeneratePress's own default content spacing (.inside-article
 * padding-top + .site-main margin-top) on pages whose first block is a
 * full-bleed banner -- see tsuk_flush_banner_body_class() in functions.php.
 */
.tsuk-flush-banner .site-main { margin-top: 0; }
.tsuk-flush-banner .inside-article { padding-top: 0; }

/* ===================================================== Stat row */

.stat-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--gp-space-3) var(--gp-space-6); font-size: var(--gp-fs-small); color: var(--gp-text); }
.stat-row li + li { padding-left: var(--gp-space-6); border-left: 1px solid var(--gp-border); }
.stat-row strong { font-family: var(--gp-font-heading); color: var(--gp-ink); }

/* ===================================================== Funds covers (3-image fan) */

.funds-covers { position: relative; height: 260px; max-width: 420px; margin-inline: auto; }
@media (min-width: 900px) { .funds-covers { margin-inline: 0; height: 300px; } }
.funds-covers img.funds-covers__item { position: absolute; top: 10px; width: 42%; aspect-ratio: 2 / 3; object-fit: contain; border-radius: var(--gp-radius-md); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); border: 1px solid var(--gp-border); background: var(--gp-surface); }
.funds-covers img.funds-covers__item--left { left: 4%; transform: rotate(-9deg); z-index: 1; }
.funds-covers img.funds-covers__item--right { right: 4%; transform: rotate(9deg); z-index: 1; }
.funds-covers img.funds-covers__item--center { left: 50%; top: -6px; transform: translateX(-50%); z-index: 2; width: 46%; }

/* ===================================================== Plain list */

.list-plain { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: var(--gp-space-3); }
.list-plain li { max-width: var(--gp-measure); }

/* ===================================================== Two-column colour bands */

.two-col-bands { display: grid; gap: var(--gp-space-4); }
@media (min-width: 900px) { .two-col-bands { grid-template-columns: 1fr 1fr; gap: 0; } }
.two-col-bands > div { padding-block: var(--gp-space-12); padding-inline: var(--gp-gutter); display: flex; flex-direction: column; gap: var(--gp-space-4); }
.two-col-bands h3, .two-col-bands ul { max-width: var(--gp-measure); }
.two-col-bands .band--yellow { background: var(--gp-brand-yellow); padding-left: max(var(--gp-gutter), calc((100vw - var(--gp-container-max)) / 2 + var(--gp-gutter))); }
.two-col-bands .band--yellow h3, .two-col-bands .band--yellow li { color: var(--gp-on-brand); }
.two-col-bands .band--teal { background: var(--gp-brand-teal); padding-right: max(var(--gp-gutter), calc((100vw - var(--gp-container-max)) / 2 + var(--gp-gutter))); }
.two-col-bands .band--teal h3, .two-col-bands .band--teal li { color: var(--gp-on-brand); }

/* ===================================================== Gift tiers */

.gift-tiers { display: flex; flex-wrap: wrap; gap: var(--gp-space-4); }
.gift-tier { display: flex; flex-direction: column; align-items: flex-start; gap: var(--gp-space-1); padding: var(--gp-space-4) var(--gp-space-6); background: var(--gp-brand-yellow); color: var(--gp-on-brand); border-radius: var(--gp-radius-md); text-decoration: none; }
.gift-tier:hover, .gift-tier:active { background: var(--gp-brand-yellow-hover); }
.gift-tier__amount { font-family: var(--gp-font-heading); font-weight: 700; font-size: var(--gp-fs-h4); }
.gift-tier__text { font-size: var(--gp-fs-small); }

/* ===================================================== 6.10 Footer */

.site-footer { background: var(--gp-footer-bg); color: #ffffff; padding-block: var(--gp-space-16) var(--gp-space-8); }
.site-footer__cols { display: grid; gap: var(--gp-space-8); }
@media (min-width: 900px) { .site-footer__cols { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2.5rem; } }
.site-footer__logo { height: 56px; width: auto; }
.site-footer h2 { font-size: 1rem; font-weight: 600; color: var(--gp-brand-yellow); margin-bottom: var(--gp-space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #ffffff; text-decoration: none; display: inline-block; padding-block: 0.375rem; }
.site-footer a:hover { color: var(--gp-brand-yellow); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--gp-brand-yellow); }
.site-footer__legal { margin-top: var(--gp-space-12); padding-top: var(--gp-space-6); border-top: 1px solid #3a3a3a; font-size: var(--gp-fs-small); color: #c4c4c4; max-width: none; }
.site-footer__policies { margin-top: var(--gp-space-4); display: flex; flex-wrap: wrap; gap: var(--gp-space-2) var(--gp-space-6); font-size: var(--gp-fs-small); }
.site-footer__policies a { color: #c4c4c4; text-decoration: underline; padding-block: 0; }
.site-footer__policies a:hover { color: var(--gp-brand-yellow); }
