/*
Theme Name: Bella Insurance Agency Blog
Description: Blog theme for Bella Insurance Agency. Renders the main site's own header, footer, styles.css and main.js live, so the blog always matches the site. Only blog-specific layout lives here, built on the main site's CSS variables.
Author: Bella Insurance Agency
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: newcover
*/

/* ============================================================
   Bella Insurance Agency Blog · style.css
   Loaded after the main site's /styles.css. Everything below
   uses its tokens (--brand-*, --ink-*, --radius*, --shadow*,
   --font-*), so brand changes there carry through here.
   ============================================================ */

/* ---------- WordPress essentials ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  display: block;
  top: 5px;
  left: 5px;
  z-index: 100000;
  padding: 12px 20px;
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.alignleft  { float: left;  margin: 6px 28px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 28px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption, .gallery-caption { max-width: 100%; }
.sticky, .bypostauthor { /* hooks for WordPress; no extra styling */ }
.ncb-flip { transform: scaleX(-1); }

/* Shown to admins only if the main site's partials can't be found. */
.ncb-shell-missing {
  padding: 14px 24px;
  background: var(--brand-50, #fff7fc);
  border-bottom: 2px solid var(--brand-500, #fd46b0);
  color: var(--brand-700, #c71f80);
  font: 600 14px/1.5 system-ui, sans-serif;
}

/* WordPress admin bar: keep the sticky header and sidebar below it. */
.admin-bar .site-header { top: 32px; }
.admin-bar .page-sidebar { top: calc(var(--header-h) + 56px); }
.admin-bar .mobile-drawer { z-index: 100000; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  /* The admin bar scrolls away on phones. */
  .admin-bar .site-header { top: 0; }
}

/* ============================================================
   HERO (extends the main site's .page-hero)
   ============================================================ */
.ncb-hero .section-eyebrow { margin-bottom: 12px; }
.ncb-hero a.section-eyebrow { transition: color .15s ease; }
.ncb-hero a.section-eyebrow:hover { color: var(--ink-900); }
.ncb-hero-article .page-hero-inner { max-width: 880px; }
/* Article titles are long, and the H1 repeats them: keep the crumb to one line. */
.ncb-hero .breadcrumbs .crumb-current {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ncb-hero-search { margin-top: 4px; max-width: 580px; }
.ncb-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 20px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.ncb-search:focus-within { border-color: var(--brand-300); box-shadow: 0 0 0 4px rgba(253,70,176, .18), var(--shadow); }
.ncb-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  padding: 8px 0;
}
.ncb-search-input::placeholder { color: var(--ink-400); }
.ncb-search-input::-webkit-search-cancel-button { cursor: pointer; }
.ncb-search-btn { flex-shrink: 0; box-shadow: none; }

/* ============================================================
   TOPIC CHIPS
   ============================================================ */
.ncb-topics {
  background: #fff;
  border-bottom: 1px solid var(--ink-100);
}
.ncb-chips {
  display: flex;
  gap: 8px;
  padding: 18px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ncb-chips::-webkit-scrollbar { display: none; }
.ncb-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-600);
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.ncb-chip:hover { color: var(--brand-700); border-color: var(--brand-300); background: var(--brand-50); }
.ncb-chip.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* ============================================================
   LISTING
   ============================================================ */
.ncb-listing { padding-top: 64px; padding-bottom: 96px; }
.ncb-listing-head { margin-bottom: 24px; }
.ncb-listing-head .section-eyebrow { margin-bottom: 0; }
.ncb-feature + .ncb-listing-head { margin-top: 72px; }

/* Featured (newest) article */
.ncb-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ncb-feature:hover { transform: translateY(-4px); border-color: var(--brand-100); box-shadow: var(--shadow); }
.ncb-feature-media { position: relative; min-height: 400px; background: var(--ink-100); overflow: hidden; }
.ncb-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ncb-feature:hover .ncb-feature-media img { transform: scale(1.03); }
.ncb-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 48px;
}
.ncb-feature-body .page-kicker { margin-bottom: 0; }
.ncb-feature-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.ncb-feature-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ncb-feature:hover .ncb-feature-title a { color: var(--brand-700); }
.ncb-feature-excerpt { font-size: 17px; color: var(--ink-500); margin: 0; }
.ncb-feature .ncb-card-meta { margin-top: 2px; padding-top: 0; }
.ncb-feature .service-link { margin-top: 6px; padding-top: 0; }
.ncb-feature:hover .service-link { gap: 10px; transition: gap .15s ease; }

/* Article cards */
.ncb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ncb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ncb-card:hover { transform: translateY(-4px); border-color: var(--brand-100); box-shadow: var(--shadow); }
.ncb-card-media { aspect-ratio: 16 / 10; background: var(--ink-100); overflow: hidden; }
.ncb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ncb-card:hover .ncb-card-media img { transform: scale(1.04); }
.ncb-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background:
    radial-gradient(circle at 85% 15%, rgba(253,70,176, .25), transparent 45%),
    linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  color: var(--brand-500);
}
.ncb-card-placeholder svg { width: 44px; height: 44px; }
.ncb-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 24px 26px 26px;
}
.ncb-card-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.ncb-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.ncb-card-title a { transition: color .15s ease; }
.ncb-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ncb-card:hover .ncb-card-title a { color: var(--brand-700); }
.ncb-card-excerpt {
  margin: 0;
  font-size: 15px;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncb-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-400);
}
.ncb-card-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ncb-card-meta .ic-sm { color: var(--ink-300); }

/* Pagination */
.ncb-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.ncb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-700);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ncb-pagination a.page-numbers:hover { border-color: var(--ink-400); background: var(--ink-50); }
.ncb-pagination .page-numbers.current { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.ncb-pagination .page-numbers.dots { border: 0; background: none; min-width: 0; padding: 0 4px; }

/* Empty state */
.ncb-empty { max-width: 520px; margin: 0 auto; padding: 32px 0; text-align: center; }
.ncb-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--brand-50);
  color: var(--brand-500);
}
.ncb-empty-icon svg { width: 26px; height: 26px; }
.ncb-empty h2 { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.ncb-empty p { color: var(--ink-500); margin: 0 0 24px; }

/* ============================================================
   ARTICLE BODY (.ncb-prose)
   Restores the typography the main site's reset strips
   (lists, links, tables…) for editor-written content.
   ============================================================ */
.ncb-prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-600);
}
.ncb-prose::after { content: ""; display: table; clear: both; }
.ncb-prose > :first-child { margin-top: 0; }
.ncb-prose > p:first-child { font-size: 19px; color: var(--ink-700); }
.page-main .ncb-prose p { margin: 0 0 22px; }
.page-main .ncb-prose p:last-child { margin-bottom: 0; }
.ncb-prose strong, .ncb-prose b { color: var(--ink-900); font-weight: 700; }

.page-main .ncb-prose h2 { margin: 52px 0 16px; }
.ncb-prose h3 { font-size: 22px; font-weight: 800; margin: 38px 0 12px; }
.ncb-prose h4 { font-size: 18px; font-weight: 800; margin: 30px 0 10px; }
.ncb-prose h5, .ncb-prose h6 { font-size: 15px; font-weight: 800; margin: 26px 0 8px; }
.ncb-prose h2, .ncb-prose h3, .ncb-prose h4 { scroll-margin-top: calc(var(--header-h) + 24px); }
.admin-bar .ncb-prose h2, .admin-bar .ncb-prose h3, .admin-bar .ncb-prose h4 { scroll-margin-top: calc(var(--header-h) + 56px); }

.ncb-prose a:not(.wp-block-button__link):not(.wp-element-button) {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand-100);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.ncb-prose a:not(.wp-block-button__link):not(.wp-element-button):hover { color: var(--brand-700); text-decoration-color: currentColor; }

.ncb-prose ul, .ncb-prose ol { margin: 0 0 22px; padding-left: 1.4em; }
.ncb-prose ul { list-style: disc; }
.ncb-prose ol { list-style: decimal; }
.ncb-prose li { margin: 0 0 8px; padding-left: 4px; }
.ncb-prose li::marker { color: var(--brand-700); font-weight: 700; }
.ncb-prose li > ul, .ncb-prose li > ol { margin: 8px 0 0; }

.ncb-prose blockquote,
.ncb-prose .wp-block-quote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--brand-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--ink-50);
}
.ncb-prose blockquote p {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-900);
}
.ncb-prose blockquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; font-weight: 600; color: var(--ink-400); }
.ncb-prose .wp-block-pullquote { margin: 40px 0; padding: 32px 0; border-top: 4px solid var(--brand-500); border-bottom: 1px solid var(--ink-100); text-align: center; }
.ncb-prose .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; background: none; }
.ncb-prose .wp-block-pullquote p { font-size: 24px; }

.ncb-prose img { height: auto; border-radius: var(--radius); }
.ncb-prose figure { margin: 32px 0; }
.ncb-prose figcaption,
.ncb-prose .wp-caption-text { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-400); text-align: left; }
.ncb-prose .alignwide, .ncb-prose .alignfull { width: 100%; max-width: 100%; }
.ncb-prose .aligncenter { text-align: center; }
.ncb-prose .aligncenter img { margin: 0 auto; }

.ncb-prose hr, .ncb-prose .wp-block-separator {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--ink-200);
}

.ncb-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.ncb-prose .wp-block-table {
  overflow-x: auto;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
}
.ncb-prose .wp-block-table table { min-width: 520px; }
.ncb-prose th, .ncb-prose td { padding: 14px 20px; text-align: left; border: 0; }
.ncb-prose thead th {
  background: var(--brand-100);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ncb-prose tbody tr { border-top: 1px solid var(--ink-100); }
.ncb-prose tbody tr:nth-child(even) { background: var(--ink-50); }
.ncb-prose .wp-block-table figcaption { padding: 0 20px 14px; }

.ncb-prose code, .ncb-prose kbd {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ink-100);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  color: var(--ink-900);
}
.ncb-prose pre {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--ink-100);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
}
.ncb-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

.ncb-prose .wp-block-button__link,
.ncb-prose .wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  transition: transform .12s ease, background .2s ease;
}
.ncb-prose .wp-block-button__link:hover { background: var(--brand-600); transform: translateY(-1px); }
/* Secondary buttons are black, as on the main site */
.ncb-prose .is-style-outline .wp-block-button__link {
  background: var(--ink-900);
  color: #fff;
  box-shadow: none;
}
.ncb-prose .is-style-outline .wp-block-button__link:hover { background: var(--ink-700); }
.ncb-prose .wp-block-buttons { margin: 28px 0; }
.ncb-prose .wp-block-embed { margin: 32px 0; }
.ncb-prose .wp-block-embed iframe { border-radius: var(--radius); }

/* ---------- After the article ---------- */
.ncb-page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; font-weight: 700; }
.ncb-page-links .post-page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--ink-200);
}
.ncb-page-links .post-page-numbers.current { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

.ncb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.ncb-tags .ncb-chip { padding: 6px 14px; font-size: 13px; }

.ncb-author {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 48px;
  padding: 26px 28px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  background: var(--ink-50);
}
.ncb-author-avatar { width: 64px; height: 64px; border-radius: 50%; }
.ncb-author-avatar.is-logo { border-radius: 0; object-fit: contain; }
.ncb-author-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.ncb-author-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--ink-900); }
.ncb-author-name:hover { color: var(--brand-700); }
.page-main .ncb-author p { margin: 6px 0 0; font-size: 14.5px; }

.ncb-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.ncb-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.ncb-post-nav-link:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.ncb-post-nav-link.is-next { grid-column: 2; align-items: flex-end; text-align: right; }
.ncb-post-nav-dir {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.ncb-post-nav-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--ink-900); }

/* Sidebar topics */
.ncb-topics-card .ncb-chips { flex-wrap: wrap; padding: 0; overflow: visible; }
.ncb-topics-card .ncb-chip { padding: 6px 12px; font-size: 13px; }

/* ============================================================
   COMMENTS
   ============================================================ */
.ncb-comments { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--ink-100); }
.ncb-comments-title { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 20px; }
.ncb-comment-list, .ncb-comment-list .children { list-style: none; margin: 0; padding: 0; }
.ncb-comment-list .children { padding-left: 32px; }
.ncb-comment-list .comment-body {
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  background: #fff;
}
.ncb-comment-list .comment-author { display: flex; align-items: center; gap: 12px; }
.ncb-comment-list .comment-author .avatar { border-radius: 50%; }
.ncb-comment-list .comment-author .fn { font-style: normal; font-weight: 700; color: var(--ink-900); }
.ncb-comment-list .says { display: none; }
.ncb-comment-list .comment-meta { margin: 4px 0 10px 56px; font-size: 13px; color: var(--ink-400); }
.ncb-comment-list .comment-meta a { color: inherit; }
.ncb-comment-list .comment-content { font-size: 15px; }
.page-main .ncb-comment-list .comment-content p { margin: 0 0 10px; }
.ncb-comment-list .reply a { font-size: 13px; font-weight: 700; color: var(--brand-700); }
.ncb-comment-list .comment-awaiting-moderation { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-500); }

.ncb-comments .comment-respond { margin-top: 32px; }
.ncb-comments #cancel-comment-reply-link { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--brand-700); }
.ncb-comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ncb-comment-form > p { grid-column: 1 / -1; margin: 0 0 16px; }
.ncb-comment-form .comment-form-author { grid-column: 1; }
.ncb-comment-form .comment-form-email { grid-column: 2; }
.page-main .ncb-comment-form .comment-notes,
.page-main .ncb-comment-form .logged-in-as { font-size: 14px; color: var(--ink-500); }
.ncb-comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ink-700); }
.ncb-comment-form input[type="text"],
.ncb-comment-form input[type="email"],
.ncb-comment-form input[type="url"],
.ncb-comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ncb-comment-form textarea { min-height: 140px; resize: vertical; }
.ncb-comment-form input:focus,
.ncb-comment-form textarea:focus { outline: 0; border-color: var(--brand-300); box-shadow: 0 0 0 4px var(--brand-50); }
.ncb-comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.ncb-comment-form .comment-form-cookies-consent input { margin-top: 4px; accent-color: var(--brand-500); }
.ncb-comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 500; color: var(--ink-500); }
.ncb-comment-form .form-submit { margin-bottom: 0; }
.ncb-comments-closed { color: var(--ink-500); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.ncb-related {
  padding: 88px 0;
  background: var(--ink-50);
  border-top: 1px solid var(--ink-100);
}
.ncb-related .section-head { margin-bottom: 36px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .ncb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ncb-feature { grid-template-columns: 1fr; }
  .ncb-feature-media { min-height: 0; aspect-ratio: 16 / 9; }
  .ncb-feature-body { padding: 28px 26px 30px; }
}
@media (max-width: 720px) {
  .ncb-listing { padding-top: 40px; padding-bottom: 64px; }
  .ncb-feature + .ncb-listing-head { margin-top: 48px; }
  .ncb-grid { grid-template-columns: 1fr; }
  .ncb-prose { font-size: 16.5px; }
  .ncb-prose > p:first-child { font-size: 18px; }
  .ncb-prose .alignleft, .ncb-prose .alignright { float: none; margin: 24px 0; }
  .ncb-post-nav { grid-template-columns: 1fr; }
  .ncb-post-nav-link.is-next { grid-column: auto; align-items: flex-start; text-align: left; }
  .ncb-author { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .ncb-comment-form { grid-template-columns: 1fr; }
  .ncb-comment-form .comment-form-author,
  .ncb-comment-form .comment-form-email { grid-column: 1; }
  .ncb-comment-list .children { padding-left: 16px; }
  .ncb-related { padding: 64px 0; }
  .ncb-search-input { font-size: 16px; } /* stops iOS zooming on focus */
}
@media (max-width: 480px) {
  .ncb-search { padding-left: 16px; }
  .ncb-search-btn { padding: 10px 14px; }
}
