:root {
  --kf-ink: #17201d;
  --kf-muted: #5f6c66;
  --kf-paper: #fffdf8;
  --kf-line: #d8ded7;
  --kf-sage: #e9f1e8;
  --kf-green: #245b45;
  --kf-gold: #c88b32;
  --kf-brick: #9b3f2d;
  --kf-blue: #2d6387;
  --bs-success: var(--kf-green);
  --bs-success-rgb: 36, 91, 69;
  color-scheme: light;
}

body {
  background: var(--kf-paper);
  color: var(--kf-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
}

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

a:hover {
  color: var(--kf-green);
  text-decoration: none;
}

a[href^="mailto:"] {
  color: var(--kf-blue);
  text-decoration: none;
}

a[href^="mailto:"]:hover,
a[href^="mailto:"]:focus {
  color: var(--kf-green);
}

.bg-paper {
  background: rgba(255, 253, 248, 0.96);
}

.advert-banner {
  background: transparent;
  border: 0;
  padding: 0.55rem 0;
}

.advert-banner-inner {
  align-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--kf-muted);
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  min-height: 72px;
  overflow: hidden;
  padding: 0.75rem 1rem;
  text-align: center;
}

.advert-banner-inner img,
.advert-banner-inner iframe,
.advert-banner-inner object,
.advert-banner-inner embed,
.advert-banner-inner ins {
  display: block;
  max-width: 100%;
}

.advert-banner-inner img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  object-position: center;
}

.advert-banner-inner iframe,
.advert-banner-inner object,
.advert-banner-inner embed,
.advert-banner-inner ins {
  width: 100%;
}

.advert-banner-inner iframe {
  border: 0;
  min-height: 90px;
}

.advert-banner.is-placeholder .advert-banner-inner {
  background: linear-gradient(135deg, rgba(36, 91, 69, 0.12), rgba(200, 139, 50, 0.2));
  box-shadow: 0 10px 28px rgba(23, 32, 29, 0.08);
  color: var(--kf-ink);
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.advert-banner.is-placeholder .advert-banner-inner:hover,
.advert-banner.is-placeholder .advert-banner-inner:focus {
  background: linear-gradient(135deg, rgba(36, 91, 69, 0.18), rgba(45, 99, 135, 0.18), rgba(200, 139, 50, 0.24));
  box-shadow: 0 14px 34px rgba(23, 32, 29, 0.12);
  color: var(--kf-ink);
  transform: translateY(-1px);
}

.advert-banner-inner strong {
  color: var(--kf-green);
}

.advert-banner-inner p {
  margin: 0;
}

.advert-banner-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.advert-banner-sidebar {
  margin-bottom: 1rem;
  padding: 0;
}

.advert-banner-sidebar .advert-banner-inner {
  min-height: 240px;
}

.advert-banner-sidebar .advert-banner-inner img {
  max-height: 360px;
  object-fit: contain;
}

.advert-banner-sidebar .advert-banner-inner iframe {
  min-height: 240px;
}

@media (max-width: 767.98px) {
  .advert-banner {
    padding: 0.4rem 0;
  }

  .advert-banner-inner {
    align-items: center;
    flex-direction: column;
    min-height: 58px;
    padding: 0.7rem;
  }

  .advert-banner-grid {
    gap: 0.65rem;
    grid-template-columns: 1fr;
  }

  .advert-banner-sidebar .advert-banner-inner {
    min-height: 150px;
  }
}

.py-lg-6 {
  padding-bottom: 5rem;
  padding-top: 5rem;
}

.brand {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(150px, 20vw, 250px);
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--kf-green);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  width: 46px;
}

.brand strong,
.footer-brand {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1;
}

.brand small {
  color: var(--kf-gold);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.navbar {
  min-height: 78px;
}

.nav-link {
  color: var(--kf-muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem !important;
  border-radius: 6px;
  background: var(--kf-green);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(36, 91, 69, 0.2);
}

.nav-join-button:hover,
.nav-join-button:focus {
  background: #173d2e;
  color: #fff !important;
}

.blog-icon-shell {
  position: fixed;
  left: 0;
  top: 118px;
  z-index: 1020;
}

.blog-icon-toggle {
  display: block;
  margin: 0 0 0.35rem 0.35rem;
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--kf-line);
  border-radius: 6px;
  background: #fff;
  color: var(--kf-green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(23, 32, 29, 0.08);
}

.blog-icon-rail {
  display: grid;
  gap: 0.45rem;
  max-height: calc(100vh - 138px);
  overflow-y: auto;
  padding: 0.55rem 0.35rem;
  background: #fff;
  border: 1px solid var(--kf-line);
  border-left: 0;
  box-shadow: 0 12px 30px rgba(23, 32, 29, 0.08);
}

.blog-icon-shell.is-collapsed .blog-icon-rail {
  display: none;
}

.blog-icon-shell.is-collapsed .blog-icon-toggle {
  opacity: 0.75;
}

.blog-icon-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  width: 148px;
  min-height: 42px;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: var(--kf-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.blog-icon-link::before {
  content: "";
  display: block;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--kf-line);
  border-radius: 50%;
  background: var(--kf-paper);
  color: var(--kf-green);
  font-size: 0.7rem;
  line-height: 1;
}

.blog-icon-link b {
  position: absolute;
  left: 1.15rem;
  z-index: 1;
  color: var(--kf-green);
  font-size: 0.7rem;
  line-height: 1;
}

.blog-icon-link span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-icon-link:hover,
.blog-icon-link:focus {
  background: var(--kf-sage);
  color: var(--kf-green);
}

.blog-icon-members {
  background: var(--kf-green);
  color: #fff;
}

.blog-icon-members::before {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
}

.blog-icon-members b,
.blog-icon-members:hover,
.blog-icon-members:focus {
  color: #fff;
}

.blog-icon-members:hover,
.blog-icon-members:focus {
  background: #173d2e;
}

.ai-search-section {
  background: #fff;
  border-bottom: 1px solid var(--kf-line);
}

.ai-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--kf-line);
  background: linear-gradient(135deg, rgba(36, 91, 69, 0.08), rgba(200, 139, 50, 0.12));
}

.ai-search-panel h1 {
  margin: 0 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.05;
}

.ai-search-panel p {
  margin-bottom: 0;
  color: var(--kf-muted);
  font-weight: 700;
}

.ai-search-form {
  display: grid;
  gap: 0.75rem;
}

.ai-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.ai-search-box .form-control,
.ai-search-box .btn {
  border-radius: 0;
}

.ai-search-categories {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.ai-search-categories .btn {
  border-radius: 999px;
  flex: 0 0 auto;
  font-weight: 800;
}

.ai-search-clear {
  justify-self: start;
  color: var(--kf-blue);
  font-weight: 800;
  text-decoration: none;
}

.home-page .ai-search-panel,
.home-page .article-card,
.home-page .sidebar-panel,
.home-page .advert-banner-inner {
  border: 0;
}

@media (max-width: 767.98px) {
  body {
    padding-bottom: 70px;
  }

  .navbar-toggler,
  #mainNav {
    display: none !important;
  }

  .brand-logo {
    width: clamp(132px, 48vw, 190px);
    max-height: 44px;
  }

  .blog-icon-shell {
    top: auto;
    right: 0;
    bottom: 0;
  }

  .blog-icon-toggle {
    position: absolute;
    right: 0.6rem;
    bottom: calc(100% + 0.4rem);
    margin: 0;
  }

  .blog-icon-rail {
    display: flex;
    gap: 0.35rem;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.45rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--kf-line);
    box-shadow: 0 -10px 28px rgba(23, 32, 29, 0.12);
  }

  .blog-icon-link {
    flex: 1 0 72px;
    min-width: 72px;
    width: auto;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.35rem 0.35rem;
    font-size: 0.63rem;
    line-height: 1.1;
    text-align: center;
  }

  .blog-icon-link::before {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .blog-icon-link b {
    left: auto;
    top: 0.8rem;
  }

  .blog-icon-link span {
    max-width: 70px;
  }

  .ai-search-panel {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .ai-search-box {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .blog-icon-link {
    width: 52px;
    justify-content: center;
    padding: 0.45rem;
  }

  .blog-icon-link b {
    left: auto;
  }

  .blog-icon-link span {
    position: absolute;
    left: calc(100% + 0.45rem);
    max-width: 160px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--kf-line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 32, 29, 0.1);
    opacity: 0;
    pointer-events: none;
  }

  .blog-icon-link:hover span,
  .blog-icon-link:focus span {
    opacity: 1;
  }
}

.dictionary-search-strip {
  background: #fff;
  border-bottom: 1px solid var(--kf-line);
  padding: 0.85rem 0;
}

.dictionary-search {
  margin-left: auto;
  max-width: 440px;
}

.dictionary-search label {
  color: var(--kf-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.dictionary-search .form-control {
  border-radius: 0;
}

.dictionary-sidebar-search label {
  color: var(--kf-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.dictionary-sidebar-search .form-control {
  border-radius: 0;
}

.dictionary-search-box {
  display: grid;
  gap: 0.65rem;
}

.dictionary-search-note {
  color: var(--kf-muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin: 0.65rem 0 0;
}

.dictionary-live-results {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.dictionary-live-results a {
  background: var(--kf-sage);
  color: var(--kf-blue);
  font-weight: 800;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.dictionary-live-results a:hover,
.dictionary-live-results a:focus {
  background: rgba(45, 99, 135, 0.14);
  color: var(--kf-green);
}

.dictionary-no-results {
  color: var(--kf-muted);
  font-size: 0.9rem;
  margin: 0;
}

.hero {
  overflow: hidden;
}

.eyebrow,
.category {
  color: var(--kf-brick);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: 0.98;
  margin-bottom: 1.15rem;
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  font-size: 1.14rem;
  line-height: 1.24;
}

.hero-summary {
  color: var(--kf-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 680px;
}

.home-hero-title {
  color: var(--kf-blue);
  font-size: 70px;
  line-height: 1.25;
}

.filter-panel {
  background: #fff;
  border: 1px solid var(--kf-line);
  box-shadow: 0 18px 45px rgba(23, 32, 29, 0.12);
  padding: 1rem;
  width: 100%;
}

.filter-panel .input-group {
  width: 100%;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-results-page {
  background: #fff;
  border-bottom: 1px solid var(--kf-line);
  border-top: 1px solid var(--kf-line);
}

.search-results-page[hidden] {
  display: none;
}

.btn {
  border-radius: 0;
  font-weight: 800;
}

.btn-success,
.btn-success:hover,
.btn-success:focus {
  background: var(--kf-green);
  border-color: var(--kf-green);
}

.hero-photo {
  aspect-ratio: 0.9;
  box-shadow: 13px 13px 0 var(--kf-gold);
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  width: 100%;
}

.proof-strip {
  background: #fff;
}

.proof-item {
  border-right: 1px solid var(--kf-line);
  min-height: 112px;
  padding: 1.4rem;
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  color: var(--kf-green);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  line-height: 1;
}

.proof-item span,
.lead-story p,
.story-stack p,
.article-card p,
.result-count,
.site-footer,
.about-band p {
  color: var(--kf-muted);
}

.lead-story,
.article-card {
  background: #fff;
}

.lead-story img {
  aspect-ratio: 1.45;
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.featured-carousel {
  background: #fff;
}

.featured-carousel .carousel-item img {
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.featured-carousel .post-image-link {
  position: relative;
}

.featured-slide-caption {
  background: linear-gradient(180deg, rgba(23, 32, 29, 0), rgba(23, 32, 29, 0.78));
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 4rem 1.5rem 1.35rem;
  position: absolute;
  right: 0;
}

.featured-slide-caption h3 {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.08;
  margin: 0 0 0.4rem;
}

.featured-slide-caption .post-date {
  color: rgba(255, 255, 255, 0.86);
}

.featured-carousel .carousel-control-prev,
.featured-carousel .carousel-control-next {
  width: 12%;
}

.featured-carousel .carousel-indicators {
  margin-bottom: 0.75rem;
}

.post-image-link {
  display: block;
  text-decoration: none;
}

.lead-story h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
  margin-top: 0.5rem;
}

.lead-story h3 a,
.story-stack h3 a,
.article-card h3 a,
.sidebar-article h3 a {
  text-decoration: none;
}

.sidebar-article h3 a {
  display: block;
}

.story-stack {
  border-top: 0;
}

.story-stack article {
  border-bottom: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 130px minmax(0, 1fr);
  padding: 1.3rem 0;
}

.story-stack article:first-child {
  padding-top: 0;
}

.story-stack-image {
  display: block;
}

.story-stack-image img {
  aspect-ratio: 1.25;
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.article-card {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.article-card:hover {
  box-shadow: 0 14px 28px rgba(23, 32, 29, 0.1);
  transform: translateY(-2px);
}

.article-card img {
  aspect-ratio: 1.42;
  height: auto;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.article-card h3 {
  font-size: 18px;
  margin-bottom: 0.55rem;
  margin-top: 0.45rem;
}

.post-date {
  color: var(--kf-muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.article-date {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.sidebar-date {
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.latest-card h3 {
  font-size: 24px;
}

.article-card p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 0;
}

.ajax-section {
  background: var(--kf-sage);
  box-shadow: 0 0 0 100vmax var(--kf-sage);
  clip-path: inset(0 -100vmax);
}

#articleResults {
  min-height: 260px;
  transition: opacity 160ms ease;
}

#articleResults.is-loading {
  opacity: 0.45;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--kf-line);
  color: var(--kf-muted);
  margin: 0;
  padding: 2rem;
  text-align: center;
}

.page-hero {
  overflow: hidden;
}

.content-panel,
.contact-form {
  background: #fff;
  border: 1px solid var(--kf-line);
  padding: 1.5rem;
}

.content-panel h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.content-panel h3 {
  font-size: 1.08rem;
}

.privacy-content h2 {
  font-size: 1.65rem;
  margin-top: 2rem;
}

.privacy-content h2:first-of-type {
  margin-top: 0;
}

.privacy-content p {
  color: var(--kf-muted);
  line-height: 1.75;
}

.clean-list {
  color: var(--kf-muted);
  line-height: 1.75;
  margin-bottom: 0;
  padding-left: 1.15rem;
}

.contact-form label {
  font-weight: 800;
}

.contact-page-title {
  font-size: 45px;
}

.about-page-title {
  font-size: 45px;
}

.contact-form .form-control,
.contact-form .form-select,
.login-panel .form-control,
.admin-panel .form-control,
.admin-panel .form-select {
  border-radius: 0;
}

.login-page h1 {
  font-size: clamp(2.4rem, 6vw, 5.1rem);
}

.login-panel {
  background: #fff;
  border: 1px solid var(--kf-line);
  box-shadow: 0 18px 45px rgba(23, 32, 29, 0.12);
  padding: 1.5rem;
}

.login-panel h2 {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
}

.login-panel label {
  font-weight: 800;
}

.blog-auth-page .row {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.blog-auth-panel {
  height: 100%;
}

.blog-auth-panel .hero-summary {
  color: var(--kf-muted);
}

.login-note {
  color: var(--kf-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.google-button {
  align-items: center;
  display: inline-flex;
  gap: 0.65rem;
  justify-content: center;
}

.google-mark {
  align-items: center;
  background: #fff;
  border: 1px solid var(--kf-line);
  color: var(--kf-blue);
  display: inline-flex;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.admin-page h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.admin-access-title {
  color: var(--kf-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.admin-heading {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.admin-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.member-dashboard-title {
  color: var(--kf-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 45px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.submit-article-title {
  font-size: 45px;
}

.admin-dashboard-title {
  color: var(--kf-blue);
  font-size: 36px;
}

.insights-dashboard-title {
  font-size: 24px;
}

.latest-home-title {
  font-size: 45px;
}

.admin-stats {
  background: #fff;
  border: 1px solid var(--kf-line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.admin-stats div {
  border-right: 1px solid var(--kf-line);
  padding: 1.25rem;
}

.admin-stats div:last-child {
  border-right: 0;
}

.admin-stats strong {
  color: var(--kf-green);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  line-height: 1;
}

.admin-stats span {
  color: var(--kf-muted);
  font-weight: 800;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--kf-line);
  padding: 1.5rem;
}

.admin-panel h2 {
  font-size: 1.75rem;
  margin: 0;
}

.article-admin-filter {
  align-items: end;
  background: var(--kf-surface);
  border: 1px solid var(--kf-line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  padding: 1rem;
}

.article-admin-filter .form-label {
  color: var(--kf-dark);
  font-weight: 800;
  margin: 0;
}

.article-admin-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.advert-admin-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

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

.advert-admin-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.advert-admin-card-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.advert-admin-card-head h2 {
  line-height: 1.2;
}

.advert-admin-card-head p:not(.eyebrow) {
  color: var(--kf-muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0.4rem 0 0;
}

.advert-admin-preview {
  background: var(--kf-sage);
  border: 1px solid var(--kf-line);
  min-height: 96px;
  overflow-x: auto;
  padding: 0.75rem;
}

.advert-admin-preview img,
.advert-admin-preview iframe,
.advert-admin-preview object,
.advert-admin-preview embed,
.advert-admin-preview ins {
  max-width: 100%;
}

.advert-admin-preview img {
  display: block;
  height: auto;
}

.advert-admin-empty {
  align-items: center;
  background: var(--kf-sage);
  border: 1px dashed var(--kf-line);
  color: var(--kf-muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 96px;
  padding: 1rem;
  text-align: center;
}

.advert-admin-form {
  display: grid;
  gap: 0.9rem;
}

.advert-admin-form .form-label {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.advert-admin-form textarea {
  min-height: 132px;
  resize: vertical;
}

.advert-admin-form-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.advert-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-panel label {
  font-weight: 800;
}

.rich-editor {
  border: 1px solid var(--kf-line);
  background: #ecefeb;
  max-height: 86vh;
  overflow: auto;
  width: 100%;
}

.rich-editor-toolbar {
  align-items: center;
  background: #f6f8f5;
  border-bottom: 1px solid var(--kf-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem;
  position: sticky;
  top: 0;
  z-index: 3;
}

.rich-editor-toolbar button,
.rich-editor-select {
  align-items: center;
  background: #fff;
  border: 1px solid var(--kf-line);
  color: var(--kf-ink);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  min-width: 36px;
  padding: 0 0.55rem;
}

.rich-editor-select {
  min-width: 132px;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar button:focus,
.rich-editor-select:focus {
  border-color: var(--kf-blue);
  outline: 2px solid rgba(45, 99, 135, 0.18);
  outline-offset: 0;
}

.rich-editor-toolbar button:disabled,
.rich-editor-select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.rich-editor-surface {
  background: #fff;
  box-shadow: 0 18px 40px rgba(23, 32, 29, 0.12);
  color: var(--kf-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 1.25rem auto;
  max-width: none;
  min-height: 1123px;
  outline: none;
  padding: 64px;
  position: relative;
  width: 100%;
}

.rich-editor-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(45, 99, 135, 0.2);
}

.rich-editor-surface[data-invalid="true"] {
  box-shadow: inset 0 0 0 3px rgba(191, 63, 48, 0.24), 0 18px 40px rgba(23, 32, 29, 0.12);
}

.rich-editor-surface[data-empty="true"]::before {
  color: rgba(95, 108, 102, 0.72);
  content: attr(data-placeholder);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-style: italic;
  left: 64px;
  pointer-events: none;
  position: absolute;
  right: 64px;
  top: 64px;
}

.rich-editor-surface[data-dragging="true"] {
  box-shadow: inset 0 0 0 3px rgba(45, 99, 135, 0.32), 0 18px 40px rgba(23, 32, 29, 0.12);
}

.rich-editor-surface[data-uploading="true"] {
  cursor: progress;
}

.rich-editor-surface h2,
.article-body h2 {
  font-size: 2rem;
  margin: 1.35rem 0 0.75rem;
}

.rich-editor-surface h3,
.article-body h3 {
  font-size: 1.45rem;
  margin: 1.1rem 0 0.65rem;
}

.rich-editor-surface p,
.article-body p {
  margin-bottom: 1rem;
}

.article-body a {
  color: var(--kf-blue);
  font-weight: 800;
  text-decoration: none;
}

.article-body {
  color: var(--kf-ink);
  font-size: 14px;
  line-height: 1.8;
}

.article-body a:hover,
.article-body a:focus {
  color: var(--kf-green);
  text-decoration: none;
}

.rich-editor-surface blockquote,
.article-body blockquote {
  border-left: 4px solid var(--kf-blue);
  color: var(--kf-muted);
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
}

.rich-editor-surface ul,
.rich-editor-surface ol,
.article-body ul,
.article-body ol {
  margin-bottom: 1rem;
  padding-left: 1.4rem;
}

.rich-editor-surface img,
.article-body img {
  border: 1px solid var(--kf-line);
  display: block;
  height: auto;
  margin: 1.25rem 0;
  max-width: 100%;
}

.rich-editor-surface table,
.article-body table {
  border-collapse: collapse;
  display: table;
  margin: 1.25rem 0;
  max-width: 100%;
  width: 100%;
}

.rich-editor-surface th,
.rich-editor-surface td,
.article-body th,
.article-body td {
  border: 1px solid var(--kf-line);
  padding: 0.7rem;
  vertical-align: top;
}

.rich-editor-surface th,
.article-body th {
  background: #f6f8f5;
  font-weight: 900;
}

.admin-check {
  border: 1px solid var(--kf-line);
  min-height: 48px;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem;
}

.admin-table {
  margin-bottom: 0;
}

.admin-table th {
  color: var(--kf-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table td {
  border-color: var(--kf-line);
  vertical-align: top;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  color: var(--kf-muted);
  margin-top: 0.25rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pagination-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.pagination-bar span {
  color: var(--kf-muted);
  font-weight: 800;
}

.pagination-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-role-form {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-width: 240px;
}

.insight-bars {
  display: grid;
  gap: 1rem;
}

.insight-filter-form {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(180px, 0.6fr) minmax(240px, 1.4fr);
}

.insight-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.insight-filter-controls .form-select {
  min-width: min(100%, 360px);
  width: auto;
}

.insight-bar strong {
  color: var(--kf-ink);
}

.insight-bar span {
  color: var(--kf-muted);
  font-weight: 800;
}

.insight-bar-track {
  background: var(--kf-sage);
  height: 12px;
  margin-top: 0.45rem;
  overflow: hidden;
}

.insight-bar-track span {
  background: var(--kf-blue);
  display: block;
  height: 100%;
}

.status-pill {
  background: var(--kf-sage);
  color: var(--kf-green);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 0 0.25rem 0.25rem 0;
  padding: 0.32rem 0.5rem;
  text-transform: uppercase;
}

.status-pill.is-draft {
  background: rgba(155, 63, 45, 0.12);
  color: var(--kf-brick);
}

.status-pill.is-pending {
  background: rgba(45, 99, 135, 0.12);
  color: var(--kf-blue);
}

.status-pill.is-featured {
  background: rgba(200, 139, 50, 0.16);
  color: #7b4b0f;
}

.member-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--kf-line);
  color: var(--kf-muted);
  display: inline-flex;
  font-weight: 800;
  min-height: 38px;
  padding: 0.35rem 0.75rem;
}

.submission-preview {
  aspect-ratio: 1.45;
  border: 1px solid var(--kf-line);
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.contact-panel address {
  border-bottom: 1px solid var(--kf-line);
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
}

.contact-block {
  margin-top: 1.2rem;
}

.article-page {
  max-width: 840px;
}

.category-page-heading h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.article-page h1 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.article-page h1 a {
  text-decoration: none;
}

.article-page p {
  color: var(--kf-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.article-page .article-body,
.article-page .article-body p,
.article-page .article-body li,
.article-page .article-body blockquote {
  font-size: 14px;
}

.dictionary-link {
  color: var(--kf-blue);
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.article-hero {
  aspect-ratio: 1.8;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.article-share {
  align-items: center;
  border-top: 1px solid var(--kf-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.article-share span {
  color: var(--kf-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-right: 0.25rem;
  text-transform: uppercase;
}

.share-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  width: 34px;
}

.share-button:hover,
.share-button:focus {
  color: #fff;
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.share-button svg {
  fill: currentColor;
  height: 17px;
  width: 17px;
}

.share-x {
  background: #050505;
}

.share-facebook {
  background: #4167b2;
}

.share-email {
  background: #d94b3f;
}

.share-telegram {
  background: #168fca;
}

.share-whatsapp {
  background: #24c768;
}

.post-related {
  border-top: 1px solid var(--kf-line);
  padding-top: 2.5rem;
}

.right-sidebar {
  position: sticky;
  top: 104px;
}

.sidebar-panel {
  background: #fff;
  padding: 1.35rem;
}

.sidebar-panel h2 {
  font-size: 1.75rem;
  margin-bottom: 1.1rem;
}

.sidebar-list {
  border-top: 0;
}

.sidebar-article {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 0.85rem 0;
}

.sidebar-article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sidebar-article h3 {
  font-size: 16px;
  line-height: 1.28;
  margin: 0.35rem 0;
}

.sidebar-article .category,
.sidebar-article .post-date {
  font-size: 12px;
  line-height: 1.35;
}

.sidebar-article .category {
  display: none;
}

.sidebar-thumb {
  display: block;
  text-decoration: none;
}

.sidebar-thumb img {
  aspect-ratio: 1;
  height: 88px;
  object-fit: cover;
  width: 88px;
}

.sidebar-article p,
.sidebar-empty {
  color: var(--kf-muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 0;
}

.sidebar-article p {
  display: none;
}

.sidebar-video-list {
  display: grid;
  gap: 1rem;
}

.sidebar-video iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  width: 100%;
}

.sidebar-video a {
  color: var(--kf-blue);
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 800;
  margin-top: 0.55rem;
  text-decoration: none;
}

.category-band:nth-of-type(odd) {
  background: rgba(45, 99, 135, 0.07);
  box-shadow: 0 0 0 100vmax rgba(45, 99, 135, 0.07);
  clip-path: inset(0 -100vmax);
}

.about-band {
  background: var(--kf-green);
  box-shadow: 0 0 0 100vmax var(--kf-green);
  clip-path: inset(0 -100vmax);
  color: #fff;
}

.about-band p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.7;
}

.site-footer {
  background: var(--kf-green);
  border-top: 0;
  color: #fff;
}

.footer-brand {
  color: #fff;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.site-footer h2 {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.footer-bottom p {
  margin: 0;
}

address {
  font-style: normal;
  line-height: 1.7;
}

@media (max-width: 767.98px) {
  .py-lg-6 {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .filter-panel .input-group {
    display: grid;
    gap: 0.75rem;
  }

  .filter-panel .input-group > * {
    border-radius: 0;
    width: 100%;
  }

  .hero-photo {
    aspect-ratio: 1.2;
    max-height: 360px;
  }

  .proof-item {
    border-bottom: 1px solid var(--kf-line);
    border-right: 0;
  }

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

  .right-sidebar {
    position: static;
  }

  .dictionary-search {
    max-width: none;
  }

  .admin-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-heading-actions {
    justify-content: flex-start;
  }

  .insight-filter-form {
    grid-template-columns: 1fr;
  }

  .article-admin-filter {
    grid-template-columns: 1fr;
  }

  .advert-admin-grid {
    grid-template-columns: 1fr;
  }

  .advert-admin-stats {
    grid-template-columns: 1fr;
  }

  .advert-admin-card-head,
  .advert-admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .advert-admin-form-row {
    grid-template-columns: 1fr;
  }

  .advert-admin-actions .btn {
    width: 100%;
  }

  .insight-filter-controls {
    justify-content: flex-start;
  }

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

  .admin-stats div {
    border-bottom: 1px solid var(--kf-line);
  }

  .admin-stats div:nth-child(2n) {
    border-right: 0;
  }

  .admin-stats div:last-child {
    border-bottom: 0;
  }

  .story-stack article {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .article-page h1,
  .article-card h3 {
    font-size: 16px;
  }

  .article-page p,
  .article-page .article-body,
  .article-page .article-body p,
  .article-page .article-body li,
  .article-page .article-body blockquote,
  .article-card p {
    font-size: 12px;
  }

  .rich-editor-surface {
    min-height: 760px;
    padding: 1.25rem;
    width: 100%;
  }

  .rich-editor-surface[data-empty="true"]::before {
    left: 1.25rem;
    right: 1.25rem;
    top: 1.25rem;
  }
}

@media (min-width: 769px) {
  .article-page h1,
  .article-card h3,
  .latest-card h3,
  .featured-slide-caption h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .sidebar-article h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  .sidebar-article .category,
  .sidebar-article .post-date,
  .sidebar-article p {
    font-size: 12px;
  }

  .article-page p,
  .article-page .article-body,
  .article-page .article-body p,
  .article-page .article-body li,
  .article-page .article-body blockquote,
  .article-card p,
  .featured-slide-caption p {
    font-size: 18px;
    line-height: 1.7;
  }
}

@media (max-width: 768px) {
  .sidebar-article {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar-thumb img {
    height: 76px;
    width: 76px;
  }

  .article-page h1,
  .article-card h3,
  .latest-card h3,
  .featured-slide-caption h2 {
    font-size: 18px;
    line-height: 1.28;
  }

  .sidebar-article h3 {
    font-size: 16px;
    line-height: 1.28;
  }

  .sidebar-article .category,
  .sidebar-article .post-date,
  .sidebar-article p {
    font-size: 12px;
  }

  .article-page p,
  .article-page .article-body,
  .article-page .article-body p,
  .article-page .article-body li,
  .article-page .article-body blockquote,
  .article-card p,
  .featured-slide-caption p {
    font-size: 16px;
    line-height: 1.65;
  }
}

/* Friendly white theme */
:root {
  --kf-ink: #16201c;
  --kf-muted: #66736d;
  --kf-paper: #ffffff;
  --kf-line: #e7ece8;
  --kf-sage: #f7faf8;
  --kf-green: #1f6b4f;
  --kf-gold: #d89a38;
  --kf-brick: #b94d35;
  --kf-blue: #266c9f;
}

body {
  background: #fff;
}

a,
button,
.btn,
.form-control,
.form-select {
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.blog-icon-link:focus-visible,
.share-button:focus-visible {
  box-shadow: 0 0 0 0.22rem rgba(31, 107, 79, 0.18);
  outline: 0;
}

.bg-paper,
.site-header,
.ai-search-section,
.search-results-page,
.proof-strip,
.featured-carousel,
.lead-story,
.article-card,
.sidebar-panel,
.content-panel,
.contact-form,
.login-panel,
.admin-panel,
.empty-state,
.member-chip,
.dictionary-search-strip,
.blog-icon-rail,
.blog-icon-toggle {
  background: #fff;
}

.site-header {
  border-bottom: 1px solid var(--kf-line);
  box-shadow: 0 8px 26px rgba(22, 32, 28, 0.05);
}

.navbar {
  min-height: 72px;
}

.nav-link {
  border-radius: 8px;
  padding: 0.55rem 0.75rem !important;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--kf-sage);
  color: var(--kf-green);
}

.nav-join-button {
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(31, 107, 79, 0.16);
}

.btn,
.ai-search-box .btn,
.dictionary-search .form-control,
.dictionary-sidebar-search .form-control,
.contact-form .form-control,
.contact-form .form-select,
.login-panel .form-control,
.admin-panel .form-control,
.admin-panel .form-select {
  border-radius: 8px;
}

.form-control,
.form-select {
  border-color: var(--kf-line);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(31, 107, 79, 0.55);
}

.ai-search-panel,
.filter-panel,
.article-card,
.sidebar-panel,
.content-panel,
.contact-form,
.login-panel,
.admin-panel,
.empty-state,
.advert-banner.is-placeholder .advert-banner-inner {
  border: 1px solid var(--kf-line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(22, 32, 28, 0.06);
}

.ai-search-panel {
  background: #fff;
}

.ai-search-panel h1,
h1,
h2 {
  color: var(--kf-ink);
}

.ai-search-categories {
  scrollbar-width: thin;
}

.ai-search-categories .btn {
  border-radius: 999px;
}

.btn-dark,
.btn-dark:hover,
.btn-dark:focus {
  background: var(--kf-green);
  border-color: var(--kf-green);
  color: #fff;
}

.btn-outline-dark {
  border-color: var(--kf-line);
  color: var(--kf-ink);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: var(--kf-sage);
  border-color: rgba(31, 107, 79, 0.34);
  color: var(--kf-green);
}

.ajax-section,
.category-band:nth-of-type(odd),
.about-band {
  background: #fff;
  box-shadow: none;
  clip-path: none;
}

.ajax-section {
  border-top: 1px solid var(--kf-line);
  border-bottom: 1px solid var(--kf-line);
}

.category-band {
  border-top: 1px solid var(--kf-line);
}

.article-card {
  height: 100%;
}

.article-card:hover,
.article-card:focus-within {
  box-shadow: 0 18px 38px rgba(22, 32, 28, 0.1);
}

.article-card img,
.lead-story img,
.featured-carousel .carousel-item img,
.story-stack-image img,
.sidebar-thumb img,
.article-hero,
.submission-preview {
  border-radius: 8px;
}

.article-card .post-image-link img {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.story-stack article,
.sidebar-article {
  border-bottom: 1px solid var(--kf-line);
}

.story-stack article:last-child,
.sidebar-article:last-child {
  border-bottom: 0;
}

.article-page {
  background: #fff;
  border: 1px solid var(--kf-line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(22, 32, 28, 0.05);
  max-width: 900px;
  padding: clamp(1rem, 3vw, 2rem);
}

.article-page h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.article-page p,
.article-page .article-body,
.article-page .article-body p,
.article-page .article-body li,
.article-page .article-body blockquote {
  color: #3f4b46;
}

.article-body {
  font-size: 1rem;
}

.right-sidebar {
  top: 96px;
}

.sidebar-panel + .sidebar-panel,
.advert-banner-sidebar + .sidebar-panel {
  margin-top: 1rem;
}

.blog-icon-toggle,
.blog-icon-rail {
  border-color: var(--kf-line);
  box-shadow: 0 12px 28px rgba(22, 32, 28, 0.08);
}

.blog-icon-toggle,
.blog-icon-link {
  border-radius: 8px;
}

.blog-icon-link:hover,
.blog-icon-link:focus {
  background: var(--kf-sage);
}

.blog-icon-shell {
  top: 104px;
}

.blog-icon-toggle {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 92px;
  padding: 0.48rem 0.7rem;
  text-transform: none;
}

.blog-icon-rail {
  gap: 0.35rem;
  padding: 0.6rem;
  border-radius: 0 10px 10px 0;
}

.blog-icon-link {
  width: 168px;
  min-height: 46px;
  padding: 0.5rem 0.65rem;
  color: var(--kf-ink);
  font-size: 0.82rem;
  text-transform: none;
}

.blog-icon-link::before {
  background: var(--kf-sage);
  border: 0;
}

.blog-icon-link b {
  color: var(--kf-green);
  font-size: 0.78rem;
  left: 1.22rem;
}

.blog-icon-link span {
  font-weight: 800;
}

.blog-icon-link:hover,
.blog-icon-link:focus {
  color: var(--kf-green);
  transform: translateX(2px);
}

.blog-icon-members {
  background: var(--kf-green);
  color: #fff;
}

.blog-icon-members::before {
  background: rgba(255, 255, 255, 0.18);
}

.blog-icon-members:hover,
.blog-icon-members:focus {
  background: #18543e;
  color: #fff;
}

.advert-banner.is-placeholder .advert-banner-inner,
.advert-banner.is-placeholder .advert-banner-inner:hover,
.advert-banner.is-placeholder .advert-banner-inner:focus {
  background: #fff;
}

.about-band {
  border-top: 1px solid var(--kf-line);
  color: var(--kf-ink);
}

.about-band p {
  color: var(--kf-muted);
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--kf-line);
  color: var(--kf-muted);
}

.footer-brand,
.site-footer h2 {
  color: var(--kf-ink);
}

.site-footer a {
  color: var(--kf-green);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--kf-blue);
}

.footer-bottom {
  border-top: 1px solid var(--kf-line);
}

@media (max-width: 767.98px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: sticky;
  }

  .article-page {
    padding: 1rem;
  }

  .article-page h1 {
    font-size: 1.75rem;
  }

  .blog-icon-rail {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px 14px 0 0;
  }

  .blog-icon-link {
    flex: 0 0 82px;
    min-height: 62px;
    min-width: 82px;
    padding: 0.42rem 0.3rem;
  }

  .blog-icon-link:hover,
  .blog-icon-link:focus {
    transform: translateY(-1px);
  }

  .blog-icon-toggle {
    min-width: 98px;
  }
}

@media (max-width: 767.98px) {
  html,
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .row > * {
    padding-left: 0;
    padding-right: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
  }

  .site-header .navbar {
    min-height: 60px;
    padding: 0.45rem 0;
  }

  .site-header .container-xl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: clamp(132px, 52vw, 180px);
    max-height: 46px;
  }

  .navbar-toggler,
  #mainNav {
    display: none !important;
  }

  .blog-icon-shell {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1040;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .blog-icon-toggle {
    position: absolute;
    right: 0.75rem;
    bottom: calc(100% + 0.45rem);
    min-width: 88px;
    min-height: 34px;
    margin: 0;
    padding: 0.38rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1;
  }

  .blog-icon-rail {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    max-width: 100vw;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.48rem 0.6rem calc(0.48rem + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--kf-line);
    border-radius: 14px 14px 0 0;
    background: #fff;
    box-shadow: 0 -10px 28px rgba(23, 32, 29, 0.12);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .blog-icon-rail::-webkit-scrollbar {
    display: none;
  }

  .blog-icon-link {
    flex: 0 0 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.18rem;
    width: auto;
    min-width: 78px;
    min-height: 62px;
    padding: 0.42rem 0.3rem;
    border-radius: 8px;
    font-size: 0.68rem;
    line-height: 1.1;
    text-align: center;
    transform: none;
  }

  .blog-icon-link::before {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
  }

  .blog-icon-link b {
    position: absolute;
    left: auto;
    top: 0.84rem;
    font-size: 0.7rem;
  }

  .blog-icon-link span {
    display: block;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .blog-icon-link:hover,
  .blog-icon-link:focus {
    transform: none;
  }
}

@media (max-width: 380px) {
  .site-header .container-xl {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .brand-logo {
    width: clamp(116px, 54vw, 154px);
    max-height: 42px;
  }

  .blog-icon-rail {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .blog-icon-link {
    flex-basis: 72px;
    min-width: 72px;
    font-size: 0.64rem;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .site-header .navbar {
    padding-top: calc(0.55rem + env(safe-area-inset-top));
  }
}

/* Responsive reading type */
h1,
h2,
h3,
.article-page h1,
.article-card h3,
.story-stack h3,
.sidebar-article h3,
.featured-slide-caption h3,
.latest-home-title,
.category-page-heading h1,
.contact-page-title,
.about-page-title,
.submit-article-title,
.member-dashboard-title,
.admin-dashboard-title,
.admin-page h1,
.ai-search-panel h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

h1 {
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 1.05;
}

h2,
.latest-home-title {
  font-size: clamp(1.55rem, 3.5vw, 3rem);
  line-height: 1.08;
}

.section-heading h2,
.latest-section h2,
.post-related h2,
.latest-home-title {
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.14;
}

.ai-search-panel h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.65rem);
  line-height: 1.08;
}

.article-page h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.article-page p,
.article-page .article-body,
.article-page .article-body p,
.article-page .article-body li,
.article-page .article-body blockquote,
.hero-summary {
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.18rem);
  line-height: 1.72;
}

.article-body h2,
.rich-editor-surface h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.16;
}

.article-body h3,
.rich-editor-surface h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.2;
}

.article-card h3,
.latest-card h3,
.story-stack h3 {
  font-size: clamp(1.08rem, 1.3vw, 1.35rem);
  line-height: 1.22;
}

.article-card p,
.story-stack p,
.sidebar-article p {
  font-size: clamp(0.92rem, 0.86rem + 0.25vw, 1rem);
  line-height: 1.55;
}

.featured-slide-caption {
  padding: clamp(2.4rem, 12vw, 4rem) clamp(1rem, 4vw, 1.5rem) clamp(1rem, 4vw, 1.35rem);
}

.featured-slide-caption h3 {
  font-size: clamp(1.35rem, 4vw, 2.15rem);
  line-height: 1.08;
}

.rich-editor-surface {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.08rem);
  line-height: 1.7;
}

@media (max-width: 767.98px) {
  h1 {
    font-size: clamp(1.9rem, 8vw, 2.75rem);
    line-height: 1.08;
  }

  h2,
  .latest-home-title,
  .category-page-heading h1,
  .contact-page-title,
  .about-page-title,
  .submit-article-title,
  .member-dashboard-title,
  .admin-dashboard-title,
  .admin-page h1 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    line-height: 1.12;
  }

  .section-heading h2,
  .latest-section h2,
  .post-related h2,
  .latest-home-title {
    font-size: clamp(1.3rem, 5.8vw, 1.85rem);
    line-height: 1.18;
  }

  .ai-search-panel h1 {
    font-size: clamp(1.55rem, 6.7vw, 2rem);
    line-height: 1.12;
  }

  .article-page h1 {
    font-size: clamp(1.35rem, 5.8vw, 1.75rem);
    line-height: 1.2;
  }

  .article-page p,
  .article-page .article-body,
  .article-page .article-body p,
  .article-page .article-body li,
  .article-page .article-body blockquote,
  .hero-summary {
    font-size: clamp(0.98rem, 4vw, 1.06rem);
    line-height: 1.68;
  }

  .article-card h3,
  .latest-card h3,
  .story-stack h3,
  .sidebar-article h3 {
    font-size: clamp(1rem, 4.5vw, 1.22rem);
    line-height: 1.24;
  }

  .article-card p,
  .story-stack p,
  .sidebar-article p {
    font-size: clamp(0.9rem, 3.8vw, 0.98rem);
    line-height: 1.52;
  }

  .featured-slide-caption {
    padding: 3.2rem 1rem 1rem;
  }

  .featured-slide-caption h3 {
    font-size: clamp(1.25rem, 6.6vw, 1.8rem);
    line-height: 1.08;
  }
}

@media (max-width: 380px) {
  .featured-slide-caption h3 {
    font-size: clamp(1.12rem, 6vw, 1.45rem);
    line-height: 1.1;
  }

  .article-card h3,
  .latest-card h3,
  .story-stack h3,
  .sidebar-article h3 {
    font-size: clamp(0.98rem, 4.8vw, 1.12rem);
  }

  .article-page h1 {
    font-size: clamp(1.25rem, 5.6vw, 1.55rem);
  }
}

/* Responsive footer */
.site-footer {
  padding-top: clamp(2rem, 4vw, 3.5rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3.5rem) !important;
}

.site-footer .row {
  align-items: start;
}

.site-footer p,
.site-footer address {
  max-width: 34rem;
  margin-bottom: 0;
}

.footer-brand {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  overflow-wrap: anywhere;
}

.site-footer h2 {
  line-height: 1.2;
}

.footer-links {
  align-content: start;
}

.footer-links a,
.site-footer address a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 992px) {
  .site-footer .row {
    grid-row-gap: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .site-footer .row > * {
    min-width: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: 1.5rem 0 calc(6rem + env(safe-area-inset-bottom)) !important;
  }

  .site-footer .container-xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-footer .row {
    gap: 1.1rem 0;
  }

  .footer-brand {
    margin-bottom: .35rem;
  }

  .site-footer h2 {
    margin-bottom: .45rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .75rem;
  }

  .footer-links a,
  .site-footer address a {
    min-height: 32px;
    font-size: .95rem;
  }

  .footer-bottom {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

@media (max-width: 380px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}
