/**
 * KitchenStories front-end theme
 * Visual language adapted from the open-source "Delicious" recipe template
 * (ThemeWagon / Colorlib — Bootstrap food blog theme; green accent #40ba37).
 */

:root {
  --sn-primary: #40ba37;
  --sn-primary-dark: #1c8314;
  --sn-secondary: #40ba37;
  --sn-bg: #f3f5f8;
  --sn-card: #ffffff;
  --sn-text: #474747;
  --sn-heading: #000000;
  --sn-accent: #40ba37;
  --sn-muted: #9b9b9b;
  --sn-line: #dddee9;
  --sn-dark: #141414;
  --sn-footer: #2d2d2d;
  --sn-radius: 0;
  --sn-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
  --sn-font-heading: "Open Sans", "Segoe UI", sans-serif;
  --sn-font-body: "Open Sans", "Segoe UI", sans-serif;
  --sn-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

body {
  font-family: var(--sn-font-body);
  color: var(--sn-text);
  background-color: #fff;
  line-height: 1.7;
  font-size: 15px;
  font-weight: 400;
}

h1, h2, h3, h4, h5, .sn-brand, .sn-card-title {
  font-family: var(--sn-font-heading);
  color: var(--sn-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

/* —— Navbar —— */
.sn-navbar {
  background: #fff;
  border-bottom: 1px solid var(--sn-line);
  box-shadow: none;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  z-index: 1030;
}

.sn-brand {
  font-weight: 800;
  color: var(--sn-heading) !important;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  margin-right: 0.75rem;
  text-transform: none;
}
.sn-brand i,
.sn-brand .sn-brand-mark {
  color: var(--sn-primary);
}

.sn-nav-toggler {
  border: 2px solid #ccc;
  border-radius: 0;
  padding: 0.45rem 0.65rem;
  border-bottom-color: var(--sn-primary-dark);
}

.sn-navbar .navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: #474747;
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  transition: color 0.2s var(--sn-ease), background 0.2s var(--sn-ease), border-color 0.2s var(--sn-ease);
  white-space: nowrap;
}

.sn-navbar .navbar-nav .nav-link:hover,
.sn-navbar .navbar-nav .nav-link:focus {
  color: #fff;
  background: var(--sn-primary);
  border-bottom-color: var(--sn-primary-dark);
}

.sn-navbar .navbar-nav .nav-link.active {
  color: #fff;
  background: var(--sn-primary);
  border-bottom-color: var(--sn-primary-dark);
}

.sn-nav-end {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}

.sn-nav-search {
  position: relative;
  display: block;
  width: 170px;
  flex: 0 0 170px;
}

.sn-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: var(--sn-muted);
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

.sn-search {
  display: block;
  width: 100%;
  height: 2.15rem;
  border-radius: 0;
  border: 1px solid var(--sn-line);
  background: #fff;
  padding: 0.25rem 0.75rem 0.25rem 2rem;
  font-size: 0.875rem;
}

.sn-search:focus {
  border-color: var(--sn-primary);
  box-shadow: 0 0 0 3px rgba(64, 186, 55, 0.2);
  outline: none;
  background: #fff;
}

.sn-nav-cta {
  padding: 0.45rem 1rem !important;
  line-height: 1.25;
  white-space: nowrap;
}

.sn-nav-login {
  font-weight: 600;
  color: var(--sn-text) !important;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.sn-nav-login:hover {
  color: var(--sn-primary) !important;
}

.sn-nav-account {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  color: var(--sn-text) !important;
  font-weight: 600;
}

.sn-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sn-primary);
  color: #fff;
  font-size: 0.8rem;
}

.sn-nav-username {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sn-nav-dropdown {
  border: 1px solid var(--sn-line);
  border-radius: 0;
  box-shadow: var(--sn-shadow);
  padding: 0.4rem;
  margin-top: 0.45rem !important;
  min-width: 12rem;
}

.sn-nav-dropdown .dropdown-item {
  border-radius: 0;
  padding: 0.5rem 0.9rem;
  font-weight: 500;
}

.sn-nav-dropdown .dropdown-item:hover,
.sn-nav-dropdown .dropdown-item:focus {
  background: var(--sn-primary);
  color: #fff;
}

@media (max-width: 991.98px) {
  .sn-nav-end {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sn-line);
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
  }

  .sn-nav-search {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* —— Buttons (delicious-btn style) —— */
.btn-sn-primary {
  background: var(--sn-primary);
  border: 0;
  color: #fff;
  border-radius: 0;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: background 0.2s ease, transform 0.2s var(--sn-ease);
  position: relative;
}
.btn-sn-primary::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--sn-primary-dark);
}
.btn-sn-primary:hover {
  background: var(--sn-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sn-secondary {
  background: var(--sn-dark);
  border: 0;
  color: #fff;
  border-radius: 0;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: background 0.2s ease, transform 0.2s var(--sn-ease);
}
.btn-sn-secondary:hover {
  background: var(--sn-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sn-outline {
  border: 3px solid var(--sn-primary);
  color: var(--sn-primary);
  background: transparent;
  border-radius: 0;
  padding: 0.55rem 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-sn-outline:hover {
  background: var(--sn-primary);
  color: #fff;
}

/* —— Hero (full-bleed Delicious slide) —— */
.sn-hero {
  position: relative;
  min-height: min(82vh, 680px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(10, 12, 18, 0.72) 0%, rgba(10, 12, 18, 0.35) 55%, rgba(64, 186, 55, 0.25) 100%),
    var(--sn-hero-image, url("../images/placeholders/hero.svg")) center/cover no-repeat;
  overflow: hidden;
}

.sn-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  background: var(--sn-primary);
}

.sn-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-left: 1.25rem;
  animation: sn-hero-in 0.75s var(--sn-ease) both;
}

@keyframes sn-hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.sn-hero-brand {
  display: block;
  font-family: var(--sn-font-heading);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.65rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.sn-hero-brand span {
  color: var(--sn-primary);
}

.sn-hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
  line-height: 1.35;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
}

.sn-hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.sn-hero-search {
  background: #fff;
  border-radius: 0;
  padding: 0.35rem;
  display: flex;
  gap: 0.35rem;
  max-width: 480px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.sn-hero-search input {
  border: 0;
  flex: 1;
  padding: 0.7rem 1rem;
  outline: none;
  color: var(--sn-heading);
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.65rem auto 0;
  background: var(--sn-primary);
}
.section-title.text-start::after,
h2.section-title:not(.text-center)::after {
  margin-left: 0;
  margin-right: auto;
}
.section-sub {
  color: var(--sn-muted);
  margin-bottom: 1.75rem;
}

/* —— Recipe cards —— */
.sn-card {
  background: var(--sn-card);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.28s var(--sn-ease), box-shadow 0.28s var(--sn-ease);
  border: 0;
  text-align: center;
}
.sn-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sn-shadow);
}

.sn-card-img-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8ecef;
  position: relative;
}
.sn-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--sn-ease);
}
.sn-card:hover .sn-card-img-wrap img { transform: scale(1.08); }

.sn-card-body {
  padding: 1.15rem 0.85rem 1.35rem;
}
.sn-card-title {
  font-size: 1.05rem;
  margin: 0.5rem 0 0.55rem;
  line-height: 1.35;
  font-weight: 700;
}
.sn-card-title a { color: var(--sn-heading); }
.sn-card-title a:hover { color: var(--sn-primary); }

.sn-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--sn-muted);
  margin-bottom: 0.75rem;
}
.sn-card-meta i { color: var(--sn-primary); margin-right: 0.2rem; }

.sn-card-sm {
  text-align: left;
}
.sn-card-sm:hover { transform: translateY(-3px); }
.sn-card-sm .sn-card-img-wrap { aspect-ratio: 1 / 1; }
.sn-card-sm .sn-card-body { padding: 0.55rem 0.15rem 0.7rem; }
.sn-card-sm .sn-card-title {
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sn-card-sm .sn-card-meta {
  justify-content: flex-start;
  gap: 0.35rem;
  font-size: 0.75rem;
  margin-bottom: 0;
}

.sn-home-triples .section-title.h4 {
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  font-size: 1.15rem;
}

.sn-sidebar-list a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 0;
  color: var(--sn-muted);
  border-left: 3px solid transparent;
}
.sn-sidebar-list a:hover,
.sn-sidebar-list a.active {
  background: rgba(64, 186, 55, 0.08);
  color: var(--sn-primary-dark);
  border-left-color: var(--sn-primary);
}

.sn-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--sn-ease), transform 0.5s var(--sn-ease);
}
.sn-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sn-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sn-primary);
  background: transparent;
  padding: 0.15rem 0;
  border-bottom: 2px solid var(--sn-primary);
}

.sn-save-btn {
  border-radius: 0;
  border: 2px solid var(--sn-line);
  color: var(--sn-heading);
  background: #fff;
}
.sn-save-btn.saved {
  background: rgba(64, 186, 55, 0.12);
  border-color: var(--sn-primary);
  color: var(--sn-primary-dark);
}

.stars { color: var(--sn-primary); letter-spacing: 0.05em; }
.stars i { font-size: 0.85em; }

.cat-tile {
  display: block;
  text-align: center;
  background: var(--sn-card);
  border-radius: 0;
  padding: 1.25rem 0.75rem;
  box-shadow: var(--sn-shadow);
  color: var(--sn-heading);
  border: 1px solid var(--sn-line);
  transition: transform 0.25s var(--sn-ease), border-color 0.25s ease;
}
.cat-tile:hover {
  transform: translateY(-4px);
  color: var(--sn-primary);
  border-color: var(--sn-primary);
}
.cat-tile img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0.65rem;
  background: #e8ecef;
}

.sn-slider {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.sn-slider > * {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
}

/* Featured category strips (Delicious top-catagory) */
.sn-feat-cats {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}
.sn-feat-cat {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: #111;
}
.sn-feat-cat img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.45s var(--sn-ease), opacity 0.35s ease;
}
.sn-feat-cat:hover img {
  transform: scale(1.06);
  opacity: 0.4;
}
.sn-feat-cat-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 1.5rem;
}
.sn-feat-cat-body h3 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.sn-feat-cat-body p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.newsletter-box {
  background: var(--sn-bg);
  border-radius: 0;
  padding: 3rem 1.5rem;
  color: var(--sn-heading);
  border: 1px solid var(--sn-line);
  border-top: 4px solid var(--sn-primary);
}
.newsletter-box .section-title { color: var(--sn-heading); }
.newsletter-box .section-title::after { background: var(--sn-primary); }
.newsletter-box .section-sub,
.newsletter-box .text-muted,
.newsletter-box .form-check-label {
  color: var(--sn-muted) !important;
}

/* —— Footer —— */
.sn-footer {
  background: var(--sn-footer);
  border-top: 0;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4rem;
}
.sn-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.sn-footer a:hover { color: var(--sn-primary); }
.sn-footer-brand {
  font-size: 1.45rem;
  color: #fff !important;
  font-weight: 800;
}
.sn-footer-brand i { color: var(--sn-primary); }
.sn-footer-tagline {
  color: rgba(255, 255, 255, 0.55);
  max-width: 24rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.sn-footer h6 {
  font-family: var(--sn-font-heading);
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sn-footer-links { margin-bottom: 0; }
.sn-footer-links li + li { margin-top: 0.5rem; }
.sn-footer-links a { font-size: 0.95rem; }
.sn-footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sn-footer-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.82rem;
  font-weight: 600;
}
.sn-footer-chip:hover {
  color: #fff !important;
  border-color: var(--sn-primary);
  background: rgba(64, 186, 55, 0.2);
}
.sn-footer-contact { margin: 0; }
.sn-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.sn-footer-contact li + li { margin-top: 1.1rem; }
.sn-footer-ico {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sn-primary);
  flex-shrink: 0;
}
.sn-footer-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.sn-footer-contact a,
.sn-footer-address {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.45;
  word-break: break-word;
}
.sn-footer-contact a:hover { color: var(--sn-primary); }
.sn-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
.sn-footer-copy { color: rgba(255, 255, 255, 0.45); }
.sn-footer-legal a {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.875rem;
}
.sn-footer-legal a:hover { color: var(--sn-primary) !important; }

.page-hero {
  background: var(--sn-bg);
  border-bottom: 1px solid var(--sn-line);
  padding: 2.75rem 0;
  margin-bottom: 2rem;
}
.page-hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sn-about-hero {
  margin-bottom: 0;
  padding: 3.25rem 0 2.75rem;
  background:
    linear-gradient(120deg, rgba(64, 186, 55, 0.1), rgba(243, 245, 248, 0.95)),
    var(--sn-bg);
}
.sn-about-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sn-primary-dark);
}
.sn-about-lead {
  max-width: 34rem;
  margin: 0.65rem 0 0;
  color: var(--sn-muted);
  font-size: 1.1rem;
}
.sn-about-photo {
  overflow: hidden;
  background: #e8ecef;
  box-shadow: var(--sn-shadow);
}
.sn-about-photo img {
  display: block;
  width: 100%;
  height: min(420px, 58vw);
  object-fit: cover;
}
.sn-about-copy {
  color: var(--sn-text);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.15rem;
}
.sn-about-pillars {
  background: var(--sn-bg);
  border-top: 1px solid var(--sn-line);
  border-bottom: 1px solid var(--sn-line);
}
.sn-about-pillar {
  height: 100%;
  background: #fff;
  border: 1px solid var(--sn-line);
  border-top: 3px solid var(--sn-primary);
  padding: 1.75rem 1.35rem 1.5rem;
}
.sn-about-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  background: rgba(64, 186, 55, 0.12);
  color: var(--sn-primary-dark);
  font-size: 1rem;
}
.sn-about-pillar h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
}
.sn-about-pillar p {
  margin: 0;
  color: var(--sn-muted);
  line-height: 1.65;
}
.sn-about-cta {
  background: #fff;
  border: 1px solid var(--sn-line);
  border-left: 4px solid var(--sn-primary);
  padding: 2rem 1.75rem;
}
.sn-about-cta h2 {
  text-transform: none;
  letter-spacing: -0.01em;
}
.sn-about-cta p {
  color: var(--sn-muted);
}

.sn-legal-hero {
  margin-bottom: 0;
  padding: 3rem 0 2.5rem;
  background:
    linear-gradient(120deg, rgba(64, 186, 55, 0.08), rgba(243, 245, 248, 0.95)),
    var(--sn-bg);
}
.sn-legal-meta {
  margin: 0.6rem 0 0;
  color: var(--sn-muted);
  font-size: 0.95rem;
}
.sn-legal-toc {
  position: sticky;
  top: 5.5rem;
  background: #fff;
  border: 1px solid var(--sn-line);
  border-top: 3px solid var(--sn-primary);
  padding: 1.25rem 1.15rem;
}
.sn-legal-toc-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sn-heading);
}
.sn-legal-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sn-legal-toc li + li {
  margin-top: 0.45rem;
}
.sn-legal-toc a {
  display: block;
  color: var(--sn-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.2rem 0;
}
.sn-legal-toc a:hover {
  color: var(--sn-primary-dark);
}
.sn-legal-toc-alt {
  display: inline-block;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--sn-line);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sn-primary-dark) !important;
}
.sn-legal-doc {
  background: #fff;
  border: 1px solid var(--sn-line);
  padding: 2rem 1.75rem;
}
.sn-legal-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--sn-text);
  margin-bottom: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sn-line);
}
.sn-legal-section {
  padding: 1.65rem 0 0;
  scroll-margin-top: 6rem;
}
.sn-legal-section + .sn-legal-section {
  margin-top: 0.35rem;
  border-top: 1px solid var(--sn-line);
  padding-top: 1.65rem;
}
.sn-legal-section h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.sn-legal-section p,
.sn-legal-section li {
  color: var(--sn-text);
  line-height: 1.75;
}
.sn-legal-section ul {
  padding-left: 1.15rem;
  margin-bottom: 1rem;
}
.sn-legal-section li + li {
  margin-top: 0.35rem;
}

@media (max-width: 991.98px) {
  .sn-legal-toc {
    position: static;
  }
}

.recipe-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--sn-shadow);
  border: 0;
}

.recipe-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
}
.recipe-meta-item {
  background: #fff;
  border-radius: 0;
  padding: 0.85rem;
  text-align: center;
  box-shadow: var(--sn-shadow);
  border: 1px solid var(--sn-line);
  border-top: 3px solid var(--sn-primary);
}
.recipe-meta-item strong { display: block; font-size: 1.05rem; color: var(--sn-heading); }
.recipe-meta-item span { font-size: 0.8rem; color: var(--sn-muted); }

.recipe-section {
  background: #fff;
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: var(--sn-shadow);
  margin-bottom: 1.25rem;
  border: 1px solid var(--sn-line);
}

.pricing-card {
  position: relative;
  background: #fff;
  border-radius: 0;
  padding: 2rem 1.75rem;
  box-shadow: var(--sn-shadow);
  border: 1px solid var(--sn-line);
  border-top: 4px solid var(--sn-primary);
}
.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--sn-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sn-promo-banner {
  background: rgba(64, 186, 55, 0.08);
  border: 1px solid rgba(64, 186, 55, 0.35);
  border-left: 4px solid var(--sn-primary);
  border-radius: 0;
  padding: 1.1rem 1.2rem;
}

.sn-promo-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--sn-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  margin-bottom: 0.55rem;
}

.sn-promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sn-promo-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}
.sn-promo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--sn-primary);
}

.sn-promo-daily {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sn-primary-dark);
  background: rgba(64, 186, 55, 0.1);
  border: 1px solid rgba(64, 186, 55, 0.28);
  border-radius: 0;
  padding: 0.55rem 0.9rem;
}
.sn-promo-daily i { color: var(--sn-primary); }

.sn-hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  margin: 0 0 1.35rem;
  padding: 0;
  max-width: 36rem;
}
.sn-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sn-hero-trust i {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--sn-primary);
  color: #fff;
  font-size: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-amount .price {
  font-family: var(--sn-font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--sn-heading);
  line-height: 1;
}
.pricing-amount .interval {
  color: var(--sn-muted);
  font-size: 1.1rem;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-features li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--sn-line);
}
.pricing-features li:last-child { border-bottom: 0; }

.recipe-paywall {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(243, 245, 248, 0.25), rgba(243, 245, 248, 0.96)),
    repeating-linear-gradient(
      -8deg,
      rgba(64, 186, 55, 0.05),
      rgba(64, 186, 55, 0.05) 12px,
      transparent 12px,
      transparent 24px
    );
  border: 1px solid var(--sn-line);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.recipe-paywall-inner {
  max-width: 520px;
  padding: 2.5rem 1.5rem;
  color: var(--sn-text);
}
.recipe-paywall-inner .fa-lock { color: var(--sn-primary); }

.breadcrumb a { color: var(--sn-primary); }

.admin-sidebar {
  background: linear-gradient(180deg, #141414, #2d2d2d);
  min-height: 100vh;
  color: #fff;
}
.admin-sidebar a {
  color: rgba(255,255,255,0.85);
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 0;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(64, 186, 55, 0.22);
  color: #fff;
}
.stat-card {
  background: #fff;
  border-radius: 0;
  padding: 1.25rem;
  box-shadow: var(--sn-shadow);
  border: 1px solid var(--sn-line);
  border-left: 3px solid var(--sn-primary);
}
.stat-card .num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sn-heading);
  font-family: var(--sn-font-heading);
}

@media print {
  .sn-navbar, .sn-footer, .no-print, .sn-save-btn { display: none !important; }
  body { background: #fff; }
  .recipe-section { box-shadow: none; border: 1px solid #ddd; }
}

@media (max-width: 576px) {
  .sn-hero { min-height: 72vh; }
  .sn-hero-search { flex-direction: column; }
  .sn-hero-search .btn { width: 100%; }
  .sn-feat-cats { margin-top: 1.5rem; }
}
