/* ============================================================
   Archipelago Theme — Main Stylesheet
   Design tokens come from theme.json via CSS custom properties.
   ============================================================ */

/* ── CSS Variables (supplement theme.json) ──────────────────────────────── */
:root {
  --color-atlantic: #1c2e38;
  --color-tresco: #96aa96;
  --color-sky: #f5f7f9;
  --color-gorse: #f2a900;
  --color-sound: #2d7d9a;
  --color-island: #8677c9;
  --color-white: #ffffff;
  --color-border: #d0d8d0;
  --color-muted: #666;

  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-pill: 50px;
  --radius-card: 8px;

  --shadow-card: 0 2px 12px rgba(28, 46, 56, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(28, 46, 56, 0.15);
  --shadow-gorse: 0 4px 12px rgba(242, 169, 0, 0.3);
  --shadow-sound: 0 4px 12px rgba(45, 125, 154, 0.3);

  --header-height: 0px;
  --drawer-height: 120px;
  --notice-bar-height: 0px; /* 0 by default — set to real height only when bar is active */
  --transition: 0.3s ease;
}

/* Only apply notice bar height offset when bar is actually showing */
body.has-notice-bar {
  --notice-bar-height: calc(0.75rem * 2 + 0.875rem * 1.6);
}

/* ── Reset / Base ────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-sky);
  color: var(--color-atlantic);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-sound);
  transition: color var(--transition);
}

a:hover {
  color: var(--color-atlantic);
}

/* ── Skip Link ──────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--color-gorse);
  color: var(--color-white);
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* Account for WordPress admin bar */
.admin-bar .skip-link:focus {
  top: calc(1rem + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .skip-link:focus {
    top: calc(1rem + 46px);
  }
}

/* ── Typography ─────────────────────────────────────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1;
  color: var(--color-atlantic);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.125rem);
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
}
h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
}

h4,
h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1;
}

h4 {
  font-size: 1.3125rem;
}
h5 {
  font-size: 1.125rem;
}

h6 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-atlantic);
}

p {
  margin: 0 0 1.25em;
}
p:last-child {
  margin-bottom: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn,
.wp-block-button__link,
button[type="submit"] {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}

/* Primary — Gorse */
.btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--color-gorse);
  color: var(--color-white);
  border-color: var(--color-gorse);
}
.btn-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background: #d99500;
  border-color: #d99500;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gorse);
  color: var(--color-white);
}

/* Secondary — Sound blue */
.btn-secondary {
  background: var(--color-sound);
  color: var(--color-white);
  border-color: var(--color-sound);
}
.btn-secondary:hover {
  background: #256a82;
  border-color: #256a82;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sound);
  color: var(--color-white);
}

/* Outline */
.btn.is-style-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: var(--color-atlantic);
  color: var(--color-atlantic);
}
.btn.is-style-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--color-atlantic);
  color: var(--color-white);
}

/* Ghost */
.btn.is-style-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-sound);
}
.btn.is-style-ghost:hover {
  border-color: var(--color-sound);
}

/* Text link */
.btn.is-style-text-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--color-sound);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn.is-style-text-link:hover {
  color: var(--color-atlantic);
}

/* Large / Small */
.btn-large {
  padding: 18px 36px;
}
.btn-small {
  padding: 10px 20px;
  font-size: 0.75rem;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.5rem;
}

label,
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--color-atlantic);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-atlantic);
  background: var(--color-white);
  transition: border-color var(--transition);
  appearance: none;
}

textarea {
  border-radius: var(--radius-card);
  resize: vertical;
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-tresco);
  box-shadow: 0 0 0 3px rgba(150, 170, 150, 0.2);
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card,
.wp-block-group.is-style-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.card:hover,
.wp-block-group.is-style-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-tresco);
}

.wp-block-group.is-style-panel {
  background: var(--color-white);
  border-left: 4px solid var(--color-tresco);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

/* ── Layout Containers ──────────────────────────────────────────────────── */

.container {
  /*max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  */
}

.site-main {
  min-height: 60vh;
}

/* alignfull class for blocks that should stretch full width */
.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ── Navigation Overlay ──────────────────────────────────────────────────── */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 46, 56, 0.5);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer Panel ────────────────────────────────────────────────────────── */

.drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-atlantic);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
  z-index: 999;
}

.drawer-panel.active {
  max-height: 70vh;
  opacity: 1;
  overflow-y: auto;
}

.drawer-inner {
  padding: calc(var(--drawer-height) + var(--notice-bar-height) + 1rem) 1.25rem
    3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Account for WordPress admin bar */
.admin-bar .drawer-inner {
  padding-top: calc(
    var(--drawer-height) + var(--notice-bar-height) + 1rem + 32px
  );
}

@media screen and (max-width: 782px) {
  .admin-bar .drawer-inner {
    padding-top: calc(
      var(--drawer-height) + var(--notice-bar-height) + 1rem + 46px
    );
  }
}

.drawer-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem 3rem;
}

.drawer-column {
}

.drawer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-tresco);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(150, 170, 150, 0.3);
}

.drawer-item {
  margin-bottom: 0.25rem;
}

.drawer-link {
  display: block;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition:
    color var(--transition),
    padding-left var(--transition);
}

.drawer-link:hover {
  color: var(--color-white);
  padding-left: 0.5rem;
}

/* ── Site Notice Bar ─────────────────────────────────────────────────────── */

.site-notice-bar {
  background: var(--color-sound);
  color: var(--color-white);
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.875rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

/* Account for WordPress admin bar */
.admin-bar .site-notice-bar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-notice-bar {
    top: 46px;
  }
}

.site-notice-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-notice-content p {
  margin: 0;
  font-weight: 500;
}

/* ── Site Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: var(--notice-bar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 100%
  );
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

/* Account for WordPress admin bar */
.admin-bar .site-header {
  top: calc(32px + var(--notice-bar-height));
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: calc(46px + var(--notice-bar-height));
  }
}

.site-header.scrolled {
  background: var(--color-atlantic);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.site-header.hidden {
  transform: translateY(-100%);
}

/* Header container */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  min-height: calc(var(--drawer-height) - 2.5rem);
}

/* Logo: Full height on the left */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo a,
.site-name {
  display: block;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  white-space: nowrap;
}

.site-logo img {
  height: auto;
  width: 200px;
}

/* Right side: Utility bar and Main nav stacked */
.header-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
}

/* Utility Bar */
.utility-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.utility-bar .btn-primary,
.utility-bar .btn-secondary,
.utility-menu a {
  padding: 8px 18px;
  font-size: 1.2rem;
  font-family: var(--font-serif);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.utility-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}

.utility-menu a.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.utility-menu a.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Main nav */
.nav-container.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

/* Desktop nav menu */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.mobile-close-item {
  display: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.75rem 1.125rem;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity var(--transition);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 0.8;
  color: var(--color-white);
}

.nav-item.active .nav-link,
.nav-item.current-menu-item .nav-link {
  border-bottom-color: var(--color-white);
  padding-bottom: calc(0.75rem - 2px);
}

.nav-item.dimmed .nav-link {
  opacity: 0.35;
}

/* Dropdown arrow */
.nav-item.has-dropdown > .nav-link::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 7px;
  vertical-align: middle;
  transition: transform var(--transition);
  opacity: 0.7;
}

.nav-item.has-dropdown.active > .nav-link::after {
  transform: rotate(180deg);
}

/* Mobile-only elements hidden on desktop */
.mobile-toggle,
.mobile-dropdown {
  display: none;
}

/* ── Mobile Nav ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
    min-height: auto;
  }

  .site-logo img {
    height: auto;
    width: 100px;
  }

  .header-right {
    gap: 0.25rem;
  }

  .utility-bar {
    gap: 0.5rem;
  }

  .utility-bar .btn-primary,
  .utility-bar .btn-secondary,
  .utility-menu a {
    padding: 6px 12px;
    font-size: 1.2rem;
  }

  /* Keep logo and hamburger visible above mobile nav overlay */
  .site-logo,
  .header-right {
    position: relative;
    z-index: 2010;
  }

  /* Mobile toggle button */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
  }

  .hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile full-screen nav */
  .nav-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-atlantic);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    gap: 0;
    overflow-y: auto;
    z-index: 1005;
  }

  .nav-menu.mobile-active {
    display: flex;
  }

  .mobile-close-item {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .mobile-close-btn {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 1rem 0;
    border-bottom: none;
  }

  /* Mobile accordion dropdown */
  .mobile-dropdown {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-dropdown.active {
    display: block;
    max-height: 500px;
  }

  .mobile-dropdown-link {
    display: block;
    padding: 0.625rem 0;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 1rem;
  }

  .mobile-dropdown-link:hover {
    color: var(--color-white);
  }

  /* Drawer not used on mobile */
  .drawer-panel {
    display: none;
  }
  .nav-overlay {
    display: none;
  }
}

/* ── Main Content ────────────────────────────────────────────────────────── */

.site-main > *:first-child {
  padding-top: calc(var(--header-height) + var(--notice-bar-height));
}

/* Account for WordPress admin bar */
.admin-bar .site-main > *:first-child {
  padding-top: calc(var(--header-height) + var(--notice-bar-height));
}

@media screen and (max-width: 782px) {
  .admin-bar .site-main > *:first-child {
    padding-top: calc(var(--header-height) + var(--notice-bar-height) + 46px);
  }
}

/* Hero sections that fill viewport don't need the padding */
.site-main > .hero-section:first-child,
.site-main > .wp-block-cover:first-child,
.site-main > .wp-block-group.is-full-height:first-child {
  padding-top: 0;
}

/* ── Posts Grid ─────────────────────────────────────────────────────────── */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* ── Entry ───────────────────────────────────────────────────────────────── */

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  margin-bottom: 0.75rem;
}

.entry-meta {
  font-size: 0.875rem;
  color: var(--color-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.entry-content > * + * {
  margin-top: 1.5em;
}

.featured-image-wrap {
  margin-bottom: 2rem;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.featured-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-atlantic);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-site-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.footer-nav nav,
.footer-nav h2,
.footer-nav h3 {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li + li {
  margin-top: 0.5rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-menu a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ── Block Styles ────────────────────────────────────────────────────────── */

/* Separator */
.wp-block-separator.is-style-brand {
  border-color: var(--color-tresco) !important;
  border-top-width: 2px;
  opacity: 1;
}

/* Image card style */
.wp-block-image.is-style-card img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Cover block — ensure full-height works with fixed header */
.wp-block-cover.is-full-height {
  min-height: 100vh;
}

/* ── Responsive Embeds ───────────────────────────────────────────────────── */

.responsive-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.responsive-embed iframe,
.responsive-embed object,
.responsive-embed embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Accessibility ────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-gorse);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ── Latest News Shortcode ───────────────────────────────────────────────── */

.latest-news-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.latest-news-section__inner {
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.latest-news-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.latest-news-section__heading {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.375rem);
    color: var(--color-atlantic);
    margin: 0;
    line-height: 1;
}

.latest-news-section__view-all {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-sound);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.latest-news-section__view-all:hover {
    color: var(--color-atlantic);
}

/* ── Signposts ───────────────────────────────────────────────────────────── */

/* Add class 'archipelago-signposts' to the outer Group block in Gutenberg */

.archipelago-signposts .wp-block-columns {
    gap: 2rem;
}

/* Force 2x2 on mobile instead of stacking — override Gutenberg's breakpoint */
@media (max-width: 768px) {
    .archipelago-signposts .wp-block-columns {
        flex-wrap: wrap !important;
        display: flex !important;
        gap: 1.5rem !important;
    }
    .archipelago-signposts .wp-block-columns .wp-block-column {
        flex: 0 0 calc(50% - 0.75rem) !important;
        width: calc(50% - 0.75rem) !important;
        min-width: 0 !important;
    }
}

/* Perfect circle regardless of image dimensions */
.archipelago-signposts .wp-block-image.is-style-rounded {
    margin-bottom: 1.25rem;
}

.archipelago-signposts .wp-block-image.is-style-rounded img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 50% !important;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover — gentle scale with soft shadow */
.archipelago-signposts .wp-block-column:hover .wp-block-image.is-style-rounded img {
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(28, 46, 56, 0.18);
}

/* Column */
.archipelago-signposts .wp-block-column {
    text-align: center;
}

/* Heading — soft colour transition */
.archipelago-signposts .wp-block-heading {
    transition: color 0.5s ease;
    margin-bottom: 0.5rem;
}

.archipelago-signposts .wp-block-column:hover .wp-block-heading {
    color: var(--color-sound);
}

/* Find out more link — gentle underline expands from centre */
.archipelago-signposts p a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.archipelago-signposts p a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 1px;
    background: var(--color-white);
    transition: left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.archipelago-signposts .wp-block-column:hover p a::after {
    left: 0;
    right: 0;
}

/* ── Equal Height Cards ──────────────────────────────────────────────────── */

/* Add class 'archipelago-cards' to the outer Group block in Gutenberg. */

.archipelago-cards .wp-block-columns {
    align-items: stretch !important;
}

.archipelago-cards .wp-block-column.is-layout-flow {
    display: flex !important;
    flex-direction: column !important;
}

/* Card — use grid so rows are explicit */
.archipelago-cards .wp-block-group.is-style-card {
    flex: 1 !important;
    display: grid !important;
    grid-template-rows: 350px 1fr !important;
}

/* Cover — fills first grid row */
.archipelago-cards .wp-block-group.is-style-card > .wp-block-cover {
    height: 350px !important;
    min-height: unset !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
}

.archipelago-cards .wp-block-group.is-style-card > .wp-block-cover .wp-block-cover__image-background {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    max-width: none !important;
}

/* Inner vertical group — fills second grid row, uses grid itself */
.archipelago-cards .wp-block-group.is-style-card > .wp-block-group.is-vertical {
    display: grid !important;
    grid-template-rows: auto 1fr auto !important;
    align-items: start !important;
    height: 100% !important;
}

/* Buttons — sit in last grid row, always at bottom */
.archipelago-cards .wp-block-group.is-style-card > .wp-block-group.is-vertical > .wp-block-buttons {
    align-self: end !important;
}

/* ── Reduced Motion ──────────────────────────────────────────────────────── */

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