/* RingReady Sites — long-form guides (loads after style.css) */
.guide-page { background: var(--paper); }
.guide-page .site-header { position: sticky; }

/* ---------- Article hero ---------- */
.g-hero { padding: 56px 0 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #b3ad9f; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-dark); }
.g-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; letter-spacing: -.035em; }
.g-hero .dek { font-size: 1.2rem; color: var(--muted); max-width: 62ch; margin: 0 0 18px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.g-meta span { display: inline-flex; align-items: center; gap: 6px; }
.g-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Layout: article + sticky TOC ---------- */
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; padding-bottom: 90px; }
@media (max-width: 999px) { .g-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.g-article { min-width: 0; max-width: 68ch; font-size: 1.08rem; line-height: 1.75; color: #24304a; }
.g-article > * { margin-top: 0; margin-bottom: 0; }
.g-article > * + * { margin-top: 1.1em; }
.g-article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.2em 0 .5em; scroll-margin-top: 96px; color: var(--ink); }
.g-article h3 { font-size: 1.22rem; margin: 1.7em 0 .3em; scroll-margin-top: 96px; color: var(--ink); }
.g-article a { color: var(--accent-dark); text-underline-offset: 3px; }
.g-article a.btn { text-decoration: none; }
.g-article a.btn-primary { color: #fff; }
.g-article ul, .g-article ol { padding-left: 1.3em; }
.g-article li + li { margin-top: .45em; }
.g-article li::marker { color: var(--accent); font-weight: 700; }
.g-article strong { color: var(--ink); }

/* ---------- Callouts ---------- */
.takeaways, .callout { border-radius: 18px; padding: 22px 24px; margin: 1.6em 0; }
.takeaways { background: var(--ink); color: #dfe5ef; }
.takeaways h2 { font: 700 .82rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #ff8a6e; margin: 0 0 14px; }
.takeaways ul { list-style: none; padding: 0; margin: 0; }
.takeaways li { position: relative; padding-left: 28px; }
.takeaways li + li { margin-top: 10px; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal); transform: rotate(-45deg); }
.takeaways strong { color: #fff; }
.callout { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); }
.callout.tip { border-left-color: var(--signal); }
.callout b.k { display: block; font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
.callout.tip b.k { color: #0b7a4b; }
.callout p + p { margin-top: .6em; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--line); background: #fff; margin: 1.6em 0; }
.table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #efe9dc; }
.table-wrap thead th { background: #f3efe6; font: 700 .82rem/1.3 var(--body); letter-spacing: .04em; color: var(--ink); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; color: var(--ink); }
.table-wrap tr.hl td { background: #fff6f2; }

/* ---------- Feature list (numbered cards) ---------- */
.feature-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font: 700 .95rem/1 var(--head); margin-right: 10px; vertical-align: 3px; }

/* ---------- TOC ---------- */
.toc { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 16px; font-size: .92rem; }
.toc b { display: block; font: 700 .76rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; line-height: 1.35; border-left: 2px solid transparent; }
.toc a:hover { background: #f6f2ea; }
.toc a.on { background: #fff1ec; color: var(--accent-dark); border-left-color: var(--accent); font-weight: 600; }
.toc-mobile { display: none; }
@media (max-width: 999px) {
  .toc { display: none; }
  .toc-mobile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin: 0 0 28px; max-width: 68ch; }
  .toc-mobile summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "+"; color: var(--accent-dark); font-size: 1.3rem; line-height: 1; }
  .toc-mobile[open] summary::after { content: "–"; }
  .toc-mobile ol { margin: 0 0 14px; padding-left: 1.2em; }
  .toc-mobile li + li { margin-top: 6px; }
  .toc-mobile a { color: var(--ink-2); text-decoration: none; }
}

/* ---------- End CTA + more guides ---------- */
.g-cta { position: relative; overflow: hidden; border-radius: 26px; background: var(--ink); color: #fff; padding: 34px 32px; margin: 2.6em 0 0; isolation: isolate; }
.g-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 120% at 0% 0%, rgba(255,90,54,.35), transparent 60%); }
.g-cta img { position: absolute; z-index: -1; right: -40px; bottom: -50px; width: 240px; height: auto; opacity: .55; }
.g-cta h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 22ch; }
.g-cta p { color: #c9d1de; margin: 0 0 20px; max-width: 46ch; }
@media (max-width: 559px) { .g-cta { padding: 28px 22px; } .g-cta img { width: 170px; right: -50px; bottom: -40px; opacity: .3; } }
.more { margin-top: 2.4em; }
.more h2 { font-size: 1.3rem; margin: 0 0 14px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 559px) { .more-grid { grid-template-columns: 1fr; } }
.more-grid a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.4; transition: transform .2s, border-color .2s; }
.more-grid a:hover { transform: translateY(-3px); border-color: var(--accent); }
.more-grid small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }

/* ---------- Guides hub ---------- */
.hub-hero { padding: 64px 0 30px; }
.hub-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); max-width: 18ch; letter-spacing: -.04em; }
.hub-hero p { font-size: 1.18rem; color: var(--muted); max-width: 58ch; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 10px; padding-bottom: 100px; }
@media (max-width: 899px) { .hub-grid { grid-template-columns: 1fr; max-width: 560px; } }
.hub-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.hub-card:hover { transform: translateY(-6px); }
.hub-card .art { --acc: #ff5a36; background: radial-gradient(90% 80% at 50% 30%, color-mix(in srgb, var(--acc) 30%, #1b3d75), #0b1526); display: grid; place-items: center; aspect-ratio: 16 / 11; }
.hub-card .art img { width: 78%; height: auto; filter: drop-shadow(0 20px 22px rgba(0,0,0,.45)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hub-card:hover .art img { transform: translateY(-6px) scale(1.04); }
.hub-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hub-card .tag { font: 700 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.hub-card h2 { font-size: 1.3rem; margin: 0; }
.hub-card p { color: var(--muted); margin: 0; font-size: .97rem; flex: 1; }
.hub-card .go { font-weight: 600; color: var(--accent-dark); margin-top: 8px; }

/* ---------- Footer links ---------- */
.g-footer { background: var(--ink); color: #8d98ab; padding: 54px 0 36px; font-size: .92rem; }
.g-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
@media (max-width: 759px) { .g-footer .cols { grid-template-columns: 1fr 1fr; } .g-footer .cols > div:first-child { grid-column: 1 / -1; } }
.g-footer b { display: block; color: #fff; font: 600 .95rem/1.2 var(--head); margin-bottom: 12px; }
.g-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.g-footer a { color: #aab4c4; text-decoration: none; }
.g-footer a:hover { color: #fff; }
.g-footer .logo { color: #fff; margin-bottom: 12px; }
.g-footer .legal { border-top: 1px solid #22324e; margin-top: 34px; padding-top: 20px; }
