/*
Theme Name: NGO Pilot
Theme URI: https://ngopilot.in
Author: NGO Pilot
Description: Custom theme for NGO Pilot — guidance and compliance for NGOs in India.
Version: 1.0.0
Text Domain: ngopilot
*/

:root {
  --color-primary: #0b6e4f;
  --color-primary-dark: #074d37;
  --color-accent: #f59e0b;
  --color-bg: #ffffff;
  --color-bg-alt: #f7faf8;
  --color-text: #1f2a37;
  --color-muted: #5b6b7b;
  --color-border: #e2e8f0;
  --max: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-text); margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--color-text); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}
.brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 8px;
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
}

/* Header brand mark — the bird symbol cropped out of the full logo. */
.brand-mark-img {
  width: auto; height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .brand-mark-img { height: 34px; }
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul,
.main-nav > div > ul { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.main-nav li { position: relative; }
.main-nav a {
  display: inline-block; padding: 8px 12px;
  color: var(--color-text); font-weight: 500; border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }

/* Submenu — target both our custom fallback classes and wp_nav_menu output. */
.main-nav .has-sub > a::after,
.main-nav .menu-item-has-children > a::after {
  content: " ▾"; font-size: .8em; color: var(--color-muted);
}
.main-nav .sub,
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 8px; min-width: 240px; padding: 8px;
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column; gap: 0;
  z-index: 60;
}
.main-nav .sub li,
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub li a,
.main-nav .sub-menu li a { display: block; padding: 8px 10px; white-space: normal; }
.main-nav .has-sub:hover > .sub,
.main-nav .has-sub:focus-within > .sub,
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 16px !important;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--color-border);
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: 12px 24px;
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .main-nav > ul,
  .main-nav > div > ul { flex-direction: column; gap: 2px; }
  .main-nav .sub,
  .main-nav .sub-menu {
    position: static; box-shadow: none; border: none;
    padding-left: 12px; display: flex; background: transparent;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .05s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary); background: #fff; }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-accent { background: var(--color-accent); color: #1f2a37; }
.btn-accent:hover { background: #d97706; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(11,110,79,0.12), transparent 60%),
    linear-gradient(180deg, #f6fbf8 0%, #ffffff 100%);
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(11,110,79,0.1);
  color: var(--color-primary-dark);
  padding: 6px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 { color: var(--color-primary-dark); }
.hero .lead { font-size: 1.125rem; color: var(--color-muted); max-width: 60ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats {
  margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px;
  max-width: 520px;
}
.hero-stat { background: #fff; padding: 14px; border-radius: 10px; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.hero-stat strong { display: block; font-size: 1.4rem; color: var(--color-primary-dark); font-family: var(--font-display); }
.hero-stat span { font-size: .85rem; color: var(--color-muted); }

.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #0b6e4f, #1aa37a);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(245,158,11,0.25), transparent 50%);
}
/* Photo variant: the portrait fills the panel, so the gradient and the radial
   ::before highlight are switched off - otherwise they tint the photograph. */
.hero-visual--photo { background: none; }
.hero-visual--photo::before { content: none; }
.hero-visual--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
/* Reset section padding for any <section> tags inside imported page content
 * — otherwise the top-level rule fires on nested sections and produces the
 * huge vertical gaps / overlap we saw with Elementor markup. */
.entry-content section { padding: 0; }
.entry-content > * { max-width: 100%; }
.entry-content img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 24px auto;
  border-radius: 8px;
}
.entry-content figure { margin: 20px 0; }
.entry-content figure img { margin: 0; }
.entry-content iframe { max-width: 100%; margin: 20px 0; border-radius: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--color-bg-alt); font-weight: 700; }
.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 8px 20px;
  margin: 20px 0;
  color: var(--color-muted);
  background: var(--color-bg-alt);
  border-radius: 0 8px 8px 0;
}
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .eyebrow {
  text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem;
  color: var(--color-primary); font-weight: 700; margin-bottom: 8px; display: block;
}
.section-head h2 { margin: 0 0 12px; }
.section-head p { color: var(--color-muted); }

/* ---------- Cards / Services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(11,110,79,0.1); color: var(--color-primary-dark);
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--color-muted); margin-bottom: 12px; }
.card a.more { font-weight: 600; }

/* Long card copy is clamped to three lines so every card in a row stays the
   same height. The full text remains in the HTML (only its height is limited),
   so search engines still read all of it; visitors get the rest by following
   the card's "Learn more" link. */
.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- About / Value props ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
/* Square panel used in the About section. */
.about-visual {
  margin: 0;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.about-visual > img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Brand variant: mark above, tagline below, inside a light card.
   The forced square from .about-visual is dropped so the card hugs its content;
   the card styling matches .card elsewhere on the page rather than being a
   heavy coloured panel. */
.about-visual--brand {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(40px, 7%, 72px) clamp(24px, 6%, 56px);
  text-align: center;
  aspect-ratio: auto;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(11,110,79,0.05), transparent 65%),
    #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.about-visual--brand .about-logo {
  width: 58%; max-width: 200px; height: auto;
  object-fit: contain;
}
.about-tagline {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: clamp(7px, 1vw, 13px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(.88rem, 1.5vw, 1.15rem);
  letter-spacing: 2.2px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.about-tagline i {
  font-style: normal; font-weight: 400;
  color: var(--color-border);
}
.about-points { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.about-points li::before { content: "✓ "; color: var(--color-primary); font-weight: 700; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Values strip ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value {
  padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--color-border);
}
.value h3 { color: var(--color-primary-dark); }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } }

/* ---------- Client logo marquee ---------- */
.clients-section { padding-bottom: 56px; }
.clients-marquee {
  overflow: hidden;
  /* Fade the strip out at both edges so logos enter and leave softly rather
     than being cut off mid-logo. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex;
  width: max-content;
  animation: ngopilot-marquee 34s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }

.clients-list {
  display: flex; align-items: center;
  list-style: none; margin: 0; padding: 0;
  gap: clamp(28px, 5vw, 68px);
  padding-right: clamp(28px, 5vw, 68px);
}
.clients-list img {
  height: 58px; width: auto; max-width: 170px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .62;
  /* The logo files are JPEGs with solid white backgrounds. multiply drops that
     white into the section tint so they read as logos, not white tiles. */
  mix-blend-mode: multiply;
  transition: filter .2s ease, opacity .2s ease;
}
.clients-list img:hover { filter: none; opacity: 1; }

/* Move by exactly one copy of the list. */
@keyframes ngopilot-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Respect a reduced-motion preference - the strip becomes a static, scrollable row. */
@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
  .clients-marquee { overflow-x: auto; }
}

/* ---------- Testimonials (one at a time) ---------- */
.testimonial-slider { max-width: 760px; margin: 0 auto; }
.testimonial {
  margin: 0;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  box-shadow: var(--shadow-sm);
}
/* Without JS the quotes stack; with JS only one is shown. */
.testimonial + .testimonial { margin-top: 16px; }
.testimonial[hidden] { display: none; }

.testimonial-stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.testimonial blockquote {
  margin: 0 0 16px;
  padding: 0; border: 0; background: none;
  color: var(--color-muted);
  font-size: .95rem;
  line-height: 1.6;
}
.testimonial blockquote::before { content: "\201C"; }
.testimonial blockquote::after  { content: "\201D"; }
.testimonial figcaption {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}
.testimonial figcaption strong { display: block; color: var(--color-primary-dark); }
.testimonial figcaption span { font-size: .85rem; color: var(--color-muted); }

.testimonial-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 18px;
}
.testimonial-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary-dark);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.testimonial-arrow:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.testimonial-arrow:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }

.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
  width: 9px; height: 9px; padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.testimonial-dot[aria-selected="true"] { background: var(--color-primary); transform: scale(1.25); }
.testimonial-dot:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 3px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff; border-radius: 16px; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin: 0 0 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-banner .btn { background: #fff; color: var(--color-primary-dark); border: none; }
.cta-banner .btn:hover { background: var(--color-accent); color: #1f2a37; }

/* ---------- Donation slip generator ---------- */
.slip-section { padding: 48px 0 72px; }
.slip-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.slip-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 26px 28px;
}
.slip-form fieldset {
  border: 0; padding: 0;
  margin: 0 0 22px;
}
.slip-form legend {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary-dark);
  padding: 0 0 10px;
}
.slip-form label {
  display: block;
  font-weight: 600;
  font-size: .86rem;
  margin: 12px 0 5px;
}
.slip-form input[type="text"],
.slip-form input[type="number"],
.slip-form input[type="date"],
.slip-form select,
.slip-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
}
.slip-form textarea { resize: vertical; }
.slip-form small { display: block; color: var(--color-muted); font-size: .76rem; margin-top: 4px; }
.slip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.slip-check {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; margin-top: 14px;
}
.slip-check input { width: auto; }

.slip-warning {
  margin: 14px 0 0;
  padding: 11px 13px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: .86rem;
  color: #7c2d12;
}
.slip-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.slip-privacy { font-size: .8rem; color: var(--color-muted); margin: 14px 0 0; }

.slip-preview-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--color-muted); font-weight: 700; margin-bottom: 10px;
}

/* The receipt itself - styled to look like the printed document. */
.slip-receipt {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
.slip-receipt-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 14px;
}
.slip-receipt-head h2 { font-size: 1.3rem; margin: 0 0 4px; color: var(--color-primary-dark); }
.slip-org-address { margin: 0 0 6px; color: var(--color-muted); font-size: .86rem; white-space: pre-line; }
.slip-org-meta { margin: 0; font-size: .78rem; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.slip-stamp {
  flex: 0 0 auto;
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}
.slip-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .88rem; color: var(--color-muted);
  padding: 12px 0;
}
.slip-table { width: 100%; border-collapse: collapse; margin: 4px 0 16px; }
.slip-table th, .slip-table td {
  text-align: left; vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  font-size: .9rem;
}
.slip-table th { width: 38%; font-weight: 600; color: var(--color-muted); background: var(--color-bg-alt); }
.slip-table td { white-space: pre-line; }
.slip-note { font-size: .78rem; color: var(--color-muted); margin: 0 0 26px; }
.slip-sign { text-align: right; }
.slip-sign-line { border-top: 1px solid var(--color-text); width: 190px; margin-left: auto; margin-bottom: 5px; }
.slip-sign span { font-size: .8rem; color: var(--color-muted); }

/* The hidden attribute is only display:none in the browser's own stylesheet,
   which any author display rule (flex, grid) silently beats - that is why the
   CSV buttons stayed on screen while JS had them marked hidden. One guard for
   the whole page so toggling `hidden` always works. */
.slip-section [hidden] { display: none !important; }

/* --- Receipt register --- */
/* Sits below the form/preview grid, not inside it - a full-width grid child
   pushed the preview out of its column. */
.slip-register {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.slip-register-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.slip-register-head h2 { margin: 0; font-size: 1.2rem; }
.slip-register-note {
  font-size: .76rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-muted); font-weight: 700;
}
.slip-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px;
  margin-bottom: 20px;
}
.slip-stat {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
}
.slip-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  line-height: 1.15;
}
.slip-stat span { font-size: .82rem; color: var(--color-muted); }

.slip-register-empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed var(--color-border);
  border-radius: 10px;
  color: var(--color-muted);
  font-size: .89rem;
  line-height: 1.55;
}
.slip-register-empty strong { color: var(--color-primary-dark); }

.slip-register-table-wrap { overflow-x: auto; }
.slip-register-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.slip-register-table th, .slip-register-table td {
  text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  font-size: .87rem;
}
.slip-register-table th { color: var(--color-muted); font-weight: 600; }
.slip-register-table .ta-right { text-align: right; }
.slip-register-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 620px) {
  .slip-stats { grid-template-columns: 1fr; }
}

/* --- Logo field --- */
.slip-logo-field { display: flex; align-items: center; gap: 10px; }
.slip-logo-field input[type="file"] {
  flex: 1 1 auto;
  font-size: .84rem;
  padding: 7px 9px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}
.slip-logo-clear {
  flex: 0 0 auto;
  font: inherit; font-size: .82rem; font-weight: 600;
  padding: 7px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-muted);
  cursor: pointer;
}
.slip-logo-clear:hover { border-color: #dc2626; color: #dc2626; }

/* Logo on the receipt itself. */
.slip-logo {
  max-height: 62px; max-width: 190px;
  width: auto; height: auto;
  object-fit: contain;
  margin-right: 16px;
  flex: 0 0 auto;
}
.slip-receipt--compact .slip-logo { max-height: 44px; max-width: 140px; }
.slip-receipt--formal .slip-logo {
  display: block;
  margin: 0 auto 10px;
  max-height: 70px;
}
/* The letterhead already carries the logo. */
.slip-receipt--letterhead .slip-logo { display: none; }

/* --- Format picker --- */
.slip-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slip-format { margin: 0; cursor: pointer; }
.slip-format input { position: absolute; opacity: 0; pointer-events: none; }
.slip-format-body {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.slip-format-body strong { display: block; font-size: .9rem; }
.slip-format-body small { display: block; color: var(--color-muted); font-size: .74rem; line-height: 1.35; margin-top: 2px; }
.slip-format input:checked + .slip-format-body {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(11,110,79,0.16);
}
.slip-format input:focus-visible + .slip-format-body { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }

/* --- Format: blank space for pre-printed letterhead --- */
.slip-letterhead-space { display: none; }
.slip-receipt--letterhead .slip-letterhead-space { display: block; height: 130px; }
/* The organisation name and address are already on the letterhead. The
   registration numbers usually are not, so those stay. */
.slip-receipt--letterhead .slip-org-block h2,
.slip-receipt--letterhead .slip-org-address { display: none; }
.slip-receipt--letterhead .slip-receipt-head { border-bottom-width: 1px; }
.slip-receipt--letterhead .slip-stamp { display: none; }

/* --- Format: compact, half page for receipt books --- */
.slip-receipt--compact { padding: 20px 22px; }
.slip-receipt--compact .slip-receipt-head { padding-bottom: 9px; border-bottom-width: 1px; }
.slip-receipt--compact .slip-receipt-head h2 { font-size: 1.05rem; }
.slip-receipt--compact .slip-org-address,
.slip-receipt--compact .slip-org-meta { font-size: .72rem; }
.slip-receipt--compact .slip-stamp { padding: 5px 9px; font-size: .68rem; }
.slip-receipt--compact .slip-meta { padding: 8px 0; font-size: .8rem; }
.slip-receipt--compact .slip-table th,
.slip-receipt--compact .slip-table td { padding: 5px 8px; font-size: .82rem; }
.slip-receipt--compact .slip-note { margin-bottom: 14px; font-size: .72rem; }
.slip-receipt--compact .slip-sign-line { width: 150px; }

/* --- Format: traditional bordered receipt --- */
.slip-receipt--formal {
  border: 2px solid var(--color-text);
  border-radius: 4px;
}
.slip-receipt--formal .slip-receipt-head {
  display: block;
  text-align: center;
  border-bottom: 1px solid var(--color-text);
}
.slip-receipt--formal .slip-receipt-head h2 {
  color: var(--color-text);
  font-size: 1.4rem;
  letter-spacing: .5px;
}
.slip-receipt--formal .slip-org-meta { justify-content: center; }
.slip-receipt--formal .slip-stamp {
  display: inline-block;
  margin-top: 10px;
  border-color: var(--color-text);
  color: var(--color-text);
  border-width: 1px;
  letter-spacing: 1.5px;
}
.slip-receipt--formal .slip-table th { background: transparent; }
.slip-receipt--formal .slip-table th,
.slip-receipt--formal .slip-table td { border-bottom: 1px dotted #9aa5b1; }

@media (max-width: 950px) {
  .slip-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .slip-row, .slip-formats { grid-template-columns: 1fr; }
  .slip-receipt { padding: 22px 18px; }
}

/* Printing: only the receipt goes on the paper. */
@media print {
  .site-header, .site-footer, .wa-float, .no-print,
  .slip-form, .slip-preview-label { display: none !important; }
  .slip-section { padding: 0; }
  .slip-layout { display: block; }
  .slip-receipt {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .container { max-width: none; padding: 0; }
  body { background: #fff; }
}

/* ---------- WhatsApp group join ---------- */
.wa-join {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0f7a53 0%, #25d366 100%);
  border-radius: 16px;
  padding: 26px 30px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.wa-join-icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.wa-join-text { flex: 1 1 260px; }
.wa-join-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 3px;
}
.wa-join-text span { color: rgba(255,255,255,0.9); font-size: .93rem; }
.wa-join-btn {
  background: #fff; color: #0f7a53;
  flex: 0 0 auto;
}
.wa-join-btn:hover { background: var(--color-accent); color: #1f2a37; }

/* Stacked variant: sits in the narrow contact column, so the icon, copy and
   button run down the card instead of across it. */
.wa-join--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}
.wa-join--stacked .wa-join-text { flex: 0 0 auto; }
.wa-join--stacked .wa-join-btn { align-self: flex-start; }

.contact-col { display: block; }

@media (max-width: 600px) {
  .wa-join { padding: 22px; }
  .wa-join-btn { width: 100%; text-align: center; }
}

/* ---------- Contact page template ---------- */
.contact-section { padding: 56px 0 40px; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-card-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(11,110,79,0.1);
  font-size: 1.25rem;
}
.contact-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--color-primary-dark); }
.contact-card p { margin: 0 0 8px; color: var(--color-muted); line-height: 1.55; }
.contact-card a { font-weight: 500; }
.contact-card-note { font-size: .82rem; color: var(--color-muted); }

.contact-form-panel {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
}
.contact-form-panel h2 { margin-bottom: 4px; }
.contact-form-lead { color: var(--color-muted); margin-bottom: 18px; }
/* The form already carries its own card styling; inside this panel that would
   be a box within a box. */
.contact-form-panel .contact-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.contact-map-section { padding: 16px 0 64px; }
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  line-height: 0;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-panel { padding: 24px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info p { margin: 8px 0; }
.contact-info .label { font-size: .8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 28px; box-shadow: var(--shadow-sm); }
.contact-form label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: .9rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { margin-top: 16px; width: 100%; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(11,110,79,0.15), transparent 60%),
    linear-gradient(180deg, #f6fbf8 0%, #ffffff 100%);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--color-border);
}
.crumbs { font-size: .9rem; color: var(--color-muted); margin-bottom: 10px; }
.crumbs a { color: var(--color-muted); }
.crumbs a:hover { color: var(--color-primary); }

.entry-content { padding: 56px 0; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content ul { padding-left: 1.25em; }
.entry-content li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0d1b1f; color: #cbd5e1;
  padding: 56px 0 24px; margin-top: 40px;
}
.site-footer h4 { color: #fff; margin-bottom: 12px; font-family: var(--font-display); font-size: 1rem; letter-spacing: .5px; text-transform: uppercase; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
/* Brand on the left as before, then the service tree, then resources/office. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 2.1fr 1.05fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: #94a3b8; }

/* Services column: multi-column so groups of 2 and of 6 balance themselves
   instead of leaving ragged gaps in a fixed grid. */
.footer-service-groups {
  columns: 2;
  column-gap: 32px;
}
@media (max-width: 1000px) { .footer-service-groups { columns: 2; } }
@media (max-width: 520px)  { .footer-service-groups { columns: 1; } }

.footer-service-group {
  /* Never split a service away from its own sub-items across a column break. */
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 20px;
}
.footer-service-head {
  display: block;
  color: #fff !important;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.35;
  margin-bottom: 8px;
}
.footer-service-head:hover { color: var(--color-accent) !important; }
.footer-service-group ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
}
.footer-service-group li a {
  font-size: .84rem;
  color: #94a3b8;
  line-height: 1.4;
}
.footer-service-group li a:hover { color: #fff; }

/* Office sits under Resources in the same column. */
.footer-office-head { margin-top: 28px; }
.footer-address { color: #94a3b8; }

/* Footer logo sits on a white chip: the artwork is black, which would be
   invisible against the dark footer. */
.footer-logo {
  display: inline-block;
  background: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  line-height: 0;
}
.footer-logo img {
  width: auto; height: auto;
  /* Tall enough that the "TAXTION | CSR | ESG" tagline stays legible. */
  max-height: 112px; max-width: 200px;
  object-fit: contain;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  color: #fff;
}
.socials a:hover { background: var(--color-primary); }
.footer-bottom {
  margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: .9rem; color: #94a3b8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Homepage book band ---------- */
.book-band {
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(245,158,11,0.13), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.book-band-inner {
  display: grid; grid-template-columns: 210px 1fr; gap: 44px; align-items: center;
}
.book-band-cover { display: block; }
.book-band-cover img {
  width: 100%; height: auto; border-radius: 4px;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.2));
  transition: transform .18s ease;
}
.book-band-cover:hover img { transform: translateY(-3px) scale(1.015); }

.book-band-body .eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .8rem; color: var(--color-primary); font-weight: 700; margin-bottom: 8px;
}
.book-band-body h2 { margin: 0 0 10px; }
.book-band-body h2 a { color: var(--color-primary-dark); }
.book-band-body h2 a:hover { color: var(--color-primary); }
.book-band-meta {
  font-size: .88rem; color: var(--color-muted); font-weight: 600;
  margin-bottom: 10px;
}
.book-band-body > p:not(.book-band-meta) { color: var(--color-muted); max-width: 62ch; }

.book-band-sellers {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.book-band-sellers-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--color-muted); font-weight: 700;
}
.book-band-sellers a { display: flex; align-items: center; height: 34px; }
.book-band-sellers img {
  max-height: 100%; max-width: 150px; width: auto; height: auto;
  object-fit: contain;
  /* Logos come from four different brands; muting them slightly keeps the row
     visually calm, full colour on hover confirms it is clickable. */
  filter: grayscale(100%); opacity: .68;
  transition: filter .15s ease, opacity .15s ease;
}
.book-band-sellers a:hover img { filter: none; opacity: 1; }

@media (max-width: 860px) {
  .book-band-inner { grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
}
@media (max-width: 600px) {
  .book-band-inner { grid-template-columns: 1fr; }
  .book-band-cover { max-width: 170px; }
  .book-band-sellers { gap: 18px; }
}

/* ---------- Book landing page ---------- */
.book-intro { padding: 40px 0 72px; }
.book-intro-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start;
}
.book-intro-grid .lead { font-size: 1.075rem; color: var(--color-muted); }
.book-intro-grid h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--color-primary-dark); }

/* Real cover image (page Featured Image). The supplied render already sits on
   its own near-white background, so no card/border is added around it. */
.book-cover-img {
  margin: 0;
  position: sticky; top: 96px;
}
.book-cover-img img {
  width: 100%; height: auto;
  border-radius: 4px;
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.18));
}

/* Stand-in cover, used only when no Featured Image is set. */
.book-cover {
  aspect-ratio: 2/3;
  border-radius: 6px 12px 12px 6px;
  padding: 30px 24px 24px;
  background: linear-gradient(150deg, #074d37 0%, #0b6e4f 55%, #128f66 100%);
  border-left: 7px solid rgba(0,0,0,0.28);
  box-shadow: var(--shadow-md);
  color: #fff;
  display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 96px;
}
.book-cover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 78% 12%, rgba(245,158,11,0.28), transparent 55%);
  pointer-events: none;
}
.book-cover-pub {
  font-size: .66rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.book-cover-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.55rem; line-height: 1.15; margin-top: 6px;
}
.book-cover-sub { font-size: .82rem; color: rgba(255,255,255,0.8); }
.book-cover-author {
  margin-top: auto; font-weight: 700; font-size: 1rem;
  border-top: 1px solid rgba(255,255,255,0.25); padding-top: 12px;
}
.book-cover-edition { font-size: .78rem; color: var(--color-accent); font-weight: 700; }

.book-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 24px; margin: 26px 0 8px; padding: 22px;
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.book-facts div { margin: 0; }
.book-facts dt {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-muted); font-weight: 700; margin-bottom: 2px;
}
.book-facts dd { margin: 0; font-weight: 600; font-size: .95rem; }

/* Retailer cards */
.buy-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.buy-card {
  position: relative;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
}
.buy-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.buy-card.is-best { border-color: var(--color-primary); border-width: 2px; }
.buy-card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.buy-card .btn { margin-top: auto; text-align: center; }

/* Retailer logo — clicking it opens the book on that seller's site.
   Logos arrive at wildly different aspect ratios, so a fixed-height flex box
   keeps every card's logo row optically aligned. */
.buy-logo {
  display: flex; align-items: center;
  height: 42px; margin-bottom: 12px;
}
.buy-logo img {
  max-height: 100%; max-width: 78%;
  width: auto; height: auto;
  object-fit: contain; object-position: left center;
  transition: opacity .15s ease;
}
.buy-logo:hover img { opacity: .78; }
.buy-logo-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--color-primary-dark);
}
.buy-flag {
  position: absolute; top: -11px; left: 20px;
  background: var(--color-accent); color: #1f2a37;
  font-size: .7rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
/* "Cheapest overall" (the e-book) — distinguished from the print winner so the
   two badges don't read as contradicting each other. */
.buy-flag--alt { background: var(--color-primary); color: #fff; }
.buy-format {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-muted); font-weight: 700; margin: 0 0 10px;
}
.buy-price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.65rem; color: var(--color-primary-dark);
  margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.buy-price del { font-size: .85rem; font-weight: 500; color: var(--color-muted); }
.buy-price em {
  font-style: normal; font-size: .7rem; font-weight: 700;
  background: rgba(11,110,79,0.1); color: var(--color-primary-dark);
  padding: 3px 8px; border-radius: 999px;
}
.buy-note { font-size: .85rem; color: var(--color-muted); margin: 0 0 18px; }
.buy-disclaimer {
  margin: 32px auto 0; max-width: 760px; text-align: center;
  font-size: .85rem; color: var(--color-muted);
}

@media (max-width: 1000px) { .buy-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) {
  .book-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-cover { position: static; max-width: 280px; }
  .book-cover-img { position: static; max-width: 300px; }
}
@media (max-width: 620px) {
  .buy-grid { grid-template-columns: 1fr; }
  .book-facts { grid-template-columns: 1fr; }
}

/* ---------- Author block (book page) ---------- */
.author-band {
  background:
    radial-gradient(620px 320px at 88% 0%, rgba(11,110,79,0.10), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  border-top: 1px solid var(--color-border);
}
.author-grid {
  display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center;
}
.author-photo { margin: 0; }
.author-photo img {
  width: 100%; height: auto;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.author-body .eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .8rem; color: var(--color-primary); font-weight: 700; margin-bottom: 8px;
}
.author-body h2 { margin: 0 0 4px; color: var(--color-primary-dark); }
.author-creds {
  font-size: .85rem; font-weight: 700; letter-spacing: .5px;
  color: var(--color-muted); text-transform: uppercase; margin-bottom: 16px;
}
.author-body p { color: var(--color-muted); max-width: 64ch; }
.author-body .btn { margin-top: 8px; }

.author-stats-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--color-muted); font-weight: 700;
  margin: 22px 0 10px;
}
/* Reuses .hero-stats/.hero-stat so the tiles match the homepage exactly. */
.author-stats { margin-top: 0; margin-bottom: 24px; max-width: 480px; }

@media (max-width: 860px) {
  .author-grid { grid-template-columns: 160px 1fr; gap: 28px; align-items: start; }
}
@media (max-width: 600px) {
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 190px; }
}

/* ---------- Tabs (registration sub-services) ---------- */
.tabs-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}
.tabs-btn {
  font: inherit; font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tabs-btn:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.tabs-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.tabs-btn:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }

.tabs-panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
}
/* .entry-content adds page-level vertical padding; not wanted inside a panel. */
.tabs-panel.entry-content { padding: 30px 32px; }
.tabs-panel > :first-child { margin-top: 0; }
.tabs-panel-title { color: var(--color-primary-dark); margin-bottom: 14px; }
.tabs-panel-link { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--color-border); }

/* Without JS every panel stays visible, so give them breathing room. */
.tabs-panel + .tabs-panel { margin-top: 18px; }

/* --- Service video ---
   Sits where the banner image used to, on the sub-service pages and inside the
   tab panels that pull the same content. The banner was 2.5:1 and the footage
   is 16:9, so the box is taller than what it replaced. aspect-ratio reserves
   the space before the video loads, which keeps the page from jumping. */
/* Capped and centred rather than full width. The banner it replaced was 2.5:1;
   the same column filled with 16:9 footage came out about 600px tall and took
   over the page. At this width it is roughly the height the banner was. */
/* Listed with .entry-content too: the generic `.entry-content figure` rule
   above is one specificity point heavier and was cancelling the auto margins,
   leaving the video stuck against the left edge. */
.service-video,
.entry-content .service-video {
  margin: 0 auto 26px;
  max-width: 560px;
}
.service-video-el {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
  /* contain, not cover. The footage is 16:9 and so is the box, so this changes
     nothing during playback - but the poster is the old 2.5:1 banner, and cover
     was cropping its sides and cutting off the title on it. The dark green
     background fills the bands above and below. */
  object-fit: contain;
}

@media (max-width: 600px) {
  .tabs-btn { padding: 9px 14px; font-size: .92rem; }
  .tabs-panel, .tabs-panel.entry-content { padding: 22px 18px; }
}

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 100;
  background: #25D366; color: #fff; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  font-size: 1.6rem;
}
.wa-float:hover { color: #fff; transform: scale(1.05); }
