/* HaruVista user guide and its articles: the landing page's wide stage, HaruVista blue
   and soft cards, with comfortable reading text and clear visual hierarchy. */
body:has(main.hv-guide) :is(header.site, footer.site) .wrap { max-width: 1120px; }
main.hv-guide {
  --accent: #1967d2;
  --accent-soft: #e8f1fd;
  --button-text: #ffffff;
  --hv-surface: #ffffff;
  --hv-accent-border: #c5dcfb;
  --hv-shadow: 0 24px 56px -18px rgb(15 28 54 / 15%), 0 4px 16px rgb(15 28 54 / 6%);
  --hv-card-shadow: 0 1px 2px rgb(15 28 54 / 4%), 0 10px 26px -14px rgb(15 28 54 / 10%);
  --guide-label: #f4f1ea;
  --guide-label-border: #e2dacb;
  --guide-note: color-mix(in srgb, var(--accent) 6%, var(--hv-surface));
  --guide-warn-bg: #fef7ea;
  --guide-warn-border: #e9c47f;
  --guide-warn-accent: #a6570c;
  --tone: var(--accent);
  --tone-soft: var(--accent-soft);
  max-width: 1120px;
  padding-top: 44px;
  padding-bottom: 88px;
}
:root[data-theme="dark"] main.hv-guide {
  --accent: #8ab4f8;
  --accent-soft: #1b2b44;
  --button-text: #062e6f;
  --hv-surface: #221f1c;
  --hv-accent-border: #2e4872;
  --hv-shadow: 0 26px 64px -14px rgb(0 0 0 / 55%), 0 4px 18px rgb(0 0 0 / 35%);
  --hv-card-shadow: 0 1px 2px rgb(0 0 0 / 24%), 0 10px 28px -12px rgb(0 0 0 / 45%);
  --guide-label: #2c2824;
  --guide-label-border: #433c36;
  --guide-warn-bg: #2c2419;
  --guide-warn-border: #684d27;
  --guide-warn-accent: #f3bd74;
}

/* Each topic group keeps one colour, from the contents down to its chapter and article badge. */
main.hv-guide.guide-tone-display, .guide-tone-display { --tone: #1967d2; --tone-soft: #e8f1fd; }
main.hv-guide.guide-tone-reminders, .guide-tone-reminders { --tone: #b0570c; --tone-soft: #fcefdc; }
main.hv-guide.guide-tone-connections, .guide-tone-connections { --tone: #1d7a4c; --tone-soft: #e1f3e8; }
main.hv-guide.guide-tone-data, .guide-tone-data { --tone: #6a4fe0; --tone-soft: #eee9fb; }
:root[data-theme="dark"] main.hv-guide.guide-tone-display, :root[data-theme="dark"] .guide-tone-display { --tone: #8ab4f8; --tone-soft: #1b2b44; }
:root[data-theme="dark"] main.hv-guide.guide-tone-reminders, :root[data-theme="dark"] .guide-tone-reminders { --tone: #f3bd74; --tone-soft: #3a2b17; }
:root[data-theme="dark"] main.hv-guide.guide-tone-connections, :root[data-theme="dark"] .guide-tone-connections { --tone: #7fd1a6; --tone-soft: #16322a; }
:root[data-theme="dark"] main.hv-guide.guide-tone-data, :root[data-theme="dark"] .guide-tone-data { --tone: #c8b4ff; --tone-soft: #2b2540; }
.guide-chapter-icon {
  display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--tone-soft); color: var(--tone);
}

/* Title */
.guide-hero { max-width: 820px; margin: 0 auto; text-align: center; }
.hv-app-pill.guide-back { text-decoration: none; margin-bottom: 0; }
/* Same file as the landing page's app icon; the link text already names the page. */
.guide-back-icon {
  flex: none; width: 28px; height: 28px; border-radius: 7px;
  background: url("/brand/haruvista-icon.20261113.a506d9d55c4d.png") center / cover no-repeat;
}
.hv-app-pill.guide-back:hover { border-color: var(--hv-accent-border); color: var(--accent); }
.guide-hero > .guide-back { margin-bottom: 20px; }
main.hv-guide .guide-hero h1 {
  margin: 0 auto 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2;
  letter-spacing: -0.032em; font-weight: 750; color: var(--text); text-wrap: balance;
}
html:not([lang="en"]) main.hv-guide .guide-hero h1 { line-height: 1.28; }
.guide-hero-desc {
  max-width: 680px; margin: 0 auto; color: var(--muted);
  font-size: clamp(16.5px, 1.8vw, 18.5px); line-height: 1.68; text-wrap: pretty;
}
.guide-start {
  display: inline-block; max-width: 100%; margin: 22px auto 0; padding: 10px 18px;
  border: 1px solid var(--hv-accent-border); border-radius: 14px;
  background: var(--accent-soft); color: var(--text); font-size: 15.5px; line-height: 1.6;
}

/* Guide hub contents: detailed articles separated cleanly from quick-help topics. */
.guide-index { display: grid; gap: 56px; margin-top: 52px; }
main.hv-guide .guide-index section { margin: 0; }
main.hv-guide .guide-index nav { padding-top: 40px; border-top: 1px solid var(--line); }
main.hv-guide .guide-index h2 {
  margin: 0 0 18px; color: var(--text); font-size: 21px; font-weight: 700;
  line-height: 1.35; letter-spacing: -0.02em; text-transform: none;
}
.guide-index ul { margin: 0; padding: 0; list-style: none; }
.guide-index-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-index-articles a {
  display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px 22px 22px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--hv-surface);
  box-shadow: var(--hv-card-shadow); color: var(--text); text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.guide-index-articles a:hover { border-color: var(--tone); box-shadow: var(--hv-shadow); transform: translateY(-2px); }
.guide-article-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px;
}
.guide-article-icon {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; background: var(--tone-soft); color: var(--tone);
}
.guide-article-tag,
.guide-article-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: var(--tone-soft); color: var(--tone);
  font-size: 12.5px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em;
}
.guide-article-label { font-size: 17.5px; font-weight: 700; line-height: 1.38; letter-spacing: -0.018em; }
.guide-article-label::after { content: "\00a0→"; content: "\00a0→" / ""; color: var(--tone); }
.guide-article-desc { color: var(--muted); font-size: 14.5px; line-height: 1.62; }
.guide-index-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.guide-index-group {
  padding: 20px 20px 8px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--hv-surface); box-shadow: var(--hv-card-shadow);
}
main.hv-guide .guide-index-group h3 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font-size: 16.5px; font-weight: 700; line-height: 1.35;
}
.guide-index-group .guide-chapter-icon { width: 36px; height: 36px; border-radius: 10px; }
.guide-index-group a,
.guide-chapter-topics a { text-decoration: none; }
.guide-index-group a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 9px 0; border-top: 1px solid var(--line);
  color: var(--text); font-size: 14.5px; line-height: 1.45;
}
.guide-index-group a::after {
  content: ""; flex: 0 0 6px; height: 6px; margin-right: 3px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg);
}
.guide-index-group a:hover { color: var(--tone); }
.guide-index-group a:hover::after { border-color: var(--tone); }

/* Hub chapters: the group's title and topics stay beside its cards while reading. */
.guide-chapter {
  display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 48px;
  margin-top: 96px; scroll-margin-top: 24px;
}
.guide-chapter-head { position: sticky; top: 92px; align-self: start; }
main.hv-guide .guide-chapter-head h2 {
  margin: 14px 0 14px; color: var(--text); font-size: clamp(23px, 2.5vw, 28px); font-weight: 700;
  line-height: 1.28; letter-spacing: -0.025em; text-transform: none;
}
.guide-chapter-topics { margin: 0 0 14px; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.guide-chapter-topics a {
  display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent;
  color: var(--muted); font-size: 14.5px; line-height: 1.45;
}
.guide-chapter-topics a:hover { border-left-color: var(--tone); color: var(--tone); }
.guide-chapter-top {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none;
}
.guide-chapter-top:hover { color: var(--accent); }
.guide-chapter-body { min-width: 0; }

/* Article editorial hero + 2-column reading shell with sticky TOC rail */
.guide-article-hero {
  max-width: none; margin: 0; padding-bottom: 32px; border-bottom: 1px solid var(--line);
  text-align: left;
}
.guide-article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px;
}
main.hv-guide .guide-article-hero h1 {
  max-width: 24ch; margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 40px);
}
.guide-article-hero .guide-hero-desc { max-width: 720px; margin: 0; }

.guide-article-shell {
  display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 48px;
  margin-top: 36px; align-items: start;
}
.guide-toc-rail { position: sticky; top: 92px; min-width: 0; }
.guide-toc {
  padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--hv-surface); box-shadow: var(--hv-card-shadow);
}
.guide-toc-title {
  margin: 0 0 12px; color: var(--muted); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
html[lang="ko"] .guide-toc-title,
html[lang="ja"] .guide-toc-title { text-transform: none; letter-spacing: 0.01em; font-size: 13px; }
.guide-toc-list {
  margin: 0; padding: 0; list-style: none; counter-reset: toc-item;
  border-left: 2px solid var(--line);
}
.guide-toc-list li { counter-increment: toc-item; }
.guide-toc-list a {
  display: flex; align-items: baseline; gap: 8px; margin-left: -2px; padding: 7px 4px 7px 13px;
  border-left: 2px solid transparent; color: var(--muted); font-size: 14px; line-height: 1.45;
  text-decoration: none; transition: color 0.14s, border-color 0.14s;
}
.guide-toc-list a::before {
  content: counter(toc-item, decimal-leading-zero); flex: none;
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}
.guide-toc-list a:hover { color: var(--text); border-left-color: var(--hv-accent-border); }
.guide-toc-list a[aria-current="location"] {
  border-left-color: var(--accent); color: var(--accent); font-weight: 650;
}
.guide-toc-list a[aria-current="location"]::before { color: var(--accent); }
.guide-rail-cta {
  margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--hv-surface); text-align: center;
}
.guide-rail-btn {
  display: inline-flex; width: 100%; justify-content: center; min-height: 44px; padding: 10px 14px;
  border-radius: 10px; font-size: 14px;
}
.guide-rail-note { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.guide-article-main { min-width: 0; max-width: 760px; }
.hv-guide-article article { margin: 0; counter-reset: guide-section; }
.hv-guide-article article > .guide-shot:first-child { margin: 0 0 24px; }

/* Topic cards and article sections */
main.hv-guide .guide-topic,
main.hv-guide-article article .card {
  margin: 0; padding: 30px 34px 32px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--hv-surface); box-shadow: var(--hv-card-shadow); scroll-margin-top: 28px;
}
main.hv-guide .guide-topic + .guide-topic,
main.hv-guide-article article > * + .card { margin-top: 22px; }
main.hv-guide .guide-topic:target,
main.hv-guide-article article .card:target {
  border-color: var(--hv-accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--hv-card-shadow);
}
main.hv-guide .guide-topic h3 {
  margin: 0 0 20px; color: var(--text); font-size: 22px; font-weight: 700;
  line-height: 1.35; letter-spacing: -0.02em; text-transform: none;
}
main.hv-guide-article article > section.card { counter-increment: guide-section; }
main.hv-guide-article article .card h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 20px; color: var(--text); font-size: 22px; font-weight: 750;
  line-height: 1.35; letter-spacing: -0.02em; text-transform: none;
}
main.hv-guide-article article > section.card h2::before {
  content: counter(guide-section, decimal-leading-zero); flex: none;
  display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.guide-topic :is(p, li) { font-size: 17.5px; line-height: 1.75; }
.hv-guide-article .card :is(p, li) { font-size: 17px; line-height: 1.76; }
.guide-topic > p,
.hv-guide-article .card > p { margin: 0 0 14px; }
.guide-topic > :last-child,
.hv-guide-article .card > :last-child { margin-bottom: 0; }
.hv-guide-article .card .guide-lead {
  color: var(--muted); font-size: 16.5px; line-height: 1.72; margin-bottom: 18px;
}

/* Numbered steps */
.guide-steps,
.hv-guide-article .card ol { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-steps > li,
.hv-guide-article .card ol > li { position: relative; padding-left: 48px; counter-increment: guide-step; }
.guide-steps > li + li,
.hv-guide-article .card ol > li + li { margin-top: 20px; }
.guide-steps > li::before,
.hv-guide-article .card ol > li::before {
  content: counter(guide-step); position: absolute; top: 1px; left: 0; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--button-text);
  font-size: 14px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.guide-steps > li:not(:last-child)::after,
.hv-guide-article .card ol > li:not(:last-child)::after {
  content: ""; position: absolute; top: 38px; bottom: -14px; left: 14px; width: 2px; border-radius: 1px; background: var(--line);
}
.guide-step-title {
  display: block; margin-bottom: 4px; color: var(--text); font-size: 17px; font-weight: 750; line-height: 1.4;
}

/* Bulleted points */
.guide-points,
.hv-guide-article .card ul:not(.guide-options):not(.guide-choice-grid):not(.guide-refs-list) {
  margin: 0 0 18px; padding: 0; list-style: none;
}
.guide-points > li,
.hv-guide-article .card ul:not(.guide-options):not(.guide-choice-grid):not(.guide-refs-list) > li {
  position: relative; padding-left: 24px;
}
.guide-points > li + li,
.hv-guide-article .card ul:not(.guide-options):not(.guide-choice-grid):not(.guide-refs-list) > li + li {
  margin-top: 12px;
}
.guide-points > li::before,
.hv-guide-article .card ul:not(.guide-options):not(.guide-choice-grid):not(.guide-refs-list) > li::before {
  content: ""; position: absolute; top: 0.72em; left: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* Structured sub-cards for comparing apps, versions, or options */
.guide-options {
  display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none;
}
.hv-guide-article .card .guide-options > li {
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  font-size: 16.5px; line-height: 1.72;
}
.guide-option-title {
  display: block; margin-bottom: 6px; color: var(--text); font-size: 16.5px; font-weight: 750; line-height: 1.38;
}
.guide-option-meta {
  display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6;
}

/* Quick decision / triage grid inside opening cards */
.guide-choice-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin: 16px 0 0; padding: 0; list-style: none;
}
.hv-guide-article .card .guide-choice-grid > li {
  display: flex; flex-direction: column; gap: 6px; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  font-size: 15.5px; line-height: 1.58;
}
.guide-choice-title {
  color: var(--text); font-size: 16px; font-weight: 750; line-height: 1.35;
}
.guide-choice-grid a { font-size: 14.5px; font-weight: 600; margin-top: auto; padding-top: 4px; }

/* App labels and keys: ONLY explicit strong.ui becomes a UI chip; plain strong stays crisp bold. */
.hv-guide strong.ui {
  padding: 0.06em 0.36em; border: 1px solid var(--guide-label-border); border-radius: 6px;
  background: var(--guide-label); color: var(--text); font-size: 0.93em; font-weight: 620;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hv-guide kbd {
  display: inline-block; min-width: 1.7em; padding: 0 0.42em; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--hv-surface); color: var(--text);
  font: 600 0.84em/1.6 "Inter Web", "Segoe UI", sans-serif; text-align: center; vertical-align: 0.06em;
}

/* Calendar services, one block each (hub page) */
.guide-services { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.guide-topic .guide-services > li {
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-size: 16.5px; line-height: 1.7;
}
.guide-service-name { display: block; margin-bottom: 4px; color: var(--text); font-size: 16.5px; font-weight: 750; }

/* Callout boxes & notes */
.guide-topic .guide-note,
.hv-guide-article .card .guide-callout {
  position: relative; margin: 20px 0 0; padding: 16px 20px 16px 22px;
  border: 1px solid var(--hv-accent-border); border-left: 4px solid var(--accent); border-radius: 12px;
  background: var(--guide-note); color: var(--text); font-size: 16px; line-height: 1.7;
}
.guide-topic .guide-note { padding-left: 52px; border-left-width: 1px; border-radius: 14px; }
.guide-note::before {
  content: "i"; content: "i" / ""; position: absolute; top: 18px; left: 20px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--button-text);
  font: italic 700 14px/1 Georgia, "Times New Roman", serif;
}
.hv-guide-article .card .guide-callout + * { margin-top: 18px; }
.hv-guide-article .card .guide-callout-title {
  display: block; margin-bottom: 5px; color: var(--accent); font-size: 15.5px; font-weight: 750; line-height: 1.4;
}
.hv-guide-article .card .guide-callout p { margin: 0; font-size: 16px; line-height: 1.7; }
.hv-guide-article .card .guide-callout p + p { margin-top: 8px; }
.hv-guide-article .card .guide-callout--warn {
  border-color: var(--guide-warn-border); border-left-color: var(--guide-warn-accent);
  background: var(--guide-warn-bg);
}
.hv-guide-article .card .guide-callout--warn .guide-callout-title { color: var(--guide-warn-accent); }

/* Clean reference & related links footer inside cards */
.hv-guide-article .card .guide-refs,
.hv-guide-article .card .section-note {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; line-height: 1.6;
}
.guide-refs-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none;
}
.guide-refs-list a {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  color: var(--muted); font-size: 13.5px; font-weight: 550; line-height: 1.35; text-decoration: none;
  transition: border-color 0.14s, color 0.14s;
}
.guide-refs-list a::after { content: "↗"; content: "↗" / ""; font-size: 11.5px; opacity: 0.7; }
.guide-refs-list a[href^="/"]::after,
.guide-refs-list a[href^="#"]::after { content: "→"; content: "→" / ""; }
.guide-refs-list a:hover { border-color: var(--hv-accent-border); color: var(--accent); }

/* Screenshots & side-by-side comparison pairs */
.hv-guide .guide-shot { margin: 22px 0 0; }
.hv-guide .guide-shot + * { margin-top: 20px; }
.hv-guide .guide-shot .project-preview,
.hv-guide .guide-shot > img {
  display: block; max-width: 100%; height: auto; margin: 0;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--hv-card-shadow);
}
.hv-guide .guide-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.guide-shot-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0;
}
.guide-shot-pair + * { margin-top: 20px; }
.guide-shot-pair .guide-shot { margin: 0; display: flex; flex-direction: column; }
.guide-shot-pair .guide-shot > img { width: 100%; }

/* Closing: blog posts (Korean), then the trial */
main.hv-guide > aside.card {
  margin-top: 96px; padding: 28px 32px; border-radius: 20px; background: var(--hv-surface); box-shadow: var(--hv-card-shadow);
}
main.hv-guide > aside.card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
main.hv-guide > aside.card ul { margin: 0; padding-left: 20px; }
main.hv-guide > aside.card li { font-size: 16.5px; line-height: 1.7; }
main.hv-guide > aside.card li + li { margin-top: 6px; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 60px; }

.guide-next { margin-top: 32px; }
.guide-next a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 18px 24px;
  border: 1px solid var(--hv-accent-border); border-radius: 16px; background: var(--accent-soft);
  color: var(--accent); font-size: 16.5px; font-weight: 700; line-height: 1.45; text-decoration: none;
  transition: border-color 0.14s, transform 0.14s;
}
.guide-next a:hover { border-color: var(--accent); transform: translateY(-1px); }
/* The Store button after the article: the side rail's button is hidden on narrow screens, so this is the only one there. */
.guide-end-cta {
  margin-top: 32px; padding: 24px 24px 20px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--hv-surface); box-shadow: var(--hv-card-shadow); text-align: center;
}
.guide-end-cta-title { margin: 0 0 14px; color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.5; }
.guide-end-cta-btn {
  display: inline-flex; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-size: 15.5px;
}

@media (max-width: 1000px) {
  .guide-index-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .guide-article-shell { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .guide-toc-rail { position: static; }
  .guide-rail-cta { display: none; }
  .guide-article-main { max-width: none; }
}
@media (max-width: 900px) {
  .guide-index-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-chapter { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 72px; }
  .guide-chapter-head { position: static; display: flex; align-items: center; gap: 14px; }
  main.hv-guide .guide-chapter-head h2 { flex: 1; margin: 0; }
  .guide-chapter-topics { display: none; }
  main.hv-guide > aside.card { margin-top: 72px; }
}
@media (max-width: 620px) {
  main.hv-guide { padding-top: 28px; padding-bottom: 56px; }
  .guide-hero { text-align: left; }
  main.hv-guide .guide-hero h1 { margin-left: 0; }
  .guide-start { font-size: 15px; }
  .guide-index { gap: 40px; margin-top: 36px; }
  .guide-index-articles { grid-template-columns: minmax(0, 1fr); }
  .guide-index-articles a { padding: 18px 20px 20px; }
  .guide-index-topics { grid-template-columns: minmax(0, 1fr); }
  .guide-article-hero { padding-bottom: 24px; }
  .guide-toc { padding: 16px 16px 14px; }
  main.hv-guide .guide-topic,
  main.hv-guide-article article .card { padding: 22px 20px 24px; border-radius: 16px; }
  main.hv-guide .guide-topic h3,
  main.hv-guide-article article .card h2 { margin-bottom: 16px; font-size: 19.5px; }
  .guide-topic :is(p, li),
  .hv-guide-article .card :is(p, li) { font-size: 16px; }
  .guide-steps > li,
  .hv-guide-article .card ol > li { padding-left: 40px; }
  .guide-steps > li::before,
  .hv-guide-article .card ol > li::before { top: 1px; width: 26px; height: 26px; font-size: 13.5px; }
  .guide-steps > li:not(:last-child)::after,
  .hv-guide-article .card ol > li:not(:last-child)::after { top: 34px; left: 12px; }
  .guide-choice-grid,
  .guide-shot-pair { grid-template-columns: minmax(0, 1fr); }
  .hv-guide-article .card .guide-options > li,
  .guide-topic .guide-services > li { padding: 14px 16px; font-size: 15.5px; }
  .guide-topic .guide-note { padding: 14px 16px 14px 48px; font-size: 15.5px; }
  .guide-note::before { top: 16px; left: 16px; }
  .hv-guide-article .card .guide-callout { padding: 14px 16px; font-size: 15.5px; }
  main.hv-guide > aside.card { padding: 22px 20px; }
  .guide-cta { justify-content: flex-start; }
  .guide-next a { padding: 16px 18px; font-size: 15.5px; }
  .guide-end-cta { padding: 20px 18px 16px; }
  .guide-end-cta-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-index-articles a,
  .guide-next a,
  .guide-toc-list a,
  .guide-refs-list a { transition: none; }
  .guide-index-articles a:hover,
  .guide-next a:hover { transform: none; }
}
