/* css/redesign-pages.css (2026-11-16)
   The blog index, the blog posts and the contact page in the new light design: cream headers,
   plain labels, hairlines, no glow. Overrides only, loaded last on those pages; no markup changed
   beyond the <body> attributes. Remove the <link> to this file (and data-nav-mode on <body>) to
   get the navy versions back. Some rules need !important because the old text colours are set
   in style attributes. */

/* Nav on a cream header, until it picks up its navy bar on scroll */
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-link,
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-dropdown-trigger { color: rgba(10, 22, 40, 0.66); }
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-link:hover,
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-link.is-current,
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-dropdown-trigger:hover,
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-dropdown[data-open="true"] .nav-dropdown-trigger { color: #0A1628; }
body[data-nav-mode="over-light"] #nav:not(.scrolled) .nav-logo__word { color: #0A1628; }
body[data-nav-mode="over-light"] #nav:not(.scrolled) .mm-toggle { border-color: rgba(10, 22, 40, 0.22); }
body[data-nav-mode="over-light"] #nav:not(.scrolled) .mm-toggle__bar { background: #0A1628; }

/* ── Blog index ─────────────────────────────────────────── */
#blog-hero, #post-hero { background: #F4F1EA; color: #0A1628; }
#blog-hero.grain::after, #post-hero.grain::after, #post-cta.grain::after { display: none; }
.blog-hero-glow-1, .blog-hero-glow-2, .blog-hero-grid,
.post-hero-glow-1, .post-hero-glow-2, .post-hero-grid, .post-cta-glow { display: none; }
.blog-pill, .post-tag, .post-card-tag { padding: 0; border: 0; border-radius: 0; background: none; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.blog-pill, .post-tag { color: #5A6A82; }
.post-card-tag { color: #2D7DD2; margin-bottom: 12px; }
.blog-pill .dot { display: none; }
.blog-h1, .post-h1 { color: #0A1628; font-size: clamp(2.375rem, 3.75vw, 3.375rem); line-height: 1.06; letter-spacing: -0.022em; }
.blog-h1 .hl-simplify em, .post-h1 em { color: #2D7DD2; }
.hl-simplify::before { display: none; }
.hl-underline path { filter: none; }
.blog-lede { font-size: 1.0625rem; font-weight: 400; line-height: 1.6; color: #33435C; }
.cat-section-label, .sidebar-heading { font-family: Inter, sans-serif; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #0A1628; }
.cat-card { border-radius: 10px; box-shadow: none; }
.cat-card:active { opacity: 0.7; }
.cat-card:focus-visible { outline: 2px solid #2D7DD2; outline-offset: 2px; }
.cat-card[aria-pressed="true"] .cat-card-meta { color: rgba(255, 255, 255, 0.66); }
.post-card { border: 1px solid #E4E8EE; border-radius: 12px; box-shadow: none; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, border-color 0.3s ease; }
.post-card:hover { transform: translateY(-2px); border-color: rgba(10, 22, 40, 0.16); box-shadow: 0 16px 36px rgba(10, 22, 40, 0.08); }
.post-card:active { transform: none; }
.post-card:focus-visible { outline: 2px solid #2D7DD2; outline-offset: 3px; }
.post-card-img::after { display: none; }
.sidebar-card { border-radius: 12px; box-shadow: none; }

/* ── Blog posts ─────────────────────────────────────────── */
.post-back { font-size: 0.9375rem; letter-spacing: 0; color: #5A6A82; }
.post-back:hover { color: #0A1628; }
.post-back:active { opacity: 0.7; }
.post-back:focus-visible { outline: 2px solid #2D7DD2; outline-offset: 3px; }
.post-meta { font-size: 0.9375rem; color: #5A6A82; }
.post-meta .sep { background: #8E96A3; }
.post-featured-frame { border-radius: 12px; box-shadow: 0 24px 56px rgba(10, 22, 40, 0.16); }
#post-cta p[style*="uppercase"] { font-size: 0.9375rem !important; letter-spacing: 0 !important; text-transform: none !important; color: rgba(255, 255, 255, 0.62) !important; }
#post-cta em { color: #3B9DF0 !important; }
#post-cta p[style*="168,200,240"] { color: rgba(255, 255, 255, 0.72) !important; }
#post-cta p[style*="uppercase"] { color: rgba(255, 255, 255, 0.62) !important; }
#post-cta .btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); }
#post-cta .btn-ghost:active { opacity: 0.7; }
#post-cta .btn-ghost:focus-visible { outline: 2px solid #3B9DF0; outline-offset: 3px; }

/* ── Contact ────────────────────────────────────────────── */
body[data-vw="contact"] { background-color: #F4F1EA; color: #0A1628; }
body[data-vw="contact"] .bg-glow-1, body[data-vw="contact"] .bg-glow-2, body[data-vw="contact"] .bg-grid { display: none; }
body[data-vw="contact"] main h1, body[data-vw="contact"] main h2 { color: #0A1628 !important; }
body[data-vw="contact"] main h1 em { color: #2D7DD2 !important; }
body[data-vw="contact"] main p[style] { color: #5A6A82 !important; }
body[data-vw="contact"] .eyebrow, body[data-vw="contact"] .section-label { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #5A6A82; }
body[data-vw="contact"] .section-label { font-weight: 600; color: #0A1628; }
body[data-vw="contact"] .form-card { background: #fff; border: 1px solid #E4E8EE; border-radius: 12px; box-shadow: 0 18px 40px rgba(10, 22, 40, 0.06); -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-vw="contact"] .notice-banner { background: #F7F8FA; border: 0; color: #33435C; }
body[data-vw="contact"] .field-label { color: #0A1628; }
body[data-vw="contact"] .field-label span[style] { color: #8E96A3 !important; }
body[data-vw="contact"] main input:not([type="checkbox"]), body[data-vw="contact"] main select, body[data-vw="contact"] main textarea { background-color: #fff; border: 1px solid rgba(10, 22, 40, 0.22); color: #0A1628; }
body[data-vw="contact"] main input::placeholder, body[data-vw="contact"] main textarea::placeholder { color: #8E96A3; }
body[data-vw="contact"] main input:not([type="checkbox"]):focus, body[data-vw="contact"] main select:focus, body[data-vw="contact"] main textarea:focus { border-color: #2D7DD2; background-color: #fff; box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.16); }
body[data-vw="contact"] .field-select { color: #8E96A3; background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6A82' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
body[data-vw="contact"] .field-select.has-value { color: #0A1628; }
body[data-vw="contact"] .field-select option { background: #fff; color: #0A1628; }
body[data-vw="contact"] .checkbox-item { border: 1px solid #E4E8EE; background: #fff; }
body[data-vw="contact"] .checkbox-item:hover { border-color: #2D7DD2; background: #fff; }
body[data-vw="contact"] .checkbox-item input[type="checkbox"] { border: 1.5px solid rgba(10, 22, 40, 0.35); background: #fff; }
body[data-vw="contact"] .checkbox-item input[type="checkbox"]:checked { background: #2D7DD2; border-color: #2D7DD2; }
body[data-vw="contact"] .checkbox-label { color: #33435C; }
body[data-vw="contact"] .checkbox-item:has(input:checked) { border-color: #2D7DD2; background: #F7F8FA; }
body[data-vw="contact"] .checkbox-item:has(input:checked) .checkbox-label { color: #0A1628; }
body[data-vw="contact"] .btn-submit { border-radius: 8px; box-shadow: none; }
body[data-vw="contact"] .btn-submit:hover { box-shadow: none; }
body[data-vw="contact"] .form-divider { background: #E4E8EE; }
body[data-vw="contact"] #success-msg .success-icon path { stroke: #2D7DD2; }

/* ── Shared pieces these pages never had styles for ─────── */
.footer-link { color: rgba(255, 255, 255, 0.6); font-size: 0.875rem; text-decoration: none; transition: color 0.2s ease; }
.footer-link:hover { color: #fff; }
.footer-link:active { opacity: 0.7; }
.footer-link:focus-visible { outline: 2px solid #3B9DF0; outline-offset: 3px; }
/* ── Cookie banner (site-wide) ────────────────────── */
.cookie-banner {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  z-index: 200;
  padding: 20px 22px;
  background: rgba(10, 22, 40, 0.96);
  border: 1px solid rgba(168,200,240,0.14);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 4px 12px rgba(45,125,210,0.12);
  font-size: 0.875rem;
  color: rgba(229,236,247,0.85);
  line-height: 1.55;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
}
.cookie-banner.is-open { transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner p a { color: #8cc1ee; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner button {
  font-family: inherit; font-size: 0.8125rem; font-weight: 500;
  padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.cookie-banner .btn-accept { background: #2D7DD2; color: #fff; border-color: #2D7DD2; }
.cookie-banner .btn-accept:hover { background: #2570C4; }
.cookie-banner .btn-essential { background: transparent; color: rgba(229,236,247,0.85); border-color: rgba(168,200,240,0.2); }
.cookie-banner .btn-essential:hover { border-color: rgba(168,200,240,0.45); color: #fff; }
.cookie-banner .btn-customize { background: transparent; color: rgba(168,200,240,0.7); border-color: transparent; padding-left: 6px; padding-right: 6px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .btn-customize:hover { color: #fff; }
@media (max-width: 540px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; padding: 18px; }
}

