/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Timberivo child theme of Astra
Author: Timberivo
Template: astra
Version: 2.0.0
Text Domain: astra-child
*/


/* TVB-BLUEPRINT-CSS — station 1 only, prefix tvb- */
/* ============================================================
   timberivo.com — Global CSS (STATION 1)
   Timbre craft theme — wooden crafts wholesale & custom engraving
   Independent stylesheet. DO NOT merge with craftsivo.com CSS.
   Prefix: tvb-   |   No @keyframes, no auto-carousel, no external fonts
   ============================================================ */

:root {
  --tvb-bg:        #F7F4EF;   /* warm oatmeal */
  --tvb-bg-alt:    #EEF1ED;   /* pale grey-green */
  --tvb-card:      #FFFFFF;
  --tvb-primary:   #6B4F3A;   /* deep oak brown */
  --tvb-text:      #444444;
  --tvb-border:    #E3DED4;
  --tvb-muted:     #7A7066;
  --tvb-primary-d: #553E2E;
  --tvb-radius:    6px;
  --tvb-radius-card: 8px;
  --tvb-maxw:      1200px;
  --tvb-gap:       24px;
  --tvb-section-y: 72px;
  --tvb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body.tvb,
.tvb body {
  margin: 0;
  background: var(--tvb-bg);
  color: var(--tvb-text);
  font-family: var(--tvb-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.tvb h1, .tvb h2, .tvb h3, .tvb h4 { color: var(--tvb-primary); line-height: 1.3; margin: 0 0 .6em; }
.tvb h1 { font-size: 40px; }
.tvb h2 { font-size: 28px; }
.tvb h3 { font-size: 20px; }
.tvb p  { margin: 0 0 1em; color: var(--tvb-text); }
.tvb a  { color: var(--tvb-primary); text-decoration: none; }
.tvb a:hover, .tvb a:focus-visible { color: var(--tvb-primary-d); text-decoration: underline; }
.tvb img { max-width: 100%; height: auto; display: block; border: 0; }
.tvb ul, .tvb ol { padding-left: 1.2em; }
.tvb :focus-visible { outline: 2px solid var(--tvb-primary); outline-offset: 2px; }

.tvb-wrap { max-width: var(--tvb-maxw); margin: 0 auto; padding: 0 24px; }
.tvb-section { padding: var(--tvb-section-y) 0; background: var(--tvb-bg); }
.tvb-section--alt { background: var(--tvb-bg-alt); }
.tvb-section__head { max-width: 720px; margin-bottom: 40px; }
.tvb-eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--tvb-muted); margin-bottom: 8px; }
.tvb-muted { color: var(--tvb-muted); font-size: 14px; }

/* ---------- grid ---------- */
.tvb-grid { display: grid; gap: var(--tvb-gap); }
.tvb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tvb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tvb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tvb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------- buttons ---------- */
.tvb-btn {
  display: inline-block; background: var(--tvb-primary); color: #fff;
  padding: 12px 26px; border: 1px solid var(--tvb-primary); border-radius: 4px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.tvb-btn:hover, .tvb-btn:focus-visible { background: var(--tvb-primary-d); color: #fff; text-decoration: none; }
.tvb-btn--ghost { background: transparent; color: var(--tvb-primary); }
.tvb-btn--ghost:hover { background: var(--tvb-primary); color: #fff; }
.tvb-btn--block { display: block; width: 100%; }
.tvb-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- navigation ---------- */
.tvb-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--tvb-card); border-bottom: 1px solid var(--tvb-border);
}
.tvb-nav__inner { max-width: var(--tvb-maxw); margin: 0 auto; padding: 0 24px; min-height: 68px; display: flex; align-items: center; gap: 24px; }
.tvb-nav__logo { font-size: 20px; font-weight: 700; color: var(--tvb-primary); letter-spacing: .02em; }
.tvb-nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex: 1; flex-wrap: wrap; }
.tvb-nav__item a { font-size: 14px; color: var(--tvb-text); }
.tvb-nav__item a:hover { color: var(--tvb-primary); }
.tvb-nav__item--current a { color: var(--tvb-primary); border-bottom: 2px solid var(--tvb-primary); padding-bottom: 3px; }
.tvb-lang { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.tvb-lang a { color: var(--tvb-muted); }
.tvb-lang__current a { color: var(--tvb-primary); font-weight: 600; }
.tvb-nav__toggle { display: none; }

/* ---------- breadcrumb ---------- */
.tvb-crumb { font-size: 13px; color: var(--tvb-muted); padding: 18px 0 0; }
.tvb-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tvb-crumb li + li::before { content: "›"; margin-right: 8px; color: var(--tvb-muted); }
.tvb-crumb a { color: var(--tvb-muted); }
.tvb-crumb a:hover { color: var(--tvb-primary); }

/* ---------- hero ---------- */
.tvb-hero { background: var(--tvb-bg); padding: 64px 0; }
.tvb-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tvb-hero__title { font-size: 40px; }
.tvb-hero__sub { font-size: 18px; margin-bottom: 28px; }
.tvb-hero__media { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.tvb-hero__media img { border-radius: var(--tvb-radius); width: 100%; object-fit: cover; }
.tvb-hero__media img:first-child { grid-row: span 2; height: 100%; min-height: 320px; }

/* ---------- cards ---------- */
.tvb-card {
  background: var(--tvb-card); border: 1px solid var(--tvb-border);
  border-radius: var(--tvb-radius-card); padding: 24px;
  box-shadow: 0 1px 3px rgba(107, 79, 58, .06);
}
.tvb-card__img { border-radius: var(--tvb-radius); margin-bottom: 16px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.tvb-card__title { font-size: 18px; margin-bottom: 8px; }
.tvb-card__meta { font-size: 13px; color: var(--tvb-muted); margin-bottom: 14px; }
.tvb-feature { text-align: left; }
.tvb-feature__num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--tvb-primary); border: 1px solid var(--tvb-border); border-radius: 50%; width: 34px; height: 34px; line-height: 32px; text-align: center; margin-bottom: 12px; }
.tvb-stat { text-align: center; }
.tvb-stat__num { font-size: 32px; font-weight: 700; color: var(--tvb-primary); display: block; }
.tvb-stat__label { font-size: 14px; color: var(--tvb-muted); }

/* ---------- specification table ---------- */
.tvb-spec-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tvb-spec { width: 100%; border-collapse: collapse; background: var(--tvb-card); font-size: 15px; }
.tvb-spec caption { text-align: left; font-weight: 600; color: var(--tvb-primary); padding-bottom: 10px; }
.tvb-spec th, .tvb-spec td { border: 1px solid var(--tvb-border); padding: 12px 16px; text-align: left; vertical-align: top; }
.tvb-spec thead th { background: var(--tvb-primary); color: #fff; font-weight: 600; }
.tvb-spec tbody th { width: 34%; background: var(--tvb-bg-alt); color: var(--tvb-primary); font-weight: 600; }

/* ---------- manual gallery (NO autoplay) ---------- */
.tvb-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.tvb-gallery__main { border-radius: var(--tvb-radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tvb-gallery__thumbs { display: grid; gap: 12px; align-content: start; }
.tvb-gallery__thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--tvb-radius); border: 1px solid var(--tvb-border); cursor: pointer; }
.tvb-gallery__thumbs img:hover { border-color: var(--tvb-primary); }

/* ---------- FAQ (native details, no JS) ---------- */
.tvb-faq { border-top: 1px solid var(--tvb-border); }
.tvb-faq details { border-bottom: 1px solid var(--tvb-border); }
.tvb-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--tvb-primary); list-style: none; }
.tvb-faq summary::-webkit-details-marker { display: none; }
.tvb-faq summary::after { content: "+"; float: right; color: var(--tvb-primary); font-weight: 400; }
.tvb-faq details[open] summary::after { content: "−"; }
.tvb-faq details p { padding: 0 0 16px; margin: 0; }

/* ---------- steps / timeline ---------- */
.tvb-steps { display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: tvbstep; }
.tvb-step { background: var(--tvb-card); border: 1px solid var(--tvb-border); border-radius: var(--tvb-radius); padding: 18px; }
.tvb-step::before { counter-increment: tvbstep; content: counter(tvbstep, decimal-leading-zero); display: block; font-weight: 700; color: var(--tvb-primary); margin-bottom: 8px; }
.tvb-step h4 { font-size: 15px; margin-bottom: 6px; }
.tvb-step p { font-size: 14px; margin: 0; }

/* ---------- forms (Contact Form 7, 5 fields) ---------- */
.tvb-form { background: var(--tvb-card); border: 1px solid var(--tvb-border); border-radius: var(--tvb-radius-card); padding: 32px; }
.tvb-form .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tvb-form label { display: block; font-size: 14px; font-weight: 600; color: var(--tvb-primary); margin-bottom: 6px; }
.tvb-form .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%; padding: 11px 12px; border: 1px solid var(--tvb-border);
  border-radius: 4px; background: #fff; color: var(--tvb-text); font: inherit; font-size: 15px;
}
.tvb-form textarea { min-height: 110px; resize: vertical; }
.tvb-form .wpcf7-form-control:focus { border-color: var(--tvb-primary); outline: none; }
.tvb-form .wpcf7-submit { grid-column: 1 / -1; }
.tvb-form .wpcf7-response-output { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.tvb-form__full { grid-column: 1 / -1; }
.tvb-form__note { grid-column: 1 / -1; font-size: 13px; color: var(--tvb-muted); }

/* ---------- footer ---------- */
.tvb-footer { background: var(--tvb-bg-alt); border-top: 1px solid var(--tvb-border); padding: 56px 0 24px; }
.tvb-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tvb-footer h4 { font-size: 15px; color: var(--tvb-primary); margin-bottom: 14px; }
.tvb-footer ul { list-style: none; margin: 0; padding: 0; }
.tvb-footer li { margin-bottom: 8px; font-size: 14px; }
.tvb-footer__bottom { border-top: 1px solid var(--tvb-border); margin-top: 36px; padding-top: 18px; font-size: 13px; color: var(--tvb-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- fixed WhatsApp button ---------- */
.tvb-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--tvb-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(107, 79, 58, .28);
  transition: background-color .15s ease;
}
.tvb-wa:hover { background: var(--tvb-primary-d); color: #fff; }
.tvb-wa svg { width: 28px; height: 28px; fill: currentColor; }
.tvb-wa__label { position: absolute; right: 68px; white-space: nowrap; background: var(--tvb-card); color: var(--tvb-text); border: 1px solid var(--tvb-border); border-radius: 4px; padding: 6px 10px; font-size: 13px; opacity: 0; pointer-events: none; }
.tvb-wa:hover .tvb-wa__label { opacity: 1; }

/* ---------- utilities ---------- */
.tvb-center { text-align: center; }
.tvb-mt-0 { margin-top: 0; }
.tvb-mb-0 { margin-bottom: 0; }
.tvb-divider { border: 0; border-top: 1px solid var(--tvb-border); margin: 32px 0; }
.tvb-badge { display: inline-block; font-size: 12px; padding: 3px 10px; border: 1px solid var(--tvb-border); border-radius: 20px; color: var(--tvb-muted); }

/* ============================================================
   Responsive — mobile first overrides at <= 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --tvb-section-y: 40px; --tvb-gap: 16px; }
  .tvb-wrap { padding: 0 16px; }
  .tvb h1, .tvb-hero__title { font-size: 28px; }
  .tvb h2 { font-size: 22px; }
  .tvb h3 { font-size: 18px; }

  .tvb-grid--2, .tvb-grid--3, .tvb-grid--4,
  .tvb-split, .tvb-hero__grid, .tvb-gallery { grid-template-columns: 1fr; }
  .tvb-split { gap: 24px; }
  .tvb-steps { grid-template-columns: 1fr 1fr; }

  .tvb-nav__inner { min-height: 56px; flex-wrap: wrap; padding: 8px 16px; gap: 10px; }
  .tvb-nav__toggle { display: inline-block; margin-left: auto; background: none; border: 1px solid var(--tvb-border); border-radius: 4px; padding: 6px 12px; color: var(--tvb-primary); font: inherit; font-size: 14px; cursor: pointer; }
  .tvb-nav__list { display: none; width: 100%; flex-direction: column; gap: 0; order: 3; }
  .tvb-nav[data-open="true"] .tvb-nav__list { display: flex; }
  .tvb-nav__list li { border-top: 1px solid var(--tvb-border); padding: 10px 0; }
  .tvb-lang { order: 2; font-size: 12px; gap: 8px; flex-wrap: wrap; }

  .tvb-hero { padding: 32px 0; }
  .tvb-hero__media { grid-template-columns: 1fr; }
  .tvb-hero__media img:first-child { grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .tvb-hero__sub { font-size: 16px; }
  .tvb-actions { flex-direction: column; }
  .tvb-actions .tvb-btn { width: 100%; }

  .tvb-gallery__thumbs { grid-template-columns: repeat(3, 1fr); grid-auto-flow: column; overflow-x: auto; }
  .tvb-gallery__main { aspect-ratio: 1 / 1; }
  .tvb-spec { font-size: 14px; min-width: 520px; }
  .tvb-spec th, .tvb-spec td { padding: 9px 12px; }

  .tvb-form { padding: 20px; }
  .tvb-form .wpcf7-form { grid-template-columns: 1fr; }
  .tvb-form__full, .tvb-form .wpcf7-submit, .tvb-form .wpcf7-response-output { grid-column: 1; }

  .tvb-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .tvb-footer__bottom { flex-direction: column; }
  .tvb-wa { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .tvb-wa svg { width: 24px; height: 24px; }
  .tvb-wa__label { display: none; }
}

@media (max-width: 420px) {
  .tvb-steps { grid-template-columns: 1fr; }
}

/* ---------- reduced motion / no animation policy ---------- */
@media (prefers-reduced-motion: reduce) {
  .tvb *, .tvb *::before, .tvb *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   END — timberivo.com only.
   Station 2 (craftsivo.com) uses assets/global.css with prefix cft-.
   ============================================================ */

/* ============================================================
   timberivo.com — deployment extras (Astra compatibility layer)
   Appended after assets/global.css. Prefix tvb-. No animations.
   ============================================================ */

/* Warm oatmeal must win over Astra's white content wrappers */
body.tvb,
body.tvb .site,
body.tvb .site-content,
body.tvb #content,
body.tvb .ast-container,
body.tvb .entry-content {
  background: var(--tvb-bg);
}
body.tvb .ast-container { max-width: 100%; }
body.tvb .entry-content { max-width: 100%; }
body.tvb #primary { width: 100%; }

/* Astra outputs its own page H1; the blueprint H1 lives in the first
   section. Keep exactly one visible H1. */
body.tvb .entry-title,
body.tvb .ast-page-title,
body.tvb .page-title { display: none; }

/* Section rhythm inside the editor content column */
body.tvb .tvb-section { margin: 0; }
body.tvb .tvb-section > .tvb-wrap { padding-top: 8px; padding-bottom: 8px; }
body.tvb .tvb-section:first-of-type > .tvb-wrap { padding-top: 24px; }

/* Headings / links inside wp:html blocks still need the station colour */
body.tvb .tvb-section h1,
body.tvb .tvb-section h2,
body.tvb .tvb-section h3 { color: var(--tvb-primary); }
body.tvb .tvb-section a { color: var(--tvb-primary); }
body.tvb .tvb-section p { color: var(--tvb-text); }

/* Image placeholders — visible, labelled, no broken <img> requests */
.tvb-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.tvb-img-ph {
  margin: 0;
  padding: 18px 14px;
  background: var(--tvb-card);
  border: 1px dashed var(--tvb-border);
  border-radius: var(--tvb-radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 148px;
}
.tvb-img-ph__name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--tvb-primary);
  word-break: break-all;
}
.tvb-img-ph__hint { font-size: 12px; color: var(--tvb-muted); }

/* Bullet lists rendered from "List:" / "Cards:" copy lines */
.tvb-list { list-style: none; padding: 0; margin: 0 0 1em; }
.tvb-list li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--tvb-text); }
.tvb-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tvb-primary);
}

/* Real <table> specification blocks */
body.tvb .tvb-spec { margin: 0; }
body.tvb .tvb-spec th,
body.tvb .tvb-spec td { font-size: 14px; }

/* FAQ <details> */
body.tvb .tvb-faq summary { font-size: 15px; }

/* Breadcrumb above the first section */
body.tvb .tvb-crumb { padding: 20px 24px 0; max-width: var(--tvb-maxw); margin: 0 auto; }

/* CF7 forms (shortcode blocks are not wrapped in .tvb-form) */
body.tvb .wpcf7 {
  background: var(--tvb-card);
  border: 1px solid var(--tvb-border);
  border-radius: var(--tvb-radius-card);
  padding: 28px 32px;
  margin: 20px 0;
  max-width: 760px;
}
body.tvb .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.tvb .wpcf7-form p { margin: 0; }
body.tvb .wpcf7-form label { display: block; font-size: 14px; font-weight: 600; color: var(--tvb-primary); margin-bottom: 6px; }
body.tvb .wpcf7-form .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%; padding: 11px 12px; border: 1px solid var(--tvb-border);
  border-radius: 4px; background: #fff; color: var(--tvb-text); font: inherit; font-size: 15px;
}
body.tvb .wpcf7-form textarea { min-height: 110px; resize: vertical; }
body.tvb .wpcf7-form .wpcf7-submit {
  grid-column: 1 / -1; background: var(--tvb-primary); color: #fff;
  border: 1px solid var(--tvb-primary); border-radius: 4px;
  padding: 12px 26px; font-size: 15px; font-weight: 600; cursor: pointer; justify-self: start;
}
body.tvb .wpcf7-response-output { grid-column: 1 / -1; margin: 0; font-size: 14px; }

@media (max-width: 768px) {
  body.tvb .tvb-crumb { padding: 14px 16px 0; }
  body.tvb .wpcf7 { padding: 20px; }
  body.tvb .wpcf7-form { grid-template-columns: 1fr; }
  body.tvb .wpcf7-form .wpcf7-submit,
  body.tvb .wpcf7-response-output { grid-column: 1; }
  .tvb-img-grid { grid-template-columns: 1fr 1fr; }
}


/* Craft photography (2026-12 retarget) */
body.tvb .tvb-fig {
  margin: 0;
  overflow: hidden;
  border-radius: var(--tvb-radius);
  border: 1px solid var(--tvb-border);
  background: var(--tvb-card);
}
body.tvb .tvb-fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
body.tvb .tvb-img-grid { margin: 22px 0; }

/* CTA contrast: section link colour must not override buttons */
body.tvb .tvb-section .tvb-btn,
body.tvb .tvb-section .tvb-btn:hover,
body.tvb .tvb-section .tvb-btn:focus-visible { color: #ffffff; text-decoration: none; }
body.tvb .tvb-section .tvb-btn--ghost,
body.tvb .tvb-section .tvb-btn--ghost:focus-visible { color: var(--tvb-primary); background: transparent; }
body.tvb .tvb-section .tvb-btn--ghost:hover { color: #ffffff; background: var(--tvb-primary); }
body.tvb .tvb-wa { color: #ffffff; }

/* Craft grid proportions: keep figures from stretching to full container width */
body.tvb .tvb-img-grid { align-items: start; }
body.tvb .tvb-img-grid .tvb-fig { max-width: 560px; }
body.tvb .tvb-img-grid .tvb-fig img { aspect-ratio: 4 / 3; max-height: 420px; }
@media (max-width: 768px) {
  body.tvb .tvb-img-grid .tvb-fig { max-width: 100%; }
  body.tvb .tvb-img-grid .tvb-fig img { max-height: 300px; }
}


/* ============================================================
   BRAND LAYER v2 (2026-12)
   Warm walnut palette per approved brief + self-hosted type.
   Fonts are served from this theme (/fonts, woff2) — no third-party
   CDN request, so no GDPR/German court exposure and no extra RTT.
   ============================================================ */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(fonts/playfair-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(fonts/playfair-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/source-sans-3-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/source-sans-3-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tvb-bg:        #F7F3EC;   /* warm off-white */
  --tvb-bg-alt:    #EFE6D9;   /* deeper warm sand */
  --tvb-card:      #FFFFFF;
  --tvb-primary:   #8B5A2B;   /* walnut brown */
  --tvb-primary-d: #714726;   /* walnut hover */
  --tvb-accent:    #A9743F;   /* restrained ochre, CTA only */
  --tvb-text:      #3A322B;   /* deep brown-grey */
  --tvb-border:    #E0D5C6;
  --tvb-muted:     #7A6E62;
  --tvb-radius:    6px;
  --tvb-radius-card: 10px;
  --tvb-font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --tvb-font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

body.tvb, .tvb body { font-family: var(--tvb-font); color: var(--tvb-text); background: var(--tvb-bg); }
body.tvb h1, body.tvb h2, body.tvb h3, body.tvb h4,
.tvb h1, .tvb h2, .tvb h3, .tvb h4,
body.tvb .tvb-nav__logo, .tvb-nav__logo {
  font-family: var(--tvb-font-head);
  font-weight: 600;
  letter-spacing: .01em;
}
body.tvb h1, .tvb h1 { font-weight: 700; }
body.tvb p, body.tvb li, body.tvb td, body.tvb th { font-family: var(--tvb-font); }

/* ---------- card grid for presentation blocks (replaces <table>) ---------- */
.tvb-grid--cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 22px;
  margin: 8px 0 4px;
}
.tvb-card--grid {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--tvb-card);
  border: 1px solid var(--tvb-border);
  border-radius: var(--tvb-radius-card);
  padding: 20px 20px 22px;
  box-shadow: 0 1px 3px rgba(58, 50, 43, .05);
  height: 100%;
}
.tvb-card--grid .tvb-card__media {
  margin: -20px -20px 6px;
  border-radius: var(--tvb-radius-card) var(--tvb-radius-card) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--tvb-bg-alt);
}
.tvb-card--grid .tvb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tvb-card__num {
  font-family: var(--tvb-font-head);
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
  color: var(--tvb-accent);
}
.tvb-card__title {
  font-family: var(--tvb-font-head);
  font-size: 19px; font-weight: 600; line-height: 1.3;
  margin: 0; color: var(--tvb-text);
}
.tvb-card__desc { font-size: 15px; line-height: 1.65; margin: 0; color: var(--tvb-muted); }
.tvb-card__btn {
  margin-top: auto; align-self: flex-start;
  display: inline-block; padding: 8px 18px;
  border: 1px solid var(--tvb-primary); border-radius: 999px;
  color: var(--tvb-primary); font-size: 14px; font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
.tvb-card__btn:hover, .tvb-card__btn:focus-visible { background: var(--tvb-primary); color: #fff; text-decoration: none; }

/* anchor nav */
.tvb-anchors { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 0 4px; border-bottom: 1px solid var(--tvb-border); margin-bottom: 8px; }
.tvb-anchors a { font-size: 14px; font-weight: 600; color: var(--tvb-primary); }
.tvb-anchors a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .tvb-grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
  .tvb-grid--cards { grid-template-columns: 1fr; }
  .tvb-card--grid { padding: 18px; }
}

/* --- kill remaining Astra default blue in focus states --- */
body.tvb input:focus, body.tvb textarea:focus, body.tvb select:focus,
body.tvb input[type="text"]:focus, body.tvb input[type="email"]:focus, body.tvb input[type="search"]:focus,
body.tvb .wpcf7 .wpcf7-form-control:focus, body.tvb .wpforms-form input:focus, body.tvb .wpforms-form textarea:focus {
  border-color: #8B5A2B !important;
  box-shadow: 0 0 0 2px rgba(139, 90, 43, .12) !important;
}
