/* ===================================================================
   Train Badger — shared styles
   All pages link to this file. Page-specific styles go in <style> tags.
   =================================================================== */

/* --- Reset & base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
}

/* --- Site nav --- */
.site-nav {
    background: #111;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}
.site-nav .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    margin-right: auto;
}
.site-nav .brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.site-nav a.nav-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.15s;
}
.site-nav a.nav-link:hover { color: #fff; }

/* --- Hero banner --- */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 3.5rem 1.5rem;
    text-align: center;
}
.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}
.hero .tagline {
    font-size: 1.15rem;
    color: #a0b4d0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.badge a {
    display: inline-block;
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}
.badge a:hover { background: #e8edf4; }

/* --- Breadcrumb (operator pages) --- */
.breadcrumb {
    background: #f0f0f0;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: #666;
}
.breadcrumb a { color: #0066cc; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; }

/* --- Container --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* --- Typography (landing pages) --- */
h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}
h3 {
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}
p { margin-bottom: 1rem; color: #333; }

/* --- Intro card --- */
.intro-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}
.intro-card p:last-child { margin-bottom: 0; }

/* --- Compensation bands --- */
.bands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.band-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-align: center;
}
.band-card .delay {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}
.band-card .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f3460;
}
.band-card .note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

/* --- Scheme note --- */
.scheme-note {
    background: #e3f2fd;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin: 1rem 0 1.5rem;
    color: #1565c0;
}

/* --- Operator table --- */
.operator-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.operator-table th {
    background: #1a1a2e;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
}
.operator-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e8e8e8;
}
.operator-table tr:hover td { background: #f5f8ff; }
.operator-table a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}
.operator-table a:hover { text-decoration: underline; }

/* --- Scheme badges --- */
.scheme-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.scheme-badge.dr15 { background: #e8f5e9; color: #2e7d32; }
.scheme-badge.dr30 { background: #fff3e0; color: #e65100; }

/* --- How-it-works steps --- */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.step {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.step .number {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #0f3460;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.step h3 { margin-top: 0; font-size: 1rem; }
.step p { font-size: 0.9rem; margin-bottom: 0; }

/* --- Routes grid (operator pages) --- */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.route-card {
    background: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 0.95rem;
    color: #333;
}
.route-card::before { content: "\1F682 "; }

/* --- Claim steps (operator pages) --- */
.claim-steps {
    counter-reset: step;
    list-style: none;
    margin: 1.5rem 0;
}
.claim-steps li {
    counter-increment: step;
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 0.95rem;
    color: #333;
}
.claim-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #0f3460;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}
.claim-btn {
    display: inline-block;
    background: #0f3460;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    margin: 1rem 0;
    transition: background 0.2s;
}
.claim-btn:hover { background: #1a1a2e; }

/* --- Related operators grid (operator pages) --- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.related-link {
    display: block;
    background: #fff;
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: box-shadow 0.2s;
}
.related-link:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.12); text-decoration: underline; }

/* --- CTA box --- */
.cta-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2.5rem 0;
}
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box p { color: #a0b4d0; }
.cta-box a {
    display: inline-block;
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 0.5rem;
}
.cta-box a:hover { background: #e8edf4; }

/* --- FAQ items --- */
.faq-item { margin-bottom: 1.5rem; }
.faq-item dt { font-weight: 600; margin-bottom: 0.25rem; }
.faq-item dd { color: #333; }

/* --- Footer --- */
footer {
    background: #f0f0f0;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}
footer a { color: #0066cc; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .links { margin-bottom: 0.75rem; }
footer .links a { margin: 0 0.75rem; }

/* --- NRE attribution (used in footer and standalone) --- */
.nre-attribution {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ddd;
}
.nre-attribution img { display: block; margin: 0 auto 0.5rem; }
.nre-attribution p { font-size: 0.8rem; color: #888; margin: 0; }
.nre-footer {
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 1.25rem 2.5rem;
    text-align: center;
}
.nre-footer img { display: block; margin: 0 auto 0.5rem; }
.nre-footer p { font-size: 0.8rem; color: #888; margin: 0; }

/* --- Responsive --- */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.75rem; }
    .operator-table { font-size: 0.85rem; }
    .operator-table th, .operator-table td { padding: 0.5rem 0.6rem; }
    .routes-grid { grid-template-columns: 1fr; }
}
