@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F8FA;
  --bg-sand: #F4F1EA;
  --slate: #1E3A4C;
  --slate-dark: #142836;
  --teal: #2F6F73;
  --teal-dark: #215356;
  --teal-soft: #EAF3F3;
  --ink: #1A252D;
  --muted: #4F5E69;
  --border: #DCE3E8;
  --border-strong: #BDC9D2;
  --footer-bg: #EEF2F5;
  --max-w: 1140px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--slate);
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--slate);
  color: #FFFFFF;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top Urgent-Support Bar ===== */
.crisis-bar {
  background: var(--slate);
  color: #E7EFF3;
  font-size: 0.84rem;
  line-height: 1.45;
  padding: 9px 0;
}

.crisis-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
}

.crisis-inner strong {
  color: #FFFFFF;
  font-weight: 600;
}

.crisis-inner a {
  color: #BFE3E5;
  font-weight: 600;
  text-decoration: underline;
}

.crisis-inner a:hover {
  color: #FFFFFF;
}

/* ===== Full-Width Minimal Top Navigation ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slate);
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-soft);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--slate);
}

.brand-tag {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 13px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}

.nav-links a:hover {
  background: var(--bg-soft);
  color: var(--slate);
}

.nav-links a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--slate);
  font-weight: 600;
}

/* Pure HTML mobile menu */
.mobile-nav {
  display: none;
  position: relative;
  flex-shrink: 0;
}

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--bg-soft);
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 224px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(20, 40, 54, 0.11);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
}

.mobile-panel a:hover,
.mobile-panel a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--slate);
  font-weight: 600;
}

/* ===== Shared Typography & Buttons ===== */
.kicker {
  display: inline-block;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 26px;
}

.btn-group.centered {
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slate);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1.5px solid var(--slate);
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background: var(--slate-dark);
  color: #FFFFFF;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--slate);
  background: var(--bg-soft);
  color: var(--slate);
}

/* ===== Home Centered Statement + Widescreen 16:9 Hero ===== */
.hero-centered {
  padding: 54px 0 42px;
  background: var(--bg);
}

.hero-statement {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.hero-statement h1 {
  font-size: clamp(2.15rem, 3.8vw, 3.15rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-statement p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto;
}

.hero-widescreen {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.hero-widescreen img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  object-fit: cover;
}

.hero-area-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 14px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-area-bar strong {
  color: var(--slate);
  font-weight: 600;
}

/* ===== Borderless Top-Ruled 3-Column Pillars ===== */
.section-white {
  padding: 60px 0;
  background: var(--bg);
}

.section-mist {
  padding: 60px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}

.section-header-split h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
}

.section-header-split p {
  color: var(--muted);
  font-size: 0.99rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.pillar {
  border-top: 3px solid var(--teal);
  padding-top: 20px;
}

.pillar-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.pillar h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ===== Signposting Directory Band ===== */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dir-entry {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.dir-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}

.dir-entry h3 {
  font-size: 1.18rem;
}

.dir-badge {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 2px 9px;
  border-radius: 4px;
}

.dir-entry p {
  font-size: 0.92rem;
  color: var(--muted);
}

.dir-contact {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--slate);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ===== Community Walk / Tees Valley Feature ===== */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.split-feature figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.split-feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.fig-cap {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
  list-style: none;
  padding: 0;
}

.area-tags li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 5px;
}

/* ===== Inner Page Minimal Left-Aligned Masthead & Swiss 30/70 Grid ===== */
.inner-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 42px;
}

.inner-head h1 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  max-width: 780px;
  margin-bottom: 14px;
}

.inner-head p {
  font-size: 1.04rem;
  color: var(--muted);
  max-width: 680px;
}

.swiss-container {
  padding: 16px 0 54px;
}

.swiss-row {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 44px;
  padding: 38px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.swiss-row:first-child {
  border-top: none;
}

.swiss-label h2 {
  font-size: 1.48rem;
  margin-bottom: 8px;
}

.swiss-label p {
  font-size: 0.88rem;
  color: var(--muted);
}

.swiss-body p {
  font-size: 0.97rem;
  color: var(--ink);
}

.swiss-body h3 {
  font-size: 1.18rem;
  margin: 20px 0 8px;
}

.swiss-body h3:first-child {
  margin-top: 0;
}

.sand-quote {
  margin: 20px 0;
  padding: 22px 26px;
  background: var(--bg-sand);
  border-left: 3px solid var(--slate);
  border-radius: 0 6px 6px 0;
}

.sand-quote p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.12rem;
  color: var(--slate);
  line-height: 1.56;
  margin-bottom: 8px;
}

.sand-quote cite {
  font-style: normal;
  font-size: 0.84rem;
  color: var(--muted);
}

.swiss-figure {
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
}

.swiss-figure img {
  width: 100%;
  max-height: 410px;
  object-fit: cover;
}

.meta-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 16px 0;
  background: var(--bg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  text-align: left;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: var(--bg-soft);
  color: var(--slate);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

tbody tr:last-child td {
  border-bottom: none;
}

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.plain-list {
  margin: 12px 0 18px;
  padding-left: 20px;
}

.plain-list li {
  margin-bottom: 9px;
  font-size: 0.95rem;
  color: var(--ink);
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0;
}

.info-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
}

.info-panel.accent {
  background: var(--teal-soft);
  border-color: #C7DFDF;
}

.info-panel h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.info-panel p {
  font-size: 0.92rem;
  color: var(--muted);
}

.info-panel .detail-line {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
  color: var(--slate);
}

.info-panel .detail-line a {
  font-weight: 600;
  word-break: break-word;
}

.calm-notice {
  background: var(--bg-sand);
  border: 1px solid #DFD9CA;
  border-radius: 8px;
  padding: 20px 22px;
  margin: 18px 0;
}

.calm-notice h3 {
  font-size: 1.12rem;
  margin: 0 0 6px;
}

.calm-notice p {
  font-size: 0.92rem;
  color: var(--ink);
}

/* ===== Full-Width Pale Slate-Mist Footer ===== */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 1.05fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-strong);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
}

.footer-brand span {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--slate);
}

.footer-grid p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 12px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.89rem;
  color: var(--muted);
}

.footer-list a {
  color: var(--slate);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.footer-base {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.81rem;
  color: var(--muted);
}

/* 404 */
.not-found-wrap {
  padding: 88px 0;
  text-align: center;
}

.not-found-wrap h1 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin-bottom: 14px;
}

.not-found-wrap p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.section-header-split > *,
.pillars-grid > *,
.directory-grid > *,
.split-feature > *,
.swiss-row > *,
.two-up > *,
.footer-grid > * {
  min-width: 0;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .section-header-split,
  .pillars-grid,
  .split-feature,
  .swiss-row,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .directory-grid,
  .two-up {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .wrap {
    padding: 0 16px;
  }

  .nav-bar {
    gap: 10px;
    min-height: 66px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-tag {
    font-size: 0.7rem;
  }

  .hero-centered {
    padding: 36px 0 28px;
  }

  .section-white,
  .section-mist {
    padding: 42px 0;
  }

  .inner-head {
    padding: 34px 0 30px;
  }

  .swiss-row {
    padding: 28px 0;
  }
}
