/* ============================================
   DATA RIDERS — Guarantee Detail Page
   Shared styles for each of the 7 guarantee pages
   Works together with security-dashboard.css
   ============================================ */

/* Breadcrumb */
.g-breadcrumb {
    padding: 100px 0 0;
    background: linear-gradient(180deg, #0b1526 0%, #0D1B2A 100%);
}
.g-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--sec-text-dim);
    flex-wrap: wrap;
}
.g-breadcrumb-inner a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color .15s;
}
.g-breadcrumb-inner a:hover { color: #fff; }
.g-breadcrumb-inner .sep { color: rgba(148,163,184,0.5); }
.g-breadcrumb-inner .current { color: #86efac; }

/* Hero */
.g-hero {
    padding: 30px 0 60px;
    background: linear-gradient(180deg, #0D1B2A 0%, #0D1B2A 100%);
    position: relative;
    overflow: hidden;
}
.g-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(74,158,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,158,255,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}
.g-hero-inner { position: relative; z-index: 1; }

.g-hero-tier {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid var(--sec-border);
    background: rgba(15,23,42,0.6);
    color: #94a3b8;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.g-hero-top {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.g-hero-icon {
    width: 72px; height: 72px;
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(74,158,255,0.18), rgba(123,104,238,0.18));
    border: 1px solid rgba(74,158,255,0.35);
    color: #60a5fa;
    font-size: 1.8rem;
    box-shadow: 0 0 30px rgba(74,158,255,0.15);
}

.g-hero-number {
    font-size: 0.85rem;
    color: #86efac;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.g-hero h1 {
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    line-height: 1.15;
    color: #fff;
    margin: 0;
}

.g-hero-lede {
    margin-top: 18px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 760px;
    line-height: 1.6;
}

.g-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 6px 14px;
    border: 1px solid var(--sec-green-ring);
    background: var(--sec-green-soft);
    color: #86efac;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}
.g-hero-status .bulb {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--sec-green);
    box-shadow: 0 0 8px var(--sec-green);
    animation: pulseDot 2s infinite;
}

/* Content area */
.g-body {
    padding: 50px 0 80px;
    background: #0D1B2A;
}
.g-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 960px) {
    .g-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* TOC sidebar */
.g-toc {
    position: sticky;
    top: 88px;
    background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(17,29,53,0.8));
    border: 1px solid var(--sec-border);
    border-radius: 14px;
    padding: 18px 18px 14px;
}
@media (max-width: 960px) {
    .g-toc { position: static; }
}
.g-toc h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--sec-text-dim);
    margin: 0 0 10px;
}
.g-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}
.g-toc li { counter-increment: toc; }
.g-toc a {
    display: block;
    padding: 6px 0 6px 26px;
    position: relative;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
    border-left: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.g-toc a::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 2px;
    top: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}
.g-toc a:hover {
    color: #fff;
}
.g-toc a:hover::before {
    color: #86efac;
}

/* Main content article */
.g-content {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.72;
    max-width: 780px;
}
.g-content h2 {
    color: #fff;
    font-size: 1.6rem;
    margin: 48px 0 18px;
    padding-top: 12px;
    line-height: 1.25;
    border-top: 1px solid var(--sec-border);
    scroll-margin-top: 90px;
}
.g-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.g-content h2 .g-num {
    display: inline-block;
    color: #86efac;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-right: 10px;
    text-transform: uppercase;
    vertical-align: middle;
}
.g-content h3 {
    color: #e2e8f0;
    font-size: 1.15rem;
    margin: 28px 0 10px;
    line-height: 1.3;
}
.g-content p {
    margin: 0 0 16px;
    color: #cbd5e1;
}
.g-content strong { color: #fff; }
.g-content a { color: #60a5fa; }
.g-content a:hover { color: #93c5fd; }

.g-content ul, .g-content ol {
    padding-left: 22px;
    margin: 0 0 16px;
    color: #cbd5e1;
}
.g-content li {
    margin: 8px 0;
    line-height: 1.65;
}
.g-content li::marker { color: #86efac; }

/* Definition grid */
.g-def-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 20px 0 24px;
}
.g-def {
    background: rgba(15,23,42,0.6);
    border: 1px solid var(--sec-border);
    border-radius: 10px;
    padding: 14px 16px;
}
.g-def-term {
    color: #86efac;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}
.g-def-desc {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* Feature list (checked) */
.g-feature {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.g-feature li {
    position: relative;
    padding: 10px 0 10px 32px;
    border-bottom: 1px solid rgba(148,163,184,0.12);
    color: #cbd5e1;
}
.g-feature li:last-child { border-bottom: none; }
.g-feature li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--sec-green);
    position: absolute;
    left: 4px;
    top: 12px;
    font-size: 0.85rem;
}
.g-feature.g-cross li::before {
    content: "\f00d";
    color: var(--sec-red);
}

/* Callout */
.g-callout {
    background: linear-gradient(180deg, rgba(34,197,94,0.08), rgba(15,23,42,0.6));
    border: 1px solid rgba(34,197,94,0.28);
    border-left: 3px solid var(--sec-green);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
    color: #e2e8f0;
}
.g-callout p:last-child { margin-bottom: 0; }
.g-callout-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #86efac;
    margin-bottom: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.g-callout.g-callout-amber {
    background: linear-gradient(180deg, rgba(245,158,11,0.08), rgba(15,23,42,0.6));
    border-color: rgba(245,158,11,0.28);
    border-left-color: var(--sec-amber);
}
.g-callout.g-callout-amber .g-callout-head { color: #fcd34d; }

/* Process steps */
.g-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 20px 0 24px;
}
.g-steps li {
    counter-increment: step;
    background: rgba(15,23,42,0.6);
    border: 1px solid var(--sec-border);
    border-radius: 10px;
    padding: 16px 18px 16px 62px;
    position: relative;
    margin-bottom: 10px;
}
.g-steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(34,197,94,0.15);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.4);
    font-weight: 800;
    font-size: 0.9rem;
}
.g-steps li strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Meta info bar */
.g-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--sec-border);
    font-size: 0.85rem;
    color: var(--sec-text-dim);
}
.g-meta > div { display: inline-flex; align-items: center; gap: 6px; }
.g-meta i { color: #60a5fa; }

/* Prev/Next nav */
.g-nav {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 640px) { .g-nav { grid-template-columns: 1fr; } }
.g-nav a {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    background: rgba(15,23,42,0.7);
    border: 1px solid var(--sec-border);
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    transition: border-color .15s, transform .15s;
}
.g-nav a:hover {
    border-color: rgba(34,197,94,0.5);
    transform: translateY(-2px);
}
.g-nav .g-nav-label {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.g-nav .g-nav-title {
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
}
.g-nav .g-nav-next { text-align: right; }

/* Back to all commitments */
.g-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 10px 18px;
    border: 1px solid var(--sec-border);
    border-radius: 999px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: border-color .15s, color .15s;
}
.g-back:hover { border-color: rgba(34,197,94,0.5); color: #fff; }

/* Link to index cards from commitments page */
.sec-card { transition: border-color .15s, transform .15s; }
.sec-card-link { text-decoration: none; color: inherit; display: block; }
.sec-card-link:hover .sec-card {
    border-color: rgba(34,197,94,0.45);
    transform: translateY(-2px);
}
.sec-card-readmore {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #86efac;
    font-weight: 600;
    font-size: 0.88rem;
}
.sec-card-readmore i { transition: transform .15s; }
.sec-card-link:hover .sec-card-readmore i { transform: translateX(3px); }
