/* Cost guide pages (built by tools/build-guides.js). Calculator styles come from home.css. */

.g-crumbs { max-width: 1240px; margin: 0 auto; padding: 4px 32px 0; display: flex; gap: 8px; font-size: 14px; color: var(--muted); }
.g-crumbs a { color: var(--muted); }
.h-header .nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

.g-hero { padding-top: 28px; }
.g-hero h1 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); max-width: 980px; }
.g-hero > p { max-width: 600px; }

/* article + sticky contents */
.g-body { max-width: 1240px; margin: 0 auto; padding: 96px 32px 0; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.g-toc { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.g-toc strong { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.g-toc ol { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.g-toc a { color: var(--ink); text-decoration: none; }
.g-toc a:hover { text-decoration: underline; }
.g-toc .btn { margin-top: 6px; min-height: 48px; }

.g-article { min-width: 0; max-width: 820px; font-size: 1.0625rem; line-height: 1.65; }
.g-article h2 { margin: 72px 0 16px; padding-top: 24px; border-top: 1px solid var(--ink); font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; text-shadow: none; scroll-margin-top: 16px; }
.g-article > h2:first-of-type { margin-top: 32px; }
.g-article h3 { margin: 36px 0 10px; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25; }
.g-article p { margin: 0 0 16px; }
.g-article ul { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.g-article strong { font-weight: 600; }

.g-table { margin: 8px 0 22px; overflow-x: auto; border-radius: 14px; border: 1px solid #C5D2DC; background: #fff; box-shadow: 0 2px 0 #C5D2DC; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.g-table th { background: #EBF1F4; text-align: left; font-weight: 600; padding: 10px 14px; white-space: nowrap; }
.g-table td { padding: 10px 14px; border-top: 1px solid #E3EAEF; vertical-align: top; }
.g-table td:not(:first-child) { font-variant-numeric: tabular-nums; }

.g-cta { margin: 26px 0 30px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.g-cta .btn { min-height: 52px; padding: 0 22px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.g-cta span { font-size: 14px; color: var(--muted); }
.g-note { font-size: 14px; color: var(--muted); }
.g-disclaimer { margin-top: 48px !important; font-size: 13px; color: var(--muted); }

/* related guides */
.g-related { max-width: 1240px; margin: 0 auto; padding: 110px 32px 0; display: flex; flex-direction: column; gap: 24px; }
.g-related h2 { margin: 0; font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; text-shadow: none; }
.g-related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.g-related__card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); border: 1px solid var(--key-edge);
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 var(--key-under), 0 8px 14px rgba(26, 51, 77, 0.14); transition: transform 0.08s; }
.g-related__card:active { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 var(--key-under); }
.g-related__card b { font-size: 1.125rem; }
.g-related__card span { font-size: 14px; color: var(--muted); }
.g-page .h-close { margin-top: 110px; }

@media (max-width: 1000px) {
  .g-body { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 64px; }
  .g-toc { position: static; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid #C5D2DC; }
}
@media (max-width: 600px) {
  .g-crumbs { padding: 0 16px; }
  .g-body, .g-related { padding-left: 16px; padding-right: 16px; }
  .g-hero h1 { font-size: 2.25rem; }
  .g-article { font-size: 1rem; }
  .g-table table { font-size: 14px; }
  .g-cta .btn { width: 100%; justify-content: center; }
}
