/* Shared styles for ENERMO Insights pages. Tokens match index.html. */
:root {
  --navy: #1B2A3A; --ink: #1B3A5C; --teal: #0D7377; --mint: #5DCAA5;
  --off: #F8F9FA; --tint: #E3F4EE; --white: #FFFFFF;
  --muted: rgba(27, 42, 58, 0.74);
  --line: rgba(27, 42, 58, 0.12);
  --rule: rgba(13, 115, 119, 0.35);
  --on-dark: rgba(248, 249, 250, 0.84);
  --on-dark-soft: rgba(248, 249, 250, 0.72);
  --max: 1120px; --gutter: 32px; --header: 80px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1.1em; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .18s ease; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--mint); }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--off); padding: 10px 16px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: var(--off); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.brand { display: block; line-height: 0; border-radius: 2px; }
.brand img { height: 72px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: .01em; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a:hover, .nav a[aria-current] { color: var(--teal); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a.nav-cta { padding: 8px 18px; border: 1px solid var(--teal); border-radius: 3px; color: var(--teal); transition: background-color .18s ease, color .18s ease; }
.nav a.nav-cta::after { display: none; }
.nav a.nav-cta:hover { background: var(--teal); color: var(--off); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 3px; font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint:hover { background: var(--white); color: var(--navy); }

/* Page head (navy band) */
.page-head { background: var(--navy); color: var(--off); border-top: 3px solid var(--teal); }
.page-head .wrap { padding-top: 64px; padding-bottom: 56px; }
.kicker { margin: 0 0 20px; color: var(--mint); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kicker a { color: var(--mint); text-decoration: none; }
.kicker a:hover { color: var(--off); }
.page-head h1 { margin: 0 0 20px; max-width: 20em; font-size: 44px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.standfirst { margin: 0; max-width: 40em; color: var(--on-dark); font-size: 19px; line-height: 1.6; }
.meta { margin: 28px 0 0; color: var(--on-dark-soft); font-size: 15px; }

/* Photo behind the page head, toned into the navy */
.page-head.has-photo { position: relative; overflow: hidden; isolation: isolate; }
.page-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 65% 50%; filter: saturate(.65) contrast(1.05); }
.page-head.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 0%, rgba(27, 42, 58, .95) 38%, rgba(27, 42, 58, .7) 62%, rgba(27, 42, 58, .38) 100%); }
.page-head.has-photo .wrap { padding-top: 96px; padding-bottom: 88px; }

/* Article */
.article { padding: 64px 0 88px; }
.prose { max-width: 42em; }
.prose h2 { margin: 48px 0 14px; color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 600; }
.prose h2::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 18px; background: var(--teal); }
.prose > p:first-child { color: var(--ink); font-size: 19px; }
.prose p:last-child { margin-bottom: 0; }
.in-brief { margin: 36px 0 8px; padding: 26px 28px 22px; background: var(--tint); border-left: 3px solid var(--teal); border-radius: 0 3px 3px 0; }
.in-brief-label { margin: 0 0 10px; color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.in-brief ol { margin: 0; padding-left: 1.3em; color: var(--ink); }
.in-brief li { padding: 4px 0 4px 4px; line-height: 1.5; }
.in-brief li::marker { color: var(--teal); font-weight: 700; }
.table-wrap { margin: 8px 0 24px; overflow-x: auto; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.compare th, .compare td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare thead th { background: var(--navy); color: var(--off); font-weight: 600; border-bottom: 0; }
.compare thead th:last-child { background: var(--teal); }
.compare tbody th { color: var(--ink); font-weight: 600; width: 22%; }
.compare tbody td:last-child { background: var(--tint); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose .note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* Insights list */
.list { padding: 72px 0 88px; }
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.post { position: relative; padding: 32px 28px 28px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 3px; transition: translate .22s ease, box-shadow .22s ease; }
.post { overflow: hidden; }
.post-media { position: relative; margin: -32px -28px 24px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.post-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) contrast(1.05); transition: transform .5s ease; }
.post-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 42, 58, .12) 30%, rgba(27, 42, 58, .5)); }
.post-tag { margin: 0 0 12px; color: var(--teal); font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.post h2 { margin: 0 0 14px; color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 600; }
.post h2 a { color: inherit; text-decoration: none; }
.post h2 a::after { content: ""; position: absolute; inset: 0; }
.post p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.post .post-date { margin-top: 20px; color: var(--muted); font-size: 13px; }
@media (hover: hover) {
  .post:hover .post-media img { transform: scale(1.03); }
  .post:hover { translate: 0 -3px; box-shadow: 0 14px 30px -18px rgba(27, 42, 58, 0.45); }
  .post:hover h2 { color: var(--teal); }
}

/* Contact band */
.contact { background: var(--navy); color: var(--off); padding: 88px 0 56px; }
.contact .wrap { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.contact h2 { margin: 0; max-width: 18em; color: var(--off); font-size: 38px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.contact h2::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: 24px; background: var(--mint); }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.contact-actions .btn { min-width: 210px; }
.contact-link { align-self: center; color: var(--off); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--mint); padding-bottom: 2px; }
.contact-link:hover { color: var(--mint); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(248, 249, 250, 0.58); font-size: 13px; line-height: 1.6; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; padding-top: 36px; padding-bottom: 36px; }
.site-footer p { margin: 0; }
.site-footer .privacy { margin-top: 8px; }
.legal { flex: 1 1 auto; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: rgba(248, 249, 250, 0.72); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.site-footer a:hover { color: var(--mint); border-color: var(--mint); }

@media (max-width: 760px) {
  :root { --gutter: 20px; --header: 60px; }
  body { font-size: 16px; }
  .brand img { height: 52px; }
  .nav { gap: 0; }
  .nav a:not(.nav-cta) { display: none; }
  .nav a.nav-cta { padding: 7px 14px; font-size: 14px; }
  .page-head .wrap { padding-top: 40px; padding-bottom: 40px; }
  .page-head h1 { font-size: 31px; }
  .standfirst { font-size: 17px; }
  .article { padding: 44px 0 64px; }
  .prose > p:first-child { font-size: 17px; }
  .prose h2 { font-size: 20px; margin-top: 40px; }
  .list { padding: 48px 0 64px; }
  .posts { grid-template-columns: 1fr; }
  .post { padding: 26px 22px 22px; }
  .post-media { margin: -26px -22px 20px; }
  .page-head.has-photo::before { background: linear-gradient(180deg, rgba(27, 42, 58, .78) 0%, rgba(27, 42, 58, .92) 55%, var(--navy) 100%); }
  .page-head.has-photo .wrap { padding-top: 56px; padding-bottom: 48px; }
  .contact { padding: 64px 0 48px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .contact h2 { font-size: 31px; }
  .contact-actions { align-self: start; }
  .site-footer .wrap { flex-direction: column; gap: 16px; }
}
