/* Namma Coffee blog — /blog, /blog/category/*, /blog/:slug
   Fonts: Open Sans for headings (loaded in the blog templates' head), Inter for everything else. Needs Bootstrap 5. */

:root {
  --nc-bg: #fbf6ee;
  --nc-surface: #fffdf9;
  --nc-side: #f7efe3;
  --nc-border: #eadfce;
  --nc-heading: #1e2a1f;
  --nc-text: #3d3a35;
  --nc-muted: #6b625a; /* dark enough for small text on cream (WCAG AA) */
  --nc-brown: #6b3a1f;
  --nc-brown-dark: #552d17;
  --nc-pill: #f5c97b;
  --nc-pill-text: #4a2a14;
  --nc-radius: 10px;
  --nc-display: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif; /* headings */
  --nc-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* body text */
}

.nc-blog {
  background: var(--nc-bg);
  color: var(--nc-text);
  font-family: var(--nc-sans);
  padding-bottom: 64px;
}
.nc-blog a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.nc-hero {
  background: url("/images/blog/blog_bg.webp") center /
    cover no-repeat;
  padding: 48px 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
}
.nc-hero .container {
  position: relative;
  width: 100%;
}
.nc-hero-text {
  max-width: 560px;
}

.nc-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--nc-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--nc-brown);
  margin-bottom: 8px;
}
.nc-eyebrow::before,
.nc-eyebrow::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--nc-brown);
}
.nc-eyebrow a:hover {
  text-decoration: underline;
}

.nc-hero h1 {
  font-family: var(--nc-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  color: var(--nc-heading);
  margin: 0 0 14px;
}
.nc-hero-intro {
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 22px;
}

/* ---------- Buttons ---------- */
.nc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--nc-brown);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s;
}
.nc-btn:hover {
  background: var(--nc-brown-dark);
}
.nc-btn i {
  font-size: 0.75rem;
}
.nc-btn-block {
  display: flex;
  width: 100%;
  border-radius: 8px;
}

/* ---------- Layout ---------- */
.nc-blog-body {
  padding-top: 24px;
}

/* ---------- Category chips ---------- */
.nc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.nc-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--nc-border);
  background: var(--nc-surface);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.nc-chip:hover {
  border-color: var(--nc-brown);
}
.nc-chip.active {
  background: var(--nc-brown);
  border-color: var(--nc-brown);
  color: #fff !important;
}

/* ---------- Post cards ---------- */
.nc-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--nc-surface);
  border-radius: var(--nc-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 35, 15, 0.06),
    0 4px 16px rgba(60, 35, 15, 0.06);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(60, 35, 15, 0.08),
    0 10px 24px rgba(60, 35, 15, 0.1);
}

.nc-card-img {
  aspect-ratio: 16 / 9;
  background: var(--nc-side);
  overflow: hidden;
}
.nc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nc-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 18px 16px;
}

.nc-pill {
  position: absolute;
  top: -15px;
  left: 14px;
  z-index: 2; /* sits on the image edge, above .stretched-link */
  background: var(--nc-pill);
  color: var(--nc-pill-text) !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.nc-pill:hover {
  filter: brightness(0.96);
}

.nc-card-title {
  font-family: var(--nc-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--nc-heading);
  margin: 0 0 8px;
}
.nc-card:hover .nc-card-title a {
  color: var(--nc-brown);
}
.nc-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--nc-muted);
  margin-bottom: 14px;
}

.nc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--nc-muted);
}
.nc-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nc-empty {
  padding: 40px 0;
  color: var(--nc-muted);
}

/* ---------- Pagination ---------- */
.nc-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 40px;
}
.nc-page {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--nc-border);
  background: var(--nc-surface);
  font-size: 0.9rem;
  font-weight: 500;
}
a.nc-page:hover {
  border-color: var(--nc-brown);
}
.nc-page.current {
  background: var(--nc-brown);
  border-color: var(--nc-brown);
  color: #fff;
}
.nc-page-gap {
  border: 0;
  background: none;
  min-width: 20px;
}

/* ---------- Sidebar ---------- */
.nc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nc-side-box {
  background: var(--nc-side);
  border: 1px solid var(--nc-border);
  border-radius: var(--nc-radius);
  padding: 20px;
}
.nc-side-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nc-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--nc-heading);
  margin: 0 0 12px;
}
.nc-side-title::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--nc-brown);
}
.nc-side-box p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.nc-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nc-cat-list li + li {
  margin-top: 10px;
}
.nc-cat-list a {
  font-size: 0.9rem;
}
.nc-cat-list a:hover,
.nc-cat-list a.active {
  color: var(--nc-brown);
  font-weight: 600;
}
.nc-count {
  color: var(--nc-muted);
  margin-left: 8px;
  font-weight: 400;
}

.nc-social {
  display: flex;
  gap: 10px;
}
.nc-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nc-surface);
  border: 1px solid var(--nc-border);
  font-size: 1rem;
  color: var(--nc-heading);
}
.nc-social a:hover {
  border-color: var(--nc-brown);
  color: var(--nc-brown);
}

/* Optional temple line art at the bottom of the Follow box:
.nc-side-follow { padding-bottom: 90px; background: var(--nc-side) url('/images/blog/temple-line.svg') bottom center / 100% auto no-repeat; } */

/* ======================================================================
   Single post (/blog/:slug)
   ====================================================================== */
[hidden] {
  display: none !important;
}

.nc-post {
  --nc-green: #1f3a2b;
  --nc-amber: #c4862b;
  padding-bottom: 72px;
  padding-top: 20px;
}

/* Reading progress bar */
.nc-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1080;
  pointer-events: none;
}
.nc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--nc-pill), var(--nc-brown));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Header ---------- */
.nc-post-header {
  padding-top: 20px;
}

.nc-breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 18px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.nc-breadcrumb .breadcrumb-item {
  white-space: nowrap;
  flex: none;
}
.nc-breadcrumb .breadcrumb-item.active {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--nc-muted);
}
.nc-breadcrumb a:hover {
  color: var(--nc-brown);
}
.nc-breadcrumb .fa-home {
  font-size: 0.75rem;
  margin-right: 2px;
}

.nc-tag {
  display: inline-block;
  margin-bottom: 12px;
  background: var(--nc-amber);
  color: #fff !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.nc-tag:hover {
  background: var(--nc-brown);
}

.nc-post-header h1 {
  font-family: var(--nc-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  color: var(--nc-green);
  margin: 0 0 10px;
}
.nc-post-meta {
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.nc-post-figure {
  margin: 0 0 28px;
}
.nc-post-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 14px;
}

/* ---------- Article ---------- */
.nc-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--nc-text);
  margin-bottom: 20px;
}

.nc-post-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--nc-text);
}
.nc-post-body > *:first-child {
  margin-top: 0;
}
.nc-post-body p {
  margin: 0 0 1.2em;
}

.nc-post-body h2,
.nc-post-body h3 {
  font-family: var(--nc-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nc-green);
  line-height: 1.2;
  scroll-margin-top: 100px;
}
.nc-post-body h2 {
  font-size: 1.5rem;
  margin: 1.8em 0 0.6em;
}
.nc-post-body h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.5em;
}

.nc-post-body a {
  color: var(--nc-brown);
  text-decoration: underline;
  text-decoration-color: rgba(107, 58, 31, 0.35);
  text-underline-offset: 3px;
}
.nc-post-body a:hover {
  text-decoration-color: var(--nc-brown);
}
.nc-post-body strong {
  color: var(--nc-heading);
}

/* Plain lists */
.nc-post-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.4em;
}
.nc-post-body ul > li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.5em;
}
.nc-post-body ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nc-amber);
}

.nc-post-body ol {
  padding-left: 1.4em;
  margin: 0 0 1.4em;
}
.nc-post-body ol > li {
  margin-bottom: 0.5em;
  padding-left: 4px;
}
.nc-post-body ol > li::marker {
  color: var(--nc-brown);
  font-weight: 600;
}

/* Quote */
.nc-post-body blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  background: var(--nc-side);
  border-left: 4px solid var(--nc-amber);
  border-radius: 0 12px 12px 0;
  font-family: var(--nc-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--nc-green);
}
.nc-post-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Images; an italic line straight after an image works as a caption */
.nc-post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.6em 0 0.5em;
}
.nc-post-body p:has(> img) + p > em:only-child {
  display: block;
  font-size: 0.85rem;
  color: var(--nc-muted);
  margin-top: -0.6em;
}

/* Tables */
.nc-post-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.8em 0;
  font-size: 0.92rem;
  border: 1px solid var(--nc-border);
  border-radius: 12px;
  overflow: hidden;
}
.nc-post-body th {
  background: var(--nc-brown);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
}
.nc-post-body td {
  padding: 11px 14px;
  border-top: 1px solid var(--nc-border);
  background: var(--nc-surface);
}
.nc-post-body tr:nth-child(even) td {
  background: var(--nc-side);
}

.nc-post-body hr {
  border: 0;
  border-top: 1px solid var(--nc-border);
  opacity: 1;
  margin: 2.2em 0;
}
.nc-post-body code {
  background: var(--nc-side);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--nc-brown-dark);
}

/* ::: tip */
.nc-post-body .nc-tip {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 1.8em;
  padding: 16px 20px 16px 84px;
  min-height: 72px;
  background: var(--nc-side);
  border: 1px solid var(--nc-border);
  border-radius: 12px;
  font-family: var(--nc-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--nc-brown);
}
.nc-post-body .nc-tip::before {
  /* cup icon (Font Awesome mug-hot) */
  content: "\f7b6";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-style: normal;
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--nc-amber);
}
.nc-post-body .nc-tip::after {
  /* divider next to the icon */
  content: "";
  position: absolute;
  left: 66px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--nc-border);
}
.nc-post-body .nc-tip p {
  margin: 0;
}
.nc-post-body .nc-tip strong {
  color: inherit;
}

/* ::: checklist  ("What you need") */
.nc-post-body .nc-checklist {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 20px;
  margin: 0 0 1.8em;
  padding: 18px 20px;
  background: var(--nc-surface);
  border: 1px solid var(--nc-border);
  border-radius: 12px;
}
.nc-post-body .nc-checklist ul {
  grid-column: 1;
  margin: 0;
}
.nc-post-body .nc-checklist ul > li {
  padding-left: 30px;
  margin-bottom: 0.45em;
  font-size: 0.95rem;
}
.nc-post-body .nc-checklist ul > li::before {
  content: "\2713";
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nc-brown);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.nc-post-body .nc-checklist p {
  grid-column: 1;
  margin: 0 0 0.6em;
}
.nc-post-body .nc-checklist p:has(> img) {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}
.nc-post-body .nc-checklist img {
  margin: 0;
  max-width: 180px;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
}

/* ::: steps  (numbered step cards, each can start with an image) */
.nc-post-body .nc-steps ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8em;
  counter-reset: step;
}
.nc-post-body .nc-steps ol > li {
  counter-increment: step;
  position: relative;
  margin: 0 0 12px 46px;
  padding: 12px 16px;
  min-height: 80px;
  background: var(--nc-surface);
  border: 1px solid var(--nc-border);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--nc-muted);
  display: flow-root; /* contains the floated image */
}
.nc-post-body .nc-steps ol > li::before {
  content: counter(step);
  position: absolute;
  left: -46px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nc-surface);
  border: 2px solid var(--nc-brown);
  color: var(--nc-brown);
  font-size: 0.85rem;
  font-weight: 700;
}
.nc-post-body .nc-steps ol > li::after {
  /* line linking the numbers */
  content: "";
  position: absolute;
  left: -32px;
  top: calc(50% + 17px);
  height: calc(100% - 22px);
  width: 2px;
  background: var(--nc-border);
}
.nc-post-body .nc-steps ol > li:last-child::after {
  display: none;
}
.nc-post-body .nc-steps li img {
  float: left;
  width: 110px;
  height: 56px;
  object-fit: cover;
  margin: 0 16px 0 0;
  border-radius: 8px;
}
.nc-post-body .nc-steps li strong {
  display: block;
  font-family: var(--nc-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--nc-green);
  margin-bottom: 2px;
}
.nc-post-body .nc-steps li p {
  margin: 0;
}

/* ---------- Sidebar ---------- */
.nc-post-aside .nc-sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nc-side-card {
  background: var(--nc-surface);
  border: 1px solid var(--nc-border);
  border-radius: 14px;
  padding: 20px 22px;
}

.nc-toc-title {
  font-family: var(--nc-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nc-brown);
  margin: 0 0 10px;
}
.nc-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nc-toc-list a {
  display: block;
  padding: 6px 0 6px 14px;
  border-left: 3px solid transparent;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--nc-text);
  transition: color 0.15s, border-color 0.15s;
}
.nc-toc-list a:hover {
  color: var(--nc-brown);
}
.nc-toc-list a.active {
  color: var(--nc-brown);
  font-weight: 600;
  border-left-color: var(--nc-brown);
}

.nc-toc-mobile {
  display: none;
}
.nc-toc-mobile summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nc-brown);
}
.nc-toc-mobile summary::-webkit-details-marker {
  display: none;
}
.nc-toc-mobile summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  line-height: 1;
}
.nc-toc-mobile[open] summary::after {
  content: "\2013";
}
.nc-toc-mobile[open] .nc-toc-list {
  margin-top: 10px;
}

.nc-promo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  /* Cream backdrop with gold leaves in the top-right corner; the colour shows while the image loads */
  background: #f8e7d2 url("/images/blog/side-card-bg.webp") right top / cover
    no-repeat;
  border-color: #f0dcc3;
}
.nc-promo-text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.nc-promo h2 {
  font-family: var(--nc-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--nc-green);
  margin: 0 0 8px;
}
.nc-promo p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 16px;
}
.nc-promo.has-image .nc-promo-text {
  padding-right: 0;
}
.nc-promo-img {
  flex: none;
  width: 96px;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  align-self: flex-end;
  margin: 0 -6px -8px 0;
}
.nc-btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  border-radius: 8px;
}

/* ---------- Full-width sections ---------- */
.nc-post-section {
  margin-top: 44px;
  scroll-margin-top: 90px;
}
.nc-section-title {
  font-family: var(--nc-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.5rem;
  color: var(--nc-green);
  margin: 0 0 18px;
}

.nc-blend-card {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 100%;
  padding: 18px 22px;
  background: #F3E5D2;
  border: 1px solid #E8D5BD;
  border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nc-blend-card:hover {
  border-color: var(--nc-brown);
  box-shadow: 0 10px 24px -14px rgba(60, 35, 15, 0.35);
}
.nc-blend-img {
  flex: none;
  width: 120px;
}
.nc-blend-img img {
  display: block;
  width: 100%;
  height: auto;
}
.nc-blend-text {
  min-width: 0;
}
.nc-blend-text h3 {
  font-family: var(--nc-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--nc-green);
  margin: 0 0 2px;
}
.nc-blend-ratio {
  font-size: 0.88rem;
  color: var(--nc-text);
  margin: 0 0 10px;
}
.nc-blend-blurb {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--nc-muted);
  margin: 0 0 12px;
}
.nc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nc-brown) !important;
}
.nc-link i {
  font-size: 0.65rem;
}
.nc-link:hover {
  text-decoration: underline !important;
}

/* ---------- Post: tablets and phones ---------- */
@media (max-height: 760px) {
  .nc-post-aside .nc-sticky {
    position: static;
  } /* stack is too tall to stay pinned */
}
@media (max-width: 991.98px) {
  .nc-toc-mobile:not([hidden]) {
    display: block;
    background: var(--nc-surface);
    border: 1px solid var(--nc-border);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
  }
  .nc-toc-desktop {
    display: none !important;
  }
  .nc-post-aside .nc-sticky {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767.98px) {
  .nc-breadcrumb .breadcrumb-item.active {
    display: none;
  } /* the title is right below */
  .nc-post-figure img {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .nc-post-aside .nc-sticky {
    grid-template-columns: 1fr;
  }
  .nc-post-body .nc-checklist {
    grid-template-columns: 1fr;
  }
  .nc-post-body .nc-checklist p:has(> img) {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }
  .nc-post-body .nc-steps li img {
    width: 84px;
    height: 56px;
    margin-right: 12px;
  }
  .nc-post-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  } /* wide tables scroll sideways */
  .nc-blend-card {
    gap: 16px;
    padding: 16px;
  }
  .nc-blend-img {
    width: 90px;
  }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
  .nc-hero {
    min-height: 0;
    padding: 32px 0;
    background-position: 30% center;
  }
  .nc-hero::before {
    background: rgba(251, 246, 238, 0.9);
  } /* keep text readable over the photo */
  .nc-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    scrollbar-width: none;
  }
  .nc-chips::-webkit-scrollbar {
    display: none;
  }
  .nc-sidebar {
    margin-top: 24px;
  }
}

/* Smooth jump to sections from the table of contents */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  .nc-card,
  .nc-card:hover {
    transition: none;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
