:root {
  --navy-950: #031e2d;
  --navy-900: #052d42;
  --navy-800: #083e59;
  --cyan-600: #007f9a;
  --cyan-500: #00a8c6;
  --coral-500: #ff6847;
  --coral-600: #e95135;
  --paper: #ffffff;
  --mist: #eef4f6;
  --line: #d8e4e8;
  --ink: #12222c;
  --muted: #5f737d;
  --success: #167a61;
  --shadow: 0 16px 40px rgba(3, 30, 45, 0.09);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

a:hover { color: var(--cyan-600); }

button, input { font: inherit; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy-950);
  transform: translateY(-140%);
}

.skip-link:focus { transform: translateY(0); }

.utility-bar {
  color: #cce3eb;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
  letter-spacing: .035em;
}

.utility-inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.utility-bar strong { color: #fff; }

.utility-links { display: flex; gap: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(5,45,66,.98);
  box-shadow: 0 8px 24px rgba(3,30,45,.12);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 78px;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  min-width: 215px;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand:hover { color: #fff; }

.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { width: auto; max-width: 230px; max-height: 58px; }

.brand-mark { width: 48px; height: 48px; object-fit: contain; }

.brand-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.brand-kicker {
  display: block;
  margin-top: 5px;
  color: #a9d3df;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.main-nav { justify-self: center; }

.main-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 28px 0 25px;
  color: #e9f5f8;
  font-size: .92rem;
  font-weight: 750;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--coral-500);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  cursor: pointer;
}

.icon-button:hover { background: rgba(255,255,255,.16); }
.icon-button svg { width: 20px; height: 20px; }
.menu-button { display: none; }

.ad-slot {
  display: grid;
  width: 100%;
  min-height: 112px;
  place-items: center;
  overflow: hidden;
  color: #6f7f87;
  background: #e7edef;
  border: 1px solid #d2dde1;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-align: center;
  text-transform: uppercase;
}

.ad-slot span { display: block; }
.ad-slot small { display: block; margin-top: 5px; font-size: .62rem; font-weight: 650; letter-spacing: .05em; text-transform: none; }
.ad-top { width: min(calc(100% - 32px), 970px); min-height: 122px; margin: 22px auto; }
.ad-inline { min-height: 250px; margin: 28px 0; }
.ad-feed { min-height: 180px; margin: 8px 0 26px; }
.ad-sidebar { min-height: 600px; }

main { display: block; }

.section { padding: 56px 0; }
.section-white { background: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--cyan-600);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow::before { width: 24px; height: 3px; background: var(--coral-500); content: ""; }

.section-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2, .page-title, .article-title {
  margin: 0;
  color: var(--navy-950);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.09;
}

.section-heading h2 { max-width: 760px; font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); }

.text-link { color: var(--cyan-600); font-weight: 800; white-space: nowrap; }
.text-link:hover { color: var(--coral-600); }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr);
  gap: 18px;
}

.lead-story {
  position: relative;
  min-height: 515px;
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.lead-story::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,30,45,.82) 0%, rgba(3,30,45,.4) 58%, rgba(3,30,45,.08) 100%);
  content: "";
}

.lead-story > img { width: 100%; height: 100%; min-height: 515px; object-fit: cover; }

.lead-content {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  max-width: 690px;
  padding: clamp(26px, 5vw, 54px);
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  color: #fff;
  background: var(--coral-500);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lead-content h1 { margin: 14px 0 15px; font-size: clamp(2.1rem, 5.3vw, 4.45rem); line-height: .98; letter-spacing: -.055em; }
.lead-content p { max-width: 600px; margin: 0 0 22px; color: #e8f4f6; font-size: 1.08rem; }

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--coral-500);
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.button:hover { color: #fff; background: var(--coral-600); }
.button-outline { color: var(--navy-900); background: transparent; border: 1px solid var(--line); }
.button-outline:hover { color: var(--navy-950); background: var(--mist); }

.lead-side { display: grid; gap: 18px; }

.feature-card {
  display: grid;
  min-height: 158px;
  padding: 24px;
  align-content: end;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card:first-child { color: #fff; background: var(--navy-800); border-color: transparent; }
.feature-card .meta { margin-bottom: 8px; color: var(--coral-500); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.feature-card h2 { margin: 0; font-size: 1.33rem; line-height: 1.23; }
.feature-card p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.feature-card:first-child p { color: #cfe3ea; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }

.card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-visual {
  display: grid;
  min-height: 150px;
  padding: 22px;
  align-content: end;
  color: #fff;
  background: var(--navy-800);
}

.card:nth-child(2n) .card-visual { background: var(--cyan-600); }
.card:nth-child(3n) .card-visual { background: #245b54; }
.card-number { color: rgba(255,255,255,.38); font-size: 3.8rem; font-weight: 950; line-height: .8; }
.card-body { padding: 22px; }
.card-label { color: var(--cyan-600); font-size: .7rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.card h3 { margin: 7px 0 10px; color: var(--navy-950); font-size: 1.18rem; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card-image { aspect-ratio: 3/2; overflow: hidden; background: var(--navy-800); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }

.directory {
  display: grid;
  grid-template-columns: .8fr 1.55fr;
  gap: 30px;
}

.directory-intro {
  padding: 32px;
  color: #fff;
  background: var(--navy-900);
  border-radius: var(--radius);
}

.directory-intro h2 { margin: 0 0 12px; font-size: 2rem; line-height: 1.05; }
.directory-intro p { color: #c7dfe6; }
.directory-intro .button { margin-top: 10px; }

.species-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }

.species-item {
  display: flex;
  min-height: 76px;
  padding: 14px 17px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.species-item strong { color: var(--navy-950); }
.species-item span { display: block; color: var(--muted); font-size: .78rem; }
.species-item b { color: var(--coral-500); font-size: 1.2rem; }

.ethics-band { padding: 42px 0; color: #fff; background: var(--navy-950); }
.ethics-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.ethics-band h2 { margin: 0 0 8px; font-size: clamp(1.6rem,3vw,2.45rem); line-height: 1.1; }
.ethics-band p { max-width: 740px; margin: 0; color: #c8dfe6; }

.site-footer { padding: 48px 0 24px; color: #c6d8df; background: #021722; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3,.75fr); gap: 34px; }
.footer-brand { max-width: 360px; }
.footer-brand .brand { margin-bottom: 15px; }
.footer-brand p { color: #91adb8; }
.footer-col h2 { margin: 0 0 12px; color: #fff; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 7px; }
.footer-col a { color: #a9c1ca; font-size: .9rem; }
.footer-bottom { display: flex; margin-top: 36px; padding-top: 18px; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #75939f; font-size: .78rem; }

.breadcrumbs { padding: 24px 0 12px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--cyan-600); }
.page-hero { padding: 42px 0 48px; color: #fff; background: var(--navy-900); }
.page-hero .eyebrow { color: #8fe3f1; }
.page-title { max-width: 860px; color: #fff; font-size: clamp(2.25rem,5vw,4.8rem); }
.page-intro { max-width: 760px; margin: 18px 0 0; color: #d6e7ec; font-size: 1.08rem; }

.filter-row { display: flex; margin: 0 0 24px; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 8px 13px; color: var(--navy-900); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 750; }
.filter-chip.active { color: #fff; background: var(--navy-900); border-color: var(--navy-900); }

.archive-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 30px; align-items: start; }
.post-list { display: grid; gap: 15px; }
.post-row { display: grid; grid-template-columns: 112px 1fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.post-row-visual { display: grid; min-height: 138px; place-items: center; color: rgba(255,255,255,.4); background: var(--navy-800); font-size: 2.1rem; font-weight: 950; }
.post-row-image { min-height: 138px; overflow: hidden; }
.post-row-image img { width: 100%; height: 100%; object-fit: cover; }
.post-row:nth-child(2n) .post-row-visual { background: var(--cyan-600); }
.post-row-body { padding: 17px 20px; }
.post-row h2 { margin: 4px 0 7px; color: var(--navy-950); font-size: 1.17rem; line-height: 1.2; }
.post-row p { margin: 0; color: var(--muted); font-size: .88rem; }
.sidebar { position: sticky; top: 102px; display: grid; gap: 18px; }
.sidebar-box { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sidebar-box h2 { margin: 0 0 12px; font-size: 1.05rem; }
.sidebar-box ul { margin: 0; padding-left: 18px; }

.article-shell { padding: 26px 0 64px; }
.article-layout { display: grid; grid-template-columns: minmax(0,770px) 300px; gap: 46px; align-items: start; justify-content: center; }
.article { min-width: 0; }
.article-header { margin-bottom: 28px; }
.article-title { font-size: clamp(2.25rem,5vw,4.4rem); }
.article-deck { max-width: 720px; margin: 18px 0; color: #435c68; font-size: 1.17rem; line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .82rem; }
.article-meta strong { color: var(--navy-900); }
.article-hero { width: 100%; aspect-ratio: 16/9; margin: 26px 0; object-fit: cover; border-radius: var(--radius); }
.article-hero-wrap { margin: 0; }
.toc { margin: 24px 0 34px; padding: 22px 24px; background: #e6f2f5; border-left: 4px solid var(--cyan-500); border-radius: 0 10px 10px 0; }
.toc h2 { margin: 0 0 8px; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; }
.toc a { color: var(--navy-800); font-size: .9rem; font-weight: 700; }
.article-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.82; }
.article-content h2 { margin: 48px 0 13px; color: var(--navy-950); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1.75rem; line-height: 1.18; }
.article-content h3 { margin: 30px 0 10px; color: var(--navy-800); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 1.22rem; }
.article-content p { margin: 0 0 22px; }
.article-content ul, .article-content ol { margin: 0 0 24px; padding-left: 24px; }
.article-content li + li { margin-top: 8px; }
.fact-box, .warning-box { margin: 28px 0; padding: 22px 24px; background: #edf7f8; border: 1px solid #cce5e9; border-radius: 10px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .94rem; }
.warning-box { background: #fff4ef; border-color: #ffd4c8; }
.fact-box strong, .warning-box strong { color: var(--navy-950); }
.article-table { width: 100%; margin: 24px 0; border-collapse: collapse; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .9rem; }
.article-table th, .article-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-table th { color: #fff; background: var(--navy-800); }
.article-footer { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources { color: var(--muted); font-size: .84rem; }
.post-tags { display: flex; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.post-tags a { padding: 5px 9px; color: var(--navy-800); background: var(--mist); border-radius: 999px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .75rem; font-weight: 700; }
.article-content > * { max-width: 100%; }
.article-content figure { margin-inline: 0; }
.article-content img { height: auto; border-radius: 8px; }
.article-content .alignwide { width: min(100%, 980px); max-width: 980px; margin-left: 50%; transform: translateX(-50%); }

.erasitexnis-ad {
  display: grid;
  width: 100%;
  min-height: 250px;
  margin: 28px 0;
  place-items: center;
  overflow: hidden;
  background: #e7edef;
  border: 1px solid #d2dde1;
}
.erasitexnis-ad .ad-label { display: block; padding: 5px; color: #6f7f87; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.erasitexnis-ad .adsbygoogle { width: 100%; }
.erasitexnis-ad.ad-top { width: min(calc(100% - 32px), 970px); min-height: 122px; margin: 22px auto; }
.erasitexnis-ad.ad-feed { min-height: 180px; }
.erasitexnis-ad.ad-sidebar { min-height: 600px; margin-top: 0; }

.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.pagination .page-numbers { display: grid; min-width: 42px; min-height: 42px; padding: 6px; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-weight: 750; }
.pagination .current { color: #fff; background: var(--navy-900); border-color: var(--navy-900); }

.search-form-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.search-form-row .button { border: 0; cursor: pointer; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus { position: fixed !important; z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px; clip: auto; color: #fff; background: var(--navy-950); }

.admin-bar .site-header { top: 32px; }

.content-page { width: min(calc(100% - 32px), 820px); margin-inline: auto; padding: 48px 0 72px; }
.content-page h1 { margin: 0 0 20px; color: var(--navy-950); font-size: clamp(2.1rem,4vw,3.5rem); line-height: 1.08; }
.content-page h2 { margin-top: 36px; color: var(--navy-900); }
.content-page p, .content-page li { color: #334c58; }

.search-dialog {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  padding: 80px 18px;
  align-items: flex-start;
  justify-content: center;
  background: rgba(3,30,45,.82);
}
.search-dialog.open { display: flex; }
.search-panel { width: min(100%,680px); padding: 24px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.search-head { display: flex; margin-bottom: 15px; align-items: center; justify-content: space-between; }
.search-head h2 { margin: 0; font-size: 1.25rem; }
.search-close { color: var(--navy-900); background: transparent; border: 0; cursor: pointer; font-size: 1.6rem; }
.search-input { width: 100%; padding: 14px 15px; color: var(--ink); background: #f8fbfc; border: 1px solid var(--line); border-radius: 8px; }
.search-input:focus { outline: 3px solid rgba(0,168,198,.2); border-color: var(--cyan-500); }
.search-results { display: grid; margin-top: 15px; gap: 8px; }
.search-result { display: block; padding: 12px 14px; background: var(--mist); border-radius: 8px; }
.search-result strong { display: block; color: var(--navy-950); }
.search-result span { color: var(--muted); font-size: .82rem; }

@media (max-width: 1040px) {
  .main-nav { display: none; position: absolute; top: 78px; right: 0; left: 0; padding: 12px 16px 20px; background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.12); }
  .main-nav.open { display: block; }
  .main-nav ul { display: grid; gap: 0; }
  .main-nav a { padding: 12px 4px; }
  .main-nav a::after { bottom: 6px; }
  .menu-button { display: inline-grid; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-side { grid-template-columns: repeat(3,1fr); }
  .feature-card { min-height: 180px; }
  .archive-layout, .article-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 26px; }
}

@media (max-width: 800px) {
  .utility-links { display: none; }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .brand { min-width: 0; }
  .brand-mark { width: 44px; height: 44px; }
  .lead-story, .lead-story > img { min-height: 470px; }
  .lead-story::after { background: linear-gradient(0deg, rgba(3,30,45,.92) 0%, rgba(3,30,45,.42) 72%, rgba(3,30,45,.12) 100%); }
  .lead-side, .guide-grid { grid-template-columns: 1fr; }
  .directory { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .ethics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .footer-brand { grid-column: 1/-1; }
  .archive-layout, .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .ad-sidebar { min-height: 250px; }
  .erasitexnis-ad.ad-sidebar { min-height: 250px; }
  .toc ol { columns: 1; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .brand-name { font-size: 1.03rem; }
  .brand-kicker { display: none; }
  .site-header, .header-inner { min-height: 68px; }
  .main-nav { top: 68px; }
  .ad-top { width: calc(100% - 22px); min-height: 100px; margin: 12px auto; }
  .section { padding: 38px 0; }
  .lead-story, .lead-story > img { min-height: 430px; }
  .lead-content { padding: 24px 20px; }
  .lead-content h1 { font-size: 2.2rem; }
  .lead-content p { font-size: .97rem; }
  .species-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .post-row { grid-template-columns: 86px 1fr; }
  .post-row-visual { min-height: 150px; }
  .article-title { font-size: 2.28rem; }
  .article-content { font-size: 1.03rem; }
  .article-table { display: block; overflow-x: auto; }
  .search-form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
