:root {
  --sn-midnight-oak: #2c1a0a;
  --sn-dark-walnut: #5c3418;
  --sn-chestnut: #8b4e22;
  --sn-terracotta: #b8652a;
  --sn-warm-amber: #d4843c;
  --sn-honey: #e8a85a;
  --sn-warm-cream: #f5d4a0;
  --sn-parchment: #faf0e0;
  --sn-sienna: #96583a;
  --sn-sage: #4a8a60;
}

html { scroll-behavior: smooth; }
body { background: var(--sn-parchment) !important; }

.solo-wordmark { display: inline; font: inherit; font-weight: 800; white-space: nowrap; }
.solo-wordmark__solo { color: var(--sn-terracotta) !important; }
.solo-wordmark__nutrition { color: var(--sn-sage) !important; }
.solo-official-mark { display: inline-block; width: 44px; height: 44px; object-fit: contain; vertical-align: middle; }
.solo-official-lockup { display: block; width: min(280px, 100%); height: auto; margin-inline: auto; }

.sn-nav,
.top-nav,
body > header.header,
body > nav:not(.solo-shell) { display: none !important; }

.solo-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(44, 26, 10, 0.12);
  background: rgba(250, 240, 224, 0.96);
  box-shadow: 0 2px 8px rgba(44, 26, 10, 0.08);
  backdrop-filter: blur(12px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.solo-shell__brand { display: inline-flex; align-items: center; text-decoration: none; }
.solo-shell__brand img { width: 378px; max-width: 100%; height: auto; display: block; }
.solo-shell__links { display: flex; align-items: center; gap: 8px; }
.solo-shell__links a {
  color: var(--sn-midnight-oak);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.solo-shell__links a:hover,
.solo-shell__links a:focus-visible { color: var(--sn-terracotta); background: var(--sn-warm-cream); outline: none; }
.solo-shell__links .solo-shell__cta { color: var(--sn-parchment); background: var(--sn-terracotta); }
.solo-shell__links .solo-shell__cta:hover,
.solo-shell__links .solo-shell__cta:focus-visible { color: var(--sn-parchment); background: var(--sn-dark-walnut); }

.solo-shell__toggle {
  display: none;
  border: 1px solid rgba(44, 26, 10, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--sn-midnight-oak);
  padding: 9px 12px;
  font: 700 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.solo-skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 1100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--sn-midnight-oak);
  color: var(--sn-parchment);
  font-weight: 700;
}
.solo-skip:focus { top: 12px; }

footer.solo-footer {
  display: grid !important;
  grid-template-columns: 378px minmax(220px, 1fr) auto !important;
  column-gap: 24px !important;
  row-gap: 28px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 36px clamp(24px, 5vw, 80px) !important;
  border: 0 !important;
  border-top: 1px solid rgba(44, 26, 10, 0.12) !important;
  background: var(--sn-parchment) !important;
  color: var(--sn-sienna) !important;
  box-shadow: none !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  text-align: left !important;
}

.solo-footer__brand { display: block !important; width: 378px !important; max-width: 100% !important; margin: 0 !important; text-decoration: none !important; }
.solo-footer__brand img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; margin: 0 !important; }
.solo-footer__tagline { margin: 0 !important; color: var(--sn-sienna) !important; font-size: 14px !important; line-height: 1.5 !important; text-align: center !important; }
.solo-footer__contact { display: grid !important; justify-items: end !important; gap: 8px !important; color: var(--sn-chestnut) !important; font-size: 13px !important; line-height: 1.5 !important; text-align: right !important; }
.solo-footer__contact a { color: var(--sn-terracotta) !important; font-size: 14px !important; font-weight: 700 !important; text-decoration: underline !important; }
.solo-footer__contact span { color: var(--sn-chestnut) !important; font-weight: 700 !important; }
.solo-footer__legal { grid-column: 1 / -1 !important; margin: 0 0 0 16px !important; color: var(--sn-chestnut) !important; font-size: 12px !important; line-height: 1.5 !important; text-align: left !important; }

/* Use the sage brand colour for the primary title on every content hero. */
.sn-hero h1,
.page-hero h1,
.recipe-title,
.page-title,
body > header h1 {
  color: var(--sn-sage) !important;
}

/* Keep recipe photography inside the same pane as the recipe content. */
.recipe-hero {
  width: calc(100% - 48px) !important;
  max-width: 860px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 14px;
}

.recipe-hero img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.card-thumb,
.card-thumb img {
  max-width: 100%;
}

.card-thumb img,
.recipe-hero ~ .container img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .solo-shell { flex-wrap: wrap; min-height: 68px; }
  .solo-shell__brand img { width: 320.4px; }
  .solo-shell__toggle { display: inline-flex; }
  .solo-shell__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 4px;
  }
  .solo-shell__links[data-open="true"] { display: flex; }
  .solo-shell__links a { padding: 12px; }
  footer.solo-footer { grid-template-columns: 1fr !important; row-gap: 20px !important; }
  .solo-footer__tagline { text-align: left !important; }
  .solo-footer__contact { justify-items: start !important; text-align: left !important; }
  .solo-footer__legal { grid-column: auto !important; margin-left: 14px !important; }
}

@media print {
  .solo-shell, .solo-skip, .solo-footer { display: none !important; }
}
