/* Public Step 1 / Step 2 CK guide pages (step-1-high-yield.html, step-2-ck-high-yield.html).
   Built on the landing design tokens in styles.css, so light and dark mode follow the site. */

.guide { background: var(--paper); color: var(--ink); }

.guide-narrow { max-width: 880px; }

.guide-hero { padding: 8rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.guide-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
    line-height: 1.15;
    margin: 0.75rem 0 1.25rem;
    text-wrap: balance;
}
.g-lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 720px; margin-bottom: 2rem; line-height: 1.65; }

.g-crumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.g-crumbs a { color: var(--primary); text-decoration: none; }
.g-crumbs a:hover { text-decoration: underline; }

.g-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
}
.g-stats > div {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
}
.g-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--primary);
    line-height: 1.1;
}
.g-stats span { font-size: 0.88rem; color: var(--ink-soft); }

.guide-section { padding: 4rem 0; }
.guide-section.alt { background: var(--paper-alt); }
.guide-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.15rem);
    margin-bottom: 0.9rem;
}
.guide-section h2.g-sub { margin-top: 3rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }
.guide-section > .container > p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.5rem; max-width: 740px; }

/* specialty / question-type table with inline bars */
.g-bars { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.g-bars caption { text-align: left; font-size: 0.82rem; color: var(--ink-soft); padding-bottom: 0.5rem; }
.g-bars th, .g-bars td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.g-bars thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 600; }
.g-bars tbody th { font-weight: 500; }
.g-bars td:nth-child(2) { font-variant-numeric: tabular-nums; width: 6.5rem; }
.g-bars td:nth-child(3) { width: 45%; white-space: nowrap; }
.g-bar {
    display: inline-block;
    width: calc(var(--w) * 0.78);
    height: 0.6rem;
    border-radius: 999px;
    background: var(--primary);
    opacity: 0.85;
    vertical-align: middle;
    margin-right: 0.5rem;
}
.g-pct { font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* topic chips */
.g-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g-chips li {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
}
.g-n { font-size: 0.78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-left: 0.25rem; }

/* per-specialty topic cards */
.g-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.g-topic {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
}
.g-topic h3 { font-size: 1rem; margin-bottom: 0.6rem; color: var(--primary); }
.g-topic ul { list-style: none; padding: 0; margin: 0; }
.g-topic li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.9rem; padding: 0.22rem 0; border-bottom: 1px dashed var(--line); }
.g-topic li:last-child { border-bottom: 0; }

/* study steps */
.g-steps { padding-left: 1.25rem; margin: 0; }
.g-steps li { margin-bottom: 1.4rem; padding-left: 0.35rem; }
.g-steps li::marker { color: var(--primary); font-weight: 700; }
.g-steps h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.g-steps p { color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* FAQ */
.g-faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.g-faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style-position: outside; }
.g-faq p { color: var(--ink-soft); line-height: 1.7; margin: 0.65rem 0 0; }

.g-cross { margin-top: 1.75rem !important; font-size: 0.95rem !important; }
.g-cross a { color: var(--highlighter); }

.nav-links a[aria-current="page"]:not(.btn) { color: var(--primary); font-weight: 600; }

@media (max-width: 720px) {
    .guide-hero { padding: 6.5rem 0 2.5rem; }
    .g-stats { grid-template-columns: 1fr; }
    .g-bars td:nth-child(3) { width: 38%; }
    .g-bar { width: calc(var(--w) * 0.5); }
    .guide-section { padding: 3rem 0; }
}

/* Step 2 NBME stats report page (step-2-nbme-stats.html) */
.r-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; max-width: 1080px; }
.r-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.r-view { color: var(--primary); font-size: 0.95rem; }
.r-meta { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }
.r-cover { display: block; max-width: 380px; justify-self: center; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(7, 62, 64, 0.45); transform: rotate(1.5deg); transition: transform 0.2s ease; }
.r-cover:hover { transform: rotate(0deg) translateY(-3px); }
.r-cover img { display: block; width: 100%; height: auto; }
.r-stats { margin-bottom: 0; }
.r-stats strong { font-size: 1.6rem; }

@media (max-width: 820px) {
    .r-hero { grid-template-columns: 1fr; gap: 2rem; }
    .r-cover { max-width: 260px; }
}

/* small optional donation note under the report download button */
.r-tip { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.75rem; padding: 0.9rem 1rem; max-width: 520px; border: 1px dashed var(--line); border-radius: var(--radius-md); background: var(--white); }
.r-tip-icon { flex: none; margin-top: 0.15rem; color: var(--primary); opacity: 0.8; }
.r-tip p { font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 0.6rem; }
.r-tip-btn { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--primary); color: var(--primary); font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.r-tip-btn:hover { background: var(--primary); color: var(--white); }
