/* Guden Solicitors | Brand foundation | 26 November 2026
   Site Settings > More > Custom CSS.
   Native font and colour defaults are saved separately in Site Settings.
   Preserve existing block layout, image treatments and font sizes. */
:root {
  --gl-red: #991111;
  --gl-red-dark: #6E0C0C;
  --gl-red-tint: #F6E7E7;
  --gl-black: #000000;
  --gl-white: #FFFFFF;
  --gl-grey: #4D4D4D;
  --gl-line: #E5E5E5;
  --gl-surface: #F7F7F7;
  --gl-font: 'CEnturyGothic', 'Century Gothic', Arial, sans-serif;
  --gl-weight-regular: 400;
  --gl-weight-bold: 700;
  --gl-body-size: 18px;
  --gl-body-leading: 1.6;
  --gl-copy-width: 72ch;
  --gl-radius: 20px;
  --gl-space-1: 8px;
  --gl-space-2: 16px;
  --gl-space-3: 24px;
  --gl-space-4: 32px;
  --gl-space-6: 48px;
  --gl-space-8: 64px;
}

html { accent-color: var(--gl-red); }
::selection { background: var(--gl-red); color: var(--gl-white); }

/* Positive scope: existing booking CTAs and new opt-in primary buttons.
   Preserve secondary, consent, payment and popup controls, plus all geometry. */
html body #allrecords .t-rec :is(.t-btn[href^="https://gudenlaw.eu.cliogrow.com/book"], .gl-button--primary) {
  background-color: var(--gl-red) !important;
  border-color: var(--gl-red) !important;
  color: var(--gl-white) !important;
  font-weight: var(--gl-weight-bold);
}
html body #allrecords .t-rec :is(.t-btn[href^="https://gudenlaw.eu.cliogrow.com/book"], .gl-button--primary):is(:hover, :focus-visible) {
  background-color: var(--gl-red-dark) !important;
  border-color: var(--gl-red-dark) !important;
}

/* Underline text links so colour is not their only distinguishing feature.
   Block-specific text colours are preserved, including white on dark areas. */
#allrecords :is(.t-text, .t-descr) a[href]:not(.t-btn):not(.t-btntext) {
  text-decoration-line: underline !important;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

/* The white separation ring keeps focus visible on dark and burgundy areas. */
html :is(a[href], button, input, textarea, select, summary, [tabindex], [role="button"]):focus-visible {
  outline: 3px solid var(--gl-red);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--gl-white);
}
.t-input:focus,
.t-input-group input:focus,
.t-input-group textarea:focus,
.t-input-group select:focus { border-color: var(--gl-red) !important; }

/* Keep footer text links readable when the native hover default is black. */
#allrecords footer a[href]:not(.t-btn):not(.t-submit):is(:hover, :focus-visible) {
  color: var(--gl-white) !important;
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}

a, .t-btn, .t-submit {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

/* Reusable classes for new sections; existing headings keep their sizing. */
.gl-heading {
  font-family: var(--gl-font);
  font-weight: var(--gl-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.gl-copy {
  font-family: var(--gl-font);
  font-size: var(--gl-body-size);
  font-weight: var(--gl-weight-regular);
  line-height: var(--gl-body-leading);
  max-width: var(--gl-copy-width);
}
.gl-button--secondary {
  background-color: var(--gl-white) !important;
  border: 1px solid var(--gl-red) !important;
  color: var(--gl-red) !important;
}
.gl-button--secondary:is(:hover, :focus-visible) {
  background-color: var(--gl-red-tint) !important;
}
.gl-surface--dark { background-color: var(--gl-black); color: var(--gl-white); }
.gl-surface--dark a:not(.t-btn):not(.t-submit) { color: var(--gl-white); }

@media (prefers-reduced-motion: reduce) {
  a, .t-btn, .t-submit { transition: none !important; }
}
@media (forced-colors: active) {
  html :is(a[href], button, input, textarea, select, summary, [tabindex], [role="button"]):focus-visible {
    outline: 3px solid Highlight !important;
    box-shadow: none !important;
  }
}
