/* uk49snumbers.com — homepage stylesheet
   Replaces the Tailwind CDN build (not meant for production — it can't be
   purged/optimized and re-parses the whole page client-side on every load).
   Palette values below mirror Tailwind's sky/rose/slate/amber scale so the
   visual identity stays identical. */

:root {
    --sky-50: #f0f9ff;  --sky-200: #bae6fd; --sky-600: #0284c7;
    --sky-700: #0369a1; --sky-900: #0c4a6e;
    --slate-300: #cbd5e1;

    --rose-50: #fff1f2; --rose-200: #fecdd3; --rose-600: #e11d48;
    --rose-700: #be123c; --rose-900: #881337;

    --amber-50: #fffbeb; --amber-200: #fde68a; --amber-600: #d97706; --amber-900: #78350f;

    --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0;
    --slate-400: #515760; --slate-500: #64748b; --slate-600: #475569;
    --slate-700: #334155; --slate-800: #1e293b; --slate-900: #0f172a;

    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--slate-50);
    color: var(--slate-900);
    -webkit-font-smoothing: antialiased;
}

.hitmap-cell.tier-very-cold {
    background: purple !important;
}

i.tier-very-cold {
    background: purple !important;
}

/* ── Standard Paragraph Styling ────────────────────────────── */

p:not([class]) {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--slate-600);
}

.callout.callout--sky p {
    font-size: 12px;
}
/* ── Enhanced Hero Section ─────────────────── */

.hero {
    text-align: center !important;
    padding: 56px 20px 40px !important; /* Forces override of inline padding */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Main Title */
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3rem) !important; /* Scales fluidly on mobile/desktop */
    font-weight: 800 !important;
    color: var(--slate-900) !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 16px !important;
    line-height: 1.15 !important;
}

/* Lead Description Paragraph */
.hero p:not(.last-updated) {
    font-size: 1.1rem !important;
    color: var(--slate-600) !important;
    max-width: 720px !important;
    margin: 0 0 28px !important;
    line-height: 1.65 !important;
}

/* Last Updated "Pill" Badge */
.hero .last-updated {
    display: inline-block !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--slate-500) !important;
    background: var(--slate-50) !important;
    padding: 10px 20px !important;
    border-radius: 999px !important;
    border: 1px dashed var(--slate-300) !important;
    margin: 0 !important;
    font-style: normal !important; /* Overrides previous italic styling */
}

.callout--sky {
    background: #fff;
    font-weight: 100;
    border-left: 3px solid var(--sky-600);
    color: var(--sky-900);
    font-style: italic;
}

section.hero {
    border-bottom: 1px solid #ededed;
}

/* Highlight the Draw Times */
.hero .last-updated strong {
    color: var(--sky-700) !important;
    font-weight: 700 !important;
}

div#nextDrawCountdown {
    margin-bottom: 8px;
}

/* ── Enhanced Quick Comparison Table ─────────────────── */

/* 1. Base Table Spacing & Alignment */
.stat-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px; /* Ensures it scrolls smoothly on mobile */
}

/* 2. Refined Headers */
.stat-table th {
    background: #fff;
    color: var(--slate-500);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px;
    border-bottom: 2px solid var(--slate-200);
    text-align: left;
}

/* Center-align the middle header columns */
.stat-table th:nth-child(3),
.stat-table th:nth-child(4),
.stat-table th:nth-child(5) {
    text-align: center;
}

/* 3. Cell Styling & Row Hover */
.stat-table td {
    padding: 18px 16px;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
    transition: background 0.2s ease;
}

.stat-table tbody tr:hover td {
    background: var(--sky-50);
}

.stat-table tbody tr:last-child td {
    border-bottom: none; /* Removes double border on the bottom of the card */
}

/* 4. Column-Specific Data Styling */

/* Draw Name */
.stat-table td:first-child {
    font-size: 1.05rem;
    color: var(--slate-900);
}

/* Draw Time & Draws Analysed */
.stat-table td:nth-child(2) {
    color: var(--slate-500);
}

.stat-table td:nth-child(3) {
    text-align: center;
    color: var(--slate-500);
    font-weight: 500;
}

/* Frequent & Overdue Numbers */
.stat-table td:nth-child(4),
.stat-table td:nth-child(5) {
    text-align: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--slate-900);
    font-variant-numeric: tabular-nums; /* Keeps digits horizontally aligned */
}

/* 5. Interactive Action Buttons (Links) */
.stat-table td:last-child {
    text-align: right;
    padding-right: 20px;
}

/* ── Enhanced Previous Predictions Snapshot ─────────────────── */

/* 1. Theme the Headers */
.results-grid .card:first-child .prediction-label {
    color: var(--sky-700);
    border-bottom: 2px solid var(--sky-100);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.results-grid .card:last-child .prediction-label {
    color: var(--rose-700);
    border-bottom: 2px solid var(--rose-100);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

/* 2. Style the Data Rows */
.dist-caption {
    background: var(--slate-50);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--slate-100);
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--slate-700);
    line-height: 1.5;
}

/* 3. Highlight the Match Count */
.dist-caption strong {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--slate-200);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--slate-900);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-left: 6px;
    vertical-align: middle;
}

/* 4. Upgrade Links to Interactive Pill Buttons */
.results-grid .card a[href*="predictions/"] {
    display: inline-flex !important;
    align-items: center;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Lunchtime Button Theme */
.results-grid .card:first-child a[href*="predictions/"] {
    background: var(--sky-50);
    border: 1px solid var(--sky-200);
}
.results-grid .card:first-child a[href*="predictions/"]:hover {
    background: var(--sky-600);
    border-color: var(--sky-600);
    color: #fff !important;
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);
}

/* Teatime Button Theme */
.results-grid .card:last-child a[href*="predictions/"] {
    background: var(--rose-50);
    border: 1px solid var(--rose-200);
}
.results-grid .card:last-child a[href*="predictions/"]:hover {
    background: var(--rose-600);
    border-color: var(--rose-600);
    color: #fff !important;
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.2);
}

/* 5. Format the Summary Note */
.section-note {
    background: #fff;
    border: 1px dashed var(--slate-300);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--slate-600);
    line-height: 1.6;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.stat-table td:last-child a {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sky-700);
    background: var(--sky-50);
    border: 1px solid var(--sky-200);
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.stat-table td:last-child a:hover {
    background: var(--sky-600);
    border-color: var(--sky-600);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);
}

/* ── 18+ Age Badge ────────────────────────────── */
.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--rose-700);
    background: var(--rose-50);
    border: 1px solid var(--rose-200);
    border-radius: 999px; /* Creates the perfect pill shape */
    padding: 3px 10px;
    margin-left: 16px; /* Adds breathing room from the logo */
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    line-height: 1;
}

/* ── Enhanced Sidebar Styling ─────────────────── */

/* 1. Card Depth & Hover Effects */
.sidebar .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--slate-200);
}
.sidebar .card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    border-color: var(--slate-300);
}

/* 2. Refined Titles with Accent Dot */
.sidebar-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--slate-100);
    padding: 16px 20px 12px;
    color: var(--slate-600);
}
.sidebar-card__title::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sky-500);
}
.overdue-card .sidebar-card__title::before {
    background: var(--rose-500);
}

p#nextDrawLabel {
    margin-bottom: 7px;
}

p.sidebar-card__title {
    padding-bottom: 10px;
}

.hero h1 {
    font-size: 36px !important;}

/* 3. Highlighting the Countdown */
.countdown-clock {
    font-variant-numeric: tabular-nums; 
    background: var(--slate-50);
    border: 1px dashed var(--slate-300);
    border-radius: 8px;
    padding: 12px 0;
    text-align: center;
    color: var(--sky-700);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 20px 4px;
}
.countdown-label {
    text-align: center;
    font-weight: 600;
}
.countdown-sub {
    text-align: center;
}

/* 4. Cleaner Fact List */
.fact-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--slate-100);
}
.fact-list li:last-child {
    border-bottom: none;
}
.fact-list .fact-value {
    background: var(--slate-50);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid var(--slate-100);
}

/* 5. Interactive Jump Links */
.quicklinks a {
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--slate-50);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.quicklinks a:hover {
    background: #fff;
    border-color: var(--sky-200);
    color: var(--sky-700);
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* 6. Polished 3D Balls */
.overdue-row .ball {
    box-shadow: inset 0 -3px 4px rgba(0,0,0,0.25), 0 3px 5px rgba(0,0,0,0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

/* 7. Responsible Play Callout */
.sidebar-responsible {
    background: var(--amber-50);
    border: 1px solid var(--amber-200);
    border-left: 4px solid var(--amber-500);
}
.sidebar-responsible p {
    color: var(--amber-900);
}
.sidebar-responsible strong {
    color: var(--amber-900);
}

/* ── Enhanced SEO Topics Grid ─────────────────── */

.seo-topics {
    gap: 20px;
}

.seo-topic {
    background: #fff;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

/* Hover elevation */
.seo-topic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.08);
    border-color: var(--sky-200) !important;
}

/* Styled Icon Badge */
.seo-topic__icon {
    width: 44px;
    height: 44px;
    background: var(--sky-50);
    border: 1px solid var(--sky-200);
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.08);
    font-size: 1.3rem;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.seo-topic:hover .seo-topic__icon {
    transform: scale(1.08) rotate(-3deg);
}

/* Header & Typography */
.seo-topic h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--slate-100) !important;
}

.seo-topic p {
    font-size: 0.92rem;
    color: var(--slate-600);
    line-height: 1.7;
}

section.hero p {
    line-height: 25px !important;
}
p.last-updated {
    font-style: italic;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--amber-200); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }
/* Force the table container and table to stretch to 100% width */
.table-scroll {
    overflow-x: auto;
    width: 100%;
}
p.result-card__date {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 11px;
}

.stat-table {
    width: 100% !important;
    border-collapse: collapse;
}

.stat-table th, 
.stat-table td {
    text-align: left;
    padding: 12px 16px;
}

/* Give the Bonus column explicit alignment right to push it against the edge */
.stat-table th:last-child,
.stat-table td:last-child {
    text-align: center;
}
/* ── Breadcrumbs ───────────────────────────────── */
.breadcrumbs {
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--slate-500);
}
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: center; /* Center aligns it for your hero section */
}
.breadcrumbs a {
    color: var(--sky-700);
    font-weight: 600;
    transition: color 0.15s ease;
}
.breadcrumbs a:hover {
    color: var(--sky-900);
    text-decoration: underline;
}
.breadcrumbs .sep {
    color: var(--slate-400);
    font-size: 0.8rem;
}
.breadcrumbs [aria-current="page"] {
    color: var(--slate-800);
    font-weight: 600;
}

nav.breadcrumbs {
    border-bottom: 1px solid #ededed;
    padding-bottom: 5px;
}

/* uk49snumbers.com — predictions dashboard stylesheet
   Used only by /predictions/lunchtime/ (and future /predictions/teatime/).
   Loaded ALONGSIDE /style.css, not merged into it — this file only holds
   components specific to the predictions dashboard (hitmap, stat tables,
   watchlist, performance grid, etc). Relies on the CSS variables defined
   in style.css (--sky-*, --rose-*, --slate-*, --amber-*, --radius-md), so
   style.css must be linked first on any page that uses this file. */

.pred-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .pred-subgrid { grid-template-columns: 1fr; }

    .wrap.nav-inner img {
    width: 95% !important;
}
}

.confidence-badge { display: inline-block; margin-top: 12px; padding: 6px 14px; background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--amber-900); }

.table-scroll { overflow-x: auto; padding: 16px !important; }
.stat-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.stat-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); padding: 8px 10px; border-bottom: 2px solid var(--slate-200); }
.stat-table td { padding: 9px 10px; border-bottom: 1px solid var(--slate-100); font-size: 0.88rem; color: var(--slate-700); }
.stat-table tbody tr:hover { background: var(--slate-50); }

.status-pill { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status-very-hot { background: var(--rose-50); color: var(--rose-800); }
.status-hot { background: var(--rose-50); color: var(--rose-700); }
.status-average { background: var(--slate-100); color: var(--slate-600); }
.status-cold { background: var(--sky-50); color: var(--sky-700); }
.status-very-cold { background: var(--sky-50); color: var(--sky-800); }

.hitmap-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
@media (max-width: 480px) { .hitmap-grid { grid-template-columns: repeat(5, 1fr); } }
.hitmap-cell { aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.hitmap-num { font-size: 0.85rem; }
.hitmap-hits { font-size: 0.62rem; opacity: 0.85; }
.hitmap-cell.tier-very-hot { background: var(--rose-700); }
.hitmap-cell.tier-hot { background: var(--rose-600); }
.hitmap-cell.tier-average { background: var(--slate-400); }
.hitmap-cell.tier-cold { background: var(--sky-600); }
.hitmap-cell.tier-very-cold { background: var(--sky-800); }
.hitmap-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 0.78rem; color: var(--slate-600); }
.hitmap-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.hitmap-legend i.tier-very-hot { background: var(--rose-700); }
.hitmap-legend i.tier-hot { background: var(--rose-600); }
.hitmap-legend i.tier-average { background: var(--slate-400); }
.hitmap-legend i.tier-cold { background: var(--sky-600); }
.hitmap-legend i.tier-very-cold { background: var(--sky-800); }

.dist-bar { height: 14px; border-radius: 999px; background: var(--rose-600); overflow: hidden; margin-top: 8px; }
.dist-bar__fill { height: 100%; border-radius: 999px 0 0 999px; }
.dist-caption { font-size: 0.82rem; color: var(--slate-600); margin-top: 8px; }

.watchlist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.watchlist-desc { font-size: 0.8rem; color: var(--slate-500); margin-top: 10px; }

.perf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 12px; }
.perf-stat { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 16px; text-align: center; }
.perf-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--slate-900); }
.perf-label { display: block; font-size: 0.75rem; color: var(--slate-500); margin-top: 4px; }

.data-says-list, .method-list { margin: 0; padding-left: 20px; color: var(--slate-600); line-height: 1.8; font-size: 0.92rem; }
.data-says-list li, .method-list li { margin-bottom: 6px; }



/* ── Header / Nav ─────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--slate-200); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--slate-900); }
.brand span { color: var(--rose-600); }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 0.9rem; color: var(--slate-600); }
.nav-links a:hover { color: var(--slate-900); }
.nav-links a.is-current { color: var(--slate-900); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--slate-700); display: block; }
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 16px 20px 20px; gap: 14px; border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); }
    .nav-links.is-open { display: flex; }
}

/* ── Hero ──────────────────────────────────────── */
.hero { text-align: center; padding: 44px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero p { font-size: 1.05rem; color: var(--slate-500); max-width: 640px; margin: 0 auto; }
.hero .last-updated { font-size: 0.82rem; color: var(--slate-700); margin-top: 10px; font-weight: 600; }

/* ── Ball component ────────────────────────────── */
.balls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.ball { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--slate-800); color: #fff; font-weight: 700; box-shadow: var(--shadow-sm); }
.ball--bonus { background: var(--rose-700); }
.ball--sep { color: var(--slate-400); font-weight: 700; padding: 0 2px; }
.balls--sm .ball { width: 32px; height: 32px; font-size: 0.85rem; }
.balls--hot .ball { background: var(--rose-600); }
.balls--cold .ball { background: var(--sky-700); }
.empty-note { color: var(--slate-400); font-style: italic; font-size: 0.92rem; }

/* ── Layout: main + sidebar ─────────────────────── */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; margin-top: 32px; }

/* ── Cards ─────────────────────────────────────── */
.card { display: flex;  flex-direction: column; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05); border-color: var(--slate-300); overflow: hidden; }
.card-body { padding: 24px; }

.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .results-grid { grid-template-columns: 1fr; } }

.result-card__head { padding: 16px 8px; border-bottom: 1px solid var(--slate-100); display: flex; justify-content: space-between; align-items: center; }
.result-card__head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.result-card--lunchtime .result-card__head { background: var(--sky-50); }
.result-card--lunchtime h2 { color: var(--sky-900); }
.result-card--teatime .result-card__head { background: var(--rose-50); }
.result-card--teatime h2 { color: var(--rose-900); }
.draw-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 11px; border-radius: 999px; }
.result-card--lunchtime .draw-badge { background: var(--sky-200); color: var(--sky-900); }
.result-card--teatime .draw-badge { background: var(--rose-200); color: var(--rose-900); }
.result-card__date { font-size: 0.85rem; font-weight: 600; color: var(--slate-500); margin: 0 0 2px; }
.result-card__foot { padding: 14px 24px; background: var(--slate-50); border-top: 1px solid var(--slate-100); }
.result-card__foot a { color: var(--sky-700); font-weight: 600; font-size: 0.88rem; }
.result-card--teatime .result-card__foot a { color: var(--rose-700); }
.result-card__foot a:hover { text-decoration: underline; }

.card__foot { margin-top: auto; padding: 14px 24px; background: var(--slate-50); border-top: 1px solid var(--slate-100); }
.card__foot a { color: var(--sky-700); font-weight: 600; font-size: 0.88rem; }
.card__foot a:hover { text-decoration: underline; }
.hotcold-card--teatime .card__foot a { color: var(--rose-700); }

/* ── SEO content blocks ─────────────────────────── */
.seo-block { margin-top: 32px; }
.seo-block h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--slate-100); }
.seo-block > .card-body > p { color: var(--slate-600); line-height: 1.7; margin: 0 0 12px; max-width: 68ch; }

.seo-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
@media (max-width: 640px) { .seo-topics { grid-template-columns: 1fr; } }

.seo-topic { background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: var(--radius-md); padding: 20px 22px; }
.seo-topic__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.seo-topic h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--slate-800); }
.seo-topic p { font-size: 0.9rem; color: var(--slate-600); line-height: 1.65; margin: 0; }

.callout { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 10px; font-size: 0.88rem; margin-top: 24px; }
.callout--sky { background: var(--sky-50); border-left: 3px solid var(--sky-600); color: var(--sky-900); }
.callout p { margin: 0; }

/* ── Predictions ───────────────────────────────── */
.section { margin-top: 40px; }
.section__title { font-size: 1.5rem; font-weight: 800; text-align: center; margin: 0 0 8px; }
.section__lead { text-align: center; color: var(--slate-500); max-width: 640px; margin: 0 auto 28px; }
.prediction-card__head { padding: 16px 24px; background: var(--amber-50); border-bottom: 1px solid var(--slate-100); }
.prediction-card__head h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--amber-900); }
.prediction-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-700); margin: 0 0 8px; }
.prediction-sub { font-size: 0.78rem; color: var(--slate-400); text-align: center; margin-top: 18px; }
.section-note { text-align: center; font-size: 0.88rem; color: var(--slate-400); margin-top: 18px; }

/* ── Hot & Cold ────────────────────────────────── */
.hotcold-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 16px; }
.result-card--lunchtime.hotcold-card h3, .hotcold-card--lunchtime h3 { color: var(--sky-900); }
.hotcold-card--teatime h3 { color: var(--rose-900); }
.hotcold-group { margin-bottom: 16px; }
.hotcold-group:last-child { margin-bottom: 0; }
.trend-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-400); margin: 0 0 8px; }
.pairs-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pair-badge { font-size: 0.85rem; font-weight: 700; color: var(--slate-700); background: var(--slate-100); border-radius: 8px; padding: 5px 12px; }

/* ── Blog ──────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 800px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card-link {
    display: flex;
    border-top: 3px solid var(--slate-200);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.blog-card-link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,0.09); }
.blog-card-link .card-body { display: flex; flex-direction: column; height: 100%; padding: 22px; }

.blog-card-link.is-results { border-top-color: var(--sky-600); }
.blog-card-link.is-guide { border-top-color: var(--amber-600); }
.blog-card-link.is-analysis { border-top-color: var(--rose-600); }

.blog-card__tag { display: inline-block; align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 999px; padding: 4px 11px; margin-bottom: 12px; }
.is-results .blog-card__tag { color: var(--sky-700); background: var(--sky-50); }
.is-guide .blog-card__tag { color: var(--amber-900); background: var(--amber-50); }
.is-analysis .blog-card__tag { color: var(--rose-700); background: var(--rose-50); }

.blog-card-link h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--slate-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.blog-card-link p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--slate-500);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.blog-card__cta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--sky-700); margin-top: auto; }
.blog-card-link:hover .blog-card__cta { text-decoration: underline; }

/* ── FAQ ───────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; }
.faq-item.is-open { border-color: var(--sky-200); box-shadow: 0 0 0 3px rgba(2,132,199,0.08); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 17px 20px; font-weight: 700; font-size: 0.95rem; color: var(--slate-900); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--sky-50); color: var(--sky-700); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--sky-600); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer-inner { padding: 0 20px 18px; font-size: 0.9rem; color: var(--slate-500); line-height: 1.65; }

/* ── Responsible play ──────────────────────────── */
.responsible-note { margin-top: 40px; padding: 16px 20px; background: var(--amber-50); border: 1px solid var(--amber-200); border-radius: 12px; display: flex; gap: 10px; align-items: flex-start; }
.responsible-note p { margin: 0; font-size: 0.85rem; color: var(--amber-900); line-height: 1.6; }

/* ── Sidebar ───────────────────────────────────── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 84px; /* site-header height (64px) + breathing room */
    overflow-y: auto;
    scrollbar-width: thin;
}
.sidebar-card__title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate-400); padding: 16px 20px 0; margin: 0; }
.countdown-label { font-size: 0.85rem; color: var(--slate-500); margin: 12px 20px 2px; }
.countdown-clock { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 2rem; font-weight: 700; color: var(--slate-900); margin: 0 20px 4px; }
.countdown-sub { font-size: 0.75rem; color: var(--slate-400); margin: 0 20px 18px; }

.fact-list { list-style: none; margin: 0; padding: 12px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.fact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.85rem; }
.fact-list .fact-label { color: var(--slate-500); flex-shrink: 0; }
.fact-list .fact-value { font-weight: 700; color: var(--slate-800); text-align: right; min-width: 0; white-space: normal; }

.overdue-card { padding: 18px 20px; }
.overdue-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--slate-100); }
.overdue-row:last-child { border-bottom: none; }
.overdue-row .ball { width: 36px; height: 36px; font-size: 0.9rem; background: var(--sky-700); flex-shrink: 0; }
.overdue-row.teatime .ball { background: var(--rose-600); }
.overdue-meta { font-size: 0.8rem; }
.overdue-meta strong { display: block; color: var(--slate-800); font-size: 0.85rem; }
.overdue-meta span { color: var(--slate-400); }

.quicklinks { list-style: none; margin: 0; padding: 12px 20px 18px; display: flex; flex-direction: column; gap: 10px; }
.quicklinks a { font-size: 0.88rem; font-weight: 600; color: var(--sky-700); display: flex; align-items: center; gap: 6px; }
.quicklinks a:hover { text-decoration: underline; }

.sidebar-responsible { padding: 16px 20px; font-size: 0.78rem; color: var(--slate-500); line-height: 1.55; }
.sidebar-responsible strong { color: var(--slate-700); }
.seo-topic {
    border: 1px solid #c7c7c7 !important;
}
.seo-topic h3 {
    border-bottom: 1px solid #c7c7c7;
    padding-bottom: 12px;
}
/* ── Footer ────────────────────────────────────── */
.site-footer { background: #fff; border-top: 1px solid var(--slate-200); margin-top: 48px; padding: 32px 0; text-align: center; }
.site-footer p { margin: 0 0 8px; font-size: 0.88rem; color: var(--slate-500); }
.site-footer .footer-fine { font-size: 0.76rem; color: var(--slate-400); max-width: 640px; margin: 0 auto; }
.site-footer .footer-links { font-size: 0.82rem; margin-top: 12px; }
.site-footer .footer-links a { color: var(--sky-700); font-weight: 600; }
.site-footer .footer-links a:hover { text-decoration: underline; }
.responsible-note a { color: var(--amber-900); font-weight: 700; text-decoration: underline; }

main.wrap { padding-top: 24px; padding-bottom: 48px; }

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; position: static; max-height: none; overflow-y: visible; }
}



/* Enhanced Legal/Contact Body Styling */
        .legal-body { 
            background: #fff; 
            border: 1px solid var(--slate-200); 
            border-radius: var(--radius-lg); 
            box-shadow: var(--shadow-sm); 
            padding: 40px; 
        }
        @media (max-width: 640px) {
            .legal-body { padding: 24px; }
        }
        
        .legal-body h1 { 
            font-size: 2.25rem; 
            font-weight: 800; 
            margin: 0 0 16px; 
            color: var(--slate-900); 
            letter-spacing: -0.02em; 
        }
        
        .wrap.nav-inner img {
    width: 63%;
}
        
        .legal-body h2 { 
            font-size: 1.25rem; 
            font-weight: 700; 
            margin: 36px 0 12px; 
            color: var(--slate-800); 
            border-bottom: 2px solid var(--slate-100); 
            padding-bottom: 10px; 
        }
        
        .legal-body p, .legal-body li { 
            color: var(--slate-600); 
            line-height: 1.75; 
            font-size: 1rem; 
            max-width: 68ch; 
            margin: 0 0 16px; 
        }
        
        .legal-body ul { 
            padding-left: 20px; 
            margin-bottom: 24px; 
        }
        
        .legal-body a { 
            color: var(--sky-700); 
            font-weight: 600; 
            transition: color 0.15s ease; 
        }
        
        .legal-body a:hover { 
            color: var(--sky-900); 
            text-decoration: underline; 
        }

        /* Upgraded Contact Box */
        .contact-card { 
            display: flex; 
            align-items: center; 
            gap: 20px; 
            background: var(--sky-50); 
            border: 1px solid var(--sky-200); 
            border-radius: var(--radius-md); 
            padding: 24px; 
            margin: 32px 0; 
        }
        @media (max-width: 480px) {
            .contact-card { flex-direction: column; align-items: flex-start; text-align: left; gap: 16px; }
        }
        
        .contact-card__icon { 
            width: 52px; 
            height: 52px; 
            background: var(--sky-600); 
            color: #fff; 
            border-radius: 50%; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            flex-shrink: 0; 
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25); 
        }
        
        .contact-card__content p { 
            margin: 0; 
            color: var(--sky-900); 
            font-weight: 500; 
        }
        
        .contact-card__content .email-link { 
            display: inline-block; 
            font-size: 1.2rem; 
            font-weight: 700; 
            color: var(--sky-700); 
            margin-top: 4px; 
        }
        .contact-card__content .email-link:hover {
            color: var(--sky-900);
        }

        /* Contact Form Styles */
        .contact-form {
            margin-top: 32px;
            background: var(--slate-50);
            padding: 32px;
            border-radius: var(--radius-md);
            border: 1px solid var(--slate-200);
        }
        @media (max-width: 640px) {
            .contact-form { padding: 20px; }
        }

        .form-group { margin-bottom: 20px; }
        
        .form-label {
            display: block;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--slate-800);
            margin-bottom: 8px;
        }
        
        .form-input, .form-textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--slate-300);
            border-radius: 8px;
            font-family: inherit;
            font-size: 1rem;
            color: var(--slate-900);
            background: #fff;
            transition: all 0.2s ease;
        }
        
        .form-input:focus, .form-textarea:focus {
            outline: none;
            border-color: var(--sky-600);
            box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
        }
        
        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }
        
        p.prediction-sub {
    color: #0369a1 !important;
    font-style: italic;
}
        
        .btn-submit {
            background: var(--sky-600);
            color: #fff;
            border: none;
            padding: 14px 28px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
            display: inline-block;
        }
        
        .btn-submit:hover { background: var(--sky-700); }

        /* Form Alerts */
        .alert {
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 24px;
            font-size: 0.95rem;
            font-weight: 500;
            line-height: 1.5;
        }
        .alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
        .alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
        
        .required { color: var(--rose-600); }
        
        
 /* ── Header Branding Fix ────────────────────────────── */

.brand-group {
    display: flex;
    align-items: center;
    gap: 16px; 
}


.brand-group img {
    display: block !important;
    width: auto !important;
    max-height: 44px !important; 
}


.age-badge {
    margin-left: 0 !important; 
    transform: translateY(2px); 
}  


.nav-inner {
    justify-content: flex-start !important; 
    gap: 16px !important; /* Space between logo and 18+ badge */
}


.nav-links {
    margin-left: auto !important; 
    gap: 24px !important; 
}


.nav-links a {
    white-space: nowrap !important; 
}


.age-badge {
    margin-left: 0 !important;
    flex-shrink: 0 !important; 
    transform: translateY(2px);
}


.nav-toggle {
    margin-left: auto !important;
}
        