/* The same navigation and footer are used on the front page, digests and stories. */
#gh-head.bitz-head,
.gh-head-open.has-cover #gh-head.bitz-head {
    position: relative;
    inset: auto;
    color: #fff;
    background: #111820;
    border-bottom: 1px solid #28313c;
}
#gh-head.bitz-head .gh-head-inner { position: relative; }
#gh-head.bitz-head .gh-head-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
#gh-head.bitz-head .gh-head-logo::before {
    content: "";
    width: 32px;
    height: 32px;
    background: url("/assets/images/favicon-32x32.png") center/contain no-repeat;
}
.bitz-head .front-mobile-casino, .bitz-search { display: none; }
.bitz-head .gh-search { color: inherit; width: 44px; height: 44px; }
.bitz-head .gh-search:focus-visible, .bitz-head .gh-burger:focus-visible,
.bitz-head a:focus-visible {
    outline: 2px solid #dce7f2;
    outline-offset: 2px;
}
.bitz-search form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #657180;
    border-radius: 8px;
    color: #c6d0da;
    background: #0e141b;
}
.bitz-search form:focus-within { outline: 2px solid #dce7f2; outline-offset: 1px; }
.bitz-search form svg { flex: none; width: 19px; height: 19px; }
.bitz-search input {
    appearance: none;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    outline: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    color-scheme: dark;
    font: 600 16px/1.25 var(--font-sans);
}
.bitz-search input::placeholder { color: #b9c3d0; opacity: 1; }
.bitz-search-status:not(:empty) {
    margin: 9px 0 2px;
    color: #bdc7d1;
    font-size: 1.3rem;
    line-height: 1.4;
}
.bitz-search-results {
    list-style: none;
    margin: 0;
    padding: 0 3px;
    max-height: min(35vh, 290px);
    overflow-y: auto;
}
.bitz-search-results li { margin: 0; padding: 0; }
#gh-head.bitz-head .bitz-search-results a {
    color: #f5f7f9;
    display: grid;
    gap: 3px;
    min-height: 44px;
    padding: 9px 1px;
    border-bottom: 1px solid #303740;
    font-size: 1.5rem;
    line-height: 1.3;
}
.bitz-search-results a:hover { text-decoration: underline; }
.bitz-search-results small { color: #b9c3d0; font-size: 1.2rem; }

@media (min-width: 768px) {
    #gh-head.bitz-head .gh-head-menu { position: static; margin-left: 0; }
    .bitz-head[data-search-open] .bitz-search {
        position: absolute;
        z-index: 10;
        top: calc(100% - 5px);
        right: 0;
        display: block;
        width: min(400px, 92vw);
        padding: 12px;
        color: #fff;
        background: #111820;
        border: 1px solid #46505d;
        border-radius: 10px;
        box-shadow: 0 12px 28px #0006;
    }
    .front-archive { display: flex; flex-direction: column; }
    .front-archive .front-archive-row { flex: 1; align-content: center; }
}
@media (min-width: 768px) and (max-width: 991px) {
    #gh-head.bitz-head .gh-head-inner { column-gap: 18px; }
    #gh-head.bitz-head .gh-head-menu { margin-inline: 0; }
    #gh-head.bitz-head .nav { gap: 18px; }
}
@media (max-width: 767px) {
    #gh-head.bitz-head .gh-head-inner {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
    }
    #gh-head.bitz-head .gh-head-brand { height: 64px; column-gap: 6px; }
    #gh-head.bitz-head .front-mobile-casino {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        white-space: nowrap;
        padding: 0 14px;
        margin-right: 8px;
        border-radius: 999px;
        background: var(--ghost-accent-color);
        color: #0d131c;
        font-size: 1.35rem;
        font-weight: 800;
    }
    #gh-head.bitz-head .gh-head-actions,
    #gh-head.bitz-head .nav-bitz-casino,
    #gh-head.bitz-head .gh-head-menu { display: none; }
    #gh-head.bitz-head .gh-burger {
        width: 44px;
        height: 44px;
        margin-right: -5px;
    }
    #gh-head.bitz-head .gh-burger::before,
    #gh-head.bitz-head .gh-burger::after { left: 10px; }
    #gh-head.bitz-head .gh-burger::before { top: 17px; }
    #gh-head.bitz-head .gh-burger::after { bottom: 17px; }
    .gh-head-open #gh-head.bitz-head .gh-burger::before { top: 21px; }
    .gh-head-open #gh-head.bitz-head .gh-burger::after { bottom: 21px; }
    .gh-head-open #gh-head.bitz-head { height: auto; overflow: visible; }
    .gh-head-open #gh-head.bitz-head .gh-head-menu {
        position: static;
        display: block;
        margin: 0;
        padding: 2px 0 12px;
    }
    .gh-head-open #gh-head.bitz-head .bitz-search { display: block; margin-bottom: 7px; }
    .gh-head-open #gh-head.bitz-head .nav {
        display: flex;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    #gh-head.bitz-head .nav a {
        width: 100%;
        min-height: 44px;
        padding: 5px 12px;
        font-size: 1.8rem;
    }
}

@media (max-width: 360px) {
    #gh-head.bitz-head .gh-head-logo { font-size: 2rem; gap: 5px; white-space: nowrap; }
    #gh-head.bitz-head .gh-head-logo::before { width: 26px; height: 26px; }
    #gh-head.bitz-head .front-mobile-casino { margin-right: 0; padding-inline: 10px; }
}

.home-template .front { padding-bottom: 0; }
.site-footer.bitz-footer {
    margin: 24px 0 0;
    padding-block: 14px;
}
.bitz-footer .inner {
    display: grid;
    grid-template-areas: "copyright socials mail" "policy policy policy";
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 4px 16px;
    max-width: 1200px;
}
.bitz-footer .bitz-responsible-gambling {
    grid-area: policy;
    max-width: none;
    margin: 0;
    padding: 0;
}
.bitz-footer .copyright { grid-area: copyright; justify-self: start; }
.bitz-footer .site-footer-center { display: contents; }
.bitz-footer .site-footer-social-links { grid-area: socials; justify-self: center; }
.bitz-footer .bitz-footer-email { grid-area: mail; justify-self: end; }
@media (max-width: 767px) {
    .site-footer.bitz-footer { margin-top: 20px; padding-block: 12px; }
    .bitz-footer .inner {
        grid-template-areas: "policy policy" "copyright mail" "socials socials";
        grid-template-columns: auto 1fr;
        gap: 4px 8px;
    }
    .bitz-footer .copyright a, .bitz-footer .bitz-footer-email { display: inline-flex; align-items: center; min-height: 44px; }
    .bitz-footer .site-footer-social-links { gap: 6px; }
}

.bitz-reading { margin-block: 3.2rem; }
.bitz-reading-group { border-top: 1px solid #75839770; padding-top: 1.6rem; }
.bitz-reading-group h2 { margin: 0 0 1.2rem; font-size: 2.5rem; line-height: 1.15; }
.bitz-reading-group:empty, .bitz-reading-actions:empty { display: none; }
.bitz-card-grid { display: grid; gap: 1.2rem; }
.bitz-card-grid:has(> a + a) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bitz-reading-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #394654;
    border-radius: 9px;
    background: #17212c;
    color: #f3f5f7;
    text-decoration: none;
}
.bitz-reading-card:hover { border-color: #8493a2; color: #fff; }
.bitz-reading-card:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.bitz-story-card { display: flex; flex-direction: column; }
.bitz-story-card img { width: 100%; height: 104px; object-fit: cover; }
.bitz-card-copy { display: grid; align-content: center; gap: .5rem; min-width: 0; padding: 1.3rem 1.6rem; }
.bitz-card-copy strong { font-size: 1.9rem; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.bitz-card-copy time, .bitz-card-copy small { font: 500 1.2rem/1.4 var(--font-mono); color: #bdc8d4; }
.bitz-card-copy small { color: #ff827d; letter-spacing: .08em; text-transform: uppercase; }
.bitz-edition-card { display: flex; align-items: center; }
.bitz-edition-card img { width: 132px; min-height: 100px; align-self: stretch; object-fit: cover; }
.bitz-edition-card strong { font-size: 2.2rem; }
.bitz-card-grid:has(> a + a) .bitz-edition-card img { width: 80px; }
.bitz-reading-summary { color: #c4cdd7; font-size: 1.5rem; line-height: 1.4; }
.bitz-reading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.bitz-reading-group + .bitz-reading-actions { margin-top: 1.4rem; }
.bitz-reading-actions .bitz-read-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .8rem 1.5rem;
    border: 1px solid #59697b;
    border-radius: 7px;
    background: #1a2430;
    color: #f3f5f7;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}
.bitz-reading-actions .bitz-read-link:hover { background: #2b3949; }
.bitz-reading-actions :is([data-reading-cta="parent-footer"], [data-reading-cta="archive-latest"]) {
    background: #edf0f3;
    border-color: #edf0f3;
    color: #121c26;
}
.bitz-reading-actions :is([data-reading-cta="parent-footer"], [data-reading-cta="archive-latest"]):hover { background: #fff; }
.bitz-reading :focus-visible, .bitz-digest-hero :focus-visible { outline: 3px solid #ff9c92; outline-offset: 2px; }
.byline-meta-content .bitz-read-link { margin-inline: .5em; color: inherit; text-decoration: underline; }

.bitz-digest-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-column: 1 / -1;
    padding: clamp(24px, 3vw, 38px);
    padding-right: 32%;
    border: 1px solid #58434b;
    border-radius: 13px;
    background: radial-gradient(ellipse at 78% 100%, #512a33, transparent 59%), #181e28;
    color: #f4f6f8;
}
.bitz-digest-hero h1 { margin: 0; color: inherit; font-size: clamp(4.4rem, 5.5vw, 7.2rem); line-height: 1.06; }
.bitz-digest-hero p { max-width: 42ch; margin: .8rem 0 1.6rem; color: #c4cdd7; font-size: 1.6rem; }
.bitz-digest-mark { position: absolute; z-index: -1; top: 50%; right: 9%; width: clamp(74px, 10vw, 126px); transform: translateY(-50%) rotate(-9deg); }
.bitz-digest-mark img { display: block; width: 100%; height: auto; }
.bitz-digest-mark::before, .bitz-digest-mark::after { content: ""; position: absolute; inset: -18%; border: 1px solid #a75459; border-radius: 26%; transform: rotate(-9deg); }
.bitz-digest-mark::after { inset: -6%; transform: rotate(21deg); border-color: #8e6469; }

@media (max-width: 767px) {
    .post-feed:has(> .bitz-digest-hero) > .post-card { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
    .bitz-card-grid:has(> a + a) { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
    .bitz-story-card { flex-direction: row; align-items: center; padding: 1rem; gap: 1.2rem; }
    .bitz-story-card img { width: 74px; height: 74px; flex: none; border-radius: 4px; }
    .bitz-story-card .bitz-card-copy { padding: 0; }
    .bitz-story-card strong { font-size: 1.7rem; }
    .bitz-edition-card img { width: 80px; }
    .bitz-edition-card strong { font-size: 2rem; }
    .bitz-reading-group h2 { font-size: 2.2rem; }
    .bitz-digest-hero { padding: 2rem 1.6rem; }
    .bitz-digest-hero .bitz-read-link { padding-inline: 1.1rem; }
    .bitz-digest-hero h1 { padding-right: 60px; font-size: clamp(3.4rem, 10vw, 4.2rem); }
    .bitz-digest-hero p { max-width: min(28ch, calc(100% - 48px)); font-size: 1.5rem; }
    .bitz-digest-mark { width: 42px; top: 41px; right: 8%; }
}
.bitz-share { display: grid; justify-items: end; gap: .4rem; max-width: 55%; }
.bitz-share[hidden] { display: none; }
.bitz-share [role=status] { font-size: 1.3rem; }
.bitz-share input { width: 100%; }

.topic-directory,.topic-detail { width:min(1120px,calc(100% - 64px)); margin:0 auto; padding:42px 0 60px; }
.topic-intro { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:14px; padding-bottom:25px; border-bottom:1px solid #37414c; }
.topic-intro h1,.topic-detail h1 { margin:0; font-size:clamp(4.4rem,5vw,6.8rem); font-weight:800; letter-spacing:-.05em; line-height:1.04; }
.topic-intro nav {display:flex;gap:8px}
.topic-intro nav a,.topic-back { display:inline-flex; justify-content:center; align-items:center; min-height:44px; padding:6px 19px; font-size:1.5rem; line-height:1.3; font-weight:700; text-decoration:none; background:#1a2430; color:#f3f6f8; border:1px solid #495565; border-radius:8px; }
.topic-directory a:focus-visible,.topic-detail a:focus-visible {outline:3px solid #ff978b;outline-offset:4px}
.topic-intro nav a:hover,.topic-back:hover {background:#293848;color:white}
.topic-section {margin-top:28px;scroll-margin-top:90px}
.topic-section+.topic-section {margin-top:44px}
.topic-section h2 {margin:0 0 15px;font-size:2.8rem;font-weight:800;letter-spacing:-.035em}
.topic-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.topic-tile {display:flex;flex-direction:column;text-decoration:none;overflow:hidden;border:1px solid #394654;background:#18222d;border-radius:10px;color:#f3f5f8}
.topic-tile:hover {border-color:#8695a5;color:#fff}
.topic-tile:hover h3 {text-decoration:underline;text-underline-offset:.15em}
.topic-tile img {display:block;object-fit:cover;object-position:center;width:100%;height:auto;aspect-ratio:2.6}
.topic-tile div {padding:14px 17px 17px}
.topic-tile h3 {color:inherit;font-size:2.1rem;font-weight:750;letter-spacing:-.035em;line-height:1.16;margin:0 0 6px}
.topic-tile p,.topic-detail-header p {font-size:1.55rem;line-height:1.42;color:#bac7d4;margin:0}
.topic-detail {max-width:1000px;padding-top:52px}
.topic-detail-header {display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:center;border:1px solid #3a4553;border-radius:12px;background:#18222d;overflow:hidden;color:#f3f5f8}
.topic-detail-header>div {padding:clamp(22px,3vw,42px)}
.topic-detail h1 {font-size:clamp(3.4rem,4.2vw,5.7rem);color:inherit}
.topic-detail-header p {max-width:36ch;margin-top:14px;font-size:1.7rem}
.topic-detail-header img {width:100%;height:100%;max-height:310px;min-height:235px;object-fit:cover}
.topic-empty {padding:26px 0;margin-top:16px}
.topic-empty h2 {font-size:2.4rem;font-weight:700;margin:0 0 15px;letter-spacing:-.025em}
@media(min-width:651px) and (max-width:900px) {.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
.topic-directory,.topic-detail {width:calc(100% - 32px);padding:24px 0 40px}
.topic-intro {align-items:center;padding-bottom:16px}
.topic-intro h1 {font-size:4rem}.topic-intro nav a {padding-inline:12px}
.topic-section {margin-top:20px}.topic-section h2 {font-size:2.4rem;margin-bottom:10px}
.topic-grid {grid-template-columns:1fr;gap:8px}.topic-tile{flex-direction:row;gap:12px;padding:10px;align-items:center}
.topic-tile img{width:80px;height:72px;border-radius:5px}.topic-tile div{padding:0}.topic-tile h3{font-size:1.75rem;margin-bottom:4px}.topic-tile p{font-size:1.4rem;line-height:1.33}
.topic-detail-header{display:flex;flex-direction:column-reverse;align-items:stretch}.topic-detail-header img{min-height:0;aspect-ratio:2.45;height:auto}
.topic-detail-header>div{padding:18px}.topic-detail h1{font-size:3.4rem;max-width:18ch}.topic-detail-header p{font-size:1.55rem;margin-top:9px}
.topic-empty{margin-top:6px;padding:20px 0}.topic-empty h2{font-size:2.1rem}
}

body:has(.topic-directory) .nav-topics a { text-decoration:underline; text-decoration-color:#ff6868; text-underline-offset:.34em; }
