/* ========================================================================
   GENERIC QUARK2 HEADER ACTIONS + FOOTER
   Scope: only styles the custom additions in navigation.html.twig and
   footer.html.twig. All class names and variables are brand/domain agnostic.
   ======================================================================== */

/* ===== CUSTOM ADDITION START: shared design tokens ===== */
:root {
    --site-accent: #f2ad17;
    --site-accent-light: #ffd66b;
    --site-accent-dark: #d78f00;
    --site-accent-ink: #1b0b0e;

    --site-nav-secondary-bg: rgba(20, 11, 14, 0.06);
    --site-nav-secondary-border: rgba(35, 21, 25, 0.18);
    --site-nav-secondary-text: #2c1b20;

    --site-footer-bg: #13090c;
    --site-footer-border: rgba(255, 255, 255, 0.10);
    --site-footer-text: #cfc2c5;
    --site-footer-muted: #998a8e;
    --site-footer-strong: #ffffff;
}

html[data-theme="dark"] {
    --site-nav-secondary-bg: rgba(255, 255, 255, 0.07);
    --site-nav-secondary-border: rgba(255, 255, 255, 0.18);
    --site-nav-secondary-text: #f7f1f3;

    --site-footer-bg: #0d0709;
    --site-footer-border: rgba(255, 255, 255, 0.11);
    --site-footer-text: #d8cdd0;
    --site-footer-muted: #a8999d;
    --site-footer-strong: #ffffff;
}
/* ===== CUSTOM ADDITION END ===== */


/* ========================================================================
   HEADER - ONLY THE TWO APPENDED NAVIGATION ACTIONS
   ======================================================================== */

/* ===== CUSTOM ADDITION START: navigation action buttons ===== */
.navigation > .site-nav-action {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navigation > .site-nav-action--secondary {
    margin-left: 12px;
}

.navigation > .site-nav-action--primary {
    margin-left: 8px;
}

.navigation .site-nav-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.navigation .site-nav-button::before,
.navigation .site-nav-button::after {
    display: none !important;
    content: none !important;
}

.navigation .site-nav-button--secondary {
    color: var(--site-nav-secondary-text) !important;
    background: var(--site-nav-secondary-bg) !important;
    border-color: var(--site-nav-secondary-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navigation .site-nav-button--secondary:hover,
.navigation .site-nav-button--secondary:focus-visible {
    color: var(--site-nav-secondary-text) !important;
    background: rgba(242, 173, 23, 0.09) !important;
    border-color: rgba(242, 173, 23, 0.55) !important;
    transform: translateY(-1px);
}

.navigation .site-nav-button--primary {
    color: var(--site-accent-ink) !important;
    background: linear-gradient(135deg, var(--site-accent-light), var(--site-accent)) !important;
    border-color: rgba(215, 143, 0, 0.55) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 8px 22px rgba(242, 169, 0, 0.25);
}

.navigation .site-nav-button--primary:hover,
.navigation .site-nav-button--primary:focus-visible {
    color: var(--site-accent-ink) !important;
    background: linear-gradient(135deg, #ffe18a, #f5b51f) !important;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 11px 28px rgba(242, 169, 0, 0.34);
}

.navigation .site-nav-button:focus-visible {
    outline: 3px solid rgba(242, 173, 23, 0.34);
    outline-offset: 3px;
}

@media (max-width: 960px) {
    .navigation > .site-nav-action--secondary,
    .navigation > .site-nav-action--primary {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .navigation > .site-nav-action--primary {
        margin-top: 6px;
    }

    .navigation .site-nav-button {
        width: 100%;
        min-height: 44px;
        padding: 11px 16px;
    }
}
/* ===== CUSTOM ADDITION END ===== */


/* ========================================================================
   FOOTER
   ======================================================================== */

/* ===== CUSTOM ADDITION START: footer shell ===== */
#footer {
    position: relative;
    overflow: hidden;
    margin-top: 48px;
    padding: 52px 0 26px;
    color: var(--site-footer-text);
    background:
        radial-gradient(circle at 10% -20%, rgba(242, 173, 23, 0.12), transparent 32%),
        radial-gradient(circle at 92% 110%, rgba(201, 21, 44, 0.10), transparent 28%),
        var(--site-footer-bg);
    border-top: 1px solid var(--site-footer-border);
}

#footer > .container {
    position: relative;
    z-index: 1;
}

#footer .site-footer__main {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 0.9fr);
    align-items: start;
    gap: 44px;
    padding-bottom: 34px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--site-footer-border);
}

#footer .site-footer__brand {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 560px;
}

#footer .site-footer__brand-mark {
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--site-accent-ink);
    background: linear-gradient(145deg, #ffe397, var(--site-accent));
    border-radius: 15px;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.62),
        0 8px 22px rgba(242, 169, 0, 0.20);
}

#footer .site-footer__brand-copy {
    min-width: 0;
    padding-top: 2px;
}

#footer .site-footer__brand-name {
    display: block;
    margin: 0 0 7px;
    color: var(--site-footer-strong);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

#footer .site-footer__brand-copy p {
    margin: 0;
    color: var(--site-footer-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

#footer .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 10px 22px;
    padding-top: 5px;
}

#footer .site-footer__nav a {
    position: relative;
    color: var(--site-footer-text) !important;
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color 0.18s ease, transform 0.18s ease;
}

#footer .site-footer__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 1px;
    background: var(--site-accent);
    transition: right 0.18s ease;
}

#footer .site-footer__nav a:hover,
#footer .site-footer__nav a:focus-visible {
    color: var(--site-accent-light) !important;
    transform: translateY(-1px);
}

#footer .site-footer__nav a:hover::after,
#footer .site-footer__nav a:focus-visible::after {
    right: 0;
}

#footer > .container > p:not(.site-footer__notice) {
    margin: 0;
    color: #857579;
    font-size: 0.76rem;
    line-height: 1.6;
}

#footer > .container > p:not(.site-footer__notice) a {
    color: #bcaeb2 !important;
    font-weight: 700;
    text-decoration: none;
}

#footer > .container > p:not(.site-footer__notice) a:hover {
    color: var(--site-accent-light) !important;
}

#footer .site-footer__notice {
    margin: 7px 0 0;
    color: #857579;
    font-size: 0.76rem;
    line-height: 1.65;
}

#footer .site-footer__notice strong {
    color: #e8c15d;
    font-weight: 850;
}

@media (max-width: 820px) {
    #footer {
        margin-top: 38px;
        padding: 42px 0 24px;
    }

    #footer .site-footer__main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 28px;
    }

    #footer .site-footer__nav {
        justify-content: flex-start;
        gap: 12px 20px;
    }
}

@media (max-width: 540px) {
    #footer {
        padding-top: 36px;
    }

    #footer .site-footer__brand {
        gap: 12px;
    }

    #footer .site-footer__brand-mark {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 0.82rem;
    }

    #footer .site-footer__brand-name {
        font-size: 0.98rem;
    }

    #footer .site-footer__brand-copy p {
        font-size: 0.82rem;
    }

    #footer .site-footer__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
    }
}
/* ===== CUSTOM ADDITION END ===== */
/* =========================================================
   PAGE CONTENT STYLES — Editorial Utility / Field Guide system
   Header, navigation and footer are intentionally untouched.
   ========================================================= */
/* XX1 page content styles for Grav Quark2 */
:root {
  --xx-bg: #f8f3ea;
  --xx-panel: #fffaf2;
  --xx-panel-2: #ffffff;
  --xx-text: #25151a;
  --xx-muted: #6f6262;
  --xx-border: rgba(82, 56, 35, .18);
  --xx-accent: #f4b42d;
  --xx-red: #c4112f;
  --xx-shadow: 0 22px 55px rgba(39, 25, 12, .10);
}
html[data-theme="dark"], html.dark {
  --xx-bg: #12100e;
  --xx-panel: #1b1714;
  --xx-panel-2: #221d18;
  --xx-text: #f7efe4;
  --xx-muted: #c8b9a7;
  --xx-border: rgba(255, 220, 170, .18);
  --xx-accent: #ffc947;
  --xx-red: #ff5b70;
  --xx-shadow: 0 24px 60px rgba(0,0,0,.34);
}
.xx-page { color: var(--xx-text); background: radial-gradient(circle at 10% 5%, rgba(244,180,45,.12), transparent 28%), var(--xx-bg); padding: clamp(28px, 5vw, 76px) 18px; }
.xx-page * { box-sizing: border-box; }
.xx-page p { color: var(--xx-muted); line-height: 1.72; font-size: 1rem; }
.xx-page h1, .xx-page h2, .xx-page h3 { color: var(--xx-text); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.035em; }
.xx-page h1 { font-size: clamp(2.25rem, 5vw, 5rem); max-width: 920px; }
.xx-page h2 { font-size: clamp(1.6rem, 3vw, 2.8rem); }
.xx-page h3 { font-size: 1.28rem; }
.section-kicker, .eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .74rem; color: var(--xx-red); margin-bottom: 14px; }
.section-kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; display: inline-block; opacity: .7; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.28rem); max-width: 820px; }
.hero-section, .split-hero, .compact-hero, .content-panel, .article-shell, .game-detail { max-width: 1180px; margin: 0 auto 36px; }
.hero-section, .split-hero, .compact-hero { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.7fr); gap: 28px; align-items: center; padding: clamp(28px,4vw,54px); border: 1px solid var(--xx-border); background: linear-gradient(135deg, var(--xx-panel), var(--xx-panel-2)); border-radius: 34px; box-shadow: var(--xx-shadow); }
.hero-note-card, .score-card, .guide-summary { border: 1px solid var(--xx-border); background: rgba(255,255,255,.32); border-radius: 28px; padding: 26px; }
html[data-theme="dark"] .hero-note-card, html[data-theme="dark"] .score-card, html[data-theme="dark"] .guide-summary, html.dark .hero-note-card, html.dark .score-card, html.dark .guide-summary { background: rgba(255,255,255,.04); }
.hero-note-card span { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--xx-red); color: white; font-weight: 900; margin-bottom: 16px; }
.hero-note-card strong, .score-card strong, .guide-summary strong { display:block; color: var(--xx-text); font-size:1.15rem; margin-bottom: 8px; }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.xx-btn, .mini-btn, .article-download-link { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 13px 19px; font-weight: 850; text-decoration: none !important; border: 1px solid var(--xx-border); color: var(--xx-text); background: var(--xx-panel-2); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.xx-btn:hover, .mini-btn:hover, .article-download-link:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.xx-btn.primary, .mini-btn { background: linear-gradient(135deg, #ffde73, #f3aa10); color: #1e1300; border-color: transparent; }
.xx-btn.secondary, .mini-btn.light { background: transparent; color: var(--xx-text); }
.text-link { color: var(--xx-red); font-weight: 850; text-decoration: none !important; border-bottom: 1px solid currentColor; }
.insight-strip, .check-cards, .game-grid, .new-game-grid, .guide-grid { max-width: 1180px; margin: 0 auto 36px; display: grid; gap: 18px; }
.insight-strip { grid-template-columns: repeat(3,1fr); }
.insight-strip div, .check-cards article, .game-card, .new-game-row, .guide-card { border: 1px solid var(--xx-border); background: var(--xx-panel); border-radius: 24px; padding: 22px; }
.insight-strip strong { color: var(--xx-text); display:block; margin-bottom: 6px; }
.section-head { max-width:1180px; margin: 20px auto 20px; display:flex; justify-content:space-between; gap:24px; align-items:end; }
.game-grid.home-games { grid-template-columns: repeat(2, minmax(0,1fr)); }
.game-card { display:grid; grid-template-columns: 150px 1fr; gap: 20px; align-items:center; }
.game-card img, .new-game-row img { border-radius: 20px; object-fit: cover; background: #eee; box-shadow: inset 0 0 0 1px var(--xx-border); }
.game-card p, .new-game-row p, .guide-card p { margin: 0 0 12px; }
.new-game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.new-game-row { display:grid; grid-template-columns: 130px 1fr; gap: 20px; align-items:center; }
.new-game-row img { width:130px; height:130px; }
.preview-icons { display:flex; gap:12px; justify-content:center; }
.preview-icons img { border-radius: 18px; border: 1px solid var(--xx-border); background: var(--xx-panel-2); padding: 4px; }
.guide-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.guide-number { display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center; border-radius: 12px; background: var(--xx-red); color:white; font-weight:900; margin-bottom:16px; }
.guide-card a { color: var(--xx-red); font-weight: 850; text-decoration: none !important; }
.check-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
.content-panel { border: 1px solid var(--xx-border); background: var(--xx-panel); border-radius: 28px; padding: clamp(24px,4vw,44px); }
.content-panel h2:not(:first-child) { margin-top: 28px; }
.article-shell, .game-detail { border: 1px solid var(--xx-border); background: var(--xx-panel); border-radius: 32px; overflow:hidden; box-shadow: var(--xx-shadow); }
.article-image, .game-detail > img { width:100%; height:auto; display:block; object-fit:cover; }
.article-content, .game-detail-content { padding: clamp(24px,4vw,52px); }
.article-download-link { margin-top: 12px; background: linear-gradient(135deg, #ffdf78, #f6ad13); color: #201300; border:0; }
ul { color: var(--xx-muted); line-height: 1.8; }
@media (max-width: 900px) { .hero-section, .split-hero, .compact-hero, .game-card, .new-game-row { grid-template-columns: 1fr; } .insight-strip, .check-cards, .guide-grid, .game-grid.home-games, .new-game-grid { grid-template-columns: 1fr; } .section-head { align-items:flex-start; flex-direction:column; } .game-card img, .new-game-row img { width:110px; height:110px; } }
@media (max-width: 520px) { .xx-page { padding-left: 12px; padding-right: 12px; } .hero-section, .split-hero, .compact-hero, .content-panel { border-radius: 22px; padding: 22px; } .xx-btn, .mini-btn, .article-download-link { width: 100%; justify-content:center; } }
.game-detail > img {
  width: calc(100% - 2rem) !important;
  max-width: 520px !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 24px auto 0 !important;
}
