/* ════════════════════════════════════════════════════
   Sittysites blog / resource hub
   Loads AFTER styles.css and reuses its tokens.
   ════════════════════════════════════════════════════ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* reading progress */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--coral); z-index: 60; transition: width .1s linear;
}

/* ═════════ Masthead ═════════ */
.blog-masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
  text-align: center;
}
.blog-masthead .script { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.masthead-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--navy-deep);
  margin: 0 0 .35em;
  letter-spacing: -0.015em;
}
.masthead-title .pg-num {
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 600; color: var(--muted);
  vertical-align: middle; margin-left: 10px;
}
.masthead-intro {
  max-width: 62ch; margin: 0 auto;
  color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7;
}

/* ═════════ Category pills ═════════ */
/* matches the nav's glass, otherwise this bar reads as a solid slab sitting
   under a transparent one */
.pills-wrap {
  position: sticky; top: 83px; z-index: 20;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 10px 30px -26px rgba(47, 59, 74, .55);
  padding: 14px 0;
}
@supports not (backdrop-filter: blur(1px)) {
  .pills-wrap { background: rgba(255, 255, 255, .95); border-bottom-color: var(--line); }
}
.pills {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.pill span {
  /* --muted sits at 4.28:1 on cream-2, which is darker than cream; this
     badge needs the stronger ink to clear AA */
  font-size: .72rem; font-weight: 700; color: var(--ink-soft);
  background: var(--cream-2); border-radius: var(--r-pill); padding: 1px 7px;
}
.pill:hover { color: var(--navy-deep); border-color: var(--coral-soft); }
.pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill.is-active span { background: rgba(255,255,255,.2); color: #fff; }

/* ═════════ Layout ═════════ */
.blog-main { padding: 56px 32px 88px; }

/* ═════════ Featured post ═════════ */
.feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  align-items: stretch;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 72px;
}
/* min-width:0 on both tracks: a grid item's automatic minimum is its
   min-content size, which lets a child push the track wider than the card. */
.feature-media { position: relative; min-height: 380px; min-width: 0; }
.feature-body { min-width: 0; }
/* absolute fill, because height:100% resolves to auto against a grid-stretched
   parent — the image would set the card's height instead of cropping into it */
.feature-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.feature-body {
  padding: 48px 52px;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center;
}
.feature-flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 18px;
}
.feature-flag .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 4px rgba(212,149,149,.22);
}
.feature-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.9rem, 2.9vw, 2.7rem);
  line-height: 1.14; letter-spacing: -0.015em;
  color: var(--navy-deep); margin: 14px 0 .5em;
}
.feature-title a:hover { color: var(--coral-deep); }
.feature-excerpt {
  color: var(--ink-soft); font-size: 1.04rem; line-height: 1.7;
  margin: 0 0 22px; max-width: 46ch;
}
.feature-cta { margin-top: 26px; }
.feature-cta svg { transition: transform .22s cubic-bezier(.22, 1.15, .36, 1); }
.feature-cta:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .feature-cta svg, .feature-cta:hover svg { transition: none; transform: none; }
}

/* ═════════ Tags ═════════ */
.tag {
  /* --sage on --sage-bg measured 1.61:1 - the category label was barely
     readable. --sage-ink keeps the same family at 5.0:1. */
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage-ink); background: var(--sage-bg);
  padding: 5px 12px; border-radius: var(--r-pill);
  transition: background .18s ease, color .18s ease;
}
a.tag:hover { background: var(--sage-soft); color: var(--navy-deep); }

/* ═════════ Card grid ═════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-link { position: absolute; inset: 0; z-index: 2; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.42rem; line-height: 1.22; letter-spacing: -0.01em;
  color: var(--navy-deep); margin: 14px 0 .45em;
}
.card:hover .card-title { color: var(--coral-deep); }
.card-excerpt {
  color: var(--ink-soft); font-size: .95rem; line-height: 1.65;
  margin: 0 0 20px; flex: 1;
}
.empty { color: var(--muted); text-align: center; padding: 60px 0; grid-column: 1 / -1; }

/* image placeholders (used until a hero image is supplied) */
.is-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream-2), var(--sage-bg));
  position: relative; overflow: hidden;
}
.is-placeholder::before {
  content: ""; position: absolute; inset: -40%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), transparent 45%),
    radial-gradient(circle at 72% 68%, rgba(212,149,149,.35), transparent 48%);
}
.is-placeholder span {
  position: relative;
  font-family: var(--font-script); font-size: 1.9rem; font-weight: 700;
  color: var(--navy); opacity: .55;
}
.cat-agency-growth { background: linear-gradient(135deg, var(--cream-2), var(--coral-soft)); }
.cat-operations    { background: linear-gradient(135deg, var(--cream-2), var(--sage-soft)); }
.cat-marketing     { background: linear-gradient(135deg, var(--cream), #dfe6ee); }
.cat-sitter-management { background: linear-gradient(135deg, var(--cream-2), #e9dcd2); }
.cat-product-updates   { background: linear-gradient(135deg, var(--cream), var(--sage-bg)); }

/* ═════════ Post meta ═════════ */
.post-meta {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: .84rem; color: var(--muted); margin-top: auto;
}
.pm-author { font-weight: 600; color: var(--ink-soft); }
.pm-sep { opacity: .5; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  flex: none;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }

/* ═════════ Pagination ═════════ */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 64px; }
.pg {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.pg:hover { border-color: var(--coral-soft); color: var(--navy-deep); }
.pg.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ═════════ Post page ═════════ */
.post-head { background: var(--cream); border-bottom: 1px solid var(--line); padding: 52px 0 44px; }
.post-head-inner { max-width: 780px; text-align: center; }
.crumbs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  font-size: .82rem; color: var(--muted); margin-bottom: 22px;
}
.crumbs a { font-weight: 600; }
.crumbs a:hover { color: var(--coral-deep); }
.crumbs span { opacity: .5; }
.post-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.13; letter-spacing: -0.018em;
  color: var(--navy-deep); margin: 0 0 .42em;
}
.post-dek {
  font-size: 1.14rem; line-height: 1.62; color: var(--ink-soft);
  max-width: 60ch; margin: 0 auto 26px;
}
.post-head .post-meta { justify-content: center; }

/* 3:2 rather than a cinematic band: the photo library is portrait-shaped, and a
   wider header crops both subjects out of a vertical photo. Width-capped so a
   taller ratio does not push the article below the fold. */
.post-hero {
  margin: -34px auto 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 3 / 2;
  max-width: 940px;
  position: relative; background: var(--cream-2);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 28px 14px; font-size: .82rem; color: #fff;
  background: linear-gradient(transparent, rgba(47,59,74,.72));
}

/* body + sidebar */
.post-wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  gap: 72px;
  justify-content: center;
  padding-top: 60px; padding-bottom: 40px;
}
/* One sticky container for the whole sidebar. Sticking the TOC and the share
   row separately at the same offset makes them land on top of each other. */
.post-aside {
  position: sticky; top: 110px;
  align-self: start;                        /* grid items stretch by default */
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.toc {
  border-left: 2px solid var(--line);
  padding-left: 18px;
}
.toc-title {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 14px;
}
.toc ul { display: flex; flex-direction: column; gap: 10px; }
.toc a {
  font-size: .88rem; line-height: 1.4; color: var(--ink-soft);
  transition: color .18s ease;
}
.toc a:hover { color: var(--coral-deep); }
.toc li.lvl-3 { padding-left: 14px; }
.toc li.lvl-3 a { font-size: .82rem; color: var(--muted); }
.toc li.is-current a { color: var(--navy-deep); font-weight: 700; }

.share {
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; padding-left: 20px;
}
.share-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-right: 2px;
}
.share a, .copy-link {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-soft);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.share a:hover, .copy-link:hover { border-color: var(--coral); color: var(--coral-deep); }
.copy-link.is-copied { border-color: var(--sage); color: var(--sage); }

/* ═════════ Article typography ═════════ */
.post-body { font-size: 1.075rem; line-height: 1.78; color: #3d4a5a; }
.post-body > p:first-of-type { font-size: 1.16rem; line-height: 1.7; color: var(--ink); }
.post-body p { margin: 0 0 1.35em; }
.post-body h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.95rem; line-height: 1.24; letter-spacing: -0.012em;
  color: var(--navy-deep); margin: 2.2em 0 .6em; scroll-margin-top: 110px;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 1.22rem; color: var(--navy-deep);
  margin: 1.9em 0 .5em; scroll-margin-top: 110px;
}
.post-body h4 {
  font-size: 1.02rem; font-weight: 700; color: var(--navy);
  margin: 1.6em 0 .4em; text-transform: none;
}
.post-body a {
  color: var(--coral-deep); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: var(--coral-soft);
}
.post-body a:hover { color: var(--navy); text-decoration-color: var(--navy); }
.post-body strong { color: var(--navy-deep); font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 1.5em; padding-left: 4px; }
.post-body li { margin-bottom: .6em; padding-left: 26px; position: relative; }
.post-body ul li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral-soft);
}
.post-body ol { counter-reset: li; }
.post-body ol li { counter-increment: li; }
.post-body ol li::before {
  content: counter(li); position: absolute; left: 0; top: .1em;
  font-size: .78rem; font-weight: 700; color: var(--coral-deep);
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
}
.post-body blockquote {
  margin: 2em 0; padding: 4px 0 4px 28px;
  border-left: 3px solid var(--coral);
  font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.42;
  color: var(--navy-deep);
}
.post-body blockquote p { margin-bottom: .4em; }
.post-body blockquote cite {
  display: block; font-family: var(--font-sans); font-size: .86rem;
  font-style: normal; color: var(--muted); font-weight: 600;
}
.post-body img { border-radius: var(--r-md); margin: 1.6em 0; width: 100%; }
.post-body figure { margin: 2em 0; }
.post-body figcaption {
  font-size: .84rem; color: var(--muted); text-align: center; margin-top: 10px;
}
.post-body hr {
  border: none; margin: 3em auto; width: 60px;
  border-top: 2px dotted var(--coral-soft);
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em; background: var(--cream-2); color: var(--navy-deep);
  padding: 2px 7px; border-radius: 6px;
}
.post-body pre {
  background: var(--navy-deep); color: #e8eef4; padding: 22px 24px;
  border-radius: var(--r-md); overflow-x: auto; font-size: .88rem; line-height: 1.6;
}
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .96rem;
}
.post-body th {
  text-align: left; font-weight: 700; color: var(--navy-deep);
  background: var(--cream); padding: 12px 16px; border-bottom: 2px solid var(--line);
}
.post-body td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.post-body tbody tr:hover { background: var(--cream); }

/* wide tables scroll inside their own box instead of squeezing the page */
.table-scroll { overflow-x: auto; margin: 1.8em 0; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin: 0; min-width: 480px; }

/* collapsible table of contents, shown only where the sidebar is hidden */
.toc-mobile { display: none; }
.toc-mobile summary {
  cursor: pointer; list-style: none;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy);
  padding: 16px 0; position: relative;
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--coral);
}
.toc-mobile[open] summary::after { content: "\2013"; }
.toc-mobile ul { padding: 0 0 16px; display: flex; flex-direction: column; gap: 9px; }
.toc-mobile li { padding-left: 0; margin: 0; }
.toc-mobile li::before { display: none !important; }
.toc-mobile a { font-size: .93rem; color: var(--ink-soft); font-weight: 500; text-decoration: none; }
.toc-mobile li.lvl-3 { padding-left: 16px; }
.toc-mobile li.lvl-3 a { font-size: .87rem; color: var(--muted); }

/* key takeaways */
.takeaways {
  background: var(--sage-bg);
  border: 1px solid var(--sage-soft);
  border-radius: var(--r-lg);
  padding: 28px 32px; margin: 0 0 2.4em;
}
.takeaways h2 {
  font-family: var(--font-sans) !important;
  font-size: .76rem !important; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy) !important;
  margin: 0 0 14px !important;
}
.takeaways ul { margin: 0; }
.takeaways li { font-size: 1rem; color: var(--navy-deep); margin-bottom: .5em; }
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::before { background: var(--sage) !important; }

/* callout — write in markdown as: <div class="callout">…</div> */
.callout {
  background: var(--cream);
  border-left: 3px solid var(--sage);
  border-radius: var(--r-md);
  padding: 22px 26px; margin: 2em 0;
  font-size: 1rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { display: block; margin-bottom: 6px; color: var(--navy-deep); }

/* FAQ */
.post-faq { margin-top: 3em; }
.post-faq h2 {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.95rem;
  color: var(--navy-deep); margin: 0 0 .7em; scroll-margin-top: 110px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; color: var(--navy-deep); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--coral); transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--coral-deep); }
.faq-a { padding: 0 0 20px; color: var(--ink-soft); }
.faq-a p:last-child { margin-bottom: 0; }

/* in-article CTA */
.post-cta {
  margin: 3.2em 0 0;
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.post-cta .script { color: var(--coral-soft); font-size: 1.4rem; }
.post-cta h2 {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.75rem;
  line-height: 1.2; color: #fff; margin: 6px 0 .4em;
}
.post-cta p { color: rgba(255,255,255,.82); margin: 0; font-size: .98rem; max-width: 48ch; }
.post-cta .btn-primary {
  background: var(--coral); flex: none;
  /* `.post-body a` is two classes deep and was beating `.btn-primary`, painting
     this button coral-on-coral at 1.41:1 with an inline-link underline. Navy ink
     on coral measures 4.62:1, and the hover lightens rather than darkens because
     navy on coral-deep drops back to 3.28:1. */
  color: var(--navy-deep);
  text-decoration: none;
  box-shadow: 0 10px 26px -10px rgba(0,0,0,.5);
}
.post-cta .btn-primary:hover {
  background: var(--coral-soft);
  color: var(--navy-deep);
}

/* author + prev/next */
.author-box {
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--cream); border-radius: var(--r-lg);
  padding: 30px 34px;
}
.author-box h3 { font-size: 1.1rem; color: var(--navy-deep); margin: 0; }
.author-box .author-role {
  font-size: .82rem; color: var(--coral-deep); font-weight: 600;
  margin: 2px 0 10px; text-transform: uppercase; letter-spacing: .06em;
}
.author-box p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }

.prev-next {
  max-width: 720px; margin: 44px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.pn-item {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 24px; transition: border-color .2s ease, background .2s ease;
  display: flex; flex-direction: column; gap: 6px;
}
.pn-item:hover { border-color: var(--coral-soft); background: var(--cream); }
.pn-item span {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.pn-item strong {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.08rem;
  line-height: 1.3; color: var(--navy-deep);
}
.pn-next { text-align: right; align-items: flex-end; }

/* related */
.related { background: var(--cream); border-top: 1px solid var(--line); padding: 72px 0; margin-top: 80px; }
.related-title {
  font-family: var(--font-serif); font-weight: 400; font-size: 2rem;
  color: var(--navy-deep); margin: 0 0 36px; text-align: center;
}
.related .card { background: var(--paper); }

/* ═════════ Newsletter strip ═════════ */
.nl-strip { background: var(--navy-deep); padding: 60px 0; }
.nl-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.nl-copy .script { color: var(--coral-soft); font-size: 1.5rem; }
.nl-copy h2 {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.9rem;
  line-height: 1.2; color: #fff; margin: 6px 0 .35em;
}
.nl-copy p { color: rgba(255,255,255,.7); margin: 0; font-size: .96rem; }
.nl-form { display: flex; gap: 10px; }
.nl-form input {
  flex: 1; min-width: 0;
  padding: 14px 20px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff;
  font-family: inherit; font-size: .95rem;
}
.nl-form input::placeholder { color: rgba(255,255,255,.45); }
.nl-form input:focus-visible { outline: 2px solid var(--coral-soft); outline-offset: 2px; }
.nl-form input:focus { border-color: var(--coral-soft); background: rgba(255,255,255,.14); }
.nl-form .btn-primary { background: var(--coral); }
.nl-form .btn-primary:hover { background: var(--coral-deep); }
.nl-status { color: var(--sage-soft); font-size: .86rem; margin: 12px 0 0; min-height: 1.2em; }

/* ═════════ Responsive ═════════ */
@media (max-width: 1180px) {
  .post-wrap { grid-template-columns: minmax(0, 720px); gap: 0; }
  .post-aside { display: none; }
  .toc-mobile {
    display: block;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    margin-bottom: 2.2em;
  }
}
@media (max-width: 980px) {
  .feature { grid-template-columns: 1fr; }
  /* min-height must go: with aspect-ratio it sets a minimum WIDTH
     (260 x 16/9 = 462px), which was overflowing the card on phones. */
  .feature-media { min-height: 0; aspect-ratio: 3 / 2; }
  .feature-body { padding: 36px 32px 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .nl-inner { grid-template-columns: 1fr; gap: 28px; }
  .post-cta { flex-direction: column; align-items: flex-start; padding: 32px 30px; }
}
@media (max-width: 760px) {
  /* .container keeps the site's 32px gutter so blog content lines up with the
     nav logo and with the homepage — do not narrow it here. */
  .blog-masthead { padding: 52px 0 40px; }
  .pills-wrap { position: static; padding: 12px 0; }
  .pills { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .blog-main { padding: 40px 32px 64px; }
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .feature { margin-bottom: 48px; }
  .post-hero { aspect-ratio: 4 / 3; margin-top: -22px; }
  .post-wrap { padding-top: 40px; }
  .post-body { font-size: 1.03rem; }
  .post-body h2 { font-size: 1.6rem; }
  .prev-next { grid-template-columns: 1fr; }
  .pn-next { text-align: left; align-items: flex-start; }
  .author-box { flex-direction: column; gap: 16px; padding: 26px 24px; }
  .related { padding: 52px 0; margin-top: 56px; }
  .nl-form { flex-direction: column; }
  .nl-form .btn-primary { justify-content: center; }
}

/* number columns and read times should not shift width while rendering */
.post-meta, .pill span, .pg { font-variant-numeric: tabular-nums; }

/* headings wrap on meaning, not on the raw line box */
.masthead-title, .feature-title, .card-title, .post-title, .related-title { text-wrap: balance; }
.post-dek, .card-excerpt, .feature-excerpt, .masthead-intro { text-wrap: pretty; }

/* the article side menu must not scroll the page behind it */
.post-aside { overscroll-behavior: contain; }

@media (prefers-reduced-motion: reduce) {
  .card, .card-media img, .pn-item, .faq-item, .toc a, .progress {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}
