/* Ensamico shared shell: aligns static pages with the main Vite/React website. */
:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --ink: #172033;
  --muted: #5d6880;
  --line: #dfe6ef;
  --blue: #2d6cdf;
  --blue-2: #0f5c95;
  --blue-soft: #eaf3ff;
  --navy: #0d2946;
  --shadow: 0 1px 2px rgba(23, 32, 51, 0.04), 0 20px 40px -24px rgba(23, 32, 51, 0.18);
  --shadow-strong: 0 24px 70px rgba(23, 32, 51, 0.12);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.border-top { border-top: 1px solid var(--line); }

/* Header — same visual language and class structure as the main website. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  border-bottom: 1px solid rgba(221, 228, 238, 0.95);
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 39px; width: auto; display: block; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: .92rem; color: var(--muted); }
.desktop-nav a { text-decoration: none; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav-cta { padding: 14px 22px; color: #fff; background: linear-gradient(135deg, #0d2946, #0f5c95); box-shadow: 0 18px 38px rgba(13, 41, 70, .24); }
.language-switcher { position: relative; z-index: 60; }
.language-switcher summary { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.82); color: var(--ink); font-size: .9rem; font-weight: 650; cursor: pointer; list-style: none; box-shadow: 0 10px 28px rgba(23,32,51,.05); }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(23,32,51,.14); }
.language-menu a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-size: .9rem; line-height: 1.2; text-decoration: none; }
.language-menu a:hover, .language-menu a.active { background: var(--blue-soft); color: var(--ink); }

/* Page presentation — same typography, spacing, cards and gradients as the main site. */
.content-page, main { background: var(--bg); }
.page-hero, .article-head {
  position: relative;
  overflow: hidden;
  padding: 82px 0 52px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(780px 360px at 82% 0%, rgba(45,108,223,.12), transparent 66%),
    radial-gradient(620px 320px at 0% 18%, rgba(15,92,149,.07), transparent 62%),
    var(--bg);
}
.page-hero h1, .article-head h1, .hero h1,
.content-standard h2, .article-body h2, .section-head h2,
.content-standard h3, .article-body h3, .content-card h3, .trust-card h3, .resource-card h3 {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.03em;
  color: var(--ink);
}
.page-hero h1, .article-head h1 { max-width: 960px; margin-bottom: 22px; font-size: clamp(3.1rem, 7vw, 5.8rem); line-height: .98; }
.page-hero .lead, .article-head .lead { max-width: 820px; font-size: 1.16rem; line-height: 1.7; }
.narrow { max-width: 900px; }
.content-standard { padding-top: 58px; padding-bottom: 88px; }
.content-standard h2, .article-body h2 { margin: 44px 0 15px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; }
.content-standard h3, .article-body h3 { font-size: 1.45rem; line-height: 1.12; }
.content-standard p, .content-standard li, .article-body p, .article-body li { color: var(--muted); line-height: 1.78; }
.content-standard a, .article-body a { color: var(--blue-2); }
.content-standard .intro-panel, .content-standard .policy-panel, .content-card, .trust-card, .resource-card, .author-card, .field-note {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.content-standard .intro-panel, .content-standard .policy-panel { padding: 24px 26px; }
.content-card, .trust-card, .resource-card { padding: 26px; }
.article-layout-single { grid-template-columns: minmax(0, 850px); }
.author-card { padding: 24px; }
.author-card h2 { font-size: 1.7rem; }
.small-disclosure { margin-top: 10px; padding: 13px 15px; border-left: 3px solid #c8d8ea; border-radius: 8px; background: #f7f9fc; color: #6b7586 !important; font-size: .86rem; line-height: 1.6 !important; }

/* Compact footer — legal links sit on one line instead of making a fifth long list. */
.footer { padding: 46px 0 20px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 32px; align-items: start; }
.footer-logo-img { height: 37px; width: auto; object-fit: contain; display: block; margin-bottom: 14px; }
.footer-brand p { max-width: 360px; margin-bottom: 12px; font-size: .88rem; line-height: 1.65; }
.footer h4 { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-size: .72rem; }
.footer small { color: var(--muted); }
.footer a { text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: var(--muted); font-size: .87rem; line-height: 1.42; transition: color .2s ease; }
.footer-links a:hover, .footer-legal a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 18px; margin-top: 28px; border-top: 1px solid var(--line); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 15px; }
.footer-legal a { color: var(--muted); font-size: .78rem; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 66px; }
  .logo-img { height: 34px; }
  .language-switcher summary { height: 42px; padding: 0 12px; font-size: .82rem; }
  .nav-cta { display: none; }
  .page-hero, .article-head { padding: 62px 0 40px; }
  .page-hero h1, .article-head h1 { font-size: clamp(2.75rem, 13vw, 4.5rem); }
  .content-standard { padding-top: 42px; padding-bottom: 68px; }
  .footer-grid { grid-template-columns: 1fr; gap: 27px; }
  .footer-bottom { flex-direction: column; margin-top: 24px; }
  .footer-meta { align-items: flex-start; text-align: left; }
  .footer-legal { justify-content: flex-start; }
}

/* ENSAMICO SUBPAGE LOGO MAIN-SITE MATCH:START */
/*
  The PNG has a square canvas with the wordmark centered inside it.
  The main React website displays it in a wide, shallow box using
  object-fit: cover. These rules reproduce that exact behaviour on
  static subpages without changing the existing header/footer layout.
*/

.site-header .nav-wrap .logo {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 150px !important;
  width: 150px !important;
  height: 39px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  min-height: 39px !important;
  max-height: 39px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  position: static !important;
  transform: none !important;
}

.site-header .nav-wrap .logo > .logo-img {
  display: block !important;
  width: 150px !important;
  height: 39px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  min-height: 39px !important;
  max-height: 39px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  position: static !important;
  transform: none !important;
}

.footer .footer-brand .logo {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 150px !important;
  width: 150px !important;
  height: 37px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  min-height: 37px !important;
  max-height: 37px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  position: static !important;
  transform: none !important;
}

.footer .footer-brand .footer-logo-img {
  display: block !important;
  width: 150px !important;
  height: 37px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  min-height: 37px !important;
  max-height: 37px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  position: static !important;
  transform: none !important;
}

@media (max-width: 680px) {
  .site-header .nav-wrap .logo,
  .site-header .nav-wrap .logo > .logo-img,
  .footer .footer-brand .logo,
  .footer .footer-brand .footer-logo-img {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex-basis: 132px !important;
  }
}

@media (max-width: 480px) {
  .site-header .nav-wrap .logo,
  .site-header .nav-wrap .logo > .logo-img,
  .footer .footer-brand .logo,
  .footer .footer-brand .footer-logo-img {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    height: 31px !important;
    min-height: 31px !important;
    max-height: 31px !important;
    flex-basis: 120px !important;
  }
}
/* ENSAMICO SUBPAGE LOGO MAIN-SITE MATCH:END */
