/* Down Cellar: the Mainers blog. Loaded after styles.css on blog pages,
   and on pages that show a "latest posts" block. */
:root {
  /* Mapped onto the site tokens in styles.css so the blog shares one palette. */
  --dc-band: var(--dark);
  --dc-spruce: var(--primary-dark);
  --dc-forest: var(--primary);
  --dc-pine: var(--primary);
  --dc-birch: var(--paper-soft);
  --dc-granite: #e4e7e2;
  --dc-ink: var(--ink);
  --dc-text: var(--ink-soft);
  --dc-muted: var(--ink-muted);
  --dc-tide: #1d6683;
  --dc-sky: var(--primary-light);
  --dc-amber: #b86b0b;
  --dc-display: var(--font-display);
  --dc-serif: var(--font-sans);
  --dc-sans: var(--font-sans);
}

.dc-page { background: var(--paper); }
.dc { color: var(--dc-text); }
.dc-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.dc a:focus-visible, .dc button:focus-visible, .dc summary:focus-visible, .dc-latest a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Dark header band with the same faint slats as the rest of the site. */
.dc-post-head, .dc-hub-head {
  position: relative;
  background-color: var(--dc-band);
  background-image: var(--slats-dark);
  color: #fff;
}

.dc-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font: 600 11px/1.4 var(--dc-display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 26px;
}
.dc-crumbs a { color: rgba(255,255,255,.7); }
.dc-crumbs a:hover { color: #fff; }

/* ---------- Post header ---------- */
.dc-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10001; pointer-events: none; }
.dc-progress span { display: block; height: 100%; width: 100%; background: var(--dc-sky); transform-origin: 0 50%; transform: scaleX(0); }

.dc-post-head { padding: 132px 0 168px; }
.dc-post-head .dc-shell { max-width: 900px; }
.dc-post-head h1 {
  font-family: var(--dc-display);
  font-stretch: 78%;
  font-weight: 700;
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 22ch;
  text-wrap: balance;
}
.dc-dek {
  margin: 22px 0 0;
  max-width: 40em;
  font: 400 clamp(1.05rem, 1.4vw, 1.2rem)/1.6 var(--dc-serif);
  color: rgba(255,255,255,.84);
}
.dc-byline { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.dc-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.7);
}
.dc-byline p { margin: 0; display: grid; gap: 2px; font: 500 .9rem/1.4 var(--dc-sans); color: rgba(255,255,255,.72); }
.dc-byline strong { color: #fff; font-weight: 700; }

.dc-hero {
  width: min(1200px, calc(100% - 32px));
  margin: -124px auto 0;
  position: relative;
}
.dc-hero img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 30px 60px -30px rgba(12,20,16,.55);
  background: var(--dc-granite);
}
.dc-hero figcaption, .dc-fig figcaption {
  margin-top: 10px;
  font: 500 .86rem/1.45 var(--dc-sans);
  color: var(--dc-muted);
}
.dc-hero figcaption { max-width: 900px; margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.dc-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 700px) 290px;
  justify-content: space-between;
  gap: 56px;
}
.dc-aside { position: relative; }
.dc-toc, .dc-aside-card { position: sticky; }
.dc-toc { top: 104px; }
.dc-aside-title { font: 600 .7rem/1.3 var(--dc-display); letter-spacing: .16em; text-transform: uppercase; color: var(--dc-muted); margin: 0 0 14px; }
.dc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--dc-granite); }
.dc-toc li a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font: 500 .92rem/1.35 var(--dc-sans);
  color: var(--dc-muted);
}
.dc-toc li a:hover { color: var(--dc-ink); }
.dc-toc li a.is-active { color: var(--dc-forest); border-left-color: var(--dc-pine); font-weight: 700; }
.dc-aside-card {
  margin-top: 36px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--dc-granite);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.dc-aside-card p { font: 400 .93rem/1.5 var(--dc-sans); color: var(--dc-muted); }
.dc-aside-card .dc-aside-title { color: var(--dc-ink); font: 700 1.08rem/1.25 var(--dc-display); letter-spacing: -.01em; text-transform: none; }
.dc-aside-card .dc-btn { width: 100%; margin-top: 10px; }
.dc-aside-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font: 700 .75rem var(--dc-display); letter-spacing: .12em; text-transform: uppercase; color: var(--dc-forest); }
.dc-aside-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.dc-toc-mobile { display: none; }

/* ---------- Buttons ---------- */
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 22px;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  font: 600 .85rem/1.2 var(--dc-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dc-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; flex: 0 0 auto; }
.dc-btn-solid { background: var(--dc-forest); color: #fff; }
.dc-btn-solid:hover { background: var(--primary-dark); }
.dc-btn-line { border-color: rgba(19,26,22,.25); color: var(--dc-ink); }
.dc-btn-line:hover { border-color: var(--dc-forest); color: var(--dc-forest); }

/* ---------- Article ---------- */
.dc-short {
  background: #fff;
  border: 1px solid var(--dc-granite);
  border-left: 3px solid var(--dc-pine);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px 18px;
  margin-bottom: 40px;
}
.dc-short-title { font: 600 .75rem/1.2 var(--dc-display) !important; letter-spacing: .18em; text-transform: uppercase; color: var(--dc-forest) !important; margin: 0 0 14px !important; }
.dc-short ul { margin: 0; padding: 0; list-style: none; }
.dc-short li {
  position: relative;
  padding: 0 0 10px 26px;
  font: 400 1rem/1.6 var(--dc-sans);
  color: var(--dc-text);
}
.dc-short li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--dc-pine);
}

.dc-prose { font: 400 1.0625rem/1.75 var(--dc-serif); color: var(--dc-text); }
.dc-prose > * + * { margin-top: 1.15em; }
.dc-prose p { margin-bottom: 0; color: var(--dc-text); }
.dc-prose > p:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--dc-ink); }
.dc-prose h2, .dc-faq h2, .dc-sources h2, .dc-related h2 {
  font-family: var(--dc-display);
  font-stretch: 82%;
  font-weight: 700;
  font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--dc-ink);
  text-wrap: balance;
  scroll-margin-top: 100px;
}
.dc-prose h2 { margin-top: 2.2em; }
.dc-prose h3 {
  font: 700 1.22rem/1.25 var(--dc-display);
  letter-spacing: -.01em;
  color: var(--dc-ink);
  margin-top: 1.8em;
}
.dc-prose h2 + *, .dc-prose h3 + * { margin-top: .6em; }
.dc-prose a:not(.dc-btn):not(.dc-cta-service), .dc-faq a, .dc-author a, .dc-note a {
  color: var(--dc-forest);
  text-decoration: underline;
  text-decoration-color: rgba(31,106,62,.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.dc-prose a:not(.dc-btn):hover { text-decoration-color: currentColor; }
.dc-prose ul, .dc-prose ol { padding-left: 1.3em; }
.dc-prose li + li { margin-top: .45em; }
.dc-prose strong { color: var(--dc-ink); font-weight: 700; }

/* Callouts */
.dc-note {
  position: relative;
  padding: 20px 22px 18px 62px;
  border-radius: 12px;
  font: 400 .97rem/1.65 var(--dc-sans);
}
.dc-note > svg {
  position: absolute; left: 20px; top: 20px;
  width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round;
}
.dc-note p { margin: 0; color: inherit; font: inherit; }
.dc-note p + p { margin-top: .6em; }
.dc-note .dc-note-title { font: 700 1rem/1.3 var(--dc-display); font-stretch: 90%; margin-bottom: 4px; }
.dc-note-maine { background: #e7f2f7; color: #163f52; }
.dc-note-maine > svg { color: var(--dc-tide); fill: rgba(29,102,131,.18); }
.dc-note-tip { background: #e8f2ec; color: #173d27; }
.dc-note-tip > svg { color: var(--dc-pine); fill: rgba(47,125,74,.16); }
.dc-note-warn { background: #fbf0dd; color: #4a2f08; }
.dc-note-warn > svg { color: var(--dc-amber); }

/* Stats */
.dc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-top: 2px solid var(--dc-ink);
  border-bottom: 1px solid var(--dc-granite);
}
.dc-stats > div { padding: 18px 18px 16px 0; }
.dc-stats > div + div { padding-left: 18px; border-left: 1px solid var(--dc-granite); }
.dc-stats strong {
  display: block;
  font: 700 clamp(1.8rem, 3.4vw, 2.3rem)/1 var(--dc-display);
  letter-spacing: -.02em;
  color: var(--dc-forest);
}
.dc-stats span { display: block; margin-top: 8px; font: 500 .9rem/1.45 var(--dc-sans); color: var(--dc-muted); }

/* Steps (real sequences only) */
.dc-prose .dc-steps { list-style: none; padding: 0; counter-reset: dc-step; }
.dc-steps > li {
  counter-increment: dc-step;
  position: relative;
  padding: 0 0 0 56px;
  min-height: 40px;
}
.dc-steps > li + li { margin-top: 18px; }
.dc-steps > li::before {
  content: counter(dc-step);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dc-forest); color: #fff;
  font: 700 1.05rem/1 var(--dc-display);
}

/* Checklist */
.dc-prose .dc-check { list-style: none; padding: 0; }
.dc-check > li { position: relative; padding-left: 34px; }
.dc-check > li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 22px; height: 22px; border-radius: 4px;
  background: var(--dc-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Tables */
.dc-table { overflow-x: auto; border: 1px solid var(--dc-granite); border-radius: 12px; background: #fff; }
.dc-table table { width: 100%; border-collapse: collapse; font: 400 .95rem/1.45 var(--dc-sans); min-width: 520px; }
.dc-table th { text-align: left; background: var(--dc-band); color: #fff; font: 600 .72rem/1.3 var(--dc-display); letter-spacing: .12em; text-transform: uppercase; padding: 14px; }
.dc-table td { padding: 12px 14px; border-top: 1px solid var(--dc-granite); vertical-align: top; color: var(--dc-text); }
.dc-table tbody tr:nth-child(even) td { background: #f9faf8; }
.dc-table td:first-child { font-weight: 600; color: var(--dc-ink); }

/* Quote */
.dc-quote { margin-left: 0; margin-right: 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--dc-forest); }
.dc-quote p { font: 600 clamp(1.3rem, 2.3vw, 1.6rem)/1.3 var(--dc-display); letter-spacing: -.015em; color: var(--dc-ink); }
.dc-quote cite { display: block; margin-top: 10px; font: 500 .9rem var(--dc-sans); font-style: normal; color: var(--dc-muted); }

/* Figures */
.dc-fig { margin-left: 0; margin-right: 0; }
.dc-fig img { width: 100%; height: auto; border-radius: 12px; background: var(--dc-granite); }
.dc-fig-wide { margin-left: -40px; margin-right: -40px; }

/* Related read inline */
.dc-inline-read {
  display: grid; gap: 4px;
  padding: 14px 18px;
  border-top: 1px solid var(--dc-granite); border-bottom: 1px solid var(--dc-granite);
}
.dc-inline-read span { font: 600 .82rem var(--dc-sans); color: var(--dc-muted); }
.dc-prose .dc-inline-read a { font: 700 1.1rem/1.35 var(--dc-display); font-stretch: 90%; text-decoration: none; color: var(--dc-forest); }
.dc-prose .dc-inline-read a:hover { text-decoration: underline; }

/* CTA band */
.dc-cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px 32px;
  align-items: center;
  padding: 30px 32px;
  border-radius: 16px;
  background-color: var(--dc-band);
  background-image: var(--slats-dark);
  color: #fff;
  font-family: var(--dc-sans);
  margin: 2.4em 0;
}
.dc-cta-title { font: 700 1.5rem/1.12 var(--dc-display) !important; letter-spacing: -.02em !important; color: #fff !important; margin: 0 0 8px !important; }
.dc-cta p { margin: 0; color: var(--fg-muted); font: 400 .97rem/1.6 var(--dc-sans); }
.dc-cta-actions { display: grid; gap: 10px; }
.dc-cta .dc-btn-solid { background: var(--dc-forest); color: #fff; }
.dc-cta .dc-btn-solid:hover { background: var(--primary-dark); }
.dc-cta .dc-btn-line { border-color: rgba(255,255,255,.4); color: #fff; }
.dc-cta .dc-btn-line:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.dc-cta-service { font: 600 .88rem var(--dc-sans); color: rgba(255,255,255,.8) !important; text-decoration: underline; text-underline-offset: 3px; text-align: center; }

/* FAQ */
.dc-faq { margin-top: 64px; }
.dc-faq h2 { margin-bottom: 18px; }
.dc-faq details { border-top: 1px solid var(--line); }
.dc-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.dc-faq summary {
  list-style: none; cursor: pointer;
  position: relative;
  padding: 18px 44px 18px 0;
  font: 700 1.05rem/1.4 var(--dc-display);
  color: var(--dc-ink);
}
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--dc-forest), var(--dc-forest)) center / 14px 2px no-repeat,
              linear-gradient(var(--dc-forest), var(--dc-forest)) center / 2px 14px no-repeat;
  transition: transform .2s ease;
}
.dc-faq details[open] summary::after { transform: rotate(45deg); }
.dc-faq details > div { padding: 0 0 20px; }
.dc-faq details p { margin: 0; font: 400 1rem/1.7 var(--dc-serif); color: var(--dc-text); }

/* Author + sources */
.dc-author {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--line); margin-top: 48px;
}
.dc-author-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.dc-author-name { margin: 0 0 6px; font: 700 1.15rem var(--dc-display); font-stretch: 90%; color: var(--dc-ink); }
.dc-author p { font: 400 .98rem/1.6 var(--dc-sans); color: var(--dc-muted); margin: 0; }
.dc-author .dc-author-name { color: var(--dc-ink); }
.dc-sources { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--dc-granite); }
.dc-sources h2 { font-size: 1.25rem; margin-bottom: 10px; }
.dc-sources ol { margin: 0; padding-left: 1.3em; font: 400 .88rem/1.55 var(--dc-sans); color: var(--dc-muted); }
.dc-sources li + li { margin-top: 5px; }
.dc-sources a { color: var(--dc-tide); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.dc-disclaimer { margin: 16px 0 0; font: 400 .85rem/1.55 var(--dc-serif); color: var(--dc-muted); }

/* ---------- Cards ---------- */
.dc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.dc-card[hidden] { display: none; }
.dc-card::before, .dc-season::before, .dc-next-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 2;
  width: 48px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--primary);
}
.dc-card:hover { box-shadow: var(--shadow-lg); }
.dc-card-media { display: block; overflow: hidden; background: var(--dc-granite); }
.dc-card-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.dc-card:hover .dc-card-media img { transform: scale(1.04); }
.dc-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 20px; }
.dc-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; font: 500 .8rem var(--dc-sans); color: var(--dc-muted); }
.dc-tag { display: inline-block; padding: 5px 11px; border-radius: 99px; font: 600 .66rem/1.3 var(--dc-display); letter-spacing: .12em; text-transform: uppercase; }
.dc-tag-waterproofing { background: #dfeee2; color: #1c4a2f; }
.dc-tag-drainage { background: #dcedf4; color: #164a60; }
.dc-tag-sump-pumps { background: #f6e8d2; color: #6a3e06; }
.dc-tag-homeowner-questions { background: #e6e6ef; color: #353a5c; }
.dc-card h3 { font: 700 1.2rem/1.22 var(--dc-display); letter-spacing: -.015em; color: var(--dc-ink); text-wrap: balance; transition: color .2s ease; }
/* The title link covers the whole card. */
.dc-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dc-card:hover h3 { color: var(--dc-forest); }
.dc-card-body > p:not(.dc-card-meta):not(.dc-card-foot) { margin: 10px 0 0; font: 400 .9rem/1.6 var(--dc-sans); color: var(--dc-muted); }
.dc-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 18px;
  font: 700 .7rem/1.3 var(--dc-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dc-muted);
}
.dc-card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--dc-forest); }
.dc-card-more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .2s ease; }
.dc-card:hover .dc-card-more svg { transform: translateX(3px); }

/* Wide card: photo on the left (the "start here" guides). */
.dc-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dc-card-wide { flex-direction: row; }
.dc-card-wide .dc-card-media { flex: 0 0 38%; }
.dc-card-wide .dc-card-media img { height: 100%; aspect-ratio: auto; }
.dc-card-wide .dc-card-body { padding: 26px 26px 22px; }
.dc-card-wide h3 { font-size: 1.3rem; }

.dc-related { margin-top: 88px; padding: 72px 0 88px; background: var(--dc-birch); }
.dc-related h2 { margin-bottom: 28px; }
.dc-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font: 700 .78rem var(--dc-display); letter-spacing: .12em; text-transform: uppercase; color: var(--dc-forest); }
.dc-all svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ---------- Hub ---------- */
.dc-post-head::before, .dc-hub-head::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--primary);
}
.dc-hub-head { padding: 136px 0 88px; overflow: hidden; }
.dc-hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; align-items: center; }
.dc-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 9px 18px;
  border: 1px solid rgba(92, 186, 130, .5);
  border-radius: 999px;
  background: rgba(12, 20, 16, .7);
  font: 600 .75rem/1.2 var(--dc-display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.dc-hub-pill::before, .dc-hub-label::before, .dc-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.dc-wordmark {
  font-family: var(--dc-display);
  font-weight: 800;
  font-size: clamp(3.8rem, 10.5vw, 8.25rem);
  line-height: .9;
  letter-spacing: -.045em;
  color: #fff;
  margin: 0;
}
.dc-wordmark span { display: block; }
/* The cellar is taking on water: the lower part of "Cellar" fills with green on load. */
.dc-wordmark span:last-child {
  background-image: linear-gradient(180deg, #fff 0 50%, var(--dc-sky) 50% 100%);
  background-size: 100% 200%;
  background-position: 0 34%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: dc-rise 1.6s cubic-bezier(.3,.7,.2,1) .25s both;
}
@keyframes dc-rise { from { background-position: 0 0; } to { background-position: 0 34%; } }
.dc-hub-sub { margin: 30px 0 0; max-width: 32em; font: 400 clamp(1.05rem, 1.5vw, 1.2rem)/1.65 var(--dc-serif); color: rgba(255,255,255,.84); }
.dc-hub-note { margin: 22px 0 0; font: 600 .72rem/1.5 var(--dc-display); letter-spacing: .16em; text-transform: uppercase; color: var(--dc-sky); }
.dc-hub-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font: 600 .75rem/1.2 var(--dc-display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dc-sky);
}
.dc-card-feature { border-color: transparent; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.dc-card-feature:hover { box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.dc-card-feature .dc-card-media img { aspect-ratio: 16 / 9; }
.dc-card-feature .dc-card-body { padding: 26px 26px 22px; }
.dc-card-feature h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.55rem); line-height: 1.16; }

/* Section bands */
.dc-band { padding: clamp(64px, 8vw, 96px) 0; }
.dc-band-soft { background: var(--dc-birch); }
.dc-band-dark { background-color: var(--dc-band); background-image: var(--grid-dark); background-size: 56px 56px; color: #fff; }
.dc-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.dc-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 600 .75rem/1.2 var(--dc-display);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
}
.dc-head h2 { font: 700 clamp(1.75rem, 1.25rem + 2.3vw, 2.75rem)/1.06 var(--dc-display); letter-spacing: -.02em; color: var(--dc-ink); text-wrap: balance; }
.dc-head > p:not(.dc-eyebrow) { margin: 18px 0 0; font: 400 1.05rem/1.65 var(--dc-sans); color: var(--dc-muted); }
.dc-band-dark .dc-eyebrow { color: var(--dc-sky); }
.dc-band-dark .dc-head h2 { color: #fff; }
.dc-band-dark .dc-head > p:not(.dc-eyebrow) { color: var(--fg-muted); }

/* All articles */
.dc-library-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 40px); }
.dc-library-head .dc-head { margin-bottom: 0; }
.dc-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-filters button {
  min-height: 40px; padding: 8px 16px; border-radius: 99px;
  border: 1px solid var(--line); background: #fff; color: var(--dc-text);
  font: 600 .72rem var(--dc-display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  scroll-margin-top: 120px;
}
.dc-filters button:hover { border-color: var(--dc-forest); }
.dc-filters button[aria-pressed="true"] { background: var(--dc-forest); border-color: var(--dc-forest); color: #fff; }
.dc-empty { font: 500 1rem var(--dc-sans); color: var(--dc-muted); }

/* Coming up */
.dc-next-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dc-next-card { position: relative; padding: 28px 24px 26px; border: 1px solid var(--line-dark); border-radius: 16px; background: rgba(19, 29, 23, .85); }
.dc-next-card time { display: block; font: 700 2.1rem/1 var(--dc-display); letter-spacing: -.02em; color: rgba(92, 186, 130, .78); }
.dc-next-cat { display: block; margin-top: 18px; font: 600 .66rem/1.3 var(--dc-display); letter-spacing: .14em; text-transform: uppercase; color: var(--dc-sky); }
.dc-next-card h3 { margin-top: 8px; font: 700 1.08rem/1.32 var(--dc-display); letter-spacing: -.01em; color: #fff; text-wrap: balance; }

/* A year down cellar */
.dc-seasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dc-season { position: relative; padding: 28px 22px 26px; border: 1px solid var(--line-soft); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.dc-season h3 { display: flex; align-items: center; gap: 10px; font: 700 1.3rem/1 var(--dc-display); letter-spacing: -.015em; color: var(--dc-ink); margin-bottom: 18px; }
.dc-now { font: 700 .62rem/1 var(--dc-display); letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--dc-sky); color: var(--dark); }
.dc-season ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dc-season li { font: 500 .92rem/1.45 var(--dc-sans); color: var(--dc-muted); padding-left: 18px; position: relative; }
.dc-season li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .55; }
.dc-season a { color: var(--dc-forest); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(31,106,62,.35); text-underline-offset: 3px; }
.dc-season a:hover { text-decoration-color: currentColor; }
.dc-season.is-now { border-color: transparent; background-color: var(--dc-band); background-image: var(--slats-dark); }
.dc-season.is-now h3 { color: #fff; }
.dc-season.is-now li { color: rgba(255,255,255,.72); }
.dc-season.is-now li::before { background: var(--dc-sky); opacity: 1; }
.dc-season.is-now a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }

.dc-hub-cta { padding: clamp(56px, 7vw, 80px) 0 clamp(64px, 8vw, 96px); }
.dc-hub-cta .dc-cta { margin: 0; padding: 40px; }
.dc-hub-cta .dc-cta-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important; }

@media (max-width: 1050px) {
  .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-guide-grid { grid-template-columns: 1fr; }
  .dc-seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dc-hub-grid { grid-template-columns: 1fr; gap: 44px; }
  .dc-hub-feature { max-width: 560px; }
}
@media (max-width: 700px) {
  .dc-post-head::before, .dc-hub-head::before { width: 4px; }
  .dc-hub-head { padding: 108px 0 56px; }
  .dc-grid { grid-template-columns: 1fr; gap: 18px; }
  .dc-card-wide { flex-direction: column; }
  .dc-card-wide .dc-card-media { flex: none; }
  .dc-card-wide .dc-card-media img { height: auto; aspect-ratio: 16 / 10; }
  .dc-card-wide .dc-card-body, .dc-card-feature .dc-card-body { padding: 22px 22px 20px; }
  .dc-next-grid, .dc-seasons { grid-template-columns: 1fr; }
  .dc-next-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; padding: 24px 20px 22px; }
  .dc-next-card time { grid-row: 1 / span 2; font-size: 1.5rem; }
  .dc-next-cat { margin-top: 2px; }
  .dc-hub-cta .dc-cta { padding: 26px 20px; }
}

/* ---------- "Latest posts" block on the home and service pages ---------- */
.dc-latest { background: var(--paper); }
.dc-latest-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.dc-latest-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.dc-latest-head a { display: inline-flex; align-items: center; gap: 7px; font: 700 .75rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.dc-latest-head svg, .dc-mini svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.dc-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dc-mini { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.dc-mini img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.dc-mini-cat { font: 600 .68rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.dc-mini strong { font: 700 1.12rem/1.25 var(--font-display); letter-spacing: -.01em; color: var(--ink); transition: color .2s ease; }
.dc-mini:hover strong { color: var(--primary); }
.dc-mini-time { font-size: .86rem; color: var(--muted, #5f6b64); }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .dc-layout { grid-template-columns: minmax(0, 1fr); max-width: 720px; gap: 0; }
  .dc-aside { display: none; }
  .dc-toc-mobile {
    display: block; margin-bottom: 36px;
    border: 1px solid var(--dc-granite); border-radius: 12px; background: #fff;
  }
  .dc-toc-mobile summary { cursor: pointer; padding: 14px 18px; font: 700 .98rem var(--dc-sans); color: var(--dc-ink); }
  .dc-toc-mobile ol { margin: 0; padding: 0 18px 16px 38px; font: 500 .95rem/1.4 var(--dc-sans); }
  .dc-toc-mobile li + li { margin-top: 8px; }
  .dc-toc-mobile a { color: var(--dc-forest); }
  .dc-fig-wide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 900px) {
  .dc-cta { grid-template-columns: 1fr; }
  .dc-mini-grid { grid-template-columns: 1fr; }
  .dc-mini { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 4px; }
  .dc-mini img { grid-row: 1 / 4; margin: 0; aspect-ratio: 1; }
}
@media (max-width: 700px) {
  .dc-post-head { padding: 112px 0 120px; }
  .dc-hero { margin-top: -84px; width: calc(100% - 24px); }
  .dc-hero img { aspect-ratio: 4 / 3; }
  .dc-layout { margin-top: 36px; }
  .dc-prose { font-size: 1.02rem; }
  .dc-prose > p:first-child { font-size: 1.12rem; }
  .dc-short { padding: 20px 20px 12px; }
  .dc-note { padding: 18px 18px 16px 52px; }
  .dc-note > svg { left: 16px; width: 22px; height: 22px; }
  .dc-stats > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--dc-granite); }
  .dc-cta { padding: 24px 20px; }
  .dc-author { grid-template-columns: 64px 1fr; gap: 14px; }
  .dc-author-photo { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc-wordmark span:last-child { animation: none; }
}
@media print {
  .site-header, .dc-aside, .dc-cta, .dc-related, .dc-progress, .site-footer { display: none !important; }
}

/* width/height attributes would otherwise override aspect-ratio crops */
.dc-hero img, .dc-mini img { height: auto; }
