/* Mandato overrides for the Sana "Marketing Light" theme.
   Loaded after theme.css. Keeps the template's look, but:
   - darker body text so it is easy to read (WCAG AA)
   - black buttons to match the MANDATO logo
   - styles for parts the template doesn't have (pricing table, carousels, form fields) */

:root {
  --ink: #181a1c;
  --text: #474b51;
  --muted: #5f646b;
  --line: rgba(24, 26, 28, 0.12);
  --bg: #f1f5f9;
  --shadow: 0 10px 36px 0 rgba(22, 24, 26, 0.08);
  --shadow-hover: 0 10px 40px 0 rgba(22, 24, 26, 0.14);
}

/* ---------- Base ---------- */
/* The template covers the page until every file has loaded. Show content straight away instead. */
body:after, .theme-light:after { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body.theme-light { color: var(--text); font-family: "Open Sans", sans-serif; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Outfit", sans-serif; text-wrap: balance; }
.theme-light .h1, .theme-light .h2, .theme-light .h3, .theme-light .h4 { color: var(--ink); }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: #fff; color: var(--ink) !important; padding: 10px 16px; border-radius: 8px; font-weight: 600; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.small, small { color: var(--muted); }

/* ---------- Header ---------- */
/* Blur sits on a background layer: a backdrop-filter on .header itself would trap the fixed mobile menu inside the 80px header. */
.theme-light .header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(241, 245, 249, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.theme-light .header.is-scrolled::before { border-bottom-color: var(--line); }
.header .header-logo a { display: inline-flex; color: var(--ink) !important; }
.header .logo { height: 22px; width: auto; display: block; }
@media (min-width: 1200px) { .header .logo { height: 25px; } }
.header-cta { margin-left: 12px; white-space: nowrap; }
@media (max-width: 575.98px) { .header-cta { display: none; } }
@media (max-width: 991.98px) { .header .menu-toggle { margin-left: 12px; } }
.header .header-menu .nav-dropdown-toggle { border: 0; background: transparent; color: var(--ink); }
@media (min-width: 992px) {
  .header .header-menu .nav { flex-wrap: nowrap; }
  .header .header-menu .nav .nav-item .nav-dropdown { width: 270px; right: auto; left: 0; }
  .header .header-menu .nav .nav-item:focus-within .nav-dropdown { visibility: visible; opacity: 1; margin-top: 0; }
}
@media (max-width: 991.98px) {
  .header .header-menu .nav .nav-item.has-dropdown { position: relative; }
  .header .header-menu .nav-dropdown-toggle { top: 2px; right: 0; width: 40px; height: 40px; color: var(--ink); }
  .header .header-menu { max-width: 100%; overflow-y: auto; }
  .header .header-menu .nav .nav-item .nav-dropdown .nav-dropdown-item { margin-bottom: 12px; }
  .header .header-menu .nav .nav-item .nav-dropdown:not(.show) { display: none; }
}

/* ---------- Buttons (black, to match the logo) ---------- */
.theme-light .button { background: var(--ink); color: #fff !important; box-shadow: none; border: 0; font-family: "Outfit", sans-serif; transition: background-color .15s, transform .15s; }
.theme-light .button:after { display: none; }
.theme-light .button:hover, .theme-light .button:focus-visible { background: #000; box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.theme-light .button.button-style-2 { background: rgba(24, 26, 28, 0.08); color: var(--ink) !important; }
.theme-light .button.button-style-2:hover { background: rgba(24, 26, 28, 0.14); }
.theme-light .button-circle { background: #fff; color: var(--ink) !important; border: 0; box-shadow: var(--shadow); }
.theme-light .button-circle:after { display: none; }
.theme-light .button-circle:hover { background: var(--ink); color: #fff !important; }
button.button-circle { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* ---------- Typography helpers ---------- */
.title-heading { margin-bottom: .75rem; }
.hero-lead { max-width: 720px; font-size: 1.2rem; color: var(--text); }
.lead-answer { font-size: 1.2rem; line-height: 1.6; color: var(--ink); max-width: 760px; }
.cta-text { max-width: 640px; font-size: 1.1rem; }
.updated-line { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs { margin-bottom: 1.5rem; font-size: .9rem; }
.breadcrumbs ul { margin: 0; padding: 0; }
.breadcrumbs li[aria-current] { color: var(--muted); }
.legal p { font-size: 1.05rem; }
.about-text p { font-size: 1.15rem; }

/* ---------- Stats ---------- */
.stat { background: #fff; border-radius: 1em; padding: 28px 20px; text-align: center; box-shadow: var(--shadow); height: 100%; }
.stat-value { font-family: "Outfit", sans-serif; font-weight: 600; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin: 0; }
.stat-label { margin: 8px 0 0; font-size: .95rem; color: var(--muted); }
.big-stroke { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 8rem; line-height: .95; margin: 0; }
.metric-value { font-family: "Outfit", sans-serif; font-weight: 600; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 6px; }

/* ---------- Progress bars ---------- */
.progress-box .sm-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.progress-value { font-weight: 600; }
.theme-light .progress-box .animated-progress div { background: var(--ink); background-image: none; }
.progress-box .animated-progress div::after { display: none; }
.js .progress-box .animated-progress div { width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Order boxes & cards as links ---------- */
a.order-box, a.fancy-box { display: flex; color: inherit !important; text-decoration: none; }
a.fancy-box { display: block; height: 100%; }
a.order-box h3, a.fancy-box h2 { color: var(--ink); }
.order-box p { margin-bottom: 0; }
.service-price { margin: 16px 0 0; font-weight: 600; color: var(--ink); }
.check-columns { columns: 2 260px; column-gap: 32px; }
.check-columns li, .list-unstyled li { margin-bottom: 8px; break-inside: avoid; }
.list-unstyled .bi-check, .list-unstyled .bi-trophy { color: var(--ink); }

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0 0; padding: 0; }
@media (max-width: 767.98px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
.client-box { background: #fff; border-radius: 1em; box-shadow: var(--shadow); min-height: 88px; display: grid; place-items: center; padding: 16px; text-align: center; }
.client-box span { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }

/* ---------- Carousels (scroll-snap, no library) ---------- */
.carousel-track { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px) { .case-carousel .carousel-slide { flex-basis: calc(50% - 16px); } }
.carousel-dots { display: flex; justify-content: center; gap: 0; margin-top: 28px; }
/* Dots: 24x24px click targets (WCAG 2.2 target size) with a 10px dot drawn inside */
.carousel-dots { align-items: center; }
.carousel-dots button:not(.carousel-toggle) { width: 24px; height: 24px; padding: 0; border-radius: 50%; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.carousel-dots button:not(.carousel-toggle)::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); opacity: .2; }
.carousel-dots button[aria-current="true"]::before { opacity: 1; }
.carousel-dots .carousel-toggle { min-height: 24px; margin-left: 8px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font: 600 14px 'Outfit', sans-serif; color: var(--ink); }
.testimonial-box { padding-left: 0; text-align: center; max-width: 900px; margin: 0 auto; }
.testimonial-box:before { content: "\201C"; font-family: Georgia, "Times New Roman", serif; font-weight: 700; left: 50%; transform: translateX(-50%); top: -30px; font-size: 8rem; line-height: 1; opacity: .12; }
.testimonial-content { margin: 24px 0 0; }
.testimonial-content p { color: var(--ink); }

/* ---------- Case studies ---------- */
.portfolio-box .portfolio-img img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .4s ease; }
.portfolio-box:hover .portfolio-img img { transform: scale(1.03); }
.portfolio-box .h2 { font-size: 1.6rem; margin: 0 0 6px; }
.case-meta { color: var(--muted); margin-top: 12px; }
.case-cover { display: block; width: 100%; box-shadow: var(--shadow); }
.case-item[hidden] { display: none !important; }
.filter ul { display: flex; flex-wrap: wrap; gap: 8px; }
.filter ul li { padding: 0; margin: 0; }
.filter ul li button { padding: 12px 24px; color: var(--ink); font-weight: 500; font-family: "Outfit", sans-serif; border-radius: 40px; }
.theme-light .filter ul li:has(button[aria-pressed="true"]) { background: var(--ink); }
.filter ul li button[aria-pressed="true"] { color: #fff; }

/* ---------- Pricing ---------- */
.plan { height: 100%; display: flex; flex-direction: column; }
.plan .button { align-self: flex-start; margin-top: auto !important; }
.plan ul { margin-bottom: 24px; }
.plan-featured { outline: 2px solid var(--ink); }
.plan-badge { position: absolute; top: 22px; right: 22px; background: var(--ink); color: #fff; font-family: "Outfit", sans-serif; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 30px; }
.plan-includes { font-family: "Outfit", sans-serif; font-weight: 600; color: var(--ink); margin: 6px 0 0; }
.plan-price { font-family: "Outfit", sans-serif; font-size: clamp(1.9rem, 2.6vw, 2.4rem); white-space: nowrap; font-weight: 600; color: var(--ink); line-height: 1.1; margin: 0; }
.plan-prefix { display: block; font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-price .plan-unit { display: inline-block; }
.plan-unit { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-gst { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.price-table, .entity-table { --bs-table-bg: transparent; }
.price-table th, .price-table td, .entity-table th, .entity-table td { padding: 16px 20px; vertical-align: top; border-color: var(--line); color: var(--text); }
.price-table thead th, .entity-table thead th { font-family: "Outfit", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; color: var(--ink); }
.price-table tbody th, .entity-table tbody th { color: var(--ink); font-weight: 600; }
.entity-table td:first-child a, .entity-table td:last-child a { white-space: nowrap; }

/* ---------- Accordion (FAQ) ---------- */
.accordion li .accordion-title { display: block; width: 100%; text-align: left; padding-right: 64px; }
.accordion li .accordion-title .h4 { font-size: 1.1rem; line-height: 1.4; color: var(--ink); }
.theme-light .accordion li .accordion-title:before { background: var(--ink); background-image: none; }
.theme-light .accordion li .accordion-title:after { background: var(--ink); background-image: none; }
.accordion li .accordion-title .title-arrow { color: var(--ink); }
.accordion li .accordion-content p { margin: 0; }
.no-js .accordion li .accordion-content, html:not(.js) .accordion li .accordion-content { max-height: none; }

/* ---------- Forms ---------- */
.contact-form label { display: block; font-family: "Outfit", sans-serif; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.theme-light .contact-form select { width: 100%; border: 0; margin-bottom: 1rem; padding: 15px 20px; border-radius: .5em; background: #fff; color: var(--text); box-shadow: var(--shadow); font: 400 15px "Open Sans", sans-serif; }
.theme-light input:not(.form-check-input), .theme-light textarea { color: var(--ink); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form select:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 1rem; padding: 14px 18px; border-radius: .5em; font-weight: 600; }
.form-status.is-success { background: #e8f7ee; color: #0f6b3a; }
.form-status.is-error { background: #fdecec; color: #9b1c1c; }
.button[disabled] { opacity: .7; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer .logo-footer { height: 26px; width: auto; color: var(--ink); display: block; }
.site-footer .h3 a { color: var(--ink); word-break: break-word; }
.footer-links { border-top: 1px solid var(--line); padding-top: 24px; }
.footer-links .sm-heading { margin-bottom: 12px; }
.footer-links li { margin-bottom: 6px; font-size: .95rem; }
.related-links { line-height: 2; }

/* ---------- Misc ---------- */
.bg-lines { pointer-events: none; }
.scrolltotop a { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Outlined text ----------
   The variable Outfit font has overlapping shapes, so a plain stroke shows lines inside letters.
   Filling with the background colour on top of the stroke hides them. */
.theme-light { --stroke-fill: #f1f5f9; }
.theme-light .stat, .theme-light .fancy-box, .theme-light .order-box, .theme-light .bg-lighter { --stroke-fill: #fff; }
.theme-light .stroke-text { -webkit-text-fill-color: var(--stroke-fill); paint-order: stroke fill; -webkit-text-stroke-width: 2.4px; }
@media (max-width: 991.98px) { .theme-light .stroke-text { -webkit-text-stroke-width: 2px; } }

/* Smaller hero headline on phones */
@media (max-width: 575.98px) {
  .hero-text { font-size: 2.9rem; line-height: 1.1; }
  .hero-lead { font-size: 1.05rem; }
}

/* ---------- Client logos ---------- */
.client-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.client-grid .client-box { flex: 0 1 calc(20% - 13px); min-width: 150px; min-height: 96px; padding: 20px 24px; }
@media (max-width: 767.98px) { .client-grid .client-box { flex-basis: calc(50% - 8px); min-width: 0; } }
.client-box a { display: grid; place-items: center; width: 100%; height: 100%; }
.client-logo { width: auto; height: auto; max-height: 38px; max-width: 100%; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.client-logo.logo-tall { max-height: 56px; }
.client-box:hover .client-logo, .client-box a:focus-visible .client-logo { filter: none; opacity: 1; }
.case-logo { display: block; width: auto; height: 26px; max-width: 150px; object-fit: contain; object-position: left center; margin-bottom: 14px; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.case-logo.logo-tall { height: 40px; }
.case-logo.logo-wide { height: 20px; max-width: 170px; }
.portfolio-box:hover .case-logo { filter: none; opacity: 1; }
.case-hero-logo { display: block; width: auto; height: 44px; max-width: 220px; object-fit: contain; object-position: left center; margin-bottom: 20px; }
.case-hero-logo.logo-tall { height: 72px; }
.case-hero-logo.logo-wide { height: 30px; max-width: 260px; }

/* ---------- Currency switcher ---------- */
.currency-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.currency-switch label { font-family: "Outfit", sans-serif; font-weight: 500; color: var(--ink); }
.theme-light .currency-switch select { width: auto; min-width: 220px; margin: 0; padding: 10px 16px; border: 0; border-radius: 40px; background: #fff; color: var(--ink); box-shadow: var(--shadow); font: 500 15px "Open Sans", sans-serif; }
.currency-note { flex-basis: 100%; }

/* ---------- Cookie consent ---------- */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.legal .link-button { color: var(--ink); text-decoration: underline; }
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1050; max-width: 560px; padding: 20px 22px; background: #fff; color: var(--text); border-radius: 16px; box-shadow: 0 16px 48px rgba(22, 24, 26, 0.18); }
.consent-banner p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.consent-banner .consent-title { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.consent-banner a { color: var(--ink); text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 26px; border: 0; border-radius: 18px; color: var(--text); box-shadow: 0 24px 64px rgba(22, 24, 26, 0.25); }
.consent-dialog::backdrop { background: rgba(11, 11, 12, 0.45); }
.consent-dialog .h4 { margin-bottom: 8px; }
.consent-dialog p { font-size: 15px; line-height: 1.5; }
.consent-option { padding: 14px 0; border-top: 1px solid var(--line); }
.consent-option label { display: flex; align-items: center; gap: 10px; color: var(--ink); cursor: pointer; }
.consent-option input { width: 18px; height: 18px; accent-color: #0b0b0c; }
.consent-option label .small { margin-left: auto; }
.consent-option p { margin: 6px 0 0 28px; }
.consent-option .consent-gpc { color: var(--ink); font-weight: 600; }
.consent-dialog .consent-actions { margin: 16px 0 12px; }
@media (min-width: 768px) { .consent-banner { right: auto; } }

/* ---------- Keyword-map pages (hubs, services, industries) ---------- */
.lead-answer p { font-size: 1.125rem; line-height: 1.65; }
.lead-answer p + p { font-size: 1rem; }
.copy-body h2 { color: var(--ink); }
.copy-body p, .copy-body li { line-height: 1.7; }
.copy-body a.link-hover, .lead-answer a.link-hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.copy-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 12px; }
.copy-list li { padding: 14px 16px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.copy-list li strong { color: var(--ink); }
.copy-sidebar { position: sticky; top: 104px; }
.related-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.related-list a { color: var(--ink); }
.related-chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-size: 15px; }
.related-chips a:hover { box-shadow: var(--shadow-hover); }
.evidence-card { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; }
.evidence-card .evidence-img { display: block; background: #f6f8fa; border-bottom: 1px solid var(--line); }
.evidence-card img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: top left; }
.evidence-card figcaption { padding: 18px 20px 20px; }
.evidence-card figcaption p { margin-bottom: 8px; font-size: 15px; }
.evidence-client { font-family: "Outfit", sans-serif; font-weight: 600; color: var(--ink); font-size: 17px !important; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.ba { border-radius: 10px; padding: 10px 12px; }
.ba p { margin: 0 !important; font-size: 14px !important; }
.ba .sm-heading { margin-bottom: 4px !important; font-size: 12px !important; }
.ba-before { background: #fff4f2; }
.ba-after { background: #e8f8f0; }
.ba-after p:last-child { color: #0b5e3f; font-weight: 600; }
@media (max-width: 991px) { .copy-sidebar { position: static; } }
.copy-body p { margin: 0 0 1rem; }
.copy-body h2 + p { margin-top: .5rem; }
.nav-dropdown-heading { padding: 10px 16px 4px; font: 600 12px "Outfit", sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.nav-dropdown-heading:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
@media (min-width: 992px) { .nav-dropdown { max-height: calc(100vh - 120px); overflow-y: auto; } }
.follow-google { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink) !important; box-shadow: var(--shadow); font: 600 14px "Outfit", sans-serif; text-decoration: none; }
.follow-google:hover { box-shadow: var(--shadow-hover); }
.follow-google i { font-size: 18px; color: #1a73e8; }

/* ---------- Blog ---------- */
.post-meta { color: var(--muted); margin-top: 12px; }
.post-body h2 { scroll-margin-top: 100px; }
.post-list { padding-left: 1.2rem; margin-bottom: 1rem; }
.post-list li { margin-bottom: .4rem; }
.post-cta { margin: 28px 0; border-left: 4px solid #0b0b0c; }
.post-cta .h4 { margin-bottom: 6px; }
.post-cta-inline { margin: 24px 0; padding: 14px 18px; border-radius: 12px; background: #e8f8f0; }
.post-cta-inline p { margin: 0; }
.post-sources { padding-left: 1.2rem; font-size: 15px; }
.story-card { display: block; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); color: var(--ink) !important; }
.story-card img { display: block; width: 100%; height: auto; }
.story-card span { display: block; padding: 12px 14px; font: 600 15px 'Outfit', sans-serif; }

/* City pages: local content (docs/local-content.md) */
.local-figure { padding: 22px 24px !important; }
.local-figure figcaption { margin-top: 12px; color: var(--muted, #5b6168); }
.demand-chart { display: block; width: 100%; height: auto; margin-top: 8px; }
.demand-chart text { font: 500 14px 'Open Sans', sans-serif; fill: #3b4148; }
.demand-chart .dc-mine { font-weight: 700; fill: #0b7a52; }
.demand-chart .dc-value { font-weight: 600; fill: #181a1c; }
.demand-chart .dc-bar { fill: #cfd8e3; }
.demand-chart .dc-bar-mine { fill: #10a36a; }
.serp-shot { display: block; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.serp-shot img { display: block; width: 100%; height: auto; }
.local-example { border-left: 6px solid #10a36a; }
.local-kw td, .local-kw th { font-size: 15px; padding: 6px 4px; border-color: var(--line); background: transparent; }

/* FAQ accordion: the heading wraps the button (valid HTML, WAI-ARIA pattern) */
.accordion-heading { margin: 0; font-size: inherit; line-height: inherit; }
.carousel-track:focus-visible { outline: 3px solid #0b7a52; outline-offset: 4px; border-radius: 8px; }

/* Keyboard focus is always visible (WCAG 2.4.7). The theme sets outline: 0 on links, buttons and fields. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #0b7a52 !important; outline-offset: 3px; }
/* Desktop menu: the Services dropdown also opens when keyboard focus moves into it (it opened on hover only). */
@media (min-width: 992px) {
  .header .header-menu .nav .nav-item:focus-within .nav-dropdown { visibility: visible; opacity: 1; margin-top: 0; }
}
@media (min-width: 992px) {
  .header .header-menu .nav .nav-item.dropdown-closed .nav-dropdown { visibility: hidden !important; opacity: 0 !important; }
}
/* Form fields need a visible edge (WCAG 1.4.11): white fields on the light page were about 1.1:1. #6b7280 is 4.8:1 on white, 4.4:1 on the page. */
.contact-form input:not([type="checkbox"]):not([type="hidden"]), .contact-form textarea, .theme-light .contact-form select { border: 1px solid #6b7280 !important; }
/* Blog figures (tools/post_figures.py) */
.post-cover { margin: 2rem 0 0; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 16px; }
.post-card-cover { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 1rem; }
.post-body code { font-size: .92em; background: var(--line); padding: .1em .35em; border-radius: 4px; }
.post-figure { margin: 2rem 0; }
.post-video { margin: 2.5rem 0; }
.post-video video { display: block; width: 100%; height: auto; border-radius: 12px; background: #0D2A4C; }
.post-video figcaption { margin-top: 10px; color: var(--muted, #5b6168); }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.post-figure figcaption { margin-top: 10px; color: var(--muted, #5b6168); }
