/* =============================================================================
   GROW · frontend4 — /roas-guide/ page-specific styles (loads after learn.css)
   ============================================================================= */

.rgg { max-width: 1180px; width: 100%; margin: 0 auto; padding: clamp(28px, 5vh, 64px) 0 40px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.rgg-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-bottom: clamp(40px, 6vw, 76px); }
.rgg-hero__text h1 { font-size: clamp(38px, 4.4vw, 68px); }
.rgg-hero__sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: .01em; text-transform: none; color: var(--ink-mute); margin: 14px 0 16px; }
.rgg-hero__lead { font-size: clamp(17px, 1.25vw, 21px); font-weight: 300; line-height: 1.5; color: var(--ink-soft); margin: 0 0 28px; max-width: 46ch; }
.rgg-hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rgg-hero__cta .btn-dark { height: 54px; padding: 0 26px; font-size: 16px; }
.rgg-hero__note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-mute); }
.rgg-hero__aside { font-size: 14.5px; color: var(--ink-mute); margin: 0; }
.rgg-hero__aside a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(17,17,16,.3); text-underline-offset: 3px; }
.rgg-hero__visual { display: block; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(17,17,16,.05), 0 30px 70px -30px rgba(17,17,16,.35); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.rgg-hero__visual:hover { transform: translateY(-3px); }
.rgg-hero__visual img { display: block; width: 100%; height: auto; }

/* ── Article shell: TL;DR bar, share, TOC + body ─────────────────────── */
.art-shell#guide { max-width: 100%; }
.rgg-artbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(17,17,16,.08); border-bottom: 1px solid rgba(17,17,16,.08); margin-bottom: clamp(28px, 4vw, 44px); }
.rgg-artmeta { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--ink-mute); }
.rgg-artshare { display: flex; align-items: center; gap: 8px; }
.rgg-artshare__label { font-size: 12.5px; color: var(--ink-mute); margin-right: 4px; }
.rgg-abtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(17,17,16,.05); border: 0; color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.rgg-abtn svg { width: 15px; height: 15px; }
.rgg-abtn:hover { background: rgba(17,17,16,.09); color: var(--ink); }
.rgg-abtn--tldr.is-active { background: var(--ink); color: #fff; }
.rgg-abtn#rgCopyLink.is-copied { background: var(--ink); color: #fff; }

.rgg-tldr { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.7,.2,1); margin-top: -20px; }
.rgg-tldr.is-open { grid-template-rows: 1fr; margin-bottom: 20px; }
.rgg-tldr__inner { overflow: hidden; }
.rgg-tldr .rgg-tldr__inner { background: #fff; border-radius: 18px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(17,17,16,.04), 0 10px 30px -18px rgba(17,17,16,.25); }
.rgg-tldr h6 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .01em; text-transform: none; color: var(--ink-mute); }
.rgg-tldr .ticks li { font-size: 15px; }

.rgg-grid .doc__body { max-width: 74ch; }
@media (min-width: 901px) { .rgg-grid { grid-template-columns: 240px minmax(0, 1fr); } }

/* body extras beyond doc__body's base rules */
.doc__body figure.rgg-shot { margin: 0 0 1.4em; }
.doc__body figure.rgg-shot img { display: block; width: 100%; max-width: 560px; height: auto; border-radius: 14px; box-shadow: 0 1px 2px rgba(17,17,16,.04), 0 20px 50px -24px rgba(17,17,16,.3); }
.doc__body figure.rgg-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-mute); max-width: 480px; }

.rgg-box { margin: 0 0 1.4em; }
.rgg-box h5 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .01em; text-transform: none; color: var(--ink-mute); }
.rgg-box p { margin: 0 0 .6em; font-size: 16px; }
.rgg-box p:last-child { margin-bottom: 0; }
.rgg-box--callout { border-left: 3px solid var(--ink); padding-left: 18px; background: transparent; box-shadow: none; border-radius: 0; }

.doc__body table thead th { font-size: 13px; }

.rgg-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #fff; border-radius: 18px; padding: 22px 26px; margin: 26px 0; box-shadow: 0 1px 2px rgba(17,17,16,.04), 0 10px 30px -18px rgba(17,17,16,.25); }
.rgg-cta__txt { display: grid; gap: 4px; max-width: 46ch; }
.rgg-cta__txt b { font-size: 16px; color: var(--ink); }
.rgg-cta__txt span { font-size: 14.5px; font-weight: 300; color: var(--ink-soft); line-height: 1.5; }
.rgg-cta__link { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: transform .2s, background .2s; }
.rgg-cta__link:hover { transform: translateY(-1px); background: #000; }

/* ── Mini calculator (inline in the formula section) ─────────────────── */
.rgg-mini { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; background: #fff; border-radius: 16px; padding: 18px 20px; margin: 0 0 1.4em; box-shadow: 0 1px 2px rgba(17,17,16,.04), 0 10px 30px -18px rgba(17,17,16,.25); }
.rgg-mini__field { display: grid; gap: 6px; }
.rgg-mini__field span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .01em; text-transform: none; color: var(--ink-mute); }
.rgg-mini__input { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 10px; background: rgba(17,17,16,.04); }
.rgg-mini__input i { font-style: normal; color: var(--ink-mute); font-size: 15px; }
.rgg-mini__input input { border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); width: 100%; outline: none; font-variant-numeric: tabular-nums; }
.rgg-mini__out { display: grid; gap: 6px; text-align: right; padding-left: 14px; border-left: 1px solid rgba(17,17,16,.1); }
.rgg-mini__out span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .01em; text-transform: none; color: var(--ink-mute); }
.rgg-mini__out b { font-family: var(--font-serif); font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .rgg-mini { grid-template-columns: 1fr; } .rgg-mini__out { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid rgba(17,17,16,.1); padding-top: 12px; } }

@media (max-width: 900px) {
    .rgg-hero { grid-template-columns: 1fr; }
    .rgg-hero__visual { order: -1; }
}
/* house style: serif display heading like every other frontend4 page */
.rgg-hero h1, .rgg-hero .fx-title, h1.rgg-title { font-family: var(--font-serif) !important; font-weight: 400 !important; font-variation-settings: 'SOFT' 50; letter-spacing: -0.025em !important; line-height: 1.02; }
.rgg-hero__text h1 { font-family: var(--font-serif) !important; font-weight: 400 !important; font-variation-settings: "SOFT" 50; letter-spacing: -0.025em !important; line-height: 1.02; }

/* ── "In short" summary — same card treatment the content pages use ── */
.rgg-tldr--flat { background: #fff; border-radius: 18px; padding: 22px 24px; margin: 0 0 34px; box-shadow: 0 1px 2px rgba(17,17,16,.04), 0 10px 30px -18px rgba(17,17,16,.25); }
.rgg-tldr--flat h6 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .01em; text-transform: none; color: var(--ink-mute); font-weight: 500; }
.rgg-tldr--flat .ticks { margin: 0; }
.rgg-tldr--flat .ticks li { font-size: 15px; }
