/* ERIN V2.1 — preserved-content pages (Option A migration)
   Styles the body of recreated WordPress pages/articles to match the V2.1
   design system. Layered on top of the existing V2.1 stylesheets so the
   header/footer chrome is inherited unchanged. No new fonts or palette —
   reuses Georgia headings, Arial body, ochre #ba8b3d and navy #0a3f7d. */

/* Force a normal, full-width block flow for the preserved content, overriding
   any grid/flex/min-content width the V2.1 homepage stylesheets apply to
   `main`/sections. The preserved pages are a plain single column. */
body { display: block; }

main.preserved-main {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  color: #29251f;
  font: 400 1.0625rem/1.65 Arial, Helvetica, sans-serif;
}
main.preserved-main > * { min-width: 0; }

/* The global V2.1 rule `img{width:100%;height:100%;object-fit:cover}` would
   stretch/crop inline article images. Reset images inside preserved content to
   their natural size. */
.preserved-main img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: initial;
}

.preserved-breadcrumb {
  margin: 0 0 20px;
  font: 700 0.72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7f6c;
}
.preserved-breadcrumb a { color: #0a3f7d; text-decoration: none; }
.preserved-breadcrumb a:hover { text-decoration: underline; }
.preserved-breadcrumb span { color: #b8ae9c; padding: 0 6px; }

.preserved-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  background: #0a3f7d;
  color: #fff;
  font: 800 0.72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 24px;
}

.preserved-main h1 {
  margin: 0 0 8px;
  font: 700 2.4rem/1.15 Georgia, "Times New Roman", serif;
  color: #171614;
}
.preserved-main .preserved-date {
  margin: 0 0 28px;
  color: #8a7f6c;
  font-size: 0.9rem;
}

.preserved-body { border-top: 1px solid #d8cfc0; padding-top: 28px; }
.preserved-body h2 {
  margin: 34px 0 12px;
  font: 700 1.6rem/1.2 Georgia, "Times New Roman", serif;
  color: #171614;
}
.preserved-body h3, .preserved-body h4 {
  margin: 26px 0 10px;
  font: 700 1.25rem/1.25 Georgia, "Times New Roman", serif;
  color: #29251f;
}
.preserved-body p { margin: 0 0 18px; }
.preserved-body a { color: #0a3f7d; text-underline-offset: 3px; }
.preserved-body ul, .preserved-body ol { margin: 0 0 18px; padding-left: 22px; }
.preserved-body li { margin: 0 0 8px; }
.preserved-body img { max-width: 100%; height: auto; border-radius: 4px; }
.preserved-body blockquote {
  margin: 22px 0; padding: 4px 0 4px 20px;
  border-left: 4px solid #ba8b3d; color: #4d473f; font-style: italic;
}

/* Call-to-action back into the V2.1 enquiry flow — the required link on every
   preserved page. */
.preserved-cta {
  margin: 40px 0 0;
  padding: 28px 24px;
  background: #171614;
  color: #fff;
  border-left: 5px solid #ba8b3d;
}
.preserved-cta p { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.5; }
.preserved-cta .button-primary {
  display: inline-block; padding: 13px 22px; background: #0a3f7d; color: #fff;
  text-decoration: none; font: 800 0.9rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em; border-radius: 4px;
}
.preserved-cta .button-primary:hover { background: #082d5a; }
.preserved-cta small { display: block; margin-top: 12px; color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* Useful Resources (auto /our-journal/) index */
.resources-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px; margin-top: 8px;
}
.resource-card {
  display: flex; flex-direction: column;
  padding: 24px; background: #eee7da; border-left: 4px solid #ba8b3d;
}
.resource-card h2 {
  margin: 0 0 8px; font: 700 1.25rem/1.25 Georgia, "Times New Roman", serif; color: #171614;
}
.resource-card h2 a { color: inherit; text-decoration: none; }
.resource-card h2 a:hover { color: #0a3f7d; }
.resource-card .resource-date { margin: 0 0 10px; color: #8a7f6c; font-size: 0.8rem; }
.resource-card p { margin: 0 0 16px; font-size: 0.98rem; line-height: 1.55; color: #4d473f; }
.resource-card .resource-more {
  margin-top: auto; color: #0a3f7d; font-weight: 700; font-size: 0.85rem;
  text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase;
}
.resource-card .resource-more:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .preserved-main { padding: 40px 20px 56px; }
  .preserved-main h1 { font-size: 1.9rem; }
}

/* ---------------------------------------------------------------------------
   Header + footer chrome for preserved pages.
   The V2.1 homepage styles its footer inside `@scope (.preserved-content)`,
   which does NOT apply to these standalone pages. Replicate the needed header
   and footer rules here (verbatim values from the V2.1 stylesheet) so the
   preserved pages carry the full ERIN chrome without the homepage wrapper.
   --------------------------------------------------------------------------- */

/* Header: fixed-grid top bar matching the homepage. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  min-height: 90px;
  padding: 0 clamp(22px, 4vw, 64px);
  background: #faf7f0;
  border-bottom: 1px solid rgba(30, 28, 25, 0.12);
}
.site-header .brand { display: flex; flex-direction: column; text-decoration: none; color: #11100e; }
.site-header .brand-name { font: 700 1.9rem/1 Georgia, "Times New Roman", serif; letter-spacing: 0.04em; }
.site-header .brand-mark { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 400 0.72rem/1 Arial, sans-serif; letter-spacing: 0.12em; color: #8a7f6c; }
.site-header .brand-mark i { display: block; width: 18px; height: 1px; background: #ba8b3d; }
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.5vw, 38px); }
.site-nav a { color: #17202e; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.site-nav a:hover { color: #0a3f7d; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2vw, 28px); }
.header-cta { display: grid; justify-items: center; gap: 4px; }
.header-cta .button-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; background: #0a3f7d; color: #fff; font: 800 0.8rem/1 Arial, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-radius: 3px; }
.header-cta .button-primary:hover { background: #082d5a; }
.header-cta span { color: #8a7f6c; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.header-contact { display: grid; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: #17202e; }
.header-contact .contact-choice summary { cursor: pointer; list-style: none; }
.header-contact .contact-choice-options { display: flex; gap: 14px; margin-top: 6px; }
.header-contact .contact-choice-options a { color: #0a3f7d; font-size: 0.68rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Footer: dark grid matching the homepage global-footer. */
.global-footer { padding: 48px clamp(22px, 4vw, 64px) 32px; color: #faf7f0; background: #121211; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.global-footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 24px clamp(28px, 4vw, 60px); align-items: start; max-width: 1200px; margin: 0 auto; }
.global-footer .footer-brand { display: flex; flex-direction: column; gap: 4px; }
.global-footer .footer-logo { font: 700 1.5rem/1 Georgia, "Times New Roman", serif; letter-spacing: 0.04em; }
.global-footer .footer-descriptor { color: rgba(250, 247, 240, 0.5); font-size: 0.8rem; }
.global-footer .footer-contact p { margin: 0; color: rgba(250, 247, 240, 0.85); font-size: 0.9rem; line-height: 1.8; }
.global-footer .footer-contact .contact-choice summary { cursor: pointer; list-style: none; color: rgba(250, 247, 240, 0.85); font-size: 0.9rem; }
.global-footer .footer-contact .contact-choice-options { display: flex; gap: 14px; margin-top: 6px; }
.global-footer .footer-contact .contact-choice-options a { color: #faf7f0; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 3px; }
.global-footer .footer-nav ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.global-footer .footer-nav a { color: #faf7f0; font-size: 0.88rem; text-decoration: none; }
.global-footer .footer-nav a:hover { color: #d6b26e; }
.global-footer .footer-social { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; flex-direction: column; }
.global-footer .footer-social a { color: #faf7f0; font-size: 0.88rem; opacity: 0.7; text-decoration: none; }
.global-footer .footer-social a:hover { opacity: 1; }
.global-footer .footer-legal { grid-column: 1 / -1; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.global-footer .footer-legal p { margin: 0; color: rgba(250, 247, 240, 0.4); font-size: 0.75rem; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto auto; gap: 16px; min-height: 72px; }
  .site-nav, .header-contact { display: none; }
  .global-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
