/* omgang.css – CSS för statiska V85/V75-omgångssidor
   UTF-8 utan BOM
   Bygger på samma CSS-variabler som default.css
*/

/* === CSS-variabler (mörkt tema som standard) === */
:root
{
    --bg-darkest: #0d0f14;
    --bg-dark: #141720;
    --bg-card: #1f2438;
    --bg-card2: #252a42;
    --border-color: #2e3350;
    --gold: #c9a227;
    --text-gold: #c9a227;
    --gold-light: #e8c55a;
    --text-primary: #e8eaf2;
    --text-dim: #a2acd5;
    --text-muted: #6b74a2;
    --text-pale: #cfd0d4;
    --green: #3dba7a;
    --red: #e05c5c;
    --topbar-h: 56px;
    --screen-min: 1920px;
    --screen-max: 1920px;
    --locked-border: #2a6a9e;
    --font-min: calc(var(--screen-min) * 0.008);
    --font-max: calc(var(--screen-max) * 0.008);
    font-size: max(var(--font-min), 0.8vw);
}

[data-theme="light"]
{
    --bg-darkest: #f4f5f9;
    --bg-dark: #eef0f6;
    --bg-card: #ffffff;
    --bg-card2: #f8f9fc;
    --border-color: #d0d5e8;
    --gold: #b8860b;
    --text-gold: #b8860b;
    --gold-light: #c9970e;
    --text-primary: #2c3050;
    --text-dim: #4a5480;
    --text-muted: #6b74a2;
    --text-pale: #787a80;
    --locked-border: #4a9edd;
}

/* === Reset & grund === */
*, *::before, *::after
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    background: var(--bg-darkest);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: var(--topbar-h);
}

a
{
    color: var(--gold);
    text-decoration: none;
}

    a:hover
    {
        color: var(--gold-light);
        text-decoration: underline;
    }

/* === Topbar === */
#omg-topbar
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1.25rem;
    z-index: 1000;
}

.omg-logo
{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

    .omg-logo i
    {
        color: var(--gold);
    }

    .omg-logo strong
    {
        color: var(--gold);
    }

.omg-topbar-nav
{
    display: flex;
    gap: 1rem;
    margin-left: 0.5rem;
}

    .omg-topbar-nav a
    {
        color: var(--text-dim);
        font-size: 0.9rem;
        text-decoration: none;
        transition: color 0.15s;
    }

        .omg-topbar-nav a:hover
        {
            color: var(--text-primary);
            text-decoration: none;
        }

.omg-theme-btn
{
    margin-left: auto;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
    transition: color 0.15s, border-color 0.15s;
}

    .omg-theme-btn:hover
    {
        color: var(--gold);
        border-color: var(--gold);
    }

/* === Breadcrumb === */
.omg-breadcrumb
{
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
}

    .omg-breadcrumb ol
    {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0 0.4rem;
    }

    .omg-breadcrumb li
    {
        color: var(--text-muted);
    }

        .omg-breadcrumb li + li::before
        {
            content: "›";
            margin-right: 0.4rem;
        }

    .omg-breadcrumb a
    {
        color: var(--text-dim);
    }

        .omg-breadcrumb a:hover
        {
            color: var(--text-primary);
        }

    .omg-breadcrumb li[aria-current="page"]
    {
        color: var(--text-primary);
    }

/* === Huvud-layout === */
.omg-main
{
    padding: 2rem 1rem 3rem;
    max-width: 1100px;
}

/* === Artikelrubrik === */
.omg-article-header
{
    margin-bottom: 1.5rem;
}

    .omg-article-header h1
    {
        font-size: clamp(1.3rem, 3vw, 2rem);
        font-weight: 700;
        margin: 0 0 0.25rem;
        color: var(--text-primary);
    }

.omg-datum
{
    color: var(--gold);
}

.omg-omsattning
{
    color: var(--text-dim);
    margin-top: 15px;
}

.omg-bana-info
{
    color: var(--text-dim);
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

/* === Sektionsrubriker === */
.omg-main h2
{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin: 2rem 0 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-color);
}

.omg-main h3
{
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
}

/* === Tabeller === */
.omg-table-wrap
{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.omg-table
{
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

    .omg-table thead th
    {
        background: var(--bg-card2);
        color: var(--text-dim);
        font-weight: 600;
        text-align: left;
        padding: 0.5rem 0.6rem;
        border-bottom: 1px solid var(--border-color);
        white-space: nowrap;
    }

        .omg-table thead th:first-child
        {
            text-align: center;
        }


    .omg-table tbody tr
    {
        border-bottom: 1px solid var(--border-color);
        transition: background 0.1s;
    }

        .omg-table tbody tr:last-child
        {
            border-bottom: none;
        }

        .omg-table tbody tr:hover
        {
            background: var(--bg-card2);
        }

    .omg-table tbody td
    {
        padding: 0.45rem 0.6rem;
        vertical-align: middle;
    }

        .omg-table tbody td:first-child
        {
            text-align: center;
        }

.omg-col-kusk
{
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* Rad-typer */
.omg-row-spik
{
    background: rgba(61, 86, 196, 0.06);
}

    .omg-row-spik td:first-child
    {
        border-left: 3px solid var(--locked-border);
        padding-left: 0.4rem;
    }

.omg-row-gard
{
    background: rgba(61, 86, 196, 0.06);
}

    .omg-row-gard td:first-child
    {
        border-left: 3px solid var(--locked-border);
        padding-left: 0.4rem;
    }

.omg-row-winner
{
    font-weight: 600;
}

.omg-scratched
{
    opacity: 0.4;
    text-decoration: line-through;
}

/* Taggar */
.omg-tag-gal, .omg-tag-disk
{
    font-size: 0.72rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

.omg-tag-gal
{
    background: rgba(224, 92, 92, 0.2);
    color: var(--red);
}

.omg-tag-disk
{
    background: rgba(107, 116, 162, 0.2);
    color: var(--text-muted);
}

/* Vinnare-ikon */
.omg-winner-icon
{
    color: var(--gold);
    font-size: 0.8em;
}

/* === Utdelning === */
.omg-utdelning-table
{
    max-width: 520px;
}

/* === Spelförslag === */
.omg-spelforslag-info
{
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.omg-spel-cols
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.omg-spel-col
{
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 140px;
    flex: 1 1 140px;
    padding: 0.6rem 0.8rem;
}

.omg-spel-col--spik
{
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.07);
}

.omg-spel-col-hdr
{
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.omg-spik-badge
{
    background: var(--gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.omg-spel-list
{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

    .omg-spel-list li
    {
        padding: 0.2rem 0;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 0.3rem;
        flex-wrap: wrap;
    }

        .omg-spel-list li.omg-spel-winner
        {
            font-weight: 700;
            color: var(--gold-light);
        }

.omg-spel-tf
{
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* === Avdelningar === */
.omg-avd
{
    margin-bottom: 2rem;
}

.omg-avd--spik .omg-table-wrap
{
    border-color: var(--gold);
}

.omg-loppinfo
{
    font-size: 0.83rem;
    color: var(--text-dim);
    margin: 0 0 0.6rem;
}

/* === Prev/next-navigering === */
.omg-prevnext
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2.5rem 0 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

    .omg-prevnext a, .omg-prevnext span
    {
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

.omg-nav-disabled
{
    color: var(--text-muted);
}

.omg-arkiv-link
{
    color: var(--text-dim);
}

    .omg-arkiv-link:hover
    {
        color: var(--text-primary);
    }

/* === Footer === */
/*.cf-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cf-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.cf-logo i { color: var(--gold); }
.cf-logo strong { color: var(--gold); }

.cf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
}

.cf-sep { color: var(--text-muted); margin: 0 0.25rem; }

.cf-main p { margin: 0.3rem 0; }

.cf-ansvar { font-size: 0.8rem; color: var(--text-muted); }
.cf-copyright { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
*/
/* === Responsivitet === */
@media (max-width: 600px)
{
    .omg-spel-col
    {
        min-width: 120px;
    }

    .omg-table
    {
        font-size: 0.8rem;
    }

    .omg-prevnext
    {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* === Kupong (dela-display-stil, portad från default.css) === */
.dela-display
{
    background: rgb(255, 246, 207);
    border: 1px solid rgb(215, 209, 186);
    border-radius: 8px;
    padding: 16px;
    font-size: 0.8125rem;
    color: rgb(89, 89, 83);
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.dela-display-rubrik
{
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
    color: rgb(89, 89, 83);
}

.dela-header-cols
{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.dela-header-left
{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dela-speltyp
{
    font-size: 2.4375rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    color: rgb(89, 89, 83);
}

.dela-bana
{
    font-size: 0.8125rem;
    color: rgb(89, 89, 83);
}

.dela-header-right
{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-top: 10px;
}

.dela-rader
{
    font-size: 0.8125rem;
    color: rgb(89, 89, 83);
    margin-top: 15px;
}

.dela-kostnad
{
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgb(89, 89, 83);
}

.dela-divider
{
    border: none;
    border-top: 1px solid rgb(215, 209, 186);
    margin: 12px 0;
}

.dela-horse-table
{
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

    .dela-horse-table th
    {
        font-weight: 600;
        text-align: left;
        padding: 4px 8px 6px 0;
        border-bottom: 1px solid rgb(215, 209, 186);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: rgb(89, 89, 83);
    }

    .dela-horse-table td
    {
        padding: 5px 8px 5px 0;
        color: rgb(89, 89, 83);
        border-bottom: 1px solid rgba(215, 209, 186, 0.6);
        vertical-align: middle;
        font-weight: 700;
    }

    .dela-horse-table tr:last-child td
    {
        border-bottom: none;
    }

    .dela-horse-table .dela-lopp-nr
    {
        font-weight: 700;
        width: 44px;
        color: rgb(89, 89, 83);
        font-size: 1.2rem;
    }

    .dela-horse-table tbody
    {
        font-size: 0.95rem;
        text-transform: uppercase;
    }

/* Vinnande hässnummer i kupong – grön cirkel */
.omg-kupong-winner-nr
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgb(78, 187, 53);
    border: 3px solid rgb(78, 187, 53);
    border-radius: 50%;
    color: rgb(255, 255, 255);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

/* Vinnande hästnummer utanför systemet – orange cirkel */
.omg-kupong-winner-out
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgb(220, 120, 0);
    border: 3px solid rgb(220, 120, 0);
    border-radius: 50%;
    color: rgb(255, 255, 255);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

/* === Vinstsektion under kupong === */
.omg-vinst-section
{
    margin-top: 12px;
    border-top: 1px solid rgb(215, 209, 186);
    padding-top: 10px;
}

.omg-vinst-rubrik
{
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgb(89, 89, 83);
    margin-bottom: 6px;
}

/* vinst-table och vinst-td-* portade från default.css */
.vinst-table
{
    width: 100%;
    font-size: 0.82rem;
    border-collapse: collapse;
}

    .vinst-table td
    {
        padding: 1px 3px;
        white-space: nowrap;
    }

.vinst-td-n
{
    color: rgb(120, 115, 100);
}

.vinst-td-rows,
.vinst-td-per,
.vinst-td-sum
{
    text-align: right;
}

.vinst-td-x,
.vinst-td-eq
{
    text-align: center;
    color: rgb(150, 145, 130);
    padding-left: 4px;
    padding-right: 4px;
}

.vinst-summa-row td
{
    border-top: 1px solid rgb(215, 209, 186);
    padding-top: 3px;
    font-weight: 600;
}

.vinst-summa-row .vinst-td-n
{
    color: rgb(89, 89, 83);
}

/*Det här är sista raden*/
