
:root {
  --bg: #f7f3ee;
  --bg-soft: #fbf8f4;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #5d564f;
  --muted: #857a71;
  --accent: #b55b34;
  --accent-deep: #8d4324;
  --border: rgba(122, 103, 90, 0.18);
  --shadow: 0 12px 30px rgba(72, 51, 38, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background: #fbf8f4;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .site-shell {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid rgba(140, 113, 93, 0.12);
}

.site-header__inner,
.page-content,
.site-footer__inner {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 12px;
  padding: 8px 0 0;
}

.mobile-menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  box-shadow: 0 10px 25px rgba(72, 51, 38, 0.08);
}

.site-nav {
  padding: 10px 0 14px;
}

.nav-list,
.nav-dropdown,
.nav-sublist,
.mobile-nav__list,
.mobile-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 10px;
  border-radius: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.99rem;
  color: #726a63;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-link.is-active {
  color: #3f3833;
  border-bottom-color: rgba(181, 91, 52, 0.45);
}

.nav-caret {
  font-size: 0.8rem;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 290px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(72, 51, 38, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.nav-dropdown li + li,
.nav-sublist li + li {
  margin-top: 8px;
}

.nav-dropdown a,
.nav-subtitle {
  display: block;
  font-family: "Trebuchet MS", Arial, sans-serif;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-dropdown a:hover {
  background: rgba(181, 91, 52, 0.08);
}

.nav-subtitle {
  color: var(--accent-deep);
  font-weight: 700;
}

.nav-sublist {
  margin-top: 6px;
  margin-left: 12px;
  border-left: 1px solid rgba(181, 91, 52, 0.16);
  padding-left: 10px;
}

.mobile-nav {
  display: none;
  padding-bottom: 18px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav__panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.mobile-nav__list > li + li {
  margin-top: 8px;
}

.mobile-nav__list a,
.mobile-nav__summary {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--accent-deep);
}

.mobile-nav__summary {
  cursor: pointer;
  list-style: none;
}

.mobile-nav__summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__sublist {
  margin: 6px 0 0 12px;
  padding-left: 10px;
  border-left: 1px solid rgba(181, 91, 52, 0.16);
}

.hero-slider {
  width: min(calc(100% - 120px), 1040px);
  margin: 14px auto 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: clamp(420px, 46vw, 570px);
  box-shadow: 0 10px 24px rgba(72, 51, 38, 0.08);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: clamp(16px, 2.6vw, 28px);
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 29, 21, 0.12) 0%, rgba(42, 29, 21, 0.38) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0%, transparent 55%);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide__card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 18px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(32, 21, 16, 0.14);
}

.hero-eyebrow,
.page-kicker,
.protected-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  color: var(--accent-deep);
}

.hero-slide h2,
.page-heading {
  margin: 12px 0 10px;
  color: var(--accent);
  line-height: 1.12;
}

.hero-slide h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.hero-slide p,
.page-summary,
.prose {
  font-size: 1.03rem;
  line-height: 1.8;
}

.hero-slide p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
}

.hero-slide__link {
  display: inline-flex;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.9rem;
}

.hero-controls {
  position: absolute;
  inset: auto 18px 18px auto;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-button,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(32, 21, 16, 0.14);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
}

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

.subpage-banner {
  width: min(calc(100% - 32px), var(--container));
  margin: 20px auto 0;
}

.subpage-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.page-hero {
  width: min(calc(100% - 32px), var(--container));
  margin: 14px auto 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(140, 113, 93, 0.12);
  box-shadow: none;
}

.page-hero__inner {
  padding: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 18px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
}

.breadcrumbs__label {
  font-weight: 700;
  color: #6f6861;
}

.breadcrumbs__sep {
  color: #b8aca1;
}

.page-heading {
  padding: 4px 18px 14px;
  margin: 0;
  font-size: 1.55rem;
  color: #4f4842;
}

.page-content {
  width: min(calc(100% - 32px), var(--container));
  margin: 18px auto 56px;
}

.content-grid {
  display: grid;
  gap: 26px;
}

.content-card {
  background: var(--surface);
  border: 1px solid rgba(140, 113, 93, 0.14);
  border-radius: 6px;
  padding: 18px;
  box-shadow: none;
}

.page-summary {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.protected-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(181, 91, 52, 0.08);
  border: 1px solid rgba(181, 91, 52, 0.18);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.6;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--accent);
  line-height: 1.25;
}

.prose p,
.prose li,
.prose td,
.prose th,
.prose blockquote {
  line-height: 1.8;
}

.prose table {
  width: 100% !important;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.prose td,
.prose th {
  min-width: 120px;
  padding: 12px;
}

.prose iframe {
  width: 100%;
  min-height: 82vh;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.prose .static-page-divider {
  border: 0;
  border-top: 1px solid rgba(122, 103, 90, 0.18);
  margin: 34px 0;
}

.pdf-embed {
  display: grid;
  gap: 14px;
}

.pdf-embed__action {
  display: inline-flex;
  align-self: start;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(181, 91, 52, 0.08);
  color: var(--accent-deep);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.teaser-card {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid rgba(140, 113, 93, 0.12);
  box-shadow: none;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.teaser-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(72, 51, 38, 0.08);
}

.teaser-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.teaser-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.teaser-card:hover .teaser-card__media img {
  transform: scale(1.04);
}

.teaser-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(28, 19, 13, 0.62) 100%);
}

.teaser-card__title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
}

.teaser-card__body {
  padding: 16px 18px 20px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(140, 113, 93, 0.16);
  background: #fbf8f4;
}

.site-footer__inner {
  padding: 28px 0 42px;
}

.site-footer__box {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(140, 113, 93, 0.12);
}

.site-footer p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.password-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 24px;
  background: rgba(247, 243, 238, 0.96);
  align-items: center;
  justify-content: center;
}

body.is-locked .password-gate {
  display: flex;
}

.password-gate__panel {
  width: min(100%, 520px);
  background: #fff;
  border: 1px solid rgba(140, 113, 93, 0.14);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 18px 36px rgba(72, 51, 38, 0.12);
}

.password-gate__eyebrow {
  margin: 0 0 8px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: var(--accent-deep);
}

.password-gate__title {
  margin: 0 0 12px;
  color: #4f4842;
  font-size: 1.7rem;
  line-height: 1.2;
}

.password-gate__text {
  margin: 0 0 18px;
  line-height: 1.7;
  color: var(--muted);
}

.password-gate__form {
  display: grid;
  gap: 12px;
}

.password-gate__input {
  width: 100%;
  border: 1px solid rgba(140, 113, 93, 0.22);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.password-gate__input:focus {
  outline: 2px solid rgba(181, 91, 52, 0.18);
  border-color: rgba(181, 91, 52, 0.4);
}

.password-gate__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.96rem;
  cursor: pointer;
}

.password-gate__error {
  min-height: 1.4em;
  margin: 0;
  color: #a33f28;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .mobile-menu-toggle:checked ~ .mobile-nav,
  .mobile-nav.is-open {
    display: block;
  }

  .hero-slider {
    width: min(calc(100% - 48px), 1040px);
    min-height: 460px;
  }

  .hero-controls {
    inset: auto 16px 16px 16px;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .hero-slider,
  .subpage-banner,
  .page-hero,
  .content-card,
  .site-footer__box {
    border-radius: 8px;
  }

  .hero-slide {
    align-items: end;
    min-height: 460px;
  }

  .hero-slide__card {
    width: 100%;
    padding: 16px 16px 112px;
  }

  .hero-controls {
    inset: auto 14px 14px 14px;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    grid-template-areas:
      ". dots ."
      "prev . next";
    align-items: end;
    gap: 10px 12px;
    pointer-events: none;
  }

  .hero-dots {
    grid-area: dots;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    pointer-events: auto;
  }

  .hero-button {
    width: 52px;
    height: 52px;
    pointer-events: auto;
  }

  .hero-button[data-slide-prev] {
    grid-area: prev;
    justify-self: start;
  }

  .hero-button[data-slide-next] {
    grid-area: next;
    justify-self: end;
  }

  .page-content {
    margin-bottom: 40px;
  }
}
