:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #edf4fa;
  --ink: #112031;
  --muted: #49627a;
  --line: #d4e0eb;
  --primary: #065f8f;
  --primary-dark: #03466b;
  --accent: #f59e0b;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(17, 32, 49, 0.12);
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #ddeef8, transparent 35%), var(--bg);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

.article-species-photo {
  margin: 18px 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: 0 10px 24px rgba(17, 32, 49, 0.08);
}

.article-species-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-species-photo figcaption {
  padding: 12px 16px;
  font-size: 0.92rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  padding-left: 1.15rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 2000;
  border-radius: 8px;
}

.top-bar {
  background: linear-gradient(135deg, #04314c, #065f8f);
  color: #e8f6ff;
  font-size: 0.9rem;
  padding: 10px 18px;
}

.top-bar a {
  color: #e8f6ff;
}

.top-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 246, 255, 0.16);
  color: #e8f6ff;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-pill:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.top-pill-strong {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.36);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(6px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 140px;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.2), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(6, 95, 143, 0.2), transparent 30%);
  pointer-events: none;
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 14px 34px rgba(3, 70, 107, 0.08);
  position: relative;
}

.brand {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand::before,
header .logo a::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffd37a);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
  flex: 0 0 auto;
}

.menu-toggle {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f3f8fc);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  padding: 10px 14px;
  display: none;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav li {
  position: relative;
}

.site-nav li ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 1400;
}

.site-nav li:hover > ul,
.site-nav li.submenu-open > ul {
  display: block;
}

.site-nav a {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 9px 12px;
  border-radius: 10px;
}

.site-nav a:hover,
.site-nav a.active {
  text-decoration: none;
  color: var(--primary-dark);
  background: var(--surface-soft);
}

main {
  max-width: var(--max);
  margin: 26px auto 56px;
  padding: 0 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 36px;
}

.hero-copy {
  background: linear-gradient(140deg, #ffffff 30%, #f2f8fd 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  margin-bottom: 12px;
}

.hero-copy p {
  color: var(--muted);
  margin-bottom: 0;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.slideshow {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.75s ease both;
}

.slides {
  position: relative;
  min-height: 320px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.is-active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  background: rgba(0, 25, 40, 0.64);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}

.slide-overlay h2 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.slide-overlay p {
  margin: 0;
  color: #d8ebf6;
  font-size: 0.92rem;
}

.slide-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #f8fcff;
}

.slide-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
}

.slide-btn:hover {
  background: var(--surface-soft);
}

.dots {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.dot {
  border: 0;
  background: #c1d6e7;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

.dot[aria-selected="true"] {
  width: 28px;
  border-radius: 999px;
  background: var(--primary);
}

.section {
  margin-bottom: 32px;
}

.section-title {
  margin-bottom: 14px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-hub {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 248, 252, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.article-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-link-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(3, 70, 107, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(3, 70, 107, 0.1);
}

.article-link-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.article-link-card p:last-child {
  margin-bottom: 0;
}

.article-link-card a {
  color: var(--ink);
}

.article-link-card a:hover {
  color: var(--primary-dark);
}

.article-hub-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.card p {
  color: var(--muted);
  margin: 0 0 12px;
}

.card a {
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.check-list {
  margin: 12px 0 0;
}

.check-list li {
  margin-bottom: 7px;
}

.contact-box {
  background: linear-gradient(135deg, #ffffff, #f3f9ff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.contact-box p {
  color: var(--muted);
}

.social-feed-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(237, 244, 252, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.social-feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.feed-copy {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(3, 70, 107, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.facebook-feed-frame {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(3, 70, 107, 0.06);
  height: 100%;
  display: flex;
  align-items: stretch;
}

.facebook-feed-frame iframe {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  flex: 1 1 auto;
}

.site-footer {
  background: #061e2e;
  color: #dceaf6;
  padding: 36px 16px 18px;
}

footer:not(.site-footer) {
  background: #061e2e;
  color: #dceaf6;
  padding: 32px 16px 20px;
}

.site-footer .footer-content,
footer:not(.site-footer) .footer-content {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 22px;
}

.site-footer .footer-content h3,
footer:not(.site-footer) .footer-content h3 {
  margin-bottom: 10px;
  color: #fff;
}

.site-footer .footer-content p,
footer:not(.site-footer) .footer-content p {
  margin: 0 0 10px;
  color: #dceaf6;
}

.site-footer .footer-content ul,
footer:not(.site-footer) .footer-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-content li,
footer:not(.site-footer) .footer-content li {
  margin-bottom: 8px;
}

.site-footer .footer-content a,
footer:not(.site-footer) a {
  color: #dceaf6;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  text-transform: lowercase;
}

.social-facebook span {
  background: #1877f2;
}

.social-whatsapp span {
  background: #25d366;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.site-footer h3 {
  margin-bottom: 10px;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: #dceaf6;
}

.copyright {
  max-width: var(--max);
  margin: 24px auto 0;
  border-top: 1px solid rgba(220, 234, 246, 0.18);
  padding-top: 14px;
  font-size: 0.9rem;
}

.footer-note {
  color: #9eb5c8;
  font-size: 0.92rem;
}

/* Generic styles for existing inner pages */
.container {
  max-width: var(--max);
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

main section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

aside {
  display: grid;
  gap: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid var(--line);
  padding: 8px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .cards,
  .article-link-grid,
  .social-feed-grid,
  .footer-grid,
  .page-hero,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .slides {
    min-height: 280px;
  }

  .product-slideshow .slides {
    min-height: 340px;
  }

  .product-slideshow .slide img {
    height: 340px;
  }

  .gallery-split-slide {
    height: 340px;
  }

  .gallery-split-slide img {
    height: 340px;
  }

  .contact-page-hero .slides,
  .contact-page-hero .slide img {
    min-height: 320px;
    height: 320px;
  }
}

@media (max-width: 840px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav li ul {
    position: static;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }

  .site-nav li:hover > ul {
    display: none;
  }

  .site-nav li.submenu-open > ul {
    display: block;
  }

  .top-bar-inner {
    justify-content: stretch;
  }

  .top-pill {
    width: 100%;
    justify-content: center;
  }

  .page-hero-copy {
    padding: 22px;
  }
}

/* Compatibility styles for existing inner pages */
header .nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 14px 34px rgba(3, 70, 107, 0.08);
  position: relative;
}

header nav {
  margin-left: auto;
}

header .logo a {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 6px;
}

header nav a {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 10px;
  border-radius: 10px;
}

header nav a:hover {
  text-decoration: none;
  background: var(--surface-soft);
}

.breadcrumb {
  max-width: var(--max);
  margin: 10px auto 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  padding: 0;
  gap: 8px;
}

.related-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-links a {
  display: inline-block;
  padding: 7px 10px;
  background: var(--surface-soft);
  border-radius: 8px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  margin-bottom: 26px;
}

.page-hero-copy {
  background: linear-gradient(145deg, #ffffff 15%, #eef7fd 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.page-hero-copy p {
  color: var(--muted);
}

.page-hero-vegetables .page-hero-copy {
  background:
    radial-gradient(circle at top right, rgba(94, 175, 80, 0.12), transparent 32%),
    linear-gradient(145deg, #ffffff 15%, #eef7fd 100%);
}

.product-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.product-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f2f8e8;
  border: 1px solid #d5e7bf;
  color: #325829;
  font-weight: 700;
  font-size: 0.92rem;
}

.product-slideshow .slides {
  min-height: 410px;
}

.product-slideshow .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 30, 44, 0.08), rgba(3, 30, 44, 0.32));
}

.product-slideshow .slide img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.product-slideshow .slide-overlay {
  z-index: 1;
}

.gallery-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gallery-split img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.gallery-split-slide {
  height: 410px;
}

.gallery-split-slide img {
  height: 410px;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(17, 32, 49, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(17, 32, 49, 0.14);
}

.gallery-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.gallery-card-body {
  padding: 16px;
}

.gallery-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.gallery-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.vegetable-summary {
  background: linear-gradient(135deg, #fbfffd, #eef8ef);
  border: 1px solid #d9e8d5;
  border-radius: 16px;
  padding: 20px;
}

.vegetable-summary p {
  color: var(--muted);
}

.contact-response-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8ea, #fffdf7);
  border: 1px solid #f2d7a6;
  color: var(--ink);
}

.contact-response-note p {
  margin: 8px 0 0;
}

.contact-page-hero .slides {
  min-height: 360px;
}

.contact-page-hero .slide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.sidebar-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(17, 32, 49, 0.08);
}

.sidebar-section h4 {
  margin: 0 0 10px;
}

body.legacy-page {
  background:
    radial-gradient(circle at top right, rgba(221, 238, 248, 0.95), transparent 32%),
    linear-gradient(180deg, #f7fbfe 0%, #f1f7fb 100%);
}

body.legacy-page .skip-link:focus {
  position: fixed;
}

body.legacy-page .site-header,
body.legacy-page header {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(8px);
}

body.legacy-page header .nav-container {
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
}

body.legacy-page header nav a.active,
body.legacy-page header nav li.is-active > a {
  text-decoration: none;
  color: var(--primary-dark);
  background: var(--surface-soft);
}

body.legacy-page .breadcrumb {
  margin-top: 16px;
}

body.legacy-page .breadcrumb ol {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.legacy-page .breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.legacy-page .breadcrumb li:not(:last-child)::after {
  content: "/";
  color: #86a0b8;
}

body.legacy-page .breadcrumb a,
body.legacy-page .breadcrumb span[aria-current="page"],
body.legacy-page .breadcrumb span[itemprop="name"] {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

body.legacy-page .container {
  margin-top: 18px;
}

body.legacy-page main {
  display: grid;
  gap: 18px;
}

body.legacy-page main > section,
body.legacy-page main > article,
body.legacy-page main > form,
body.legacy-page .content-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 254, 0.94));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

body.legacy-page main > section:first-child,
body.legacy-page main > article:first-child {
  position: relative;
  overflow: hidden;
}

body.legacy-page main > section:first-child::before,
body.legacy-page main > article:first-child::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(6, 95, 143, 0.13), transparent 70%);
  pointer-events: none;
}

body.legacy-page main h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  margin-bottom: 14px;
}

body.legacy-page main p,
body.legacy-page main li,
body.legacy-page aside p,
body.legacy-page aside li {
  color: var(--muted);
}

body.legacy-page .responsive-img {
  width: 100%;
  border-radius: 16px;
  margin: 18px 0;
  border: 1px solid var(--line);
  background: #eff6fb;
  max-height: 430px;
  object-fit: cover;
}

body.legacy-page .related-links h2,
body.legacy-page .related-links h3 {
  margin-bottom: 12px;
}

body.legacy-page .related-links ul {
  gap: 10px;
}

body.legacy-page .related-links a {
  border: 1px solid #d7e4ef;
  padding: 9px 12px;
}

body.legacy-page form {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

body.legacy-page label {
  font-weight: 700;
}

body.legacy-page input,
body.legacy-page textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

body.legacy-page input[type="submit"] {
  width: auto;
  justify-self: start;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(6, 95, 143, 0.22);
}

body.legacy-page input[type="submit"]:hover {
  background: var(--primary-dark);
}

.interactive-calendar {
  display: grid;
  gap: 14px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-head strong {
  font-size: 1rem;
}

.calendar-nav {
  display: inline-flex;
  gap: 8px;
}

.calendar-nav button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.calendar-nav button:hover {
  background: var(--surface-soft);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-label,
.calendar-day {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.calendar-label {
  color: #6c869f;
  font-weight: 700;
}

.calendar-day {
  background: #f7fbfe;
  border: 1px solid #dde8f1;
  color: var(--ink);
}

.calendar-day.is-empty {
  background: transparent;
  border-style: dashed;
  color: #a0b6c9;
}

.calendar-day.is-today {
  background: linear-gradient(135deg, var(--primary), #0b80be);
  border-color: transparent;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(6, 95, 143, 0.22);
}

.calendar-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.blog-page .container {
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.8fr);
}

.blog-featured {
  display: grid;
  gap: 16px;
}

.blog-lead {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.blog-lead-card,
.blog-lead-aside,
.entry-card {
  background: linear-gradient(160deg, #ffffff, #f4f9fd);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.blog-lead-card p,
.blog-lead-aside p,
.entry-card p {
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef5fb;
  border: 1px solid #d8e5ef;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.88rem;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.entry-card h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.entry-card a.read-more {
  font-weight: 800;
}

.entry-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #6a8298;
  font-size: 0.9rem;
}

.entry-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef5fb;
  border: 1px solid #d8e5ef;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.side-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fbfe;
  border: 1px solid #dce7f0;
}

@media (max-width: 840px) {
  header .nav-container {
    position: relative;
  }

  header nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
  }

  header nav.open {
    display: block;
  }

  header nav ul {
    flex-direction: column;
  }

  header nav li ul {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    background: #f7fbfe;
    padding: 8px 0 0 10px;
    min-width: 0;
  }

  header nav li:hover > ul {
    display: none;
  }

  header nav li.submenu-open > ul {
    display: block;
  }

  .container,
  .blog-page .container,
  .blog-lead,
  .entry-grid,
  .site-footer .footer-content,
  footer:not(.site-footer) .footer-content {
    grid-template-columns: 1fr;
  }

  body.legacy-page main > section,
  body.legacy-page main > article,
  body.legacy-page .content-card,
  .sidebar-section {
    padding: 20px;
  }
}
