:root {
  --navy: #0e1b48;
  --navy-deep: #0a1235;
  --purple: #610a88;
  --orange: #ef800b;
  --orange-dark: #c96a05;
  --cream: #fdf1e3;
  --ink: #0e1b48;
  --muted: #4c5473;
  --white: #ffffff;
  --radius: 10px;
  --font-body: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  --font-head: 'Montserrat', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  margin: 0 0 .6em;
}
h1 { font-size: 2.6rem; line-height: 1.404; }
h2 { font-size: 2rem; line-height: 1.44; }
h3 { font-size: 1.6rem; line-height: 1.464; }
h4 { font-size: 1.2rem; line-height: 1.44; }
p { margin: 0 0 1em; font-size: 1.3rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
a:hover { color: var(--navy); }

.container { width: min(1240px, 100% - 6rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy);
  padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.header-inner { display: flex; align-items: flex-start; justify-content: space-between; width: min(1400px, 100% - 3rem); }
.brand img { width: 180px; height: 180px; object-fit: contain; }
.site-nav { display: flex; gap: 1.2rem; padding-top: 2rem; }
.site-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .784rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--white); text-decoration: none;
  padding: .078rem 0;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--orange); }
.site-header--dark .site-nav a { color: var(--navy); }
.site-header--dark .site-nav a:hover { color: var(--orange); }
.site-header--dark .brand img { filter: brightness(0) saturate(100%) invert(11%) sepia(46%) saturate(2400%) hue-rotate(208deg); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; }

/* Hero */
.hero {
  position: relative; color: var(--white); text-align: center; overflow: hidden;
  min-height: 613px; display: flex; align-items: center;
  padding: 11rem 0 4rem;
  background: var(--navy) url('/images/Blue-Purple-Wave.jpg') center / cover no-repeat;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: color-mix(in srgb, var(--navy) 79%, transparent); }
.hero > .container { position: relative; z-index: 2; }
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero h1 { max-width: 897px; margin-inline: auto; }
.hero h3 { font-size: 1.1rem; letter-spacing: .04em; font-weight: 600; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero--page {
  min-height: var(--hero-h, 503px); padding: 8rem 0 4rem;
  background-image: var(--hero-img, url('/images/Blue-Purple-Wave.jpg'));
  background-size: cover; background-position: center;
}
.hero--page::before { background: linear-gradient(180deg, color-mix(in srgb, var(--navy) calc(var(--overlay, .7) * 100%), transparent), color-mix(in srgb, var(--purple) calc(var(--overlay, .7) * 100%), transparent)); }
/* Plain hero: a colour and big type, no picture (the background is chosen on the block). */
.hero.hero--plain { background: var(--white); color: var(--ink); min-height: 0; padding: 10rem 0 5rem; }
.hero.hero--plain::before { display: none; }
.hero--plain h1 { max-width: 1180px; font-size: clamp(2.4rem, 6.6vw, 5.9rem); line-height: 1.08; font-weight: 400; color: var(--ink); }
.hero--plain h3 { color: var(--ink); max-width: 760px; margin-inline: auto; font-size: clamp(1.1rem, 2.2vw, 1.8rem); font-weight: 400; letter-spacing: 0; text-transform: none; }
.hero.hero--plain.section--cream { background: var(--cream); }
.hero.hero--plain.section--navy { background: var(--navy); color: var(--white); }
.hero.hero--plain.section--purple { background: var(--purple); color: var(--white); }
.hero.hero--plain.section--accent { background: var(--purple); color: var(--white); }
.hero--plain.section--navy h1, .hero--plain.section--navy h3, .hero--plain.section--purple h1, .hero--plain.section--purple h3,
.hero--plain.section--accent h1, .hero--plain.section--accent h3 { color: var(--white); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* Sections */
.section { padding: 5rem 0; }
.section--cream { background: var(--cream); }
.section--navy, .section--purple {
  color: var(--white); background: var(--purple);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--navy) 92%, transparent), color-mix(in srgb, var(--purple) 92%, transparent)), url('/images/Blue-Purple-Wave.jpg');
  background-size: cover; background-position: center;
}
.section--navy { background: var(--navy); background-image: none; }
/* Accent: the template's purple as one flat colour (imported designs use it for their coloured panels). */
.section--accent { color: var(--white); background: var(--purple); }
.section--accent h2, .section--accent h3, .section--accent h4 { color: var(--white); }
.section--accent a:not(.btn) { color: var(--white); }
.section--accent .btn { color: var(--white); border-color: var(--white); }
.section--accent .btn:hover { background: var(--white); color: var(--navy); }
.section--wave { background-image: url('/images/Blue-Purple-Wave.jpg') !important; }
.section--tint { background: #fff url('/images/Purple-Background-10pc.jpg') center / cover no-repeat; }
.section--navy h2, .section--navy h3, .section--navy h4,
.section--purple h2, .section--purple h3, .section--purple h4 { color: var(--white); }
.section--plain { background-image: none !important; }
.section--bg { background-size: cover; background-position: center; background-repeat: no-repeat; color: var(--white); }
.section--bg h2, .section--bg h3, .section--bg h4 { color: var(--white); }
.center { text-align: center; }
.narrow { max-width: 998px; margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--top { align-items: start; }
/* Full split: words on a coloured half, picture filling the other half edge to edge. */
.split-full { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(520px, 700px); overflow: hidden; }
.split-full__words { display: flex; flex-direction: column; justify-content: center; padding: 4rem max(1.5rem, 5vw); }
.split-full__image { width: 100%; height: 100%; min-height: 0; object-fit: cover; max-width: none; }
@media (max-width: 820px) { .split-full { grid-template-columns: 1fr; grid-template-rows: none; } .split-full__image { height: 320px; } }
.split img { margin-inline: auto; }
.split img.contain { max-height: 540px; width: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card { background: transparent; padding: 0; }
.section--cream .card, .steps .card { background: var(--cream); border-radius: var(--radius); padding: 2rem 1.75rem; }
.card img.icon { width: 150px; height: 150px; object-fit: contain; margin: 0 auto 1rem; }
.section--purple .card h3 { font-size: 1.2rem; }
.section--purple .card p { font-size: 1.1rem; }
.card--plain { box-shadow: none; background: transparent; padding: 0; }

.person { text-align: center; }
.person img { width: 100%; max-width: 570px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; }
.person h2 { font-size: 1.2rem; }
.person--row { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; text-align: left; align-items: start; }
.person--row img { margin: 0; }

.steps { background: var(--white); }
.steps .card { text-align: center; }
.steps .num { width: 72px; height: 72px; object-fit: contain; margin: 0 auto .75rem; }
.steps h2 { color: var(--orange); font-size: 1.1rem; margin-bottom: .2em; }
.steps .sub { color: var(--navy); font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.steps .card p { font-size: 1rem; }

.section--bg.center { min-height: 693px; display: flex; align-items: center; }
.quote-section { min-height: 696px; display: flex; align-items: center; }
.quote-card { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: 0 3rem 2.5rem; text-align: center; max-width: 880px; margin: 5rem auto 3rem; }
.quote-card img { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; margin: -95px auto 1.25rem; }
.quote-card h3 { color: var(--navy) !important; font-size: 1.1rem; }
.quote-card p { font-size: 1.1rem; font-style: italic; }
.quote-card cite { display: block; font-style: normal; font-weight: 700; text-transform: uppercase; font-size: .85rem; }

.quote { font-size: 1.15rem; font-style: italic; }
.quote cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }

.ticks { list-style: disc; padding-left: 1.6rem; margin: 0 0 1.5rem; font-size: 1.3rem; }
.ticks li { margin-bottom: .55rem; }

/* Buttons: outlined, rounded 10px */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: .892rem; text-decoration: none;
  background: transparent; color: var(--orange); padding: .8rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--orange); transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--orange); color: var(--white); }
.btn--small { padding: .55rem .9rem; font-size: .75rem; }
.hero .btn, .section--purple .btn, .section--navy .btn, .section--bg .btn, .site-footer .btn { color: var(--white); border-color: var(--white); }
.hero .btn:hover, .section--purple .btn:hover, .section--navy .btn:hover, .section--bg .btn:hover, .site-footer .btn:hover { background: var(--white); color: var(--navy); }

/* Gallery strip */
.gallery { padding: 4.5rem 0; background: var(--white); }
.gallery .container { width: min(1400px, 100% - 3rem); }
.gallery h3 { text-transform: uppercase; margin: 0 0 1.5rem; font-size: 1.6rem; }
.gallery-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.gallery-row img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.gallery--home { padding: 0; }
.person img { max-width: 440px; }
.gallery--home .container { width: min(1400px, 100% - 3rem); padding: 2.2rem 0; }

/* Blog */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; align-items: center; }
.chip { background: var(--cream); color: var(--navy); border-radius: var(--radius); padding: .3rem .95rem; font-size: .95rem; text-decoration: none; font-weight: 600; }
.chip:hover, .chip.is-active { background: var(--navy); color: var(--white); }
.post-card { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; align-items: start; }
.post-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post-meta { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.post-body h3 { margin-top: 2rem; }
.post-body img { margin: 1.5rem auto; }
.author { display: flex; gap: 1rem; align-items: center; margin: 2rem 0; }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* Footer */
.site-footer {
  background: var(--purple); background-image: linear-gradient(180deg, color-mix(in srgb, var(--navy) 85%, transparent), color-mix(in srgb, var(--purple) 90%, transparent)), url('/images/Blue-Purple-Wave.jpg'); background-size: cover; background-position: center bottom;
  color: var(--white); padding-top: 4.5rem; font-size: 1.1rem;
}
.site-footer p { font-size: 1.1rem; }
.site-footer h4 { color: var(--white); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-links { columns: 2; column-gap: 3rem; }
.footer-base { margin-top: 2rem; padding-block: 1.25rem; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-base a { margin-left: .75rem; }
.social { display: flex; gap: .8rem; margin-top: 1rem; }
.social a { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--white); border-radius: 4px; font-size: .7rem; font-weight: 700; }

.legal-policy { min-height: 20rem; }
.small-note { font-size: .9rem; color: var(--muted); }

@media (max-width: 860px) {
  h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.3rem; }
  p { font-size: 1.1rem; }
  .brand img { width: 110px; height: 110px; }
  .nav-toggle { display: block; margin-top: 1rem; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy-deep); padding: .5rem 1.25rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .split, .grid-2, .grid-3, .grid-4, .post-card, .person--row, .footer-grid { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 8rem 0 4rem; min-height: 0; }
  .footer-links { columns: 1; }
}

/* Motion: scroll reveal for below-the-fold content only (disabled for reduced-motion users).
   There is deliberately no whole-page fade: navigation must swap pages instantly. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .6s ease var(--reveal-delay, 0s), transform .6s ease var(--reveal-delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Contact */
.contact-text { font-size: 1.1rem; }
.contact-text a { color: var(--orange); text-decoration: underline; }
.icon-row { display: flex; gap: 1rem; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); }
.icon-btn:hover { background: var(--orange); }

/* Blog list */
.blog-hero-inner { display: flex; justify-content: center; align-items: flex-end; flex-direction: column; gap: 1.5rem; }
.blog-hero-inner h1 { color: var(--white); margin: 0 auto; }
.blog-search { align-self: flex-end; }
.blog-search input { background: transparent; border: 1px solid rgba(255,255,255,.7); color: var(--white); padding: .55rem .9rem; width: 280px; font: inherit; font-size: 1rem; }
.blog-search input::placeholder { color: rgba(255,255,255,.85); }
.blog-list .container { width: min(1085px, 100% - 3rem); }
.blog-card { display: grid; grid-template-columns: 434px 1fr; gap: 65px; align-items: start; margin-bottom: 3rem; }
.blog-card-img img { width: 434px; height: 434px; object-fit: cover; }
.blog-card-meta { font-size: 1rem; margin: 0 0 1rem; display: flex; gap: .75rem; }
.blog-card-meta a { color: var(--navy); text-decoration: none; }
.blog-card h1 { font-size: 2rem; line-height: 1.5; margin: 0 0 1rem; }
.blog-card h1 a { color: var(--navy); text-decoration: none; }
.blog-card p { font-size: 1.1rem; }
.btn-fill { display: inline-block; background: var(--orange); color: var(--white); border-radius: calc(var(--radius) * .6); padding: .75rem 1rem; font-family: var(--font-head); font-weight: 600; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.btn-fill:hover { background: var(--navy); color: var(--white); }

/* Blog post */
.post-page { padding-top: 18rem; }
.post-container { width: min(982px, 100% - 3rem); }
.post-page h1 { font-size: 3.8rem; line-height: 1.4; }
.post-page .post-meta { display: flex; gap: 1rem; font-size: .9rem; color: var(--navy); margin-bottom: 2rem; }
.post-page .post-meta a { color: var(--navy); }
.post-author-img { width: 135px; height: auto; margin-bottom: 1rem; }
.post-byline { font-size: .9rem; }
.post-body p, .post-body li { font-size: 1.1rem; }
.post-body img { max-width: min(559px, 100%); margin: 1.5rem auto; }
.post-body h3 { margin-top: 2rem; }
@media (max-width: 860px) { .blog-card { grid-template-columns: 1fr; gap: 1.5rem; } .blog-card-img img { width: 100%; height: auto; aspect-ratio: 1; } .post-page { padding-top: 10rem; } .post-page h1 { font-size: 2.2rem; } .blog-search { align-self: stretch; } .blog-search input { width: 100%; } }

/* Consent banner */
.consent { position: fixed; left: 1rem; bottom: 1rem; z-index: 1000; width: min(340px, 100% - 2rem); background: #fff; color: var(--navy);
  border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.28); padding: 1rem 1.1rem; font-family: Arial, sans-serif; font-size: 11px; line-height: 1.45; }
.consent[hidden], .consent-open[hidden] { display: none; }
.consent h2 { font: 700 12px Arial, sans-serif; text-transform: none; margin: .4rem 0 .5rem; color: var(--navy); }
.consent p { font-size: 11px; margin: 0 0 .6rem; }
.consent-skip { display: block; text-align: right; font-size: 10px; font-weight: 700; color: var(--navy); text-decoration: none; margin-bottom: .2rem; }
.consent-toggles { display: flex; gap: 1rem; margin-bottom: .6rem; }
.consent-toggles label { display: inline-flex; align-items: center; gap: .3rem; }
.consent-links a { color: var(--navy); font-size: 10px; }
.consent-buttons { display: flex; gap: .5rem; }
.consent-btn { flex: 1; font: 700 11px Arial, sans-serif; padding: .6rem .5rem; border-radius: 4px; border: 1px solid #d0d0d0; background: #f2f2f2; color: var(--navy); cursor: pointer; }
.consent-btn--fill { background: var(--orange); border-color: var(--orange); color: #fff; }
.consent-btn:hover { filter: brightness(.95); }
.consent-open { position: fixed; right: 1rem; bottom: 1rem; z-index: 999; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--orange); cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.embed-blocked { background: var(--cream); border-radius: var(--radius); padding: 2rem; text-align: center; }
.embed-blocked h3 { font-size: 1.1rem; }
.embed-blocked p { font-size: 1rem; }
.embed-blocked .consent-btn { flex: none; padding: .7rem 1.4rem; }

.refs p { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }

.legal-page h1 { font-size: 2.6rem; }
.legal-policy p, .legal-policy li { font-size: 1.1rem; }

/* Height parity with the original layout */
.section--plain .card img.icon { width: 72px; height: 72px; }
.why-section { min-height: 759px; display: flex; align-items: center; }
.why-section > .container { width: min(998px, 100% - 3rem); }
.steps { min-height: 703px; display: flex; flex-direction: column; justify-content: center; }
.cta-section { min-height: 619px; display: flex; align-items: center; }
.cta-section > .container { width: 100%; max-width: 1240px; }
.gallery { padding: 4.7rem 0; }
.site-footer { min-height: 423px; }
@media (max-width: 860px) { .why-section, .steps, .cta-section, .site-footer { min-height: 0; } }

.gallery.gallery--home { padding: 0; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-form { display: grid; gap: 1.1rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; padding: .7rem .8rem; border: 1px solid #b8bdd0; border-radius: 6px; width: 100%; color: var(--navy); background: #fff; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.form-error { color: #b00020; font-size: .9rem; font-weight: 400; margin: 0; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-thanks { color: var(--navy); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } .contact-form .form-row { grid-template-columns: 1fr; } }

/* Blog: highlight, grid, navigation */
.blog-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; }
.blog-topics a, .blog-tags a, .post-keywords a { border: 1px solid var(--navy); border-radius: 999px; padding: .3rem .9rem; color: var(--navy); text-decoration: none; font-size: .95rem; }
.blog-topics a:hover, .blog-tags a:hover, .post-keywords a:hover, .blog-topics a.is-active, .blog-tags a.is-active { background: var(--navy); color: var(--white); }
.blog-filter-note { margin: 0 0 2rem; }
.blog-card--featured { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid color-mix(in srgb, var(--navy) 15%, transparent); }
.blog-card-flag { display: inline-block; background: var(--orange); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 4px; margin: 0 0 1rem; }
.blog-card h2 { font-size: 2rem; line-height: 1.4; margin: 0 0 1rem; }
.blog-card h2 a, .blog-tile h2 a, .blog-tile h3 a { color: var(--navy); text-decoration: none; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.blog-tile-img { display: block; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--navy) 6%, transparent); margin-bottom: 1rem; overflow: hidden; }
.blog-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-tile h2, .blog-tile h3 { font-size: 1.25rem; line-height: 1.4; margin: 0 0 .5rem; }
.blog-tile-cat { margin: 0 0 .5rem; font-size: .95rem; }
.blog-tile-cat a { color: var(--purple); text-decoration: none; }
.blog-tile p { font-size: 1rem; }
.blog-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin: 3rem 0 1rem; }
.blog-pager a, .blog-pager span { padding: .4rem .8rem; border: 1px solid var(--navy); border-radius: 6px; color: var(--navy); text-decoration: none; }
.blog-pager a:hover, .blog-pager .is-active { background: var(--navy); color: var(--white); }
.blog-tags { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.blog-tags h3 { width: 100%; margin: 0 0 .25rem; font-size: 1rem; }
.post-page .post-meta { flex-wrap: wrap; }
.post-keywords { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 2.5rem; }
.post-keywords span { font-weight: 600; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0 1.5rem; }
.post-nav a { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--navy) 25%, transparent); border-radius: 8px; color: var(--navy); text-decoration: none; }
.post-nav a:hover { border-color: var(--navy); }
.post-nav small { color: var(--muted); }
.post-nav-older { grid-column: 2; text-align: right; }
.post-nav-newer { grid-column: 1; }
.post-more { background: var(--cream); }
.post-more .container { width: min(1085px, 100% - 3rem); }
.post-more h2 { margin-top: 0; }
.post-preview-note { background: #fff4d6; border: 1px solid #e0b04a; padding: .75rem 1rem; border-radius: 6px; }
.post-body h4 { margin-top: 1.5rem; }
.post-body blockquote { border-left: 4px solid var(--orange); margin: 1.5rem 0; padding: .25rem 1.25rem; font-style: italic; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } .post-nav { grid-template-columns: 1fr; } .post-nav-older, .post-nav-newer { grid-column: 1; text-align: left; } }
.blog-card--noimg { grid-template-columns: 1fr; }

/* Questions and answers block (designer pages) */
.faq { display: grid; gap: .75rem; margin-top: 1.5rem; text-align: left; }
.faq-item { border: 1px solid color-mix(in srgb, var(--navy) 18%, transparent); border-radius: var(--radius); padding: .9rem 1.2rem; background: var(--white); }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.faq-item[open] summary { margin-bottom: .6rem; }
.design-preview-bar { padding-top: 7rem; }

/* An editor previewing a draft template on a page */
.theme-preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: #fff4d6; border-top: 2px solid #e0b04a; color: #5c4300; padding: .6rem 1.5rem; font: 600 .95rem/1.4 system-ui, sans-serif; text-align: center; }
.theme-preview-bar a { color: #5c4300; margin-left: .75rem; }

/* A design imported from Figma keeps its own layout. It may be wider than a phone, so it scrolls sideways rather than breaking the page. */
.figma-import { position: relative; isolation: isolate; overflow-x: auto; max-width: 100%; }

/* Gallery of logos: shown whole, not cropped */
.gallery--logos .gallery-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: center; gap: 2rem 2.5rem; }
.gallery--logos .gallery-row img { aspect-ratio: 3 / 2; object-fit: contain; max-height: 90px; }

/* Cards with the picture behind the words */
.grid-photo { align-items: stretch; }
.card-photo { position: relative; overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; text-align: left; padding: 0; background: var(--navy); }
.card-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo__words { position: relative; width: 100%; padding: 4rem 1.25rem 1.25rem; color: var(--white); background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0)); }
.card-photo__words h3, .card-photo__words p { color: var(--white); margin: 0 0 .35rem; text-align: left; }
.card-photo__words h3 { font-size: 1.1rem; text-transform: none; }

/* An exact copy of a Figma frame: no scrolling box, the design scales to the width */
.figma-import--exact { overflow: visible; }
