/* ==========================================================================
   StudyVerse — study guides, cluster hubs and timer presets (public SEO pages)
   ========================================================================== */
.gd {
  --gd-text: #0f172a;
  --gd-body: #334155;
  --gd-muted: #64748b;
  --gd-faint: #94a3b8;
  --gd-line: #e5e9f0;
  --gd-soft: #f6f8fb;
  --gd-primary: #0f79f3;
  color: var(--gd-body);
  background: #fff;
}
.gd a:not(.btn) { color: var(--gd-primary); }

/* ── header band ── */
.gd-head {
  padding: 3.25rem 0 2.75rem;
  background: linear-gradient(180deg, #f3f7fe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--gd-line);
}
.gd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--gd-muted); }
.gd-crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: #cbd5e1; }
.gd-crumbs a { color: var(--gd-muted); text-decoration: none; }
.gd-crumbs a:hover { color: var(--gd-primary); }
.gd-crumbs [aria-current] { color: var(--gd-text); font-weight: 500; }
.gd-kicker {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem;
  border-radius: 99px; background: rgba(15, 121, 243, 0.08); color: var(--gd-primary);
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
}
.gd-kicker:hover { background: rgba(15, 121, 243, 0.14); }
.gd-head h1 { margin: 1rem 0 0.85rem; color: var(--gd-text); font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
.gd-lead { max-width: 46rem; margin: 0; color: var(--gd-body); font-size: 1.1rem; line-height: 1.7; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.25rem; color: var(--gd-muted); font-size: 0.85rem; }
.gd-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.gd-meta i { color: var(--gd-faint); font-size: 1rem; }

/* ── article layout ── */
.gd-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; padding: 3rem 0 1rem; }
.gd-article { min-width: 0; font-size: 1.02rem; line-height: 1.8; }
.gd-article > p:first-child { margin-top: 0; }
.gd-article p { margin: 0 0 1.1rem; }
.gd-article h2 { margin: 2.5rem 0 0.9rem; color: var(--gd-text); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; scroll-margin-top: 90px; }
.gd-article h3 { margin: 1.5rem 0 0.5rem; color: var(--gd-text); font-size: 1.1rem; font-weight: 700; }
.gd-article strong { color: var(--gd-text); }
.gd-article ul { margin: 0 0 1.2rem; padding-left: 0; list-style: none; }
.gd-article ul li { position: relative; margin-bottom: 0.55rem; padding-left: 1.6rem; }
.gd-article ul li::before { content: ""; position: absolute; left: 0.35rem; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--gd-primary); }
.gd-steps { margin: 0 0 1.4rem; padding: 0; list-style: none; counter-reset: gd; }
.gd-steps li { position: relative; margin-bottom: 0.8rem; padding: 0.85rem 1rem 0.85rem 3.4rem; border: 1px solid var(--gd-line); border-radius: 0.9rem; background: #fff; counter-increment: gd; }
.gd-steps li::before {
  content: counter(gd); position: absolute; left: 0.9rem; top: 0.85rem; width: 1.75rem; height: 1.75rem;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(15, 121, 243, 0.1); color: var(--gd-primary); font-size: 0.85rem; font-weight: 700; line-height: 1;
}
.gd-tip { margin: 0 0 1.4rem; padding: 1rem 1.15rem; border-left: 3px solid var(--gd-primary); border-radius: 0 0.75rem 0.75rem 0; background: #f3f7fe; }
.gd-tip b { display: block; margin-bottom: 0.2rem; color: var(--gd-text); font-size: 0.9rem; }
.gd-table-wrap { margin: 0 0 1.4rem; overflow-x: auto; border: 1px solid var(--gd-line); border-radius: 0.9rem; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; }
.gd-table th { padding: 0.7rem 0.9rem; background: var(--gd-soft); color: var(--gd-text); font-weight: 650; text-align: left; white-space: nowrap; }
.gd-table td { padding: 0.7rem 0.9rem; border-top: 1px solid var(--gd-line); vertical-align: top; }

/* ── sidebar ── */
.gd-side { position: relative; }
.gd-side-inner { position: sticky; top: 96px; display: grid; gap: 1.1rem; }
.gd-toc { padding: 1.1rem 1.2rem; border: 1px solid var(--gd-line); border-radius: 1rem; }
.gd-toc b { display: block; margin-bottom: 0.6rem; color: var(--gd-text); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.gd-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.gd-toc a { color: var(--gd-muted); font-size: 0.9rem; line-height: 1.4; text-decoration: none; }
.gd-toc a:hover { color: var(--gd-primary); }
.gd-cta {
  padding: 1.35rem; border-radius: 1.1rem; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #1e3a8a 0%, #0f172a 65%);
}
.gd-cta-icon { width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.8rem; background: rgba(255, 255, 255, 0.12); font-size: 1.3rem; }
.gd-cta h2, .gd-cta h3 { margin: 0.85rem 0 0.4rem; color: #fff; font-size: 1.1rem; font-weight: 700; }
.gd-cta p { margin: 0 0 1rem; color: rgba(226, 232, 240, 0.8); font-size: 0.9rem; line-height: 1.6; }
.gd-cta .btn { width: 100%; }
.gd-cta small { display: block; margin-top: 0.6rem; color: rgba(226, 232, 240, 0.6); font-size: 0.78rem; text-align: center; }

/* ── FAQ ── */
.gd-faq { margin-top: 2.5rem; }
.gd-faq details { border: 1px solid var(--gd-line); border-radius: 0.9rem; background: #fff; }
.gd-faq details + details { margin-top: 0.65rem; }
.gd-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.1rem;
  color: var(--gd-text); font-weight: 600; cursor: pointer; list-style: none;
}
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: "\ea4e"; font-family: remixicon; color: var(--gd-faint); font-size: 1.2rem; transition: transform 0.2s ease; }
.gd-faq details[open] summary::after { transform: rotate(180deg); }
.gd-faq details > div { padding: 0 1.1rem 1rem; color: var(--gd-body); line-height: 1.7; }

/* ── related / cards ── */
.gd-more { padding: 3rem 0 4rem; border-top: 1px solid var(--gd-line); background: var(--gd-soft); }
.gd-more h2 { margin: 0 0 1.25rem; color: var(--gd-text); font-size: 1.35rem; font-weight: 750; }
.gd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gd-card {
  display: flex; flex-direction: column; gap: 0.4rem; padding: 1.15rem 1.2rem; border: 1px solid var(--gd-line);
  border-radius: 1rem; background: #fff; text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.gd-card:hover { border-color: rgba(15, 121, 243, 0.45); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06); transform: translateY(-2px); }
.gd-card small { color: var(--gd-primary); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.gd-card b { color: var(--gd-text); font-size: 1rem; font-weight: 650; line-height: 1.4; }
.gd-card span { color: var(--gd-muted); font-size: 0.88rem; line-height: 1.55; }
.gd-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.gd-topics a {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.85rem; border: 1px solid var(--gd-line);
  border-radius: 99px; background: #fff; color: var(--gd-body); font-size: 0.85rem; font-weight: 500; text-decoration: none;
}
.gd-topics a:hover, .gd-topics a.active { border-color: var(--gd-primary); color: var(--gd-primary); }
.gd-topics i { color: var(--gd-primary); }

/* ── hub / index ── */
.gd-hub { padding: 2.75rem 0 1rem; }
.gd-hub-section + .gd-hub-section { margin-top: 3rem; }
.gd-hub-section > h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.4rem; color: var(--gd-text); font-size: 1.4rem; font-weight: 750; }
.gd-hub-section > h2 i { width: 2.3rem; height: 2.3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.75rem; background: rgba(15, 121, 243, 0.08); color: var(--gd-primary); font-size: 1.15rem; }
.gd-hub-section > h2 a { color: inherit; text-decoration: none; }
.gd-hub-section > h2 a:hover { color: var(--gd-primary); }
.gd-hub-section > p { max-width: 46rem; margin: 0 0 1.25rem; color: var(--gd-muted); }
.gd-pillar {
  display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.25rem; padding: 1rem 1.2rem; border-radius: 1rem;
  background: #f3f7fe; border: 1px solid rgba(15, 121, 243, 0.18); text-decoration: none;
}
.gd-pillar i { font-size: 1.4rem; color: var(--gd-primary); }
.gd-pillar span { flex: 1; color: var(--gd-body); font-size: 0.92rem; }
.gd-pillar b { display: block; color: var(--gd-text); font-size: 1rem; }

/* ── timer preset ── */
.tp-hero { padding: 2.5rem 0 3rem; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: #fff; }
.tp-hero .gd-crumbs, .tp-hero .gd-crumbs a { color: rgba(255, 255, 255, 0.75); }
.tp-hero .gd-crumbs [aria-current] { color: #fff; }
.tp-hero .gd-crumbs li + li::before { color: rgba(255, 255, 255, 0.4); }
.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3rem; align-items: center; }
.tp-hero h1 { margin: 0 0 0.85rem; color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tp-hero .gd-lead { color: rgba(255, 255, 255, 0.88); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tp-chips a {
  padding: 0.4rem 0.85rem; border-radius: 99px; background: rgba(255, 255, 255, 0.14); color: #fff;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
}
.tp-chips a:hover, .tp-chips a.active { background: #fff; color: #1d4ed8; }
.tp-card {
  padding: 1.6rem 1.5rem 1.75rem; border-radius: 1.6rem; background: rgba(255, 255, 255, 0.9); color: #0f172a;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25); text-align: center;
}
.tp-phase { display: inline-flex; padding: 4px; border-radius: 99px; background: rgba(15, 23, 42, 0.06); font-size: 0.8rem; font-weight: 600; color: #475569; }
.tp-phase span { padding: 0.35rem 0.9rem; border-radius: 99px; }
.tp-phase span.active { background: #3b82f6; color: #fff; }
.tp-phase.is-break span.active { background: #10b981; }
.tp-ring { position: relative; width: 230px; height: 230px; margin: 1.3rem auto; }
.tp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tp-ring circle { fill: none; stroke-width: 6; }
.tp-ring .track { stroke: rgba(15, 23, 42, 0.08); }
.tp-ring .bar { stroke: #3b82f6; stroke-linecap: round; transition: stroke-dashoffset 0.4s linear, stroke 0.3s ease; }
.tp-card.is-break .tp-ring .bar { stroke: #10b981; }
.tp-read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tp-read strong { font-size: 3.1rem; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tp-read span { margin-top: 0.5rem; color: #64748b; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.tp-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.tp-btn {
  width: 3rem; height: 3rem; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: rgba(15, 23, 42, 0.06); color: #334155; font-size: 1.3rem; cursor: pointer; transition: background 0.2s ease;
}
.tp-btn:hover { background: rgba(15, 23, 42, 0.1); }
.tp-btn.is-main { width: 4rem; height: 4rem; background: #3b82f6; color: #fff; font-size: 1.8rem; box-shadow: 0 12px 26px rgba(59, 130, 246, 0.4); }
.tp-btn.is-main:hover { background: #2563eb; }
.tp-note { margin: 1rem 0 0; color: #64748b; font-size: 0.8rem; }
.tp-note a { font-weight: 600; }
.tp-done { margin-top: 0.75rem; padding: 0.5rem 0.75rem; border-radius: 0.7rem; background: #ecfdf3; color: #15803d; font-size: 0.85rem; font-weight: 600; }

@media (max-width: 991.98px) {
  .gd-body { grid-template-columns: 1fr; gap: 2rem; }
  .gd-side-inner { position: static; }
  .gd-toc { display: none; }
  .gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 575.98px) {
  .gd-head { padding: 2.25rem 0 2rem; }
  .gd-lead { font-size: 1rem; }
  .gd-body { padding-top: 2rem; }
  .gd-article { font-size: 1rem; }
  .gd-article h2 { font-size: 1.3rem; }
  .gd-cards { grid-template-columns: 1fr; }
  .tp-ring { width: 200px; height: 200px; }
  .tp-read strong { font-size: 2.6rem; }
}

/* ── "Guides on this topic" block on the original pillar pages ── */
.gd-pillar-links { padding: 3rem 0 1rem; background: transparent; }
.gd-pillar-links > h2 { margin: 0 0 1.25rem; color: var(--gd-text); font-size: 1.4rem; font-weight: 700; }
.gd-pl-group + .gd-pl-group { margin-top: 1.75rem; }
.gd-pl-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.gd-pl-head span { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--gd-text); font-weight: 650; }
.gd-pl-head span i { color: var(--gd-primary); }
.gd-pl-head a { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.gd-pillar-links .gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 575.98px) { .gd-pillar-links .gd-cards { grid-template-columns: 1fr; } }
