/* =========================================================
   AMASS — consolidated stylesheet
   Palette sourced from the existing submission builder (sub_styles.css).
   Type: Lato throughout.
   ========================================================= */

:root {
  --forest:        #4d6935;
  --forest-dark:   #3b4d27;
  --forest-mid:    #5d7843;
  --forest-deep:   #2f3d1f;
  --sage:          #81c784;
  --sage-hover:    #a5d6a7;
  --sage-tint:     rgba(129, 199, 132, .25);

  --cream:         #faf9f5;
  --paper:         #ffffff;
  --light-panel:   #f3f6fa;

  --ink:           #2c3e50;
  --ink-body:      #555555;
  --ink-mute:      #9aa1a5;
  --ink-on-dark:   #ffffff;
  --muted-on-dark: #e0e0e0;
  --faint-on-dark: #c5d0bd;

  --rule:          #ddd9cc;
  --border-dark:   rgba(255,255,255,.28);

  --error:         #b42318;

  --body: 'Lato', system-ui, -apple-system, sans-serif;
  --display: 'Lato', system-ui, -apple-system, sans-serif;

  --r: .6rem;
  --shadow-md: 0 4px 14px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 50px rgba(0,0,0,.2);
  --max: 1180px;
  --gutter: clamp(16px, 3vw, 24px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-body);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--ink-body); }
a  { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--sage); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: .5rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--forest);
  border-bottom: 3px solid var(--forest-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--ink-on-dark);
  text-decoration: none;
}
.brand-logo {
  height: 52px; width: auto; flex: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}
.brand-text { font-size: 1.35rem; letter-spacing: .04em; }
.brand-text small {
  display: block; font-size: .7rem; font-weight: 400; letter-spacing: 0; line-height: 1.25;
  color: var(--muted-on-dark); margin-top: 2px;
}
.nav-links { display: flex; gap: 1.1rem; align-items: center; margin-left: auto; }
.nav-links a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: .15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink-on-dark);
  border-bottom-color: var(--sage);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  flex: none;
  white-space: nowrap;
  text-decoration: none;
  font-size: .9rem;
  background: var(--sage);
  color: var(--forest-dark) !important;
  border-radius: 99px;
  padding: 8px 16px;
  min-height: 42px;
  border-bottom: none !important;
  font-weight: 900 !important;
}
.nav-cta i { font-size: .8em; }
.nav-cta.active { box-shadow: 0 0 0 2px var(--ink-on-dark); }
.nav-cta:hover { background: var(--sage-hover); color: var(--forest-dark) !important; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border-dark);
  color: var(--ink-on-dark);
  width: 42px; height: 42px;
  border-radius: var(--r);
  font-size: 1.3rem;
  cursor: pointer;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 9px 18px;
  border-radius: var(--r);
  font-family: var(--body); font-size: .9rem; font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer; transition: .15s ease;
  line-height: 1.2;
}
.btn-primary { background: var(--forest); color: var(--ink-on-dark); border-color: var(--forest); }
.btn-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: var(--ink-on-dark); }
.btn-sage { background: var(--sage); color: var(--forest-dark); border-color: var(--sage); }
.btn-sage:hover { background: var(--sage-hover); border-color: var(--sage-hover); color: var(--forest-dark); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--ink-on-dark); }
.btn-outline-light { background: transparent; color: var(--ink-on-dark); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: var(--paper); color: var(--forest); border-color: var(--paper); }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--forest-deep);
  color: var(--ink-on-dark);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .45;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(47,61,31,.85) 0%, rgba(47,61,31,.7) 100%);
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 780px; text-align: center; margin: 0 auto; }
.hero .eyebrow { color: var(--sage); }
.hero h1 { color: var(--ink-on-dark); margin-bottom: 1.25rem; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero .logo { max-width: 280px; height: auto; margin: 0 auto 2rem; display: block; }
.hero .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* =========================================================
   REFUSAL BANNER
   ========================================================= */
.refusal-banner {
  background: #f4f9f4;
  border-top: 4px solid var(--forest);
  border-bottom: 1px solid #c8e6c9;
  padding: 32px 0;
  text-align: center;
}
.refusal-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  border: 1px solid #c8e6c9;
}
.refusal-title {
  color: #1b4d3e;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  margin-bottom: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
}
.refusal-body {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 auto 0.75rem;
  color: var(--ink-body);
  max-width: 760px;
}
.refusal-thanks {
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: var(--ink-body);
  font-weight: 500;
}
.refusal-thanks strong { color: #2e7d32; display: inline-block; margin-top: 0.3rem; }
.refusal-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.refusal-actions .btn-pdf {
  background: #2e7d32;
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
  transition: background .15s ease;
}
.refusal-actions .btn-pdf:hover { background: #1b5e20; color: #ffffff; }

/* =========================================================
   SECTIONS
   ========================================================= */
.block { padding: clamp(48px, 7vw, 88px) 0; }
.block.tight { padding: clamp(32px, 5vw, 56px) 0; }
.block.dark { background: var(--forest); color: var(--muted-on-dark); }
.block.dark h2, .block.dark h3 { color: var(--ink-on-dark); }
.block.dark p { color: var(--muted-on-dark); }
.block.cream { background: var(--cream); }
.block.paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p + p { margin-top: 1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* =========================================================
   PILLARS / CARDS
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pillar {
  display: flex; flex-direction: column;
  padding: 26px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--forest);
  border-radius: var(--r);
  text-align: center;
}
.pillar .icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sage-tint); color: var(--forest);
  display: grid; place-items: center;
  font-size: 1.35rem; margin: 0 auto 16px;
}
.pillar h3 { margin-bottom: 8px; color: var(--forest-dark); }
.pillar p { font-size: .96rem; }

/* =========================================================
   SUBMISSION / CALCULATOR CARDS (homepage)
   ========================================================= */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.action-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--forest);
  border-radius: var(--r);
  padding: 26px 24px;
  text-align: center;
}
.action-panel h3 {
  font-size: 1.4rem;
  margin-bottom: .75rem;
  color: var(--ink);
}
.action-panel .subtitle {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--ink-body);
}
.action-panel ul {
  list-style: none;
  text-align: left;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--ink-body);
  margin: 0 0 1.5rem;
  padding: 0;
}
.action-panel ul li {
  padding: 6px 0;
}
.action-panel .buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.action-panel .buttons .btn { min-width: 140px; }

.pull-quote {
  border-left: 4px solid var(--forest);
  background: var(--cream);
  padding: 22px 26px;
  border-radius: 0 var(--r) var(--r) 0;
  max-width: 760px;
  margin: 2rem auto 0;
}
.pull-quote p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-style: italic;
  color: var(--forest-dark);
  line-height: 1.5;
  margin-bottom: .75rem;
}
.pull-quote cite { font-style: normal; font-size: .88rem; color: var(--ink-mute); }

/* =========================================================
   MEDIA CARDS
   ========================================================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.media-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  transition: .15s ease;
}
.media-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.media-thumbnail {
  height: 160px;  
  background: var(--paper);
  color: var(--ink-on-dark);
  display: grid; place-items: center;
  font-weight: 900; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 3px solid var(--sage);
  position: relative;
  overflow: hidden;
}
.media-thumbnail img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 65%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.media-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 16px 20px 8px;
  padding: 0;
  color: var(--ink);
}
.media-card p {
  font-size: .9rem;
  line-height: 1.5;
  margin: 0 20px 16px;
  padding: 0;
  flex: 1;
}
.media-card .btn.small,
.media-card a.button.small {
  margin: 0 20px 20px;
  align-self: flex-start;
  padding: 8px 16px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--forest);
  text-decoration: none;
  background: transparent;
  border: 1.5px solid var(--forest);
  border-radius: var(--r);
  display: inline-block;
}
.media-card .btn.small:hover,
.media-card a.button.small:hover {
  background: var(--forest);
  color: var(--ink-on-dark);
}
.section-foot { text-align: center; margin-top: 2.5rem; }

/* =========================================================
   KEY FACTS SLIDER
   ========================================================= */
.quotes-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 20px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}
.quotes-slider::-webkit-scrollbar { height: 6px; }
.quotes-slider::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
.quote-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--forest);
  border-radius: var(--r);
  padding: 26px 24px;
}
.quote-card blockquote { font-style: normal; }
.fact-number {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--forest);
  line-height: 1;
  margin-bottom: .5rem;
}
.fact-icon {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--forest);
  margin-bottom: .75rem;
}
.quote-card span:not(.fact-number):not(.fact-icon) {
  display: block;
  color: var(--ink-body);
  font-size: .95rem;
  line-height: 1.55;
}
.slider-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.slider-controls button {
  background: var(--forest);
  color: var(--ink-on-dark);
  border: none;
  padding: 10px 22px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
}
.slider-controls button:hover { background: var(--forest-dark); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 820px; margin: 0 auto; }
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: var(--sage); }
.faq-item[open] { border-color: var(--forest); }
.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--forest-dark);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 1.02rem;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--sage);
  font-weight: 900;
  flex: none;
}
.faq-item[open] summary::after { content: "−"; color: var(--forest); }
.faq-body { padding: 0 22px 22px; border-top: 1px solid var(--rule); padding-top: 16px; }
.faq-body p { margin-bottom: 1rem; font-size: .96rem; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.faq-body li { margin-bottom: 6px; font-size: .96rem; line-height: 1.55; }

/* =========================================================
   PAGE HEAD (subpages)
   ========================================================= */
.page-head {
  padding: clamp(36px, 6vw, 64px) 0 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.page-head h1 { margin-bottom: .75rem; }
.page-head p { max-width: 680px; font-size: 1.05rem; }

/* =========================================================
   TOOLBAR (archive pages)
   ========================================================= */
.toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  margin-bottom: 24px;
  position: sticky; top: 74px; z-index: 50;
  box-shadow: var(--shadow-md);
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 7px 14px; border-radius: 99px;
  font-family: inherit; font-size: .82rem; font-weight: 700;
  background: var(--cream); color: var(--ink-body);
  border: 1.5px solid var(--rule);
  cursor: pointer; transition: .15s ease;
}
.tab:hover { border-color: var(--sage); color: var(--forest); }
.tab.active { background: var(--forest); color: var(--ink-on-dark); border-color: var(--forest); }
.tab .count { opacity: .7; font-weight: 400; margin-left: 2px; }
.search {
  flex: 1; min-width: 200px;
  padding: 9px 14px; border-radius: var(--r);
  border: 1.5px solid var(--rule); background: var(--cream);
  font-family: inherit; font-size: .92rem; outline: none; color: var(--ink);
}
.search:focus { border-color: var(--sage); background: var(--paper); }
.search::placeholder { color: var(--ink-mute); }

/* Correspondence helpers */
.letter-date {
  font-size: .82rem;
  color: var(--ink-mute);
  margin: 8px 20px 4px;
  font-weight: 600;
}
.subsection-title {
  font-size: 1.3em;
  margin: 2em 0 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--forest);
  color: var(--forest-dark);
}

/* =========================================================
   PDF MODAL
   ========================================================= */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(47,61,31,.85);
  z-index: 999; padding: 20px;
  justify-content: center; align-items: center;
}
.modal.open { display: flex; }
.modal-box {
  width: 100%; max-width: 900px; height: 90vh;
  background: var(--paper); border-radius: var(--r);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.modal-head h3 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.modal-close {
  background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--ink-mute);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: inherit;
}
.modal-close:hover { background: var(--cream); color: var(--forest); }
.modal iframe { flex: 1; border: none; width: 100%; }

/* =========================================================
   FORMS
   ========================================================= */
.form { max-width: 620px; margin: 0 auto; }
.form-row { margin-bottom: 18px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--forest-dark);
  text-align: left;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
  font-family: inherit; font-size: .95rem;
  color: var(--ink);
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-tint);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-message {
  margin-top: 16px; padding: 12px 16px;
  border-left: 4px solid var(--forest);
  background: var(--cream);
  border-radius: var(--r);
  font-size: .92rem;
}
.form-message.error { border-left-color: var(--error); background: #fff3f2; color: #8f1d16; }
.form-message.success { border-left-color: var(--sage); background: #e7edde; color: var(--forest-dark); }

/* =========================================================
   CONTENT LISTS
   ========================================================= */
.content-list { list-style: none; padding: 0; }
.content-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: flex-start; gap: 14px;
}
.content-list li:last-child { border-bottom: none; }
.content-list .li-num {
  font-family: var(--display); font-weight: 900;
  color: var(--sage); font-size: 1.1rem;
  flex: none; min-width: 32px;
}

/* Affected areas two-column list */
.affected-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.affected-grid span {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--sage);
  border-radius: var(--r);
  font-weight: 700;
  color: var(--forest-dark);
  font-size: .95rem;
}

/* Map container */
.map-container {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-md);
  background: var(--forest-mid);
}
.map-container img,
.map-container iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.map-container .map-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 20px;
  background: linear-gradient(0deg, rgba(47,61,31,.85), transparent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.map-container.loaded .map-overlay { display: none; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: var(--forest);
  color: var(--ink-on-dark);
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 0;
}
.cta-band h2 { color: var(--ink-on-dark); margin-bottom: .75rem; }
.cta-band p { color: var(--muted-on-dark); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--forest-deep);
  color: var(--faint-on-dark);
  padding: 56px 0 24px;
  font-size: .9rem;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: var(--ink-on-dark);
  font-family: var(--display);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 900;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--faint-on-dark); text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: var(--sage); }
.footer-brand {
  font-family: var(--display); font-weight: 900; font-size: 1.15rem;
  color: var(--ink-on-dark); text-decoration: none;
  margin-bottom: 12px; display: inline-block;
}
.footer-tagline { color: var(--faint-on-dark); font-size: .9rem; line-height: 1.55; max-width: 320px; }
.footer-icons {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-icons a {
  color: var(--faint-on-dark);
  font-size: 1.3rem;
  text-decoration: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  transition: .15s ease;
}
.footer-icons a:hover {
  color: var(--forest-dark);
  background: var(--sage);
  border-color: var(--sage);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: #7d8a79;
  text-align: center;
}
.footer-bottom a { color: #7d8a79; }
.footer-bottom a:hover { color: var(--sage); }
.footer-disclaimer {
  text-align: center;
  font-size: .78rem;
  color: #7d8a79;
  margin: 16px auto 12px;
  max-width: 700px;
  line-height: 1.5;
}
.footer-privacy {
  text-align: center;
  font-size: .78rem;
  color: #7d8a79;
  max-width: 700px;
  margin: 0 auto;
}
.footer-privacy summary {
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
  padding: 12px 8px;
  margin-bottom: 0;
}
.footer-privacy p { color: #7d8a79; line-height: 1.5; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--forest-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid var(--border-dark);
    box-shadow: var(--shadow-md);
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: none;
    border-left: 3px solid transparent;
    padding-left: 12px;
  }
  .nav-links a:hover, .nav-links a.active { border-left-color: var(--sage); }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; flex: none; }
  .nav { position: relative; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toolbar { position: static; }
}
@media (max-width: 560px) {
  .brand-logo { height: 40px; }
  .brand-text { font-size: 1.15rem; }
  .brand-text small { display: none; }
  .nav { gap: 10px; }
  .nav-cta { padding: 8px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { flex: 1; }
  .action-panel .buttons { flex-direction: column; }
  .action-panel .buttons .btn { width: 100%; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-box { height: 92vh; border-radius: var(--r) var(--r) 0 0; max-width: none; }
}

/* =========================================================
   CORRESPONDENCE
   ========================================================= */

/* Letter thumbnails show a PDF-page image, not a logo */
.media-thumbnail.letter-thumb {
  background: var(--cream);
  aspect-ratio: 16 / 10;
}
.media-thumbnail.letter-thumb img {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 75%;
  max-height: 75%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Type badge in the corner of the thumbnail */
.media-thumbnail .tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--forest-dark);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 1;
}
.media-thumbnail .tag.to-dev { background: var(--forest); }
.media-thumbnail .tag.from-dev { background: var(--ink); }
.media-thumbnail .tag.press { background: #c8842b; }
.media-thumbnail .tag.authority { background: var(--forest-mid); }
/* Skeleton placeholders: delete once every page has its real content */
.todo-block {
  border: 2px dashed var(--rule);
  border-radius: var(--r);
  padding: 48px 20px;
  text-align: center;
  color: var(--ink-mute);
}
.todo-block code { font-size: .85rem; }

.footer-copy {
  text-align: center;
  margin-bottom: 16px;
  color: var(--muted-on-dark);
}
.footer-copy img { display: inline-block; vertical-align: middle; margin-left: 6px; }

/* =========================================================
   PETITION
   ========================================================= */
.btn-block { display: flex; width: 100%; }
.petition-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 5vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  text-align: center;
}
.petition-count { display: flex; flex-direction: column; align-items: center; }
.big-number {
  font-size: clamp(2.8rem, 10vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  color: var(--forest);
}
.signatures-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  color: var(--ink);
  margin-top: 6px;
}
.petition-updated { font-size: .85rem; color: var(--ink-mute); margin-top: 8px; }
.petition-warning { color: #b22222; font-size: .9rem; line-height: 1.45; }
.share-options p { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.share-buttons { display: flex; justify-content: center; gap: 12px; }
.share-buttons a {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  color: var(--forest);
  font-size: 1.15rem;
  text-decoration: none;
  transition: .15s ease;
}
.share-buttons a:hover { background: var(--forest); border-color: var(--forest); color: var(--ink-on-dark); }
.petition-note { font-size: .85rem; color: var(--ink-mute); line-height: 1.45; }

/* =========================================================
   DONATE
   ========================================================= */
.donate-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 900px) {
  .donate-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .donate-card { margin: 0; max-width: none; }
}
.donate-goals p { margin-bottom: 6px; color: var(--ink); }
.donate-goals .donate-goals-note { font-size: .9rem; color: var(--ink-body); margin-top: 8px; }
.progress {
  background: var(--rule);
  height: 20px;
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar { background: var(--forest); height: 100%; }
.contribution-guide {
  text-align: left;
  background: var(--cream);
  border-radius: var(--r);
  padding: 16px 18px;
  font-size: .92rem;
}
.contribution-guide .contribution-title { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.contribution-guide ul { list-style: none; margin-bottom: 10px; }
.contribution-guide li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.contribution-guide li:last-child { border-bottom: none; }

.donate-side { display: flex; flex-direction: column; gap: 20px; }
.donate-side h2 { font-size: 1.15rem; margin-bottom: 14px; }
.donate-uses, .donate-alt {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: clamp(18px, 4vw, 26px);
}
.uses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.use-tile {
  background: #c0392b;
  color: #fff;
  border-radius: var(--r);
  padding: 14px;
  text-align: center;
}
.use-tile p { font-size: .85rem; color: #fff; }
.use-tile .use-title { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.donate-alt p { margin-bottom: 10px; }
.donate-alt .donate-alt-contact { font-size: .92rem; color: var(--ink-body); margin-bottom: 16px; }
.donate-transparency {
  background: var(--light-panel);
  border-radius: var(--r);
  padding: 16px 18px;
  font-size: .88rem;
  color: var(--ink);
}
@media (max-width: 380px) {
  .uses-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.form-response { margin-top: 1em; font-weight: 700; text-align: center; }
button.btn { cursor: pointer; }
/* 16px stops iPhones zooming in when a field is tapped */
@media (max-width: 900px) {
  .form-input, .form-textarea { font-size: 16px; }
}

/* =========================================================
   INTERACTIVE MAP
   ========================================================= */
.map-frame {
  position: relative;
  /* full height on desktop; shorter on phones so the page can still be scrolled past the map */
  height: min(680px, 75vh);
  overflow: hidden;
  border-radius: var(--r);
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  background: var(--light-panel);
}
.map-fallback { position: relative; width: 100%; height: 100%; cursor: pointer; }
.map-fallback picture, .map-fallback img { width: 100%; height: 100%; }
.map-fallback img { object-fit: cover; }
.map-fallback-label {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
  max-width: 90%;
  width: max-content;
  text-align: center;
}
#map-iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  display: none;
}
.map-links { text-align: center; margin-top: 1em; }
.map-links p { margin-bottom: .5em; }

/* Podcast player inside a media card */
.media-card iframe { display: block; width: calc(100% - 40px); margin: 0 20px 20px; }
@media (max-width: 560px) {
  .media-thumbnail { height: 120px; }
}

/* Media filters */
.media-card[hidden], .toolbar[hidden], .media-empty[hidden] { display: none; }
.media-empty { text-align: center; padding: 40px 20px; color: var(--ink-mute); }
@media (max-width: 560px) {
  .toolbar { padding: 12px; }
  .tabs { width: 100%; }
  .tab { min-height: 40px; }
  .search { min-width: 0; width: 100%; font-size: 16px; }
}

/* =========================================================
   CORRESPONDENCE: letter thumbnails + PDF viewer (same as current site)
   ========================================================= */
.media-thumbnail.letter-thumbnail { height: 180px; background: #f4f4f4; }
.media-thumbnail.letter-thumbnail a { position: absolute; inset: 0; }
.media-thumbnail.letter-thumbnail img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.letter-card .btn.small { margin-top: auto; }

#pdf-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#pdf-lightbox.active { display: flex; }
.pdf-container {
  position: relative;
  width: 90%;
  height: 90%;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.pdf-container iframe { width: 100%; height: 100%; border: 0; }
#pdf-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: black;
  cursor: pointer;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

/* Footer text links (e.g. Planning Submission Builder) */
.footer-links {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 24px;
  margin-bottom: 18px;
}
.footer-links a {
  display: inline-block;
  padding: 10px 2px;
  color: var(--muted-on-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: var(--sage); }

/* =========================================================
   HOMEPAGE
   ========================================================= */
/* Planning refusal pop-up (same as current site) */
.amass-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.amass-modal-overlay.active { opacity: 1; visibility: visible; }
.amass-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(15px);
  transition: transform 0.3s ease;
  text-align: center;
}
.amass-modal-overlay.active .amass-modal-content { transform: translateY(0); }
.amass-modal-content .refusal-body { text-align: left; color: #333333; }
.amass-modal-content .refusal-thanks { color: #444444; }
.refusal-actions .btn-pdf,
.refusal-actions .btn-modal-close { min-height: 44px; display: inline-flex; align-items: center; }
.btn-modal-close {
  background: #e9ecef;
  color: #495057;
  font-weight: 600;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}
.refusal-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: #2e7d32;
  color: #fff;
  border: none;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

/* Banner */
.hero h1 { margin-bottom: 0; }
.hero h1 a { display: inline-block; }
.hero .logo { width: auto; height: 250px; max-width: 100%; object-fit: contain; }
.hero .lede span { display: block; }
.hero video { opacity: 1; }
.hero::before { background: linear-gradient(180deg, rgba(47,61,31,.35) 0%, rgba(47,61,31,.25) 100%); }

#main { scroll-margin-top: 70px; }

/* Shared homepage pieces */
.home-buttons {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
  margin: 2rem 0 0;
}
.home-panel { max-width: 700px; margin: 0 auto; text-align: left; }
.home-panel > p { color: #333; margin-bottom: 1rem; }
.home-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1rem;
  margin: 0 !important;
}
.home-prose { max-width: 760px; margin: 0 auto; }
.home-prose > p { margin-bottom: 1rem; }
.home-icon { font-size: 3rem; color: var(--sage); margin-bottom: 1rem; }

/* Affected areas */
#affected-areas .two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  margin: 0 0 2rem;
}
#affected-areas .two-columns ul { list-style: disc; padding-left: 1.2rem; color: var(--muted-on-dark); }
#affected-areas .two-columns li { padding: 2px 0; }
#affected-areas strong { color: var(--ink-on-dark); }
.home-icon-row {
  display: flex; justify-content: center; gap: 40px;
  margin: 2rem 0;
  font-size: 3rem; color: var(--ink-on-dark);
}

/* Why we're taking a stand */
.home-stand {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.home-stand h2 { margin-bottom: .75rem; }
.home-stand p { margin-bottom: 1.5rem; }
.featured-icons {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: center;
  font-size: 4rem;
  color: var(--forest);
  opacity: .35;
}
.featured-icons .label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Key facts */
.slider-controls button { min-height: 44px; }

@media (max-width: 560px) {
  .hero .logo { height: 200px; }
  .home-checks { grid-template-columns: 1fr; }
  .home-buttons { flex-direction: column; }
  .home-buttons .btn, .home-stand .btn { width: 100%; }
  .home-stand { grid-template-columns: 1fr; }
  .featured-icons { grid-template-columns: repeat(4, 1fr); font-size: 2.5rem; }
  .quote-card { flex-basis: 290px; }
  .refusal-trigger { right: 12px; bottom: 12px; }
}

/* =========================================================
   404 PAGE
   ========================================================= */
.notfound { text-align: center; min-height: 60vh; display: flex; align-items: center; }
.notfound .wrap { max-width: 420px; }
.notfound-logo { width: 180px; height: auto; margin: 0 auto 2rem; }
.notfound h1 { font-size: 5rem; line-height: 1; color: var(--ink-on-dark); text-shadow: 0 0 5px rgba(0,0,0,0.3); }
.notfound p { font-size: 1.5rem; margin: 1rem 0 2rem; line-height: 1.4; color: var(--ink-on-dark); }
/* No white strip between the dark 404 block and the footer */
main:has(.notfound) + .site-footer { margin-top: 0; }

/* Homepage: planning outcome line under the banner tagline */
.hero-status {
  display: inline-block;
  margin: -0.75rem 0 1.75rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(47,61,31,.75);
  color: var(--ink-on-dark);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.5;
}
.hero-status a { color: var(--sage); display: inline-block; padding: 9px 2px; margin: -5px 0; }
.hero-status a:hover { color: var(--sage-hover); }

/* =========================================================
   MEDIA LOGOS: even sizes
   The logos range from square to 5:1, and two have white borders in the image file.
   Each is sized so the logo itself covers about the same area on screen.
   ========================================================= */
.media-thumbnail img[src$="/CT.png"]           { width: 165px; } /* solid block, so a little smaller */
.media-thumbnail img[src$="/gbfm.svg"]         { width: 128px; }
.media-thumbnail img[src$="/independent.jpeg"] { width: 107px; }
.media-thumbnail img[src$="/rte.png"]          { width: 115px; }
.media-thumbnail img[src$="/th.png"]           { width: 239px; }
.media-thumbnail img[src*="/images/media/"]    { height: auto; max-width: 85%; max-height: 85%; }

/* Phones: "Read more" / "View letter" buttons centred under the card text */
@media (max-width: 560px) {
  .media-card .btn.small,
  .media-card a.button.small { align-self: center; }
}
