:root {
  --cf-paper: #f3efe6;
  --cf-paper-deep: #e7e0d2;
  --cf-card: #fffcf7;
  --cf-ink: #1c1914;
  --cf-muted: #5e584e;
  --cf-line: #ddd4c4;
  --cf-pine: #1d5c45;
  --cf-pine-deep: #143d2e;
  --cf-amber: #e7a322;
  --cf-shadow: 0 16px 40px rgba(28, 25, 20, 0.08);
  --cf-serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --cf-sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

body.cf-theme {
  background: var(--cf-paper);
  color: var(--cf-ink);
  font-family: var(--cf-sans);
  font-size: 16px;
  line-height: 1.5;
}

body.cf-theme #wrapper,
body.cf-theme #main {
  background: transparent;
}

body.cf-theme #header {
  height: auto !important;
  background: rgba(243, 239, 230, 0.92) !important;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--cf-line);
  box-shadow: none !important;
}

body.cf-theme #header .header_default {
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
  min-height: 0 !important;
}

.cf-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.cf-bar,
.cf-bar *,
.cf,
.cf * {
  box-sizing: border-box;
}

.cf-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  min-height: 72px;
  padding: 12px 0;
}

.cf-logo img {
  display: block;
  height: 32px;
  width: auto;
}

.cf-nav {
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.cf-nav a {
  color: var(--cf-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.cf-nav a:hover,
.cf-nav a:focus-visible {
  background: var(--cf-paper);
}

.cf-bar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.cf-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 999px;
  min-width: 0;
  width: min(420px, 100%);
  padding: 0 4px 0 14px;
}

.cf-search input {
  flex: 1;
  border: 0;
  background: transparent;
  min-width: 0;
  height: 40px;
  font: inherit;
  color: var(--cf-ink);
  box-shadow: none;
  outline: none;
}

.cf-search button {
  border: 0;
  background: var(--cf-ink);
  color: var(--cf-paper);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 600;
  cursor: pointer;
}

.cf-submit,
.cf-submit a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cf-ink) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  padding: 0 !important;
  min-width: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  position: static !important;
}

.cf-nav .cf-submit {
  display: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cf-submit i {
  margin-right: 6px;
}

.cf-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--cf-line);
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.cf-bar {
  position: relative;
}

.cf-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(420px, 100%);
  max-height: 70vh;
  overflow: auto;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--cf-shadow);
}

.cf-nav.is-open {
  display: flex;
}

.cf-toggle span,
.cf-toggle span:before,
.cf-toggle span:after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--cf-ink);
  position: relative;
  margin: 0 auto;
}

.cf-toggle span:before,
.cf-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}

.cf-toggle span:before { top: -5px; }
.cf-toggle span:after { top: 5px; }

.cf-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cf-pine);
}

.cf-hero {
  padding: 42px 0 12px;
}

.cf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 42px;
  align-items: end;
}

.cf-hero h1 {
  margin: 0 0 16px;
  font-family: var(--cf-serif);
  font-weight: 560;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.cf-hero__lead {
  max-width: 38rem;
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--cf-muted);
}

.cf-hero .cf-search {
  max-width: 520px;
  min-height: 56px;
  padding-left: 18px;
}

.cf-hero .cf-search input {
  height: 54px;
  font-size: 16px;
}

.cf-hero .cf-search button {
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.cf-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.cf-hero__facts li {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}

.cf-path {
  background: var(--cf-ink);
  color: #f6f1e7;
  border-radius: 24px;
  padding: 22px 22px 8px;
  box-shadow: var(--cf-shadow);
}

.cf-path p {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cf-amber);
  font-weight: 700;
}

.cf-path ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cf-path li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
}

.cf-path b {
  font-family: var(--cf-serif);
  font-size: 20px;
  font-weight: 560;
  color: var(--cf-amber);
}

.cf-path strong {
  display: block;
  font-family: var(--cf-serif);
  font-size: 20px;
  font-weight: 560;
}

.cf-path span {
  display: block;
  color: rgba(246, 241, 231, 0.72);
  font-size: 14px;
}

.cf-section {
  padding: 28px 0 8px;
}

.cf-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 16px;
}

.cf-section__head h2,
.cf-directory h1 {
  margin: 0;
  font-family: var(--cf-serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 3vw, 40px);
}

.cf-section__head a,
.cf-more {
  color: var(--cf-pine);
  font-weight: 600;
  text-decoration: none;
}

.cf-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cf-topic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cf-card);
  border: 1px solid var(--cf-line);
  color: var(--cf-ink);
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 160px;
}

.cf-topic:hover,
.cf-topic:focus-visible {
  border-color: var(--cf-ink);
  color: var(--cf-ink);
}

.cf-topic small {
  margin-left: auto;
  color: var(--cf-muted);
  font-weight: 600;
}

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

.cf-card {
  display: flex;
  flex-direction: column;
  background: var(--cf-card);
  border: 1px solid var(--cf-line);
  border-radius: 18px;
  overflow: hidden;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cf-shadow);
}

.cf-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #d9d0c1;
  overflow: hidden;
}

.cf-card__media img,
.cf-card__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-card__fallback {
  display: grid;
  place-items: center;
  font-family: var(--cf-serif);
  font-size: 40px;
  color: var(--cf-pine-deep);
  background:
    radial-gradient(circle at 20% 20%, #f6e7c4, transparent 40%),
    #e7efe9;
}

.cf-card__free {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--cf-amber);
  color: var(--cf-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 8px;
}

.cf-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1;
}

.cf-card__cat {
  margin: 0;
  color: var(--cf-pine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cf-card__cat a {
  color: inherit;
  text-decoration: none;
}

.cf-card h3 {
  margin: 0;
  font-family: var(--cf-serif);
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cf-card h3 a {
  color: inherit;
  text-decoration: none;
}

.cf-card__meta {
  margin: 0;
  color: var(--cf-muted);
  font-size: 14px;
}

.cf-card__start {
  margin-top: auto;
  color: var(--cf-ink);
  font-weight: 600;
  text-decoration: none;
  padding-top: 6px;
}

.cf-card__start:hover {
  color: var(--cf-pine);
}

.cf-ad {
  padding: 8px 0 4px;
}

.cf-ad .inner-add,
.cf-directory__ad {
  margin: 0;
}

.cf-band {
  margin-top: 28px;
  padding: 28px 0 36px;
  background: var(--cf-pine-deep);
  color: #f6f1e7;
}

.cf-band .cf-section__head h2 {
  color: #f6f1e7;
}

.cf-band .cf-more {
  color: var(--cf-amber);
}

.cf-band .cf-card {
  background: #fffcf7;
  color: var(--cf-ink);
}

.cf-directory {
  padding: 28px 0 48px;
}

.cf-directory__lead {
  max-width: 40rem;
  margin: 10px 0 18px;
  color: var(--cf-muted);
  font-size: 18px;
}

.cf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.cf-empty {
  background: #fff;
  border: 1px dashed var(--cf-line);
  border-radius: 16px;
  padding: 28px;
}

.cf-pages {
  margin-top: 22px;
}

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

.cf-pages a,
.cf-pages span {
  display: inline-flex;
  min-width: 40px;
  justify-content: center;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--cf-line);
  background: #fff;
  color: var(--cf-ink);
  text-decoration: none;
  font-weight: 600;
}

.cf-pages .is-active span,
.cf-pages span.current {
  background: var(--cf-ink);
  color: var(--cf-paper);
  border-color: var(--cf-ink);
}

body.cf-theme #footer {
  background: var(--cf-ink);
  color: #f6f1e7;
  margin-top: 48px;
  padding: 0;
  text-align: left;
}

body.cf-theme #footer a {
  color: #f6f1e7;
  text-decoration: none;
}

body.cf-theme #footer a:hover {
  color: var(--cf-amber);
}

.cf-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0 28px;
}

.cf-footer h2,
.cf-footer h3 {
  margin: 0 0 10px;
  font-family: var(--cf-serif);
  font-weight: 560;
  font-size: 28px;
}

.cf-footer p,
.cf-footer li {
  color: rgba(246, 241, 231, 0.76);
}

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

.cf-footer li + li {
  margin-top: 8px;
}

.cf-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid rgba(246, 241, 231, 0.12);
  padding: 16px 0 22px;
  font-size: 14px;
}

body.cf-theme .container .text_block,
body.cf-theme .entry-content {
  font-size: 17px;
}

body.cf-theme .container a {
  color: var(--cf-pine);
}

@media (max-width: 980px) {
  .cf-grid,
  .cf-layout,
  .cf-footer,
  .cf-hero__grid {
    grid-template-columns: 1fr;
  }

  .cf-layout {
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .cf-bar {
    flex-wrap: wrap;
  }

  .cf-bar__tools {
    flex: 1 0 100%;
    margin-left: 0;
  }

  .cf-search {
    flex: 1;
    width: auto;
  }

  .cf-bar__tools .cf-submit {
    display: none;
  }

  .cf-nav .cf-submit {
    display: inline-flex;
    padding: 8px 12px !important;
  }
}

@media (max-width: 640px) {
  .cf-wrap {
    width: min(1180px, calc(100% - 28px));
  }

  .cf-hero {
    padding-top: 24px;
  }

  .cf-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
