/*
Theme Name: Chatou Badminton Club
Theme URI: http://chatoubadmintonclub.test
Author: CBC + Claude
Description: Thème porté du prototype Design/ (Claude Design). Palette « Impressionniste » par défaut (Seine, foliage, coquelicot, or). Tokens, composants et mise en page issus de Design/styles.css.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chatou-bc
*/

/* ============================================
   CBC — Chatou Badminton Club
   Design tokens + base styles
   Ported from Design/styles.css
   ============================================ */

/* Default: IMPRESSIONNISTE palette (Seine, foliage, coquelicot) */
:root,
[data-palette="impressionniste"] {
  --bg: #f4eee2;
  --bg-soft: #ece4d3;
  --bg-card: #fbf7ec;
  --ink: #2b2a26;
  --ink-soft: #5b574c;
  --ink-mute: #8a8478;
  --line: #d9cfb8;
  --line-strong: #b9ad8e;

  --brand: #325a7c;       /* Seine blue */
  --brand-deep: #1f3d59;
  --brand-soft: #c7d5e2;
  --accent: #8ea84b;      /* foliage olive-green */
  --accent-soft: #d8e1b0;
  --warm: #c84a2a;        /* coquelicot */
  --warm-soft: #f3c9b6;
  --sun: #e7b13a;         /* sun gold */

  --shadow-sm: 0 1px 0 rgba(43,42,38,0.06), 0 2px 6px rgba(43,42,38,0.04);
  --shadow-md: 0 6px 22px -8px rgba(43,42,38,0.18);
  --radius: 6px;
  --radius-lg: 12px;
}

/* Typography — locked to "mix" (Marcellus display + Public Sans body) */
:root,
[data-typo="mix"] {
  --font-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-body: "Public Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --display-tracking: -0.005em;
  --display-weight: 400;
}

/* Density — locked to "airy" */
:root,
[data-density="airy"] {
  --space-section: clamp(56px, 7vw, 96px);
  --space-block: 28px;
  --space-card: 24px;
  --leading: 1.65;
}

/* ============================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--leading);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(40px, 5.4vw, 68px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { font-weight: 600; color: var(--ink); }

ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-block) 0; }

::selection { background: var(--brand); color: #fff; }

/* Layout */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow { max-width: 880px; }

.section { padding: var(--space-section) 0; }
.section + .section { padding-top: 0; }
.hero + .section { padding-top: clamp(28px, 3.5vw, 48px); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-card); color: var(--ink); }
.btn-accent { background: var(--warm); color: #fff; }
.btn-accent:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-arrow::after { content: "→"; transition: transform 0.2s ease; }
.btn:hover .btn-arrow::after,
.btn-arrow:hover::after { transform: translateX(3px); }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-card);
}
.card-flush { padding: 0; overflow: hidden; }

/* Pills / chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip-brand { background: var(--brand-soft); color: var(--brand-deep); border-color: transparent; }
.chip-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip-warm { background: var(--warm-soft); color: var(--warm); border-color: transparent; }

/* Tables */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.tbl th {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--bg-soft);
}
.tbl tbody tr:hover { background: var(--bg-soft); }
.tbl tbody tr.tbl-row-active { background: color-mix(in oklab, var(--brand-soft) 50%, transparent); }

/* Stripes & textures */
.stripes {
  background-image: repeating-linear-gradient(
    135deg,
    var(--line) 0 1px,
    transparent 1px 12px
  );
}

/* Painted blob */
.painted-canvas {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

/* Page header (shared) */
.page-header {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.page-header .breadcrumb {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.page-header .breadcrumb a { color: var(--ink-soft); }
.page-header h1 + .lede,
.page-header .lede {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.55;
}

/* Anchors */
[id] { scroll-margin-top: 96px; }

/* Nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
}
.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topnav-links li { margin: 0; }
.topnav-links a {
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: var(--radius);
  letter-spacing: 0.005em;
  text-decoration: none;
}
.topnav-links a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.topnav-links .current-menu-item > a,
.topnav-links .current_page_item > a,
.topnav-links a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}
.topnav-cta { display: flex; gap: 8px; }

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.wordmark-mark::after {
  content: "";
  position: absolute;
  inset: auto -8px -8px auto;
  width: 22px;
  height: 22px;
  background: var(--warm);
  border-radius: 50%;
  opacity: 0.9;
}
.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark-text-1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.wordmark-text-2 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
  font-weight: 500;
}

/* Footer */
.footer {
  margin-top: var(--space-section);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a.footer-link,
.footer a {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14.5px;
  text-decoration: none;
}
.footer a:hover { color: var(--ink); }
.footer-blurb {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 32ch;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bar .legal-links { display: flex; gap: 18px; }

/* Hero */
.hero {
  padding: clamp(48px, 6vw, 88px) 0 clamp(20px, 2.5vw, 36px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.hero h1 .hero-h1-main {
  display: block;
  font-size: clamp(40px, 5.4vw, 96px);
  line-height: 1;
  margin-bottom: 0.08em;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand);
  font-weight: inherit;
  white-space: nowrap;
  display: inline-block;
}
.hero-lede {
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 50ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta-item small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.hero-meta-item strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--display-weight);
  color: var(--ink);
}

/* Quick links */
.qlinks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.qlink {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  text-decoration: none;
}
.qlink:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  text-decoration: none;
}
.qlink-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.qlink-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--display-weight);
  letter-spacing: -0.005em;
}
.qlink-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s;
  text-decoration: none;
  color: inherit;
}
.news-card:hover { border-color: var(--line-strong); transform: translateY(-2px); text-decoration: none; }
.news-card-cover {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.news-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.news-card-meta { font-size: 12px; color: var(--ink-mute); display: flex; gap: 10px; align-items: center; }
.news-card h3 { font-size: 19px; }
.news-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Filter bar */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  align-items: center;
}
.filterbar-group { display: flex; align-items: center; gap: 6px; }
.filterbar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 4px;
}
.filterbar button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.filterbar button:hover { border-color: var(--line-strong); color: var(--ink); }
.filterbar button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg-card);
  border-color: var(--ink);
}
.filterbar .filterbar-divider { width: 1px; align-self: stretch; background: var(--line); margin: 0 6px; }

/* Two-col content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.two-col-sticky { position: sticky; top: 96px; }

/* Section heading */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head p { color: var(--ink-soft); max-width: 56ch; margin: 0; }

/* Verify badge */
.verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sun);
  background: color-mix(in oklab, var(--sun) 15%, var(--bg-card));
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid color-mix(in oklab, var(--sun) 30%, transparent);
}

/* Bureau / team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.team-card {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.team-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 14px;
}
.team-card .role {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.team-card .name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--display-weight);
}

/* Partners */
.partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.partner {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}
.partner-name { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.partner-sub { font-size: 12px; color: var(--ink-mute); margin-top: 4px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.price-card {
  padding: 22px 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card-tag { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.price-card-name { font-family: var(--font-display); font-size: 22px; font-weight: var(--display-weight); }
.price-card-amount {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: var(--display-weight);
  line-height: 1;
  color: var(--brand);
  margin: 6px 0 4px;
}
.price-card-amount sup { font-size: 18px; vertical-align: super; }
.price-card-meta { font-size: 13px; color: var(--ink-soft); }

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}
.checklist li:hover { border-color: var(--line-strong); }
.checklist li.checked { background: var(--accent-soft); border-color: transparent; }
.checklist li.checked .check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.checklist li.checked .check-label { text-decoration: line-through; color: var(--ink-soft); }
.check-box {
  width: 22px; height: 22px; flex: 0 0 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  display: grid; place-items: center;
  color: transparent;
  font-size: 14px;
  margin-top: 1px;
  transition: all 0.15s;
}
.check-label { flex: 1; line-height: 1.4; }
.check-meta { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }

/* Documents */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
}
.doc-row:hover { border-color: var(--line-strong); background: var(--bg-soft); text-decoration: none; }
.doc-icon {
  width: 40px;
  height: 48px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  flex: 0 0 40px;
}
.doc-icon.pdf { background: color-mix(in oklab, var(--warm) 15%, var(--bg-card)); color: var(--warm); border-color: color-mix(in oklab, var(--warm) 30%, transparent); }
.doc-icon.doc { background: color-mix(in oklab, var(--brand) 15%, var(--bg-card)); color: var(--brand); border-color: color-mix(in oklab, var(--brand) 30%, transparent); }
.doc-name { flex: 1; font-size: 15px; font-weight: 500; }
.doc-meta { font-size: 13px; color: var(--ink-mute); }

/* Callout */
.callout {
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}
.callout.warm { border-left-color: var(--warm); }
.callout.accent { border-left-color: var(--accent); }
.callout h4 { margin-bottom: 6px; }
.callout p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* Map */
.map-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Compétition cards */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 20%, transparent);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* Painted accent SVG container */
.painting-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.painting-frame svg { display: block; width: 100%; height: 100%; }
.painting-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-style: italic;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
}

/* Placeholder image (used in place of React PaintedAccent SVG) */
.ph-img {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 14px),
    var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.ph-img::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
  background: var(--bg-card);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* Inline news featured */
.news-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.news-featured .ph-img { aspect-ratio: 4 / 3; }

/* Pages container */
.page { animation: pageIn 0.3s ease; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* WordPress-specific: Gutenberg-rendered content sits inside .page > .wrap */
.entry-content > .wp-block-group.section,
.entry-content > .wp-block-html,
.entry-content > .wp-block-heading,
.entry-content > .wp-block-paragraph {
  margin-left: auto;
  margin-right: auto;
}
.entry-content { width: 100%; }
.entry-content > * { margin-top: 0; }

/* Hide admin bar margin shift mismatch */
html.wp-toolbar { scroll-padding-top: 32px; }
