/* ================================================================
   RAMSDEN METALS — Global Stylesheet v1.6
   DEPLOY VIA CHILD THEME (cacheable, versioned) — not the Custom CSS box.
   ----------------------------------------------------------------
   FILE LAYOUT (in your Hello Elementor CHILD theme):
     /assets/ramsden-global.css   ← this file
     /fonts/spectral-400.woff2 … spectral-700.woff2
     /fonts/dm-sans-300.woff2  … dm-sans-600.woff2

   SETUP
   1. Put this file in the child theme's /assets/ folder and the woff2
      files in /fonts/ (get them from https://gwfh.mranftl.com, charset
      latin; rename to the simple names above).
   2. Paste ramsden-functions-snippet.php at the END of the child
      theme's functions.php. It enqueues this file (auto-versioned),
      preloads the two key weights, and disables Elementor's Google
      Fonts. No <head> font <link> and no Custom CSS paste needed.
   3. Reveal animations: add the IntersectionObserver script (Elementor
      → Custom Code → End of <body>) OR enqueue it from the child theme.
   4. Content width: Site Settings → Layout → Content Width → 1240px.
   5. Forms: add rm-form (light) or rm-form-dark (dark) to a Form
      widget's Advanced → CSS Classes field.

   CHANGES FROM v1.1
   • Fonts self-hosted (no Google round trip). @font-face below.
   • Switched to child-theme enqueue (was: Custom CSS box).
   • v1.5 — News system: .rm-prose (post body, light + dark), .rm-news-bg
     (full-page background), .rm-posts (archive cards), and single-post
     classes (.rm-post-cat / .rm-post-title / .rm-post-featured).
     The Back to News button is a separate HTML/CSS widget.
   ================================================================ */


/* ── 0. SELF-HOSTED FONTS ─────────────────────────────────────────
   Paths are relative to this file (/assets/) → ../fonts/.
   font-display:swap keeps text visible during load. */
@font-face { font-family:'Spectral'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/spectral-400.woff2') format('woff2'); }
@font-face { font-family:'Spectral'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/spectral-500.woff2') format('woff2'); }
@font-face { font-family:'Spectral'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/spectral-600.woff2') format('woff2'); }
@font-face { font-family:'Spectral'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/spectral-700.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:300; font-display:swap; src:url('../fonts/dm-sans-300.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/dm-sans-400.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/dm-sans-500.woff2') format('woff2'); }
@font-face { font-family:'DM Sans'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/dm-sans-600.woff2') format('woff2'); }


/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Colour */
  --rm-navy:        #0D1B2A;
  --rm-navy-2:      #0B1828;
  --rm-navy-mid:    #1C2B3A;
  --rm-steel:       #1A5A8A;
  --rm-teal:        #00A896;
  --rm-teal-dark:   #007A6E;
  --rm-teal-bright: #1FD1BD;
  --rm-gold:        #E8A042;
  --rm-gold-dark:   #d4913a;
  --rm-slate:       #64748B;
  --rm-slate-light: #94A3B8;
  --rm-body-ink:    #44505F;   /* body text on light */
  --rm-light:       #EEF4F8;
  --rm-white:       #FFFFFF;

  /* Hairlines */
  --rm-line-light:  rgba(13,27,42,0.11);
  --rm-line-dark:   rgba(238,244,248,0.12);

  /* Typography */
  --rm-serif:  'Spectral', Georgia, 'Times New Roman', serif;
  --rm-sans:   'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Type scale — clamp(min, preferred, max) */
  --rm-t-xs:   clamp(0.7rem,   1.2vw, 0.75rem);
  --rm-t-sm:   clamp(0.8rem,   1.4vw, 0.875rem);
  --rm-t-base: clamp(0.9rem,   1.6vw, 1rem);
  --rm-t-lg:   clamp(1rem,     1.8vw, 1.125rem);
  --rm-t-xl:   clamp(1.1rem,   2vw,   1.25rem);
  --rm-t-2xl:  clamp(1.25rem,  2.4vw, 1.5rem);
  --rm-t-3xl:  clamp(1.5rem,   3vw,   1.875rem);
  --rm-t-4xl:  clamp(1.5rem,   3.2vw, 2.25rem);
  --rm-t-5xl:  clamp(1.75rem,  4vw,   2.6rem);
  --rm-t-6xl:  clamp(2rem,     5vw,   3.4rem);

  /* Spacing */
  --rm-s-1:  0.25rem;  --rm-s-2:  0.5rem;  --rm-s-3:  0.75rem;
  --rm-s-4:  1rem;     --rm-s-5:  1.25rem; --rm-s-6:  1.5rem;
  --rm-s-8:  2rem;     --rm-s-10: 2.5rem;  --rm-s-12: 3rem;
  --rm-s-16: 4rem;     --rm-s-20: 5rem;    --rm-s-24: 6rem;

  /* Radius */
  --rm-radius-sm: 6px;
  --rm-radius:    8px;
  --rm-radius-lg: 14px;

  /* Transitions */
  --rm-ease:       0.2s ease;
  --rm-ease-slow:  0.4s ease;

  /* Layout */
  --rm-max: 1240px;
}


/* ── 2. BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--rm-sans);
  font-size: var(--rm-t-base);
  line-height: 1.65;
  color: var(--rm-navy);
  background-color: var(--rm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


/* ── 3. TYPOGRAPHY ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--rm-serif);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 var(--rm-s-4);
  color: var(--rm-navy);
  letter-spacing: -0.01em;
}

h1, .rm-h1 { font-size: var(--rm-t-6xl); line-height: 1.1; }
h2, .rm-h2 { font-size: var(--rm-t-5xl); line-height: 1.18; }
h3, .rm-h3 { font-size: var(--rm-t-4xl); }
h4, .rm-h4 { font-size: var(--rm-t-3xl); }
h5, .rm-h5 { font-size: var(--rm-t-2xl); }
h6, .rm-h6 { font-size: var(--rm-t-xl);  }

p {
  font-family: var(--rm-sans);
  font-size: var(--rm-t-base);
  line-height: 1.7;
  color: var(--rm-slate);
  margin: 0 0 var(--rm-s-4);
}

a { color: var(--rm-teal); text-decoration: none; transition: color var(--rm-ease); }
a:hover { color: var(--rm-teal-dark); }

.elementor-widget-heading .elementor-heading-title { font-family: var(--rm-serif); font-weight: 500; }
.elementor-widget-text-editor, .elementor-widget-text-editor p { font-family: var(--rm-sans); color: var(--rm-slate); }


/* ── 4. LAYOUT ────────────────────────────────────────────────── */
.elementor-section > .elementor-container,
.e-con-inner { max-width: var(--rm-max); width: 100%; }


/* ── 5. BUTTONS ───────────────────────────────────────────────── */
.rm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rm-serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 26px 12px;
  border: none;
  border-radius: var(--rm-radius);
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1;
  transition: background var(--rm-ease), color var(--rm-ease), transform var(--rm-ease), border-color var(--rm-ease);
}
.rm-btn svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: -2px; }

.rm-btn-primary { background: var(--rm-teal); color: var(--rm-white); border: 1.5px solid var(--rm-teal); }
.rm-btn-primary:hover { background: var(--rm-teal-dark); border-color: var(--rm-teal-dark); color: var(--rm-white); transform: translateY(-1px); }

.rm-btn-secondary { background: transparent; color: var(--rm-teal); border: 1.5px solid var(--rm-teal); }
.rm-btn-secondary:hover { background: transparent; color: var(--rm-teal-dark); border-color: var(--rm-teal-dark); transform: translateY(-1px); }

.rm-btn-gold { background: var(--rm-gold); color: var(--rm-navy); border: 1.5px solid var(--rm-gold); }
.rm-btn-gold:hover { background: var(--rm-gold-dark); border-color: var(--rm-gold-dark); color: var(--rm-navy); transform: translateY(-1px); }

.rm-btn-ghost { background: transparent; color: var(--rm-white); border: 1.5px solid rgba(255,255,255,0.45); }
.rm-btn-ghost:hover { border-color: var(--rm-white); background: rgba(255,255,255,0.08); color: var(--rm-white); transform: translateY(-1px); }

/* Elementor native button overrides */
.elementor-button {
  font-family: var(--rm-serif) !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  border-radius: var(--rm-radius) !important;
  transition: background var(--rm-ease), transform var(--rm-ease) !important;
}
.elementor-button:hover { transform: translateY(-1px); }


/* ── 6. FORM STYLES (native Elementor forms) ──────────────────── */
.rm-form .elementor-form, .rm-form-dark .elementor-form { width: 100%; }
.rm-form .elementor-field-group, .rm-form-dark .elementor-field-group { margin-bottom: var(--rm-s-4) !important; }

.rm-form .elementor-field-label, .rm-form-dark .elementor-field-label {
  font-family: var(--rm-sans) !important; font-size: var(--rm-t-sm) !important; font-weight: 500 !important;
  letter-spacing: 0.04em !important; margin-bottom: var(--rm-s-2) !important; display: block;
}
.rm-form .elementor-field, .rm-form-dark .elementor-field {
  font-family: var(--rm-sans) !important; font-size: var(--rm-t-base) !important; font-weight: 400 !important;
  width: 100% !important; padding: 14px 16px !important; border-radius: var(--rm-radius) !important;
  outline: none !important; appearance: none !important; -webkit-appearance: none !important;
  transition: border-color var(--rm-ease), background var(--rm-ease), box-shadow var(--rm-ease) !important;
}
/* Light form */
.rm-form .elementor-field-label { color: var(--rm-slate) !important; }
.rm-form .elementor-field { color: var(--rm-navy) !important; background: var(--rm-white) !important; border: 1.5px solid rgba(13,27,42,0.18) !important; }
.rm-form .elementor-field::placeholder { color: var(--rm-slate-light) !important; }
.rm-form .elementor-field:focus { border-color: var(--rm-teal) !important; box-shadow: 0 0 0 3px rgba(0,168,150,0.1) !important; }
/* Dark form */
.rm-form-dark .elementor-field-label { color: rgba(255,255,255,0.65) !important; }
.rm-form-dark .elementor-field { color: var(--rm-white) !important; background: rgba(255,255,255,0.07) !important; border: 1.5px solid rgba(255,255,255,0.18) !important; }
.rm-form-dark .elementor-field::placeholder { color: rgba(255,255,255,0.38) !important; }
.rm-form-dark .elementor-field:focus { background: rgba(255,255,255,0.11) !important; border-color: var(--rm-teal) !important; box-shadow: 0 0 0 3px rgba(0,168,150,0.15) !important; }
/* Submit */
.rm-form .elementor-field-type-submit .elementor-button,
.rm-form-dark .elementor-field-type-submit .elementor-button {
  width: 100% !important; background: var(--rm-teal) !important; color: var(--rm-white) !important;
  border: none !important; border-radius: var(--rm-radius) !important; font-family: var(--rm-serif) !important;
  font-size: var(--rm-t-xs) !important; font-weight: 600 !important; letter-spacing: 0.14em !important;
  text-transform: uppercase !important; padding: 16px 32px !important; cursor: pointer !important;
  transition: background var(--rm-ease), transform var(--rm-ease) !important;
}
.rm-form .elementor-field-type-submit .elementor-button:hover,
.rm-form-dark .elementor-field-type-submit .elementor-button:hover { background: var(--rm-teal-dark) !important; transform: translateY(-1px) !important; }
/* Messages */
.rm-form .elementor-message, .rm-form-dark .elementor-message { font-family: var(--rm-sans) !important; font-size: var(--rm-t-sm) !important; margin-top: var(--rm-s-2) !important; padding: var(--rm-s-3) var(--rm-s-4) !important; }
.rm-form .elementor-message-success, .rm-form-dark .elementor-message-success { color: var(--rm-teal) !important; border-left: 3px solid var(--rm-teal); }
.rm-form .elementor-message-danger, .rm-form-dark .elementor-message-danger { color: #e05252 !important; border-left: 3px solid #e05252; }


/* ── 7. SECTION UTILITIES ─────────────────────────────────────── */
.rm-dark   { background-color: var(--rm-navy);     color: var(--rm-white); }
.rm-mid    { background-color: var(--rm-navy-mid); color: var(--rm-white); }
.rm-light  { background-color: var(--rm-light);    color: var(--rm-navy); }
.rm-white  { background-color: var(--rm-white);    color: var(--rm-navy); }


/* ================================================================
   PAGE COMPONENTS  (used by lean interior-page widgets)
   ================================================================ */

/* ── Sections + container ── */
.rm-section { position: relative; width: 100%; overflow: hidden; padding: clamp(60px, 7.5vw, 104px) 0; }
.rm-section.rm-dark {
  background-color: var(--rm-navy-2);
  background-image:
    radial-gradient(60% 60% at 100% 0%, rgba(0,168,150,0.10), transparent 60%),
    radial-gradient(55% 60% at 0% 100%, rgba(26,90,138,0.12), transparent 62%),
    linear-gradient(180deg, #0D1B2A, #0A1521);
}
.rm-section.rm-light {
  background-color: var(--rm-light);
  background-image: radial-gradient(55% 45% at 100% 0%, rgba(0,168,150,0.06), transparent 60%);
}
.rm-inner { position: relative; z-index: 1; width: 100%; max-width: var(--rm-max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }
.rm-measure { max-width: 760px; }
.rm-measure-wide { max-width: 880px; }

/* ── Two-column grid ── */
.rm-grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(36px, 5vw, 72px); }
.rm-grid-2--rev .rm-col-text { order: 2; }
@media (max-width: 860px) {
  .rm-grid-2 { grid-template-columns: 1fr; gap: clamp(30px, 6vw, 44px); }
  .rm-grid-2--rev .rm-col-text { order: 0; }
}

/* ── Dark/light context for content ── */
.rm-dark h1, .rm-dark h2, .rm-dark h3, .rm-dark h4, .rm-dark h5, .rm-dark h6,
.rm-dark .rm-h1, .rm-dark .rm-h2, .rm-dark .rm-h3 { color: var(--rm-white); }
.rm-dark p { color: rgba(238,244,248,0.68); font-weight: 300; }
.rm-light p { color: var(--rm-body-ink); }

/* ── Overline ── */
.rm-overline {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--rm-serif); font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rm-teal);
}
.rm-overline::before { content: ''; width: clamp(24px, 3vw, 38px); height: 1.5px; background: currentColor; display: inline-block; }
.rm-dark .rm-overline { color: var(--rm-teal-bright); }
.rm-overline-gold { color: var(--rm-gold); }

/* ── Lead + body helpers ── */
.rm-lead { font-family: var(--rm-sans); font-size: var(--rm-t-lg); line-height: 1.7; font-weight: 300; color: var(--rm-slate); max-width: 640px; }
.rm-dark .rm-lead { color: rgba(238,244,248,0.72); }
.rm-body { font-family: var(--rm-sans); font-size: clamp(14px,1.5vw,16px); line-height: 1.72; margin: 0 0 var(--rm-s-4); color: var(--rm-body-ink); }
.rm-dark .rm-body { color: rgba(238,244,248,0.68); font-weight: 300; }
.rm-body:last-child { margin-bottom: 0; }

/* ── Figure / image frame ── */
.rm-figwrap { position: relative; margin: 0; }
.rm-figure { margin: 0; border-radius: var(--rm-radius-lg); overflow: hidden; border: 1px solid var(--rm-line-light); box-shadow: 0 22px 50px rgba(13,27,42,0.12); background: var(--rm-navy); }
.rm-dark .rm-figure { border-color: var(--rm-line-dark); box-shadow: 0 26px 60px rgba(0,0,0,0.40); }
.rm-figure img { display: block; width: 100%; height: auto; }
.rm-figcap { margin: 12px 2px 0; font-size: var(--rm-t-xs); line-height: 1.5; color: var(--rm-slate); }
.rm-dark .rm-figcap { color: rgba(238,244,248,0.42); }
.rm-chip {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 7px; background: rgba(13,27,42,0.78);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid rgba(0,168,150,0.30);
  font-family: var(--rm-serif); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(238,244,248,0.92);
}
.rm-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rm-teal-bright); box-shadow: 0 0 8px rgba(31,209,189,0.7); }

/* ── Comparison pair ── */
.rm-compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 22px); margin-top: clamp(32px, 4vw, 52px); }
@media (max-width: 680px) { .rm-compare { grid-template-columns: 1fr; } }

/* ── Caution / disclaimer note ── */
.rm-caution { margin-top: clamp(22px, 3vw, 32px); padding: 16px 20px; border-left: 3px solid var(--rm-gold); border-radius: 4px; font-size: var(--rm-t-sm); line-height: 1.6; background: rgba(232,160,66,0.08); color: #5b5240; }
.rm-dark .rm-caution { background: rgba(232,160,66,0.10); color: rgba(238,244,248,0.7); }
.rm-caution strong { font-weight: 600; }

/* ── Facts spec list  (<dl class="rm-facts"><div><dt>..<dd>..</div>) ── */
.rm-facts { margin: 0; padding: 0; }
.rm-facts > div { padding: 16px 0; border-top: 1px solid var(--rm-line-light); display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: baseline; }
.rm-facts > div:last-child { border-bottom: 1px solid var(--rm-line-light); }
.rm-dark .rm-facts > div { border-top-color: var(--rm-line-dark); }
.rm-dark .rm-facts > div:last-child { border-bottom-color: var(--rm-line-dark); }
.rm-facts dt { font-family: var(--rm-serif); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rm-teal); margin: 0; }
.rm-dark .rm-facts dt { color: var(--rm-teal-bright); }
.rm-facts dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--rm-body-ink); }
.rm-dark .rm-facts dd { color: rgba(238,244,248,0.82); }
@media (max-width: 520px) { .rm-facts > div { grid-template-columns: 1fr; gap: 5px; } }

/* ── CTA row ── */
.rm-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3vw, 36px); }

/* ── Link cards ── */
.rm-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.rm-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.2vw, 28px); background: rgba(255,255,255,0.04); border: 1px solid var(--rm-line-dark); border-radius: var(--rm-radius-lg); text-decoration: none !important; color: var(--rm-white); transition: transform .22s, border-color .22s, background .22s; }
.rm-card:hover { transform: translateY(-4px); border-color: rgba(0,168,150,0.5); background: rgba(0,168,150,0.06); }
.rm-card .rm-card-n { font-family: var(--rm-serif); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--rm-teal-bright); }
.rm-card h3 { margin: 0; font-family: var(--rm-serif); font-size: clamp(16px, 1.4vw, 18px); font-weight: 600; line-height: 1.25; color: var(--rm-white); }
.rm-card .rm-card-arr { margin-top: auto; padding-top: 8px; color: var(--rm-teal-bright); display: inline-flex; }
.rm-card .rm-card-arr svg { width: 16px; height: 16px; }
.rm-card .rm-ico { color: var(--rm-teal-bright); display: inline-flex; margin-bottom: 4px; }
.rm-card .rm-ico svg { width: 26px; height: 26px; }
.rm-card p { margin: 0; font-family: var(--rm-sans); font-size: var(--rm-t-sm); line-height: 1.6; font-weight: 300; color: rgba(238,244,248,0.62); }
@media (max-width: 860px) { .rm-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .rm-card-grid { grid-template-columns: 1fr; } }

/* ── Scroll reveal (driven by the global reveal script) ── */
.rm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rm-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rm-reveal { opacity: 1; transform: none; } }


/* ── 8. TYPOGRAPHY UTILITIES ──────────────────────────────────── */
.rm-c-white  { color: var(--rm-white)  !important; }
.rm-c-teal   { color: var(--rm-teal)   !important; }
.rm-c-gold   { color: var(--rm-gold)   !important; }
.rm-c-slate  { color: var(--rm-slate)  !important; }
.rm-c-navy   { color: var(--rm-navy)   !important; }
.rm-c-light  { color: var(--rm-light)  !important; }


/* ── 9. DIVIDERS ──────────────────────────────────────────────── */
.rm-rule { display: block; width: 40px; height: 2px; background: var(--rm-teal); border: none; margin: var(--rm-s-6) 0; }
.rm-rule-gold  { background: var(--rm-gold); }
.rm-rule-white { background: rgba(255,255,255,0.3); }
.rm-rule-center { margin-left: auto; margin-right: auto; }
.rm-rule-full   { width: 100%; }


/* ── 10. TAGS / BADGES ────────────────────────────────────────── */
.rm-tag { display: inline-block; font-family: var(--rm-serif); font-size: var(--rm-t-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; color: var(--rm-teal); border: 1px solid rgba(0,168,150,0.35); background: rgba(0,168,150,0.06); border-radius: var(--rm-radius-sm); margin: 0 var(--rm-s-1) var(--rm-s-2) 0; }
.rm-tag-navy { color: var(--rm-light); border-color: rgba(238,244,248,0.2); background: rgba(238,244,248,0.05); }
.rm-tag-gold { color: var(--rm-gold); border-color: rgba(232,160,66,0.35); background: rgba(232,160,66,0.06); }


/* ── 11. ACCESSIBILITY ────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--rm-teal); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* ================================================================
   NEWS SYSTEM  (added v1.5)
   ================================================================ */

/* ================================================================
   .rm-prose  (Post Content styling)
   ----------------------------------------------------------------
   Styles raw text/blocks dropped into the WordPress editor so a
   single post's Post Content matches the site — no per-post work.

   HOW TO USE
   1. Append this block to ramsden-global.css (→ v1.5) and re-deploy.
   2. Post Content widget → Advanced → CSS Classes → add:  rm-prose
   3. Set the content container to ~700–760px once, in the template.

   LIGHT vs DARK
   - Default = light background (dark text).
   - For the dark news pages, either add "rm-prose-dark" alongside
     "rm-prose" on the Post Content widget, OR simply place the
     article inside a .rm-news-bg container — the dark variant then
     applies automatically. Colours are driven by the --pr-* tokens
     below, so the dark block only re-points those tokens.
   ================================================================ */

.rm-prose {
  /* themeable tokens — light defaults */
  --pr-body:    var(--rm-body-ink, #44505F);
  --pr-head:    var(--rm-navy, #0D1B2A);
  --pr-strong:  var(--rm-navy, #0D1B2A);
  --pr-link:    var(--rm-teal-dark, #007A6E);
  --pr-link-h:  var(--rm-teal, #00A896);
  --pr-accent:  var(--rm-teal, #00A896);
  --pr-accent-2:var(--rm-teal-dark, #007A6E);
  --pr-muted:   var(--rm-slate, #64748B);
  --pr-line:    var(--rm-line-light, rgba(13,27,42,0.12));
  --pr-th-bg:   rgba(0,168,150,0.06);
  --pr-code-bg: rgba(13,27,42,0.05);

  font-family: var(--rm-sans, 'DM Sans', 'Helvetica Neue', Arial, sans-serif);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.72;
  font-weight: 300;
  color: var(--pr-body);
}

/* DARK variant — news articles on the navy background */
.rm-prose.rm-prose-dark,
.rm-news-bg .rm-prose {
  --pr-body:    rgba(238,244,248,0.84);
  --pr-head:    #FFFFFF;
  --pr-strong:  #FFFFFF;
  --pr-link:    var(--rm-teal-bright, #1FD1BD);
  --pr-link-h:  #7FE9DC;
  --pr-accent:  var(--rm-teal-bright, #1FD1BD);
  --pr-accent-2:var(--rm-teal-bright, #1FD1BD);
  --pr-muted:   rgba(238,244,248,0.60);
  --pr-line:    rgba(238,244,248,0.16);
  --pr-th-bg:   rgba(31,209,189,0.10);
  --pr-code-bg: rgba(255,255,255,0.08);
}

.rm-prose > *:first-child { margin-top: 0; }
.rm-prose > *:last-child  { margin-bottom: 0; }

/* Paragraphs */
.rm-prose p { margin: 0 0 1.15em; }

/* Optional magazine lead-in (uncomment to enable)
.rm-prose > p:first-of-type { font-size: 1.1em; color: var(--pr-head); }
*/

/* Links */
.rm-prose a {
  color: var(--pr-link);
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}
.rm-prose a:hover { color: var(--pr-link-h); }

/* Headings */
.rm-prose h2, .rm-prose h3, .rm-prose h4 {
  font-family: var(--rm-serif, 'Spectral', Georgia, serif);
  color: var(--pr-head);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
}
.rm-prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem);     margin: 1.8em 0 0.5em; }
.rm-prose h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 1.6em 0 0.45em; }
.rm-prose h4 { font-size: clamp(1.08rem, 1.8vw, 1.25rem); margin: 1.4em 0 0.4em; }

/* Lists — teal bullet */
.rm-prose ul, .rm-prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.rm-prose li { margin: 0 0 0.5em; }
.rm-prose ul { list-style: none; }
.rm-prose ul > li { position: relative; }
.rm-prose ul > li::before {
  content: ''; position: absolute; left: -1.05em; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pr-accent);
}
.rm-prose ol { list-style: decimal; }
.rm-prose ol > li::marker { color: var(--pr-accent-2); font-weight: 600; }
.rm-prose li > ul, .rm-prose li > ol { margin: 0.5em 0 0; }

/* Blockquote */
.rm-prose blockquote {
  margin: 1.6em 0; padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--pr-accent);
  font-family: var(--rm-serif, 'Spectral', Georgia, serif);
  font-size: 1.15em; font-style: italic; font-weight: 400;
  color: var(--pr-head);
}
.rm-prose blockquote p:last-child { margin-bottom: 0; }
.rm-prose blockquote cite, .rm-prose blockquote .wp-block-quote__citation {
  display: block; margin-top: 0.6em;
  font-family: var(--rm-sans, 'DM Sans', sans-serif);
  font-size: 0.78em; font-style: normal; font-weight: 400; color: var(--pr-muted);
}

/* Images & figures */
.rm-prose img { max-width: 100%; height: auto; display: block; border-radius: var(--rm-radius-lg, 14px); }
.rm-prose figure { margin: 1.7em 0; }
.rm-prose figure img { width: 100%; }
.rm-prose figcaption, .rm-prose .wp-element-caption {
  margin-top: 0.7em; text-align: center;
  font-family: var(--rm-sans, 'DM Sans', sans-serif);
  font-size: 0.8em; line-height: 1.5; color: var(--pr-muted);
}

/* WordPress alignment helpers */
.rm-prose .aligncenter { margin-left: auto; margin-right: auto; }
.rm-prose .alignright  { float: right; margin: 0.4em 0 1em 1.6em; max-width: 50%; }
.rm-prose .alignleft   { float: left;  margin: 0.4em 1.6em 1em 0; max-width: 50%; }

/* Separator */
.rm-prose hr { border: 0; height: 1px; margin: 2.2em 0; background: var(--pr-line); }

/* Emphasis */
.rm-prose strong, .rm-prose b { font-weight: 600; color: var(--pr-strong); }
.rm-prose em, .rm-prose i { font-style: italic; }

/* Tables */
.rm-prose table { width: 100%; border-collapse: collapse; margin: 1.7em 0; font-size: 0.95em; }
.rm-prose th, .rm-prose td { padding: 10px 14px; text-align: left; border: 1px solid var(--pr-line); }
.rm-prose thead th {
  background: var(--pr-th-bg);
  font-family: var(--rm-serif, 'Spectral', serif); color: var(--pr-head); font-weight: 600;
}

/* Code */
.rm-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em;
  background: var(--pr-code-bg); padding: 0.15em 0.4em; border-radius: 5px;
}
.rm-prose pre {
  margin: 1.7em 0; padding: 18px 20px; overflow: auto; border-radius: 10px;
  background: var(--rm-navy, #0D1B2A); color: var(--rm-light, #EEF4F8);
  border: 1px solid var(--pr-line);
}
.rm-prose pre code { background: none; padding: 0; color: inherit; }

/* Clear floats from aligned media */
.rm-prose::after { content: ''; display: block; clear: both; }


/* ================================================================
   NEWS BACKGROUND — same hero glow as .rm-section.rm-dark, sized in
   pixels so it sits at the top and fades SMOOTHLY into solid ink-navy
   down the page (no band, no seam, no repeat — any page length).
   Put this class on the outer container that wraps the news header +
   Posts widget (archive) and/or the single-article template.
   ================================================================ */
.rm-news-bg {
  background-color: #0A1521;                 /* solid ink-navy for the whole page */
  background-image:
    radial-gradient(1200px 720px at 85% -80px, rgba(0,168,150,0.11), transparent 72%),  /* teal glow, top-right */
    radial-gradient(1050px 700px at 6% 150px, rgba(26,90,138,0.12), transparent 72%),    /* steel glow, upper-left */
    linear-gradient(180deg, #0D1B2A, #0A1521 840px);                                     /* subtle navy → ink */
  background-repeat: no-repeat;
}


/* ================================================================
   NEWS ARCHIVE — Elementor "Posts" widget (Classic skin), dark cards
   ----------------------------------------------------------------
   Add class "rm-posts" to the Posts widget → Advanced → CSS Classes.
   In the widget: Skin = Classic; set Columns (e.g. 2–3) + Gap; and set
   the "Nothing Found Message" to the launch empty-state copy:
   "No news releases have been posted yet. Please join the Ramsden
    mailing list to receive future updates."
   ================================================================ */
/* Inset the post grid to line up with the hero content's LEFT edge.
   Padding only — no centering. Requires the Posts widget's CONTAINER to be
   Boxed (your 1240 site content width, same column the header uses) with 0
   horizontal padding. Then the card left edge matches the header at all sizes. */
.rm-posts { padding-left: clamp(20px, 5vw, 80px); padding-right: clamp(20px, 5vw, 80px); }

.rm-posts .elementor-post {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(238,244,248,0.10);
  border-radius: var(--rm-radius-lg, 14px);
  overflow: hidden;
  display: flex; flex-direction: column; margin-bottom: 0;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
/* whole-card clickable: stretch the title link over the card (no JS) */
.rm-posts .elementor-post__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rm-posts .elementor-post:hover {
  border-color: var(--rm-teal, #00A896);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.rm-posts .elementor-post__thumbnail__link { display: block; overflow: hidden; }
.rm-posts .elementor-post__thumbnail { aspect-ratio: 16 / 10; border-radius: 0; overflow: hidden; }
.rm-posts .elementor-post__thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.rm-posts .elementor-post:hover .elementor-post__thumbnail img { transform: scale(1.03); }

.rm-posts .elementor-post__text { padding: clamp(20px, 2vw, 26px); display: flex; flex-direction: column; flex: 1 1 auto; }
.rm-posts .elementor-post__title { margin: 0 0 10px; font-family: var(--rm-serif,'Spectral',serif); font-size: clamp(18px,1.6vw,22px); font-weight: 600; line-height: 1.25; }
.rm-posts .elementor-post__title a { color: #fff; text-decoration: none; transition: color .15s ease; }
.rm-posts .elementor-post__title a:hover { color: #fff; }
.rm-posts .elementor-post__meta-data { margin: 0 0 12px; font-family: var(--rm-sans,'DM Sans',sans-serif); font-size: 12.5px; letter-spacing: .04em; color: rgba(238,244,248,0.55); }
.rm-posts .elementor-post__excerpt { margin: 0 0 16px; }
.rm-posts .elementor-post__excerpt p { margin: 0; font-family: var(--rm-sans,'DM Sans',sans-serif); font-size: 14px; font-weight: 300; line-height: 1.6; color: rgba(238,244,248,0.66); }
.rm-posts .elementor-post__read-more { margin-top: 6px; align-self: flex-start; font-family: var(--rm-serif,'Spectral',serif); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-teal-bright,#1FD1BD); text-decoration: none; transition: color .15s ease; }
.rm-posts .elementor-post__read-more::after { content: '\2192'; margin-left: 7px; }
.rm-posts .elementor-post__read-more:hover { color: #fff; }

/* pagination */
.rm-posts .elementor-pagination { margin-top: clamp(30px,3.4vw,44px); text-align: center; }
.rm-posts .elementor-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; margin: 0 3px; border-radius: 8px; border: 1px solid rgba(238,244,248,0.16); color: rgba(238,244,248,0.72); font-family: var(--rm-sans,'DM Sans',sans-serif); font-size: 14px; text-decoration: none; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.rm-posts .elementor-pagination .page-numbers.current { background: var(--rm-teal,#00A896); border-color: var(--rm-teal,#00A896); color: #fff; }
.rm-posts .elementor-pagination a.page-numbers:hover { border-color: var(--rm-teal-bright,#1FD1BD); color: #fff; }

/* launch empty state (message text is set in the widget's "Nothing Found Message") */
.rm-posts .elementor-posts-nothing-found {
  padding: clamp(30px,4vw,52px); text-align: center;
  border: 1px dashed rgba(238,244,248,0.18); border-radius: var(--rm-radius-lg,14px);
  background: rgba(255,255,255,0.03);
  font-family: var(--rm-sans,'DM Sans',sans-serif); font-size: clamp(15px,1.5vw,17px);
  font-weight: 300; line-height: 1.6; color: rgba(238,244,248,0.7);
}


/* ================================================================
   SINGLE POST — header pieces (added to native widgets)
   (the Back to News button is a separate HTML/CSS widget, not global)
   ================================================================ */
/* Category eyebrow — add class "rm-post-cat" to a Post Info widget set to show Terms (Categories) */
.rm-post-cat, .rm-post-cat a,
.rm-post-cat .elementor-post-info__terms-list-item,
.rm-post-cat .elementor-post-info__item {
  font-family: var(--rm-sans,'DM Sans',sans-serif); font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--rm-gold,#E8A042); text-decoration: none;
}
.rm-post-cat ul, .rm-post-cat .elementor-post-info { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; }
.rm-post-cat a:hover { text-decoration: underline; }

/* Post Title — add class "rm-post-title" to the Post Title widget */
.rm-post-title .elementor-heading-title, h1.rm-post-title {
  font-family: var(--rm-serif,'Spectral',serif); font-weight: 500;
  font-size: clamp(2rem,4.6vw,3rem); line-height: 1.12; letter-spacing: -0.015em; color: #fff;
}

/* Featured image — add class "rm-post-featured" to the Featured Image widget */
.rm-post-featured img { width: 100%; border-radius: var(--rm-radius-lg,14px); display: block; }


/* ================================================================
   FOOTER (split widgets)                              ·   added v1.6
   ----------------------------------------------------------------
   Moved here from the footer HTML widgets so all footer styling
   lives in the global stylesheet.
     #rm-ft-top    → footer main (brand + link columns)
     #rm-ft-legal  → footer legal / copyright band
   (The Brevo newsletter form is styled in the Brevo plugin's own
    Custom CSS box — see ramsden-brevo-form-custom-css.css.)
   ================================================================ */

/* ---- Footer · main (brand + links) ---- */
  #rm-ft-top, #rm-ft-top * { box-sizing: border-box; }

  #rm-ft-top {
    --navy:   #0D1B2A;
    --teal:   #00A896;
    --teal-d: #007A6E;
    --gold:   #E8A042;
    --light:  #EEF4F8;
    --radius-sm: 6px;

    width: 100%;
    background: var(--navy);
    color: var(--light);
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: clamp(48px, 6vw, 76px) 0 clamp(36px, 4vw, 52px);
  }

  #rm-ft-top .rm-ft-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
  }

  #rm-ft-top .rm-ft-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: clamp(32px, 4vw, 64px);
  }

  /* Brand */
  #rm-ft-top .rm-ft-logo { display: inline-block; line-height: 0; margin-bottom: 20px; }
  #rm-ft-top .rm-ft-logo img { height: 38px; width: auto; display: block; border-radius: var(--radius-sm); }
  #rm-ft-top .rm-ft-desc {
    margin: 0;
    max-width: 380px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(238,244,248,0.62);
  }

  /* Link columns */
  #rm-ft-top .rm-ft-col-h {
    margin: 0 0 18px;
    font-family: 'Spectral', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(238,244,248,0.5);
  }
  #rm-ft-top .rm-ft-col ul { list-style: none; margin: 0; padding: 0; }
  #rm-ft-top .rm-ft-col li { margin-bottom: 11px; }
  #rm-ft-top .rm-ft-col a {
    font-size: 14px;
    color: rgba(238,244,248,0.72);
    text-decoration: none;
    transition: color 0.16s ease, padding-left 0.16s ease;
  }
  #rm-ft-top .rm-ft-col a:hover { color: #FFFFFF; padding-left: 4px; }

  /* Responsive */
  @media (max-width: 880px) {
    #rm-ft-top .rm-ft-grid { grid-template-columns: 1fr 1fr; }
    #rm-ft-top .rm-ft-brand { grid-column: 1 / -1; }
  }
  @media (max-width: 520px) {
    #rm-ft-top .rm-ft-grid { grid-template-columns: 1fr; gap: 30px; }
  }

/* ---- Footer · legal / copyright ---- */
  #rm-ft-legal, #rm-ft-legal * { box-sizing: border-box; }

  #rm-ft-legal {
    --navy:  #0D1B2A;
    --light: #EEF4F8;

    width: 100%;
    background: var(--navy);
    color: var(--light);
    font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    border-top: 1px solid rgba(238,244,248,0.08);
    padding: clamp(26px, 3vw, 38px) 0 clamp(28px, 3.4vw, 40px);
  }

  #rm-ft-legal .rm-ft-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
  }

  #rm-ft-legal .rm-ft-disclaimers {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
  }
  #rm-ft-legal .rm-ft-disclaimers p {
    margin: 0;
    max-width: 1000px;
    font-size: 11.5px;
    line-height: 1.62;
    color: rgba(238,244,248,0.36);
  }

  #rm-ft-legal .rm-ft-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    font-size: 12px;
    color: rgba(238,244,248,0.45);
  }
  #rm-ft-legal .rm-ft-bottom p { margin: 0; }
  #rm-ft-legal .rm-ft-bottom a { color: rgba(238,244,248,0.55); text-decoration: none; }
  #rm-ft-legal .rm-ft-bottom a:hover { color: #FFFFFF; }


/* ---- Newsletter (Brevo) container — mirrors .rm-ft-inner so the
   form lines up with the footer columns above/below, fluidly at all
   widths. Put the class "rm-ft-mid" on the Elementor container that
   holds the shortcode, and set that container to Full Width, padding 0
   (add only top/bottom padding as desired). ---- */
.rm-ft-mid {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
  box-sizing: border-box;
}
