/*
 * Contact page (contact.php). Everything is prefixed ct- so it cannot collide with the legacy
 * .contact-grid / .form-group / .content-section rules in style.css. Light theme only (site-wide).
 *
 * Why the page does not use .form-group, .content-section or the global link colour: style.css sets every
 * <a> to the pale footer text colour (unreadable on white) and gives .content-section h2 an underline.
 */

.ct-page {
  --ct-navy: var(--primary-color, #0a2342);
  --ct-gold: var(--accent-gold, #c9a46b);
  --ct-gold-ink: #8a6420;          /* gold dark enough for text on white (>= 5:1) */
  --ct-ink: #1f2a40;
  --ct-muted: #4f5b73;
  --ct-line: rgba(10, 35, 66, 0.14);
  --ct-field-line: #7d889c;        /* >= 3:1 against white, so the field edge is visible */
  --ct-danger: #b3261e;
  --ct-paper: #f6eedc;             /* aged letter paper */
  --ct-sepia: #6b5b3e;             /* ruled lines, field underlines (>= 5:1 on the paper) */
  --ct-ink-brown: #2b2418;         /* typed text */
  --ct-ink-soft: #5b4d36;          /* secondary text on the paper (>= 6:1) */
  --ct-typewriter: 'American Typewriter', 'Courier Prime', 'Courier New', Courier, monospace; /* system fonts: no download */
  --ct-radius: 28px;
  --ct-ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --ct-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  overflow-x: clip;
}

.ct-page h1,
.ct-page h2,
.ct-page h3 { font-family: var(--ct-serif); }

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

/* ---------- Hero ---------- */

.ct-page .ct-hero {
  position: relative;
  margin: 0;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(5.5rem, 10vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(52rem 26rem at 88% -25%, rgba(201, 164, 107, 0.3), transparent 62%),
    radial-gradient(34rem 20rem at -8% 125%, rgba(201, 164, 107, 0.14), transparent 62%),
    var(--ct-navy);
}

.ct-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.9rem;
  color: var(--ct-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ct-eyebrow::before,
.ct-eyebrow::after {
  content: '';
  width: clamp(1.5rem, 6vw, 3rem);
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.ct-page .ct-hero h1 {
  margin: 0 0 0.35em;
  color: #fff;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.6rem);
  line-height: 1.1;
}
.ct-page .ct-hero .subtitle {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--ct-gold);
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  opacity: 1;
}

.ct-crumbs { margin-top: 1.5rem; font-size: 0.92rem; }
.ct-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-crumbs li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, 0.82); }
.ct-crumbs li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--ct-gold);
  font-weight: 700;
}
.ct-page .ct-crumbs a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(201, 164, 107, 0.7);
  text-underline-offset: 0.25em;
}
.ct-page .ct-crumbs a:hover,
.ct-page .ct-crumbs a:focus-visible { color: var(--ct-gold); }
.ct-page .ct-crumbs a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }

/* ---------- Board: letterhead + form share one card that overlaps the hero ---------- */

.ct-main {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.ct-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  box-shadow: 0 1px 2px rgba(10, 35, 66, 0.08), 0 32px 60px -28px rgba(10, 35, 66, 0.5);
}
@media (min-width: 900px) {
  .ct-board { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.ct-h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem);
  line-height: 1.2;
}
.ct-h2::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.7rem;
  background: var(--ct-gold);
  border-radius: 2px;
}

/* ---------- Letterhead (navy, ruled like notebook paper, gold margin line) ---------- */

.ct-letterhead {
  position: relative;
  padding: clamp(1.75rem, 4.5vw, 3rem);
  padding-left: clamp(2.1rem, 5vw, 3.4rem);
  color: #dbe4ef;
  background:
    radial-gradient(26rem 20rem at 0% 100%, rgba(201, 164, 107, 0.24), transparent 66%),
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(255, 255, 255, 0.05) 35px 36px),
    var(--ct-navy);
}
.ct-letterhead::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(1rem, 2.4vw, 1.7rem);
  width: 1px;
  background: rgba(201, 164, 107, 0.5);
}

.ct-kicker {
  margin: 0 0 0.6rem;
  color: var(--ct-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.ct-letterhead .ct-h2 { color: #fff; }
.ct-lede { max-width: 30rem; margin: 0; font-size: 1rem; line-height: 1.7; color: #d3dde9; }

.ct-channels { margin: 1.75rem 0 0; padding: 0; }
.ct-channel { margin: 0; padding: 1.2rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ct-channel + .ct-channel { margin-top: 1.2rem; }

.ct-channel dt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ct-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.ct-channel dd { margin: 0.55rem 0 0; }

.ct-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(201, 164, 107, 0.55);
  border-radius: 50%;
}
.ct-ico svg { width: 1.05rem; height: 1.05rem; }

.ct-page .ct-mail {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(201, 164, 107, 0.75);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.ct-page .ct-mail:hover,
.ct-page .ct-mail:focus-visible { color: var(--ct-gold); text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.ct-page .ct-mail:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 3px; }

.ct-address { font-style: normal; line-height: 1.7; color: #d3dde9; }
.ct-address strong { color: #fff; }

.ct-sub {
  margin: 2rem 0 0.8rem;
  color: var(--ct-gold);
  font-family: var(--ct-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ct-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.6rem;
}
.ct-page .ct-social a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ct-page .ct-social .social-svg { width: 1rem; height: 1rem; flex: none; color: var(--ct-gold); transition: color 0.2s ease; }
.ct-page .ct-social a:hover,
.ct-page .ct-social a:focus-visible {
  color: var(--ct-navy);
  background: var(--ct-gold);
  border-color: var(--ct-gold);
  transform: translateY(-2px);
}
.ct-page .ct-social a:hover .social-svg,
.ct-page .ct-social a:focus-visible .social-svg { color: var(--ct-navy); }
.ct-page .ct-social a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Form: a typed letter on aged paper ---------- */

.ct-formcard {
  position: relative;
  isolation: isolate;
  display: flex;                 /* the board stretches this card to the navy panel's height: keep the letter centred on the paper */
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.9rem, 4.5vw, 2.9rem);
  color: var(--ct-ink-brown);
  background: var(--ct-paper);
}

/*
 * Paper grain + warm vignette. Drawn on a pseudo-element, not the card's own background, so the card stays a
 * flat cream colour and text contrast on it can be measured (and is >= 5:1 for every text colour below).
 */
.ct-formcard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 42%, transparent 58%, rgba(139, 105, 45, 0.18) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .27 0 0 0 0 .14 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Letterpress frame: a double rule set in from the edge. */
.ct-formcard::after {
  content: '';
  position: absolute;
  inset: 0.7rem;
  z-index: 0;
  pointer-events: none;
  border: 3px double rgba(138, 100, 32, 0.55);
  border-radius: 6px;
}

.ct-letter { position: relative; z-index: 1; }
.ct-letter__head { padding-right: clamp(6.8rem, 27%, 10.5rem); } /* room for the stamp */

.ct-kicker--ink { color: var(--ct-ink-soft); font-family: var(--ct-typewriter); }
.ct-formcard .ct-h2 { color: var(--ct-navy); }
.ct-intro { margin: 0 0 1.5rem; color: var(--ct-ink-soft); line-height: 1.6; }

/* Stamp + postmark (inline SVG in contact.php, decorative). */
.ct-post {
  position: absolute;
  top: -0.7rem;
  right: -0.5rem;
  width: clamp(6.4rem, 25%, 9.6rem);
  height: auto;
  transform: rotate(3deg);
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(70, 48, 12, 0.35));
}
.ct-post text { font-family: Georgia, 'Times New Roman', serif; }

.ct-form { display: grid; gap: 1.2rem; }
.ct-row { display: grid; gap: 1.2rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.ct-field { min-width: 0; }

.ct-label {
  display: block;
  margin: 0;
  color: var(--ct-ink-soft);
  font-family: var(--ct-typewriter);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.ct-req { margin-left: 0.15rem; color: var(--ct-danger); }

/* Typed-in-the-blank fields: no box, just a ruled line. */
.ct-page .ct-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.5rem 0.35rem;
  color: var(--ct-ink-brown);
  font-family: var(--ct-typewriter);
  font-size: 1rem;
  line-height: 1.5;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ct-sepia);
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.ct-page .ct-input::placeholder { color: var(--ct-sepia); font-style: italic; opacity: 1; }
.ct-page .ct-input:hover { border-bottom-color: var(--ct-navy); }
.ct-page .ct-input:focus {
  outline: 2px solid transparent; /* keeps a visible ring in forced-colors mode */
  background-color: rgba(201, 164, 107, 0.2);  /* a highlighter swipe (colour only: the message box keeps its ruled lines) */
  border-bottom-color: var(--ct-navy);
  box-shadow: 0 1.5px 0 var(--ct-navy);  /* thickens the line to 3px */
}
.ct-page .ct-input[aria-invalid='true'] { background-color: rgba(179, 38, 30, 0.07); border-bottom-color: var(--ct-danger); }
.ct-page .ct-input[aria-invalid='true']:focus { box-shadow: 0 1.5px 0 var(--ct-danger); }
.ct-page .ct-input.is-readonly { color: var(--ct-ink-soft); border-bottom-style: dotted; cursor: not-allowed; }

/* The message is written on ruled lines that scroll with the text. */
.ct-page textarea.ct-input {
  --ct-line-h: 2rem;
  padding-top: 0;
  padding-bottom: 0;
  line-height: var(--ct-line-h);
  resize: vertical;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--ct-line-h) - 1px),
    rgba(107, 91, 62, 0.4) calc(var(--ct-line-h) - 1px),
    rgba(107, 91, 62, 0.4) var(--ct-line-h)
  );
  background-attachment: local;
}
.ct-page textarea.ct-input:focus { background-color: rgba(201, 164, 107, 0.14); }

.ct-hint { margin: 0; color: var(--ct-ink-soft); font-size: 0.85rem; line-height: 1.5; }
.ct-error {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.4rem 0 0;
  color: var(--ct-danger);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
}
.ct-error[hidden] { display: none; }
.ct-error::before {
  content: '!';
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  background: var(--ct-danger);
  border-radius: 50%;
}

/* Signature block: "Yours sincerely," then who it is from. */
.ct-sign { display: grid; gap: 0.35rem; margin-top: 0.3rem; }
.ct-sign__lead {
  margin: 0;
  color: var(--ct-ink-soft);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.08rem;
  font-style: italic;
}

.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 0.5rem; }
.ct-note { flex: 1 1 12rem; margin: 0; color: var(--ct-ink-soft); font-family: var(--ct-typewriter); font-size: 0.78rem; line-height: 1.55; }

/* Send: a navy rubber-stamp block with a gold double rule, pressed in on click. */
.ct-page .ct-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.55rem;
  color: var(--ct-paper);
  font-family: var(--ct-typewriter);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--ct-navy);
  border: 0;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(201, 164, 107, 0.9),
    inset 0 0 0 4px var(--ct-navy),
    inset 0 0 0 5px rgba(201, 164, 107, 0.6),
    0 3px 0 #061528;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
.ct-send svg { width: 1.05rem; height: 1.05rem; transition: transform 0.25s var(--ct-ease); }
.ct-page .ct-send:hover,
.ct-page .ct-send:focus-visible {
  color: var(--ct-navy);
  background: var(--ct-gold);
  box-shadow:
    inset 0 0 0 1px rgba(10, 35, 66, 0.9),
    inset 0 0 0 4px var(--ct-gold),
    inset 0 0 0 5px rgba(10, 35, 66, 0.55),
    0 3px 0 var(--ct-gold-ink);
}
.ct-page .ct-send:hover svg,
.ct-page .ct-send:focus-visible svg { transform: translate(2px, -2px); }
.ct-page .ct-send:active:not(:disabled) { transform: translateY(2px); }
.ct-page .ct-send:focus-visible { outline: 2px solid var(--ct-navy); outline-offset: 4px; }
.ct-page .ct-send:disabled { cursor: progress; opacity: 0.8; }

.ct-spin {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ct-spin 0.7s linear infinite;
}
@keyframes ct-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .ct-formcard::after { inset: 0.45rem; }
  .ct-letter__head { padding-right: 5.8rem; }
  .ct-post { top: -0.5rem; width: 5.6rem; }
}

/* Honeypot: off-screen, not display:none, so simple bots still fill it. */
.ct-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Inline banner: used for the "message sent / failed" result when the SweetAlert pop-up is unavailable. */
.ct-flash {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.1rem;
  white-space: pre-line;
  line-height: 1.55;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: 12px;
}
.ct-flash:focus { outline: 2px solid var(--ct-navy); outline-offset: 2px; }
.ct-flash strong { font-size: 1rem; }
.ct-flash--success { color: #14502b; background: #eef7f0; border-color: #2e7d4a; }
.ct-flash--error { color: #7a1912; background: #fdf1ef; border-color: var(--ct-danger); }
.ct-flash--warning,
.ct-flash--info { color: #5c3700; background: #fff6e5; border-color: #b26a00; }

.ct-form-status { margin: 0; min-height: 0; color: var(--ct-danger); font-size: 0.9rem; font-weight: 600; }
.ct-form-status:empty { display: none; }

/* SweetAlert shows several validation errors separated by newlines. */
.ct-swal .swal2-html-container { white-space: pre-line; }

/* ---------- Map ---------- */

.ct-map { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.ct-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.4rem;
}
.ct-map__head .ct-h2 { margin-bottom: 0; color: var(--ct-navy); }
.ct-map__where { max-width: 34rem; margin: 0.9rem 0 0; color: var(--ct-muted); line-height: 1.6; }

.ct-page .ct-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  color: var(--ct-navy);
  font-weight: 700;
  background: #fff;
  border: 1.5px solid var(--ct-navy);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ct-btn svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ct-ease); }
.ct-page .ct-btn:hover,
.ct-page .ct-btn:focus-visible { color: #fff; background: var(--ct-navy); }
.ct-page .ct-btn:hover svg,
.ct-page .ct-btn:focus-visible svg { transform: translate(2px, -2px); }
.ct-page .ct-btn:focus-visible { outline: 2px solid var(--ct-navy); outline-offset: 3px; }

.ct-map__frame {
  position: relative;
  height: clamp(18rem, 38vw, 28rem);
  overflow: hidden;
  background: #eceff4;
  border: 1px solid var(--ct-line);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(10, 35, 66, 0.06), 0 22px 44px -26px rgba(10, 35, 66, 0.4);
}
.ct-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Click-to-load gate: shown instead of the Google map until the visitor asks for it (no request to Google before that). */
.ct-map__gate {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; padding: clamp(1.25rem, 4vw, 2.5rem); text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(10, 35, 66, 0.045) 0 1px, transparent 1px 2.25rem),
    repeating-linear-gradient(90deg, rgba(10, 35, 66, 0.045) 0 1px, transparent 1px 2.25rem),
    #eceff4;
}
.ct-map__gate-title { margin: 0; font-family: var(--ct-serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; color: var(--ct-navy); }
.ct-map__gate-text { margin: 0; max-width: 34rem; line-height: 1.6; color: var(--ct-ink); }
.ct-map__gate-small { margin: 0; max-width: 34rem; font-size: 0.9rem; line-height: 1.6; color: var(--ct-muted); }
.ct-map__gate-small a { color: var(--ct-navy); text-decoration: underline; text-underline-offset: 2px; }
.ct-map__gate-small a:focus-visible { outline: 2px solid var(--ct-navy); outline-offset: 2px; }
.ct-map__load { cursor: pointer; font: inherit; }

/* ---------- Entrance (above the fold only; never hides content if animation is unsupported) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .ct-hero .container > * { animation: ct-rise 0.7s var(--ct-ease) both; }
  .ct-hero .container > :nth-child(2) { animation-delay: 0.05s; }
  .ct-hero .container > :nth-child(3) { animation-delay: 0.1s; }
  .ct-hero .container > :nth-child(4) { animation-delay: 0.15s; }
  .ct-board { animation: ct-rise 0.8s 0.18s var(--ct-ease) both; }
}
@keyframes ct-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-page *,
  .ct-page *::before,
  .ct-page *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .ct-page .ct-social a:hover,
  .ct-page .ct-social a:focus-visible,
  .ct-page .ct-send:hover svg,
  .ct-page .ct-btn:hover svg { transform: none; }
}

@media (forced-colors: active) {
  .ct-board { border: 1px solid CanvasText; }
  .ct-post { display: none; }
  .ct-page .ct-input { border-bottom-color: CanvasText; }
}

/* ---------- Consent: one real checkbox under the signature, never pre-ticked ---------- */
.ct-consent {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: start;
  margin: 0.4rem 0 0.9rem;
}
/* the input is the 44 x 44 target; the visible box is drawn in its middle (the label is clickable too) */
.ct-consent__box {
  appearance: none;
  -webkit-appearance: none;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: transparent no-repeat center / 1.35rem 1.35rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='2' fill='%23f6eedc' stroke='%236b5b3e' stroke-width='2'/%3E%3C/svg%3E");
  cursor: pointer;
}
.ct-consent__box:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='2' fill='%230a2342' stroke='%230a2342' stroke-width='2'/%3E%3Cpath d='M6.5 12.5l3.8 3.8 7.2-8' fill='none' stroke='%23f6eedc' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ct-consent__box[aria-invalid='true']:not(:checked) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='2' fill='%23f6eedc' stroke='%23b3261e' stroke-width='2.4'/%3E%3C/svg%3E");
}
.ct-consent__box:focus-visible { outline: 3px solid var(--ct-navy); outline-offset: -3px; }
.ct-consent__label { padding: 0.6rem 0; font-size: 0.92rem; line-height: 1.5; color: var(--ct-ink-brown); cursor: pointer; }
.ct-consent__label a { color: var(--ct-navy); text-decoration: underline; text-underline-offset: 2px; }
.ct-consent__label a:focus-visible { outline: 2px solid var(--ct-navy); outline-offset: 2px; }
.ct-consent .ct-error { grid-column: 2; }
@media (forced-colors: active) { .ct-consent__box { appearance: auto; -webkit-appearance: auto; background-image: none; } }
