/* Digital Gym · Design System v4 "Night Studio" · subpages
   Loaded after home.css on every page except the two homepages.
   home.css owns tokens, nav, footer, buttons. This file dresses the article markup (dg-*, dt-*).
   Rules: volt only for buy actions, coral for hints, no capitals-only labels, no mono. */

/* Old token names still appear in a few inline styles. Map them to v4. */
:root {
  --dg-void: var(--bg); --dg-navy: transparent; --dg-navy-light: var(--surface); --dg-navy-mid: var(--surface-2);
  --dg-surface: var(--surface); --dg-surface-light: var(--surface);
  --dg-white: var(--text); --dg-text: var(--text); --dg-off-white: var(--muted);
  --dg-gray-100: var(--muted); --dg-gray-200: var(--dim); --dg-text-sub: var(--muted);
  --dg-green: var(--text); --dg-danger: var(--coral); --dg-blue: var(--text);
  --dg-border: var(--line); --dg-border-hover: var(--line-strong); --dg-color-border: var(--line);
  --dg-radius: var(--r-lg); --dg-radius-sm: var(--r-md); --dg-radius-full: var(--r-pill);
  --dg-space-md: 16px; --dg-space-lg: 24px;
}

/* ── Base ── */
.pg h4 { margin: 0; padding: 0; }
.pg main, .pg .pg-main { display: block; padding-bottom: 8px; }
.dg-container, .dt-container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.dg-container .dg-container, .dt-container .dt-container { padding: 0; }
.dg-container--narrow { max-width: calc(860px + 2 * var(--gutter)); }

/* Reading column: text stays narrow, tables and grids may use the full width */
.pg :is(.dg-section, .dg-article-header, .dg-article-body, .dg-content, .dg-page-hero, .dg-hero) :is(p, ul, ol, h2, h3, h4) { max-width: 72ch; }
.pg :is(.dg-section, .dg-article-body, .dg-content, .dg-callout) :is(ul, ol):not([class]) { list-style: disc; padding-left: 22px; margin: 14px 0 22px; color: var(--muted); }
.pg :is(.dg-section, .dg-article-body, .dg-content) ol:not([class]) { list-style: decimal; }
.pg :is(.dg-section, .dg-article-body, .dg-content, .dg-callout) li { margin-bottom: 8px; }
.pg li strong, .pg p strong, .pg td strong { color: var(--text); font-weight: 650; }
.pg :is(.dg-section, .dg-article-header, .dg-article-body, .dg-content, .dg-page-hero, .dg-hero) p { color: var(--muted); margin-bottom: 18px; }
.pg :is(.dg-section, .dg-article-header, .dg-article-body, .dg-content, .dg-faq__answer, .dg-callout, .dg-disclosure, .dg-geo-note, .dg-supp-disclaimer) :is(p, li, td) a:not(.dg-btn) {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s;
}
.pg :is(p, li, td) a:not(.dg-btn):hover { text-decoration-color: var(--coral); color: var(--coral); }

/* ── Sections ── */
.dg-section { padding: clamp(28px, 4vw, 48px) 0; }
.dg-section--alt { background: none; }
.pg .dg-section h2, .pg .dg-article-body h2, .pg .dg-content h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); line-height: 1.1; margin: 0 0 18px; }
.pg .dg-article-body section + section, .pg .dg-content__inner h2 { margin-top: clamp(36px, 5vw, 56px); }
.pg .dg-content__inner h2:first-child { margin-top: 0; }
.pg .dg-section h3, .pg .dg-article-body h3, .pg .dg-content h3 { font-size: 1.22rem; margin: 30px 0 12px; }
.pg .dg-section h4, .pg .dg-article-body h4 { font-size: 1.05rem; font-weight: 650; margin: 22px 0 10px; }
.dg-section__header { margin-bottom: 26px; }
.pg .dg-section__title { margin: 0; }
.dg-content { padding: 0; }
.dg-content__inner { max-width: none; }
.dg-article-body { padding: clamp(20px, 3vw, 36px) 0 0; }

/* ── Page heads ── */
.dg-article-header, .dg-page-hero, .pg .dg-hero { position: relative; padding: clamp(28px, 5vw, 60px) 0 clamp(12px, 2vw, 24px); background: none; min-height: 0; display: block; overflow: visible; }
.pg .dg-hero::before, .pg .dg-hero::after, .pg .dg-page-hero::before { content: none; }
.pg .dg-article-header h1, .pg .dg-page-hero h1, .pg .dg-hero__title, .pg-h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 20ch; margin: 0 0 20px; animation: none; }
.pg .dg-article-header h1 + p, .pg .dg-hero__subtitle, .pg .dg-page-hero h1 + p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.pg .dg-article-header p em, .pg .dg-page-hero p em { font-style: normal; color: var(--dim); font-size: .92rem; }
.pg .dg-meta { color: var(--dim); font-size: .92rem; }
.pg .dg-meta strong { color: var(--dim); font-weight: 500; }
.dg-header-img { margin: clamp(22px, 3vw, 36px) 0 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 7; max-height: 480px; }
.dg-header-img img { width: 100%; height: 100%; object-fit: cover; }
.dg-tag { display: none; }

/* Breadcrumbs (three old variants) */
.dg-breadcrumb, .dg-breadcrumbs, .pg nav[aria-label="Breadcrumb"] { font-size: .9rem; color: var(--dim); margin: 0 0 18px; }
.pg nav[aria-label="Breadcrumb"] p, .pg p.dg-breadcrumb { color: var(--dim); margin: 0 0 18px; max-width: none; }
.dg-breadcrumbs { padding-top: 22px; margin: 0; }
.dg-breadcrumbs__list, .dg-breadcrumb__list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.dg-breadcrumbs__item + .dg-breadcrumbs__item::before, .dg-breadcrumb__item + .dg-breadcrumb__item::before { content: "›"; margin-right: 6px; color: var(--dim); }
.pg :is(.dg-breadcrumb, .dg-breadcrumbs, nav[aria-label="Breadcrumb"]) a { color: var(--muted) !important; text-decoration: none !important; }
.pg :is(.dg-breadcrumb, .dg-breadcrumbs, nav[aria-label="Breadcrumb"]) a:hover { color: var(--text); }

/* Disclosure line under the nav */
.dg-disclosure { margin: 18px 0 0; padding: 0; background: none; border: 0; color: var(--dim); font-size: .88rem; text-align: left; }
.pg .dg-disclosure p { color: var(--dim); margin: 0; max-width: none; }
.pg > .dg-disclosure, .pg > div:not(.dg-container) > .dg-disclosure { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }

/* ── Buttons (old names, v4 look) ── */
.dg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
  transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease);
}
.dg-btn:active { transform: scale(.98); }
.dg-btn--cta { background: var(--volt); color: var(--on-volt); }
.dg-btn--cta:hover { background: #E2FF63; color: var(--on-volt); }
.dg-btn--primary, .dg-btn--ghost { border-color: var(--line-strong); color: var(--text); background: none; }
.dg-btn--primary:hover, .dg-btn--ghost:hover { border-color: var(--text); color: var(--text); }
/* Any button that leaves the site for a shop is a buy action, so it gets volt */
.dg-btn[target="_blank"], .dg-btn[rel~="nofollow"], .dg-btn[rel~="sponsored"] { background: var(--volt); color: var(--on-volt); border-color: transparent; }
.dg-btn[target="_blank"]:hover, .dg-btn[rel~="nofollow"]:hover, .dg-btn[rel~="sponsored"]:hover { background: #E2FF63; color: var(--on-volt); }
.dg-btn--sm { min-height: 42px; padding: 0 18px; font-size: .94rem; }
.dg-btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.04rem; }
.dg-cta-center { text-align: left; margin: 26px 0; }

/* ── Quick pick (the answer first) ── */
.dg-quick-pick, .dg-callout { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-xl) !important; padding: clamp(22px, 3vw, 34px) !important; margin: clamp(20px, 3vw, 32px) 0 clamp(24px, 4vw, 44px); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.dg-quick-pick__label { display: flex; width: fit-content; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 142, 110, .14); color: var(--coral); font-size: .86rem; font-weight: 650; margin-bottom: 16px; }
.pg .dg-quick-pick__title { font-size: 1.3rem; font-weight: 700; font-stretch: 108%; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 8px; }
.pg .dg-quick-pick__verdict { color: var(--muted); font-size: 1rem; margin: 0; }
.dg-quick-pick__price { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; color: var(--text); margin: 10px 0 14px; }
.dg-quick-pick hr { margin: 22px 0 !important; border: 0 !important; border-top: 1px solid var(--line) !important; }
.dg-quick-pick hr:last-child { display: none; }
.dg-quick-pick .dg-rating { margin-bottom: 10px; }
.pg .dg-callout h2 { font-size: 1.3rem !important; }

/* ── Product card + rating ── */
.dg-product-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); margin-bottom: 26px; }
.dg-product-card__rank { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); font-weight: 700; font-size: .98rem; }
.pg .dg-product-card__name { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 14px 0 8px; max-width: none; }
.pg .dg-product-card__verdict { color: var(--muted); margin: 0 0 14px; }
.dg-product-card__price { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; color: var(--text); margin-bottom: 12px; }
.dg-rating { display: inline-flex; align-items: baseline; gap: 6px; }
.dg-rating__score { font-stretch: 112%; font-weight: 760; font-size: 1.7rem; letter-spacing: -.025em; color: var(--text); }
.dg-rating__max { color: var(--dim); font-size: .92rem; }
.dg-grid { display: grid; gap: 14px; margin: 22px 0; }
.dg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dg-grid .dg-product-card { margin: 0; }

/* ── Tables ── */
.dg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); margin: 22px 0; background: var(--surface); }
.dg-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.dg-table th { text-align: left; padding: 16px 18px; background: var(--surface-2); color: var(--text); font-weight: 650; white-space: nowrap; }
.dg-table td { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; font-variant-numeric: tabular-nums; }
.dg-table tbody tr:hover { background: rgba(244, 241, 236, .03); }

/* ── Pros and cons ── */
.dg-pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.dg-pros, .dg-cons { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.pg .dg-pros__title, .pg .dg-cons__title { font-size: 1.05rem; font-weight: 650; margin: 0 0 12px; color: var(--text); }
.pg .dg-cons__title { color: var(--coral); }
.pg .dg-pros ul, .pg .dg-cons ul { list-style: none; margin: 0; padding: 0; }
.pg .dg-pros li, .pg .dg-cons li { position: relative; padding: 5px 0 5px 26px; margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.dg-pros li::before, .dg-cons li::before { position: absolute; left: 0; top: 5px; font-weight: 700; }
.dg-pros li::before { content: "\2713"; color: var(--text); }
.dg-cons li::before { content: "\2715"; color: var(--coral); font-size: .86rem; top: 7px; }

/* ── FAQ (details variant and button variant) ── */
.dg-faq { padding: 0; background: none; margin: 22px 0; }
.dg-faq__list { max-width: 820px; margin: 0; }
.dg-faq__item { border-bottom: 1px solid var(--line); max-width: 820px; }
.dg-faq__item summary, .dg-faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
  padding: 20px 2px; background: none; border: 0; text-align: left; cursor: pointer; list-style: none;
  font: inherit; font-weight: 650; font-size: 1.08rem; color: var(--text); transition: color .2s;
}
.dg-faq__item summary::-webkit-details-marker { display: none; }
.dg-faq__item summary:hover, .dg-faq__question:hover { color: var(--coral); }
.dg-faq__question > span[aria-hidden], .dg-faq__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 0; position: relative; transition: background .25s, border-color .25s; }
.dg-faq__question > span[aria-hidden]::before, .dg-faq__question > span[aria-hidden]::after, .dg-faq__icon::before, .dg-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.dg-faq__question > span[aria-hidden]::after, .dg-faq__icon::after { transform: rotate(90deg); }
.dg-faq__item[open] .dg-faq__icon::after, .dg-faq__item--open .dg-faq__question > span[aria-hidden]::after { transform: rotate(0); }
.dg-faq__answer { padding: 0 54px 22px 2px; }
div.dg-faq__item > .dg-faq__answer { display: none; }
div.dg-faq__item--open > .dg-faq__answer { display: block; }
.pg .dg-faq__answer p { color: var(--muted); margin: 0 0 10px; }
.pg .dg-faq__answer p:last-child { margin-bottom: 0; }

/* ── Card grids (related articles, blog, hubs, supplements) ── */
.dg-articles__grid, .dg-articles-grid, .dt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dg-card, .dg-article-card, .dt-card, .dg-supp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .25s, background .25s, transform .4s var(--ease); }
.dg-card:hover, a.dg-article-card:hover, .dt-card:hover, .dg-supp-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-4px); }
.dg-card__body, .dg-article-card__body, .dt-card__body, .dg-supp-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 22px; }
.dg-article-card__img, .dt-card__img, .dg-supp-card__viz { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.dg-article-card__img img, .dt-card__img img, .dg-supp-card__viz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
a:hover > .dg-article-card__img img, .dt-card:hover .dt-card__img img { transform: scale(1.05); }
.dg-supp-card__viz svg { width: 54px; height: 54px; color: var(--coral); stroke-width: 1.4; }
.dg-card__tag, .dg-article-card__tag, .dg-supp-card__badge { display: inline-flex; align-items: center; width: fit-content; min-height: 28px; padding: 0 11px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--muted); font-size: .84rem; font-weight: 600; }
.dg-supp-card__badge { position: absolute; top: 12px; left: 12px; background: rgba(13, 15, 18, .78); z-index: 1; }
.pg .dg-card__title, .pg .dg-article-card__title, .pg .dt-card__title, .pg .dg-supp-card__body h3 { font-size: 1.15rem; font-weight: 650; line-height: 1.25; margin: 4px 0 0; max-width: none; }
.pg .dg-card__excerpt, .pg .dg-article-card__excerpt, .pg .dg-supp-card__body p { color: var(--muted); font-size: .96rem; line-height: 1.5; margin: 0; flex: 1; }
.dg-card__footer { margin-top: 10px; }
.dg-article-card__link, .dt-link, .dg-supp-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; font-size: .96rem; color: var(--text); }
.dg-article-card__link svg, .dt-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
a:hover .dg-article-card__link svg, a:hover .dt-link svg { transform: translateX(4px); }
.dg-supp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 40px; }
.dg-supp-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; max-width: 820px; }
.pg .dg-supp-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; color: var(--muted); margin: 0; }
.dg-supp-disclaimer { font-size: .86rem; line-height: 1.6; color: var(--dim) !important; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 20px; max-width: none !important; }
.dg-geo-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; margin: 26px 0; color: var(--muted); font-size: .96rem; }

/* Hub pages (old dt- markup) */
.dt-section { padding: clamp(28px, 5vw, 60px) 0 0 !important; }
.dt-section-head { margin-bottom: clamp(24px, 3.4vw, 40px); }
.dt-eyebrow { display: none; }
.pg .dt-h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.pg .dt-sub { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); margin-top: 16px; max-width: 52ch; }

/* ── Newsletter (volt block, same as the homepage) ── */
.dg-newsletter { background: var(--volt); color: var(--on-volt); border-radius: var(--r-xl); padding: clamp(26px, 4.5vw, 56px); margin: clamp(28px, 4vw, 48px) 0 0; text-align: left; overflow: hidden; position: relative; }
.dg-newsletter::before { content: none; }
.pg .dg-newsletter__title { color: var(--on-volt); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 12px; max-width: 26ch; }
.pg .dg-newsletter .btn--dark { color: var(--volt); text-decoration: none; }
.pg .dg-newsletter p.dg-newsletter__subtitle, .pg .dg-newsletter p.dg-newsletter__sub { color: rgba(16, 19, 10, .78); margin: 0 0 22px; max-width: 52ch; }
.dg-newsletter__form { display: flex; gap: 10px; max-width: 560px; margin: 0; background: var(--on-volt); padding: 8px; border-radius: var(--r-pill); }
.dg-newsletter__input { flex: 1; min-width: 0; min-height: 52px; background: none; border: 0; outline: none; padding: 0 18px; color: var(--text); font: inherit; }
.dg-newsletter__input::placeholder { color: #A2A79B; }
.dg-newsletter__form:focus-within { box-shadow: 0 0 0 3px rgba(16, 19, 10, .28); }
.dg-newsletter .dg-btn { background: var(--volt); color: var(--on-volt); border-color: transparent; }
.dg-newsletter .dg-btn:hover { background: #E2FF63; }

/* ── 404 ── */
.pg-404 { min-height: 56vh; display: grid; align-content: center; justify-items: start; gap: 18px; padding: clamp(48px, 9vw, 120px) 0 0; }
.pg-404 p { color: var(--muted); max-width: 44ch; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .dg-articles__grid, .dg-articles-grid, .dt-cards, .dg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-header-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .dg-articles__grid, .dg-articles-grid, .dt-cards, .dg-grid--3, .dg-supp-grid, .dg-pros-cons { grid-template-columns: 1fr; }
  .dg-btn--lg { width: 100%; }
  .dg-newsletter__form { flex-direction: column; border-radius: var(--r-lg); }
  .dg-newsletter__form .dg-btn { width: 100%; }
  .dg-faq__answer { padding-right: 8px; }
  .dg-header-img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
}

/* ══════════ Blog (build_blog.py) ══════════
   Article page: head, hero photo, sticky contents on the left, reading column, infographics (ig-*). */
.post-head { padding-top: clamp(28px, 5vw, 60px); }
.post-head--idx { padding-bottom: clamp(18px, 3vw, 34px); }
.pg .post-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); line-height: 1.03; max-width: 21ch; margin: 0 0 20px; }
.pg .post-lead { color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.26rem); line-height: 1.55; max-width: 60ch; margin: 0 0 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); font-size: .93rem; }
.post-meta span + span::before { content: "·"; margin-right: 18px; color: var(--line-strong); }
.post-hero { margin: clamp(24px, 3.4vw, 40px) 0 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 8; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.pg .post-disc { color: var(--dim); font-size: .86rem; margin: 16px 0 0; max-width: none; }
.pg .post-disc a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

.post-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(30px, 4vw, 52px); align-items: start; }
.post-toc { position: sticky; top: 96px; font-size: .92rem; }
.pg .post-toc p { color: var(--text); font-weight: 650; margin: 0 0 12px; }
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.post-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--dim); line-height: 1.35; transition: color .2s, border-color .2s; }
.post-toc a:hover { color: var(--text); border-left-color: var(--coral); }

.post-body { max-width: 72ch; min-width: 0; }
.pg .post-body > p, .pg .post-body li { color: var(--muted); font-size: 1.06rem; line-height: 1.72; }
.pg .post-body > p { margin: 0 0 20px; }
.pg .post-body h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); line-height: 1.12; margin: clamp(40px, 5vw, 60px) 0 18px; scroll-margin-top: 90px; }
.pg .post-body h3 { font-size: 1.24rem; margin: 30px 0 12px; }
.pg .post-body > ul, .pg .post-body > ol { padding-left: 22px; margin: 0 0 24px; }
.pg .post-body > ul { list-style: disc; }
.pg .post-body > ol { list-style: decimal; }
.pg .post-body li { margin-bottom: 8px; }
.pg .post-body li::marker { color: var(--dim); }
.pg .post-body a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.pg .post-body a:not(.btn):hover { color: var(--coral); text-decoration-color: var(--coral); }
.pg .post-body em { color: var(--text); font-style: italic; }
.post-body .dg-table-wrap { margin: 26px 0; }

.post-short { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 32px); margin: 0 0 clamp(30px, 4vw, 44px); }
.pg .post-short h2 { font-size: 1.2rem; margin: 0 0 12px; color: var(--coral); }
.pg .post-short p, .pg .post-short li { color: var(--text); font-size: 1.04rem; line-height: 1.6; }
.pg .post-short p { margin: 0 0 10px; }
.post-short ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.post-short li { position: relative; padding-left: 26px; margin: 0; }
.post-short li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--coral); }
.post-tip { border-left: 3px solid var(--coral); background: rgba(255, 142, 110, .06); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px; margin: 26px 0; }
.pg .post-tip p { color: var(--muted); margin: 0; }
.post-quote { margin: 34px 0; padding: 0 0 0 22px; border-left: 3px solid var(--line-strong); }
.pg .post-quote p { font-size: clamp(1.2rem, 2vw, 1.45rem); font-stretch: 108%; font-weight: 600; line-height: 1.35; color: var(--text); margin: 0; }
.post-fig { margin: 32px 0; }
.post-fig img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.post-fig figcaption, .ig > figcaption:not(.ig__title) { color: var(--dim); font-size: .88rem; margin-top: 10px; }
.post-cta { margin: 26px 0; }
.post-method { background: var(--bone); color: var(--on-bone); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px); margin: clamp(40px, 5vw, 56px) 0 0; }
.pg .post-method h2 { color: var(--on-bone); font-size: 1.3rem; margin: 0 0 12px; }
.pg .post-method p { color: var(--on-bone-muted); margin: 0 0 10px; }
.pg .post-method p:last-child { margin-bottom: 0; }
.post-faq .dg-faq { margin-top: 10px; }
.post-sources ol { list-style: decimal; padding-left: 22px; margin: 0; }
.pg .post-sources li { font-size: .92rem; color: var(--dim); line-height: 1.5; margin-bottom: 6px; word-break: break-word; }
.pg .post-sources a { color: var(--muted) !important; }

.post-more { margin-top: clamp(48px, 6vw, 80px); }
.pg .post-more h2 { font-size: clamp(1.5rem, 2.7vw, 2rem); margin: 0 0 20px; }
.post-rels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.post-rel { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: border-color .25s, background .25s, transform .4s var(--ease); }
.post-rel:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-3px); }
.post-rel__c { color: var(--coral); font-size: .86rem; font-weight: 600; }
.post-rel__t { font-weight: 680; font-size: 1.08rem; line-height: 1.3; font-stretch: 106%; }
.post-rel__a { margin-top: auto; padding-top: 6px; color: var(--dim); font-size: .92rem; }

/* Blog index cards */
.post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .25s, transform .4s var(--ease); }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.post-card__meta { color: var(--dim); font-size: .88rem; }
.post-card__title { font-weight: 700; font-size: 1.16rem; line-height: 1.25; font-stretch: 106%; letter-spacing: -.01em; }
.post-card__ex { color: var(--muted); font-size: .96rem; line-height: 1.5; }
.post-card--big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
.post-card--big .post-card__img { aspect-ratio: auto; min-height: 340px; }
.post-card--big .post-card__body { justify-content: center; padding: clamp(24px, 4vw, 48px); gap: 12px; }
.post-card--big .post-card__title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.1; }
.post-card--big .post-card__ex { font-size: 1.05rem; }

/* Infographics */
.ig { margin: 34px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); }
.ig__title { font-weight: 700; font-stretch: 108%; font-size: 1.12rem; letter-spacing: -.01em; color: var(--text); margin: 0 0 20px; line-height: 1.3; }
.ig-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ig-bar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; align-items: center; gap: 14px; }
.ig-bar__label { color: var(--muted); font-size: .95rem; line-height: 1.3; }
.ig-bar__sub { display: block; color: var(--dim); font-size: .82rem; }
.ig-bar__track { height: 14px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.ig-bar__fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--muted); opacity: .55; }
.ig-bar.is-hi .ig-bar__fill { background: var(--coral); opacity: 1; }
.ig-bar.is-hi .ig-bar__label { color: var(--text); font-weight: 600; }
.ig-bar__val { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .98rem; min-width: 4.5ch; text-align: right; }
.ig-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ig-stat { background: var(--surface-2); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.ig-stat__num { font-stretch: 112%; font-weight: 760; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -.025em; line-height: 1; color: var(--text); }
.ig-stat:first-child .ig-stat__num { color: var(--coral); }
.ig-stat__txt { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.ig-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.ig-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.ig-step strong { color: var(--text); }
.ig-step__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); font-weight: 700; }
.ig-cmp { display: grid; font-size: .96rem; }
.ig-cmp__row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.ig-cmp__head { border-top: 0; padding-top: 0; color: var(--text); font-weight: 700; font-stretch: 106%; }
.ig-cmp__head span:nth-child(2) { color: var(--coral); }
.ig-cmp__k { color: var(--text); font-weight: 600; }
.ig-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ig-day { background: var(--surface-2); border-radius: var(--r-md); padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 108px; }
.ig-day__d { color: var(--coral); font-weight: 700; font-size: .9rem; }
.ig-day__w { color: var(--text); font-size: .86rem; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.ig-day.is-rest { background: transparent; border: 1px dashed var(--line-strong); }
.ig-day.is-rest .ig-day__d, .ig-day.is-rest .ig-day__w { color: var(--dim); }
.ig-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.ig-check li { position: relative; padding-left: 30px; color: var(--muted); font-size: .97rem; line-height: 1.45; }
.ig-check li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--coral); }
.ig-check li::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid var(--coral); border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-toc { display: none; }
  .post-cards, .post-rels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card--big { grid-template-columns: 1fr; }
  .post-card--big .post-card__img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .post-cards, .post-rels { grid-template-columns: 1fr; }
  .post-hero { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .ig-bar { grid-template-columns: 1fr auto; }
  .ig-bar__track { grid-column: 1 / -1; grid-row: 2; }
  .ig-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-check { grid-template-columns: 1fr; }
  .ig-cmp__row { grid-template-columns: 1fr 1fr; }
  .ig-cmp__k { grid-column: 1 / -1; }
  .ig-cmp__head span:first-child { display: none; }
}
