@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
    --blue:       #0645AD;
    --blue-dark:  #053899;
    --blue-pale:  #EBF2FF;
    --red:        #CC1313;
    --red-dark:   #A80F0F;
    --text:       #111111;
    --text-mid:   #444444;
    --text-soft:  #666666;
    --bg:         #FFFFFF;
    --bg-alt:     #F7F7F7;
    --border:     #DDDDDD;
    --border-soft:#EEEEEE;
    --green:      #1A6E3C;
    --green-bg:   #E6F4EC;
    --amber:      #92590B;
    --amber-bg:   #FDF3DC;
    --slate:      #4A5568;
    --slate-bg:   #EDF2F7;
    --white:      #FFFFFF;

    --max-w: 1020px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'tnum' 1;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.2;
}
h1 { font-size: 34px; margin-bottom: 10px; }
h2 { font-size: 24px; margin-bottom: 8px; }
h3 { font-size: 20px; margin-bottom: 6px; }

/* SEO / editorial content */
.seo-block h1 { font-size: 28px; margin: 28px 0 6px; }
.seo-block h1:first-child { margin-top: 0; }
.seo-block h2 { font-size: 21px; margin: 22px 0 6px; border-bottom: 1px solid var(--border-soft); padding-bottom: 5px; }
.seo-block p  { font-size: 18px; color: var(--text-mid); line-height: 1.75; }
.seo-block ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.seo-block ul li { font-size: 18px; color: var(--text-mid); margin-bottom: 4px; }
.seo-block hr  { border: 0; border-top: 1px solid var(--border-soft); margin: 24px 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   SITE HEADER  (logo + tagline — big, simple, white)
   ============================================================ */
.site-header {
    background: var(--white);
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo-wrap { }
.logo {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -1px;
    text-decoration: none;
    line-height: 1;
    margin-bottom: 4px;
}
.logo:hover { text-decoration: none; color: var(--blue-dark); }
.logo .logo-red { color: var(--red); }
.logo-tagline {
    font-size: 17px;
    color: var(--text-soft);
    font-weight: 400;
}
.header-search {
    margin-left: auto;
    margin-right: 20px;
    max-width: 320px;
    width: 100%;
}
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 14px;
    color: #888;
    pointer-events: none;
}
.search-input-wrap input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-alt);
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}
.search-input-wrap input:focus {
    background: var(--white);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(6, 69, 173, 0.1);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text);
    padding: 7px 9px;
    line-height: 0;
    align-self: center;
}
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: var(--blue);
    font-size: 18px;
    font-weight: 600;
    padding: 9px 8px;
    border-bottom: 1px solid var(--border-soft);
    text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--bg-alt); }

/* ============================================================
   GAME CATEGORY NAV (the horizontal link bar below header)
   ============================================================ */
.game-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.game-nav::-webkit-scrollbar { display: none; }
.game-nav .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: max-content;
    gap: 0;
}
.game-nav a {
    font-size: 17px;
    font-weight: 500;
    color: var(--blue);
    padding: 10px 14px;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color .13s, background .13s;
    display: inline-flex;
    align-items: center;
}
.game-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.game-nav a.active { border-bottom-color: var(--blue); font-weight: 700; }
.game-nav .nav-sep {
    color: var(--border);
    font-size: 18px;
    padding: 0 2px;
    user-select: none;
}

/* ============================================================
   PAGE BODY
   ============================================================ */
.page-body {
    background: var(--white);
    padding: 32px 0 56px;
    min-height: 60vh;
}

/* ============================================================
   ARTICLE HEADER (H1, meta line)
   ============================================================ */
.article-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}
.article-header h1 {
    font-size: 36px;
    color: var(--blue);
    margin-bottom: 8px;
    line-height: 1.15;
}
.article-meta {
    font-size: 16px;
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}
.article-meta a { color: var(--blue); font-weight: 600; }
.article-meta .sep { color: var(--border); }

/* ============================================================
   INTRO / EDITORIAL TEXT
   ============================================================ */
.intro-text {
    font-size: 19px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 28px;
}
.intro-text strong { font-weight: 700; }
.intro-text a { color: var(--blue); font-weight: 500; }
.intro-text a:hover { text-decoration: underline; }

/* ============================================================
   RESULTS TABLE  (the key UI — red game header, white rows)
   ============================================================ */
.results-section {
    margin-bottom: 28px;
}

.result-table-wrap {
    width: 100%;
    border: 1px solid var(--border);
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 19px;
}

/* RED game header row */
.result-table-wrap .game-header {
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}
.game-header .gh-name { font-size: 19px; font-weight: 700; }
.game-header .gh-date { font-size: 17px; font-weight: 500; opacity: .92; }

/* Draw time rows */
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 19px;
    background: var(--white);
    transition: background .1s;
}
.result-row:hover { background: var(--bg-alt); }
.result-row .rr-time { color: var(--text-mid); font-weight: 500; }
.result-row .rr-combo {
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    font-size: 19px;
}
.result-row .rr-combo.pending {
    color: var(--text-soft);
    font-weight: 400;
    font-style: italic;
    font-size: 17px;
    letter-spacing: 0;
}
.result-row .rr-status {
    font-size: 15px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.s-released { background: var(--green-bg); color: var(--green); }
.s-awaiting  { background: var(--amber-bg); color: var(--amber); }
.s-upcoming  { background: var(--slate-bg); color: var(--slate); }

/* ============================================================
   INLINE SECTION HEADINGS
   ============================================================ */
.section-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    margin: 32px 0 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}

/* ============================================================
   YESTERDAY STRIP
   ============================================================ */
.yday-table-wrap {
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.yday-header {
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}
.yday-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 19px;
    background: var(--white);
}
.yday-row:hover { background: var(--bg-alt); }
.yday-row .yr-time { color: var(--text-mid); font-weight: 500; }
.yday-row .yr-combo { font-weight: 700; color: var(--text); letter-spacing: 1px; }
.yday-row .yr-none  { color: var(--text-soft); font-style: italic; font-size: 17px; }

/* ============================================================
   RECENT RESULTS TABLE
   ============================================================ */
.data-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    margin-bottom: 14px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 340px;
    font-size: 19px;
}
.data-table thead tr {
    background: var(--bg-alt);
}
.data-table th {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-soft);
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-alt); }
.td-date { font-weight: 600; white-space: nowrap; }
.td-date a { color: var(--blue); }
.td-combo { font-weight: 700; letter-spacing: 2px; color: var(--text); }
.td-none  { color: var(--border); letter-spacing: 0; font-style: italic; }

/* ============================================================
   INFO SECTIONS (schedule, how-to, about, etc)
   ============================================================ */
.info-block {
    margin-bottom: 28px;
}
.info-block h2 {
    font-size: 24px;
    color: var(--blue);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
}

/* Draw schedule pills */
.schedule-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.sched-pill {
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    padding: 8px 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    background: var(--bg-alt);
}
.sched-note { font-size: 17px; color: var(--text-soft); }

/* How to steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--blue);
}
.step-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    opacity: .3;
    min-width: 28px;
    line-height: 1.3;
}
.step-text { font-size: 18px; color: var(--text); font-weight: 500; line-height: 1.5; }

/* Stats */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.stat-box {
    border: 1px solid var(--border);
    padding: 12px 18px;
    min-width: 120px;
    text-align: center;
    background: var(--bg-alt);
}
.stat-lbl { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-soft); margin-bottom: 4px; }
.stat-val { font-size: 26px; font-weight: 800; color: var(--blue); letter-spacing: 3px; }
.stat-caveat { font-size: 15px; color: var(--text-soft); font-style: italic; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border-soft); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.faq-a { font-size: 18px; color: var(--text-mid); line-height: 1.65; }
.faq-a a { color: var(--blue); font-weight: 600; }

/* Trust / disclaimer */
.trust-note {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    padding: 14px 16px;
    font-size: 17px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 20px;
}
.trust-note strong { color: var(--text); }
.trust-note a { color: var(--blue); font-weight: 600; }

/* Responsible gaming */
.resp-note {
    background: #FFFBF0;
    border: 1px solid #E8D08A;
    border-left: 3px solid #B8860B;
    padding: 12px 16px;
    font-size: 17px;
    color: #4A3800;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Buttons / CTAs */
.cta-link {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    margin-top: 6px;
}
.cta-link:hover { text-decoration: underline; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: border-color .13s, color .13s;
}
.btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }

/* Source meta bar */
.meta-bar {
    font-size: 16px;
    color: var(--text-soft);
    margin-bottom: 20px;
    padding: 8px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: center;
}
.meta-bar strong { color: var(--text); }

/* Breadcrumbs */
.breadcrumbs {
    font-size: 16px;
    color: var(--text-soft);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}
.breadcrumbs a { color: var(--blue); }
.breadcrumbs .sep { color: var(--border); }

/* Date nav */
.date-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 17px;
    background: var(--bg-alt);
}
.date-nav a { color: var(--blue); font-weight: 600; }
.date-nav a:hover { text-decoration: underline; }
.date-nav .current { font-weight: 700; }

/* Search form */
.search-form { display: grid; gap: 14px; max-width: 540px; }
.search-form label { font-size: 16px; font-weight: 700; display: block; margin-bottom: 5px; }
.search-form .field-row { display: flex; gap: 8px; }
.search-form select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 17px;
    color: var(--text);
    background: var(--white);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 28px 0 20px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 20px;
}
.footer-brand .logo { font-size: 24px; margin-bottom: 8px; }
.footer-brand p { font-size: 16px; color: var(--text-soft); line-height: 1.65; }
.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-soft);
    margin-bottom: 10px;
}
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { font-size: 16px; color: var(--text-mid); }
.footer-col ul li a:hover { color: var(--blue); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    font-size: 15px;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom a { color: var(--text-soft); }
.footer-bottom a:hover { color: var(--blue); }

/* ============================================================
   UTIL
   ============================================================ */
.text-soft { color: var(--text-soft); }
.text-sm   { font-size: 17px; }
.text-xs   { font-size: 15px; }
.mt-sm     { margin-top: 10px; }
.mt-md     { margin-top: 20px; }
.mb-0      { margin-bottom: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .site-header .container { flex-wrap: wrap; justify-content: space-between; }
    .logo-wrap { flex: 0 1 auto; }
    .mobile-menu-btn { display: inline-flex; margin-left: auto; }
    .header-search { flex: 1 1 100%; max-width: 100%; margin: 12px 0 0 0; order: 3; }
    .logo { font-size: 30px; }
    .article-header h1 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-bottom { flex-direction: column; }
    .stats-row { flex-direction: column; }
}

@media (max-width: 480px) {
    body { font-size: 18px; }
    .logo { font-size: 26px; }
    .article-header h1 { font-size: 24px; }
    .result-table-wrap .game-header, .yday-header { flex-direction: column; align-items: flex-start; gap: 2px; }
    .result-row, .yday-row { flex-direction: row; gap: 8px; }
    .container { padding: 0 16px; }
}
