/* Shared index presentation for the public page and dashboard modal. */
.public-guides-page .guides-index-page { max-width: 1560px; margin-inline: auto; }
.guides-index-page .guides-index-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 32px; margin-top: 20px; }
.guides-index-page .guides-index-hero-copy { min-width: 0; }
.guides-index-page .guides-index-hero h1 { font-size: clamp(32px, 3.3vw, 49px); line-height: 1.12; }
.guides-index-page .guides-index-hero h1 span { color: var(--orange); }
.guides-index-page .guides-index-hero .panel-label { margin-top: 0; }
.guides-index-page .guides-index-hero .panel-label::before { box-shadow: none; }
.guides-index-page .guides-index-hero-art { min-width: 0; }
.guides-index-page .guide-index-market { position: relative; padding-top: 18px; }
.guides-index-page .guide-index-pair { position: absolute; top: 0; left: 4%; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.guides-index-page svg { display: block; width: 100%; height: auto; }
.guides-index-page .index-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.guides-index-page .index-level { fill: none; stroke-width: 1; stroke-dasharray: 4 5; opacity: .65; }
.guides-index-page .is-buy { color: var(--blue); stroke: var(--blue); }
.guides-index-page .is-sell { color: var(--green); stroke: var(--green); }
.guides-index-page .is-reference { color: var(--muted); stroke: var(--muted); }
.guides-index-page .index-candle { stroke-width: 1.2; }
.guides-index-page .index-candle.is-up { fill: var(--green); stroke: var(--green); }
.guides-index-page .index-candle.is-down { fill: var(--danger); stroke: var(--danger); opacity: .8; }
.guides-index-page .index-bitcoin-ring { fill: rgba(255,151,0,.05); stroke: var(--orange); stroke-width: 1; }
.guides-index-page .index-bitcoin-ring.inner { fill: none; opacity: .35; }
.guides-index-page .index-bitcoin { fill: var(--orange); font-size: 42px; font-family: inherit; }
.guides-index-page .index-price { fill: none; stroke: var(--text); stroke-width: 2; }
.guides-index-page .index-trade { fill: var(--panel); stroke-width: 2; }
.guides-index-page .guide-index-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; }
.guides-index-page .guide-index-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.guides-index-page .guide-index-legend > span::before { width: 12px; height: 2px; background: currentColor; content: ''; }
.guides-index-page .guide-index-legend small { color: var(--muted); font-size: 10px; }
.guides-index-page .guide-index-layout { padding-top: 26px; }
.guides-index-page .guide-feature-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); min-height: 0; background: var(--panel); box-shadow: none; transition: border-color .15s; }
.guides-index-page .guide-feature-card:hover { transform: none; box-shadow: none; border-color: var(--orange); }
.guides-index-page .guide-feature-copy { padding: 26px; }
.guides-index-page .guide-feature-eyebrow { line-height: 1.4; flex-wrap: wrap; }
.guides-index-page .guide-feature-copy h2 { margin-top: 16px; font-size: clamp(24px, 2vw, 31px); line-height: 1.2; }
.guides-index-page .guide-feature-cta { padding: 12px 16px; font-size: 13px; }
.guides-index-page .guide-feature-chart-wrap { display: flex; align-items: center; padding: 22px; min-height: 0; background: var(--bg-soft); border-color: var(--line); }
.guides-index-page .guide-feature-chart-wrap::before { display: none; }
.guides-index-page .guide-index-grid-chart { width: 100%; min-width: 0; padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; }
.guides-index-page .guide-index-grid-chart svg { max-height: 190px; }
.guides-index-page .guide-index-demo { display: block; margin-top: 14px; color: var(--muted); text-align: center; font-size: 10px; }
.guides-index-page .guide-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.guides-index-page .guide-category { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(11,16,21,.5); }
.guides-index-page .guide-category-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.guides-index-page .guide-category-header > i { color: var(--blue); font-size: 26px; line-height: 1.2; }
.guides-index-page .is-evaluate .guide-category-header > i { color: var(--orange); }
.guides-index-page .guide-category-header h2 { margin: 0; color: #78caff; font-size: 16px; font-weight: 750; line-height: 1.4; }
.guides-index-page .guide-category-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.guides-index-page .guide-category-cards { display: grid; align-content: start; gap: 12px; }
.guides-index-page .guide-topic-card { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 110px; align-items: center; gap: 16px; padding: 18px 30px 18px 16px; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .15s; }
.guides-index-page .guide-topic-card:hover { color: var(--text); border-color: var(--blue); }
.guides-index-page .guide-topic-copy { min-width: 0; }
.guides-index-page .guide-secondary-kicker { flex-wrap: wrap; color: #92c7e3; font-size: 10px; line-height: 1.5; letter-spacing: .08em; }
.guides-index-page .guide-topic-card h3 { margin: 10px 0 8px; font-size: 16px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.guides-index-page .guide-topic-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.guides-index-page .guide-topic-art { min-width: 0; }
.guides-index-page .guide-topic-arrow { position: absolute; right: 10px; top: 50%; color: #78caff; font-size: 21px; transform: translateY(-50%); }
.guides-index-page .guide-index-flow { display: grid; gap: 5px; }
.guides-index-page .guide-index-flow > div { min-width: 0; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 2px 6px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.guides-index-page .guide-index-flow strong { font-size: 10px; overflow-wrap: anywhere; }
.guides-index-page .guide-index-flow small { min-width: 0; grid-column: 1 / -1; color: var(--muted); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.guides-index-page .guide-index-flow .is-console { color: #78caff; border-color: rgba(49,157,255,.35); }
.guides-index-page .guide-index-flow .is-connector { color: var(--green); border-color: rgba(33,215,131,.35); }
.guides-index-page .guide-index-flow .is-exchange { color: var(--orange); border-color: rgba(255,151,0,.35); }
.guides-index-page .guide-index-flow-link { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--green); line-height: 1; }
.guides-index-page .guide-index-flow-link small { font-size: 10px; }
.guides-index-page .is-infrastructure .guide-category-cards { flex: 1; }
.guides-index-page .is-infrastructure .guide-topic-card { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 24px; }
.guides-index-page .is-infrastructure .guide-topic-art { width: min(240px, 100%); justify-self: center; }
.guides-index-page .is-infrastructure .guide-index-flow > div { padding: 11px 14px; }
.guides-index-page .is-infrastructure .guide-index-flow strong { font-size: 12px; }
.guides-index-page .is-infrastructure .guide-index-flow small { font-size: 11px; }
.guides-index-page .index-metric-bars { fill: rgba(49,157,255,.2); stroke: var(--blue); }
.guides-index-page .guide-index-fees { text-align: center; color: var(--orange); }
.guides-index-page .guide-index-fees > span { font-size: 48px; line-height: 1; }
.guides-index-page .guide-index-fees > div { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 8px 0; }
.guides-index-page .guide-index-fees small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.guides-index-page .index-spacing-fixed { stroke: var(--blue); }
.guides-index-page .index-spacing-percent { stroke: var(--green); }
.guides-index-page .guide-index-spacing > div { display: flex; justify-content: space-around; color: var(--muted); font-size: 12px; }
.guides-index-page .index-risk-line { fill: none; stroke: var(--danger); stroke-width: 1; opacity: .5; }
.guides-index-page .index-warning { fill: var(--panel); stroke: var(--danger); stroke-width: 2; stroke-linejoin: round; }
.public-guides-page .guides-index-page a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; transform: none; box-shadow: none; }

@media (max-width: 1199px) {
    .guides-index-page .guide-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guides-index-page .is-infrastructure { grid-column: 1 / -1; }
    .guides-index-page .is-infrastructure .guide-topic-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
    .guides-index-page .is-infrastructure .guide-topic-art { width: min(240px, 100%); }
}
@media (max-width: 900px) {
    .guides-index-page .guides-index-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .guides-index-page .guides-index-hero-art { width: min(520px, 100%); justify-self: center; }
    .guides-index-page .guide-feature-card { grid-template-columns: minmax(0, 1fr); }
    .guides-index-page .guide-feature-chart-wrap { border-left: 0; border-top: 1px solid var(--line); }
    .guides-index-page .guide-category-grid { grid-template-columns: minmax(0, 1fr); }
    .guides-index-page .is-infrastructure { grid-column: auto; }
    .guides-index-page .guide-topic-card { grid-template-columns: minmax(0, 1fr) 130px; }
}
@media (max-width: 620px) {
    .public-guides-page .guides-index-page { padding-inline: 12px; }
    .guides-index-page .guides-index-hero h1 { font-size: 32px; }
    .guides-index-page .guides-index-hero .guides-page-intro { font-size: 15px; }
    .guides-index-page .guides-index-hero { margin-top: 16px; gap: 16px; }
    .guides-index-page .guide-feature-copy { padding: 20px 16px; }
    .guides-index-page .guide-feature-copy p { font-size: 14px; }
    .guides-index-page .guide-feature-chart-wrap { padding: 12px; }
    .guides-index-page .guide-index-legend { font-size: 11px; gap: 6px 10px; }
    .guides-index-page .guide-index-market .guide-index-legend small { flex-basis: 100%; text-align: center; }
    .guides-index-page .guide-category { padding: 10px; }
    .guides-index-page .guide-category-grid { gap: 14px; margin-top: 20px; }
    .guides-index-page .guide-category-header { gap: 10px; margin-bottom: 12px; }
    .guides-index-page .guide-topic-card,
    .guides-index-page .is-infrastructure .guide-topic-card { grid-template-columns: minmax(0, 1fr) 60px; gap: 8px 10px; padding: 12px; align-content: start; }
    .guides-index-page .guide-topic-copy { display: contents; }
    .guides-index-page .guide-topic-card .guide-secondary-kicker,
    .guides-index-page .guide-topic-card h3 { grid-column: 1 / -1; margin: 0; }
    .guides-index-page .guide-topic-card p { grid-column: 1; font-size: 13px; line-height: 1.6; }
    .guides-index-page .guide-topic-art { grid-column: 2; grid-row: 3; }
    .guides-index-page .guide-topic-arrow { top: 12px; right: 12px; transform: none; }
    .guides-index-page .guide-topic-card .guide-secondary-kicker { padding-right: 22px; }
    .guides-index-page .is-bitcoin-grid-trading-bot p,
    .guides-index-page .is-running-bitcoin-trading-bot-locally p { grid-column: 1 / -1; }
    .guides-index-page .is-bitcoin-grid-trading-bot .guide-topic-art,
    .guides-index-page .is-infrastructure .guide-topic-art { grid-column: 1 / -1; grid-row: 4; width: 100%; }
    .guides-index-page .guide-index-flow { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); align-items: stretch; gap: 3px; }
    .guides-index-page .guide-index-flow > div,
    .guides-index-page .is-infrastructure .guide-index-flow > div { display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 6px 3px; gap: 3px; }
    .guides-index-page .guide-index-flow strong,
    .guides-index-page .is-infrastructure .guide-index-flow strong { font-size: 10px; }
    .guides-index-page .guide-index-flow small,
    .guides-index-page .is-infrastructure .guide-index-flow small { font-size: 9px; }
    .guides-index-page .guide-index-flow-link { gap: 0; font-size: 0; }
    .guides-index-page .guide-index-flow-link::after { content: '→'; font-size: 13px; }
    .guides-index-page .guide-index-flow-link small { display: none; }
    .guides-index-page .guide-index-fees > span { font-size: 40px; }
}
