body {
  background-image: linear-gradient(to bottom, #ececec 0%, #efefef 100%);
}

:root {
  --accent-color: #2f9e44;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.admin-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #5f6b64;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-active {
  color: #ffffff;
}

.admin-nav-link:hover,
.admin-nav-active {
  color: #2f9e44;
}

.nav-active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: var(--accent-color);
}

.admin-nav-active::after,
.admin-nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: var(--accent-color);
}

.nav-dropdown {
  position: relative;
}

.nav-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.public-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-width: 108px;
  height: 46px;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.35rem;
}

.public-menu-toggle-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.public-menu-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 18px;
}

.public-menu-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1;
}

.nav-dropdown > .nav-link::before {
  content: "▼";
  margin-right: 0.45rem;
  font-size: 0.45rem;
  color: rgba(255, 255, 255, 0.7);
}

.nav-dropdown > .admin-nav-link::before {
  content: "▼";
  margin-right: 0.45rem;
  font-size: 0.5rem;
  color: rgba(95, 107, 100, 0.8);
}

.submenu {
  position: absolute;
  left: 0;
  top: calc(100% + 13px);
  z-index: 20;
  min-width: 270px;
  border-top: 2px solid var(--accent-color);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.submenu li + li {
  border-top: 1px solid #efefef;
}

.submenu a {
  display: block;
  padding: 0.9rem 1rem;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #333333;
}

.submenu a:hover {
  background: #f8f8f8;
  color: var(--accent-color);
}

.submenu-wide {
  min-width: 340px;
}

.nav-home-link {
  gap: 0;
}

.nav-home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: 0.85rem;
  background: var(--accent-color);
  color: #ffffff;
}

.nav-home-badge svg {
  width: 18px;
  height: 18px;
}

.nav-dropdown:hover .submenu,
.nav-dropdown:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .public-nav-list {
    margin: 0 -0.5rem;
    padding: 0 0 1rem;
  }

  .public-nav-list > li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link,
  .nav-item-row {
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 0.9rem 0.5rem;
  }

  .nav-active::after,
  .nav-link:hover::after {
    display: none;
  }

  .nav-dropdown > .nav-link::before {
    display: none;
  }

  .nav-home-badge {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
  }

  .submenu {
    position: static;
    min-width: 100%;
    margin: 0 0 0.65rem;
    border-top: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .submenu a {
    color: rgba(255, 255, 255, 0.88);
    padding: 0.85rem 1rem;
  }

  .submenu li + li {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .nav-dropdown.submenu-open .submenu {
    display: block;
  }
}

@media (min-width: 768px) {
  .public-nav-list {
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    font-weight: 500;
  }

  .public-nav-list > li {
    display: flex;
    align-items: stretch;
  }

  .nav-item-row {
    gap: 0;
  }

  .nav-link,
  .nav-item-row > .nav-link {
    min-height: 53px;
    padding: 0 14px;
    font-size: 0.98rem;
    font-weight: 500;
    color: #ffffff;
  }

  .nav-home-link {
    padding-left: 0;
  }

  .nav-active::after,
  .nav-link:hover::after {
    bottom: 0;
    height: 3px;
  }

  .nav-dropdown > .nav-link::before {
    order: 2;
    margin-right: 0;
    margin-left: 0.45rem;
  }
}

.hero-card {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.hero-carousel {
  background: #dcdcdc;
}

.hero-slides {
  position: relative;
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-slide {
  position: relative;
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
}

.hero-media {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  background: #dcdcdc;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.12), transparent);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 1.75rem;
  left: 0;
  margin: 0 auto;
  width: min(85%, 900px);
  text-align: center;
  color: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  display: flex;
  height: 42px;
  width: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%);
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  height: 10px;
  width: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.is-active {
  background: #ffffff;
  transform: scale(1.15);
}

.story-card {
  border: 1px solid #ececec;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.story-title {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: none;
  color: #292929;
}

.story-meta {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.story-copy {
  margin-top: 0.85rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: #707070;
}

.sidebar-block {
  border: 1px solid #ececec;
  background: #ffffff;
  padding: 1.2rem;
}

.sidebar-title,
.footer-title {
  margin-bottom: 1rem;
  border-top: 2px solid var(--accent-color);
  padding-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2b2b2b;
}

.tag-chip {
  border: 1px solid #e4e4e4;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  color: #8a8a8a;
}

.comment-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #767676;
}

.comment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comment-item img {
  height: 48px;
  width: 48px;
  flex-shrink: 0;
  object-fit: cover;
}

.page-chip {
  display: inline-flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #8a8a8a;
}

.page-chip-active {
  background: #222222;
  color: #ffffff;
}

.site-footer {
  background:
    radial-gradient(circle at top left, rgba(47, 158, 68, 0.22), transparent 32%),
    linear-gradient(135deg, #111314 0%, #161a17 55%, #0d0f10 100%);
}

.site-footer-top {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 1142px;
  margin: 0 auto;
}

.footer-brand-panel,
.footer-links-panel,
.footer-contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.6rem;
}

.footer-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.footer-brand-title {
  margin-top: 0.45rem;
  max-width: 34rem;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.footer-brand-copy {
  margin-top: 1.4rem;
  max-width: 42rem;
  font-size: 0.96rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.74);
}

.footer-stats {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.footer-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

.footer-stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.footer-link-columns {
  display: grid;
  gap: 1rem;
}

.footer-link-list {
  display: grid;
  gap: 0.85rem;
}

.footer-link-list a,
.site-footer-bottom-links a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.footer-link-list a:hover,
.site-footer-bottom-links a:hover,
.footer-callout-link:hover {
  color: #ffffff;
}

.footer-contact-list {
  display: grid;
  gap: 1rem;
}

.footer-contact-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact-list p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.footer-callout {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px solid rgba(47, 158, 68, 0.3);
  background: linear-gradient(180deg, rgba(47, 158, 68, 0.16), rgba(47, 158, 68, 0.05));
}

.footer-callout-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-callout-copy {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
}

.footer-callout-link {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9f7df;
}

.site-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 1142px;
  margin-top: 2rem;
  margin-right: auto;
  margin-left: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

@media (min-width: 768px) {
  .site-footer-top {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr) minmax(260px, 0.9fr);
    align-items: start;
  }

  .footer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-link-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.detail-carousel {
  position: relative;
}

.detail-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.detail-carousel-slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  margin: 0;
}

.detail-carousel-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  background: #f7f7f7;
}

.detail-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  height: 42px;
  width: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(31, 53, 39, 0.7);
  color: #ffffff;
  transform: translateY(-50%);
}

.detail-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.detail-carousel-dot {
  height: 10px;
  width: 10px;
  border-radius: 999px;
  background: rgba(31, 53, 39, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.detail-carousel-dot.is-active {
  background: var(--accent-color);
  transform: scale(1.15);
}

@media (max-width: 767px) {
  .nav-active::after,
  .nav-link:hover::after,
  .admin-nav-active::after,
  .admin-nav-link:hover::after {
    bottom: -6px;
  }

  .hero-media {
    min-height: 220px;
  }

  .hero-caption {
    bottom: 3rem;
    width: calc(100% - 2rem);
  }

  .hero-arrow {
    height: 36px;
    width: 36px;
  }

  .detail-carousel-arrow {
    height: 36px;
    width: 36px;
  }

  .story-title {
    font-size: 1.2rem;
  }

  .submenu,
  .submenu-wide {
    position: static;
    min-width: 100%;
    margin-top: 0.75rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
}
