/* ========================================================================
   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.
   ========================================================= */
/* JILI App page-body redesign for GRAV Quark2.
   Scope: page content only. Header, footer, Quark2 navigation and theme files are untouched. */

/* JILI App rebuilt content design for Quark2. Scope: page body only. */
:root {
  --page-bg: #f5f1e8;
  --page-ink: #171a1f;
  --page-muted: #60646f;
  --page-soft: #fffaf0;
  --page-panel: #ffffff;
  --page-line: rgba(23, 26, 31, .14);
  --page-deep: #11231f;
  --page-deep-2: #1e3a32;
  --page-warm: #f4b43f;
  --page-warm-2: #ffd86a;
  --page-green: #2f7d62;
  --page-red: #c4382c;
  --page-shadow: 0 22px 70px rgba(25, 21, 13, .12);
}
html[data-theme="dark"], html.dark, body.dark {
  --page-bg: #0f1216;
  --page-ink: #f5f2ea;
  --page-muted: #c4bfb5;
  --page-soft: #171b21;
  --page-panel: #1e232b;
  --page-line: rgba(255, 255, 255, .14);
  --page-deep: #07100e;
  --page-deep-2: #142621;
  --page-warm: #f2bd52;
  --page-warm-2: #ffe08b;
  --page-green: #79c9a5;
  --page-red: #ff6d5f;
  --page-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}
#site-main-content > .content-item:has(.game-site) { max-width: none; width: 100%; padding: 0; margin: 0; }
.game-site { color: var(--page-ink); background: var(--page-bg); width: 100vw; margin-left: calc(50% - 50vw); overflow-x: clip; font-size: 16px; line-height: 1.65; }
.game-site *, .game-site *::before, .game-site *::after { box-sizing: border-box; }
.game-site img { max-width: 100%; height: auto; object-fit: cover; display: block; }
.game-site a { color: inherit; text-decoration: none; }
.game-site p { color: var(--page-muted); margin: 0; }
.game-site h1, .game-site h2, .game-site h3 { color: var(--page-ink); line-height: 1.08; letter-spacing: -.035em; margin: 0; }
.game-site h1 { font-size: clamp(2.05rem, 4vw, 3.9rem); max-width: 880px; }
.game-site h2 { font-size: clamp(1.55rem, 2.5vw, 2.4rem); }
.game-site h3 { font-size: clamp(1.05rem, 1.4vw, 1.35rem); }
.label-line { color: var(--page-green) !important; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; }
.hero-board, .wide-section, .editorial-split, .page-hero, .download-board, .guide-list, .profile-mast, .roadmap-grid, .note-strip, .text-hero, .plain-grid, .contact-strip, .article-shell, .detail-shell, .game-index-grid { width: min(1340px, calc(100% - 42px)); margin-inline: auto; }
.hero-board { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .82fr); gap: 28px; padding: 54px 0 38px; align-items: stretch; }
.hero-panel { background: linear-gradient(135deg, var(--page-deep), var(--page-deep-2)); border-radius: 34px; padding: clamp(28px, 5vw, 66px); box-shadow: var(--page-shadow); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-panel::after { content:""; position:absolute; width: 360px; height: 360px; right:-130px; bottom:-150px; background: radial-gradient(circle, rgba(244,180,63,.32), transparent 66%); }
.hero-panel h1, .hero-panel p { color: #fff; position: relative; z-index: 1; }
.hero-panel .hero-lead { color: rgba(255,255,255,.78); max-width: 720px; margin-top: 22px; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero-buttons { display:flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; position: relative; z-index: 1; }
.action-primary, .action-secondary, .action-ghost, .article-button, .action-text { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height: 48px; border-radius: 999px; font-weight: 900; padding: 0 22px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.action-primary, .article-button { background: linear-gradient(135deg, var(--page-warm), var(--page-warm-2)); color:#15110a !important; box-shadow: 0 14px 28px rgba(244,180,63,.26); }
.action-secondary { color: #fff !important; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.action-ghost, .action-text { border: 1px solid var(--page-line); background: var(--page-panel); color: var(--page-ink) !important; }
.action-small { min-height: 42px; padding-inline: 18px; font-size: .9rem; }
.action-primary:hover, .action-secondary:hover, .action-ghost:hover, .article-button:hover, .action-text:hover { transform: translateY(-2px); }
.hero-showcase { display:grid; grid-template-rows: 1fr auto; gap: 18px; }
.phone-frame { min-height: 430px; border-radius: 34px; background: linear-gradient(180deg, var(--page-panel), var(--page-soft)); border: 1px solid var(--page-line); box-shadow: var(--page-shadow); display:flex; flex-direction:column; align-items:center; justify-content:center; padding: 32px; }
.hero-logo { width: 240px; height: 240px; border-radius: 30px; object-fit: cover; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.status-strip { display:flex; flex-wrap:wrap; gap:8px; margin-top: 24px; justify-content:center; }
.status-strip span { color: var(--page-ink); background: color-mix(in srgb, var(--page-warm) 22%, transparent); border:1px solid var(--page-line); border-radius:999px; padding:6px 10px; font-weight:800; font-size:.82rem; }
.side-note { border-radius: 24px; background: var(--page-panel); border: 1px solid var(--page-line); padding: 22px; }
.side-note strong { color: var(--page-ink); display:block; margin-bottom: 5px; }
.audit-bar { width: min(1340px, calc(100% - 42px)); margin: 0 auto 26px; display:grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--page-line); background: var(--page-panel); border-radius: 28px; overflow:hidden; box-shadow: var(--page-shadow); }
.audit-bar div { padding: 24px; border-right: 1px solid var(--page-line); }
.audit-bar div:last-child { border-right: 0; }
.audit-bar strong { color: var(--page-ink); display:block; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height:1; }
.audit-bar span { color: var(--page-muted); font-weight:700; font-size:.9rem; }
.wide-section { padding: 54px 0; }
.section-intro { display:grid; grid-template-columns: minmax(0, .72fr) minmax(280px, .28fr); gap: 28px; align-items:end; margin-bottom: 24px; }
.section-intro p:not(.label-line) { max-width: 650px; margin-top: 12px; }
.rank-list { display: grid; gap: 14px; }
.rank-row { display:grid; grid-template-columns: 56px 86px minmax(0, 1fr) auto; gap: 18px; align-items:center; background: var(--page-panel); border: 1px solid var(--page-line); border-radius: 24px; padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.rank-number, .download-index { width: 44px; height: 44px; border-radius: 50%; display:grid; place-items:center; background: var(--page-deep); color:#fff; font-weight:900; }
.rank-row img { width:86px; height:86px; border-radius: 20px; }
.mini-rating { color: var(--page-warm) !important; font-weight:900; margin-bottom: 2px !important; }
.rank-copy h3 { margin-bottom: 4px; }
.rank-actions { display:flex; align-items:center; gap: 10px; }
.editorial-split { display:grid; grid-template-columns: .42fr .58fr; gap: 32px; padding: 50px 0 76px; border-top: 1px solid var(--page-line); }
.text-flow { columns: 2; column-gap: 34px; }
.text-flow p + p { margin-top: 14px; }
.profile-mast, .page-hero, .text-hero { padding: 62px 0 34px; }
.profile-mast { display:grid; grid-template-columns: 280px minmax(0,1fr); gap: 42px; align-items:center; }
.profile-image { background: var(--page-panel); border:1px solid var(--page-line); border-radius:32px; padding: 20px; box-shadow: var(--page-shadow); }
.profile-copy .hero-lead, .page-hero .hero-lead, .text-hero p { margin-top: 16px; max-width: 760px; font-size: 1.08rem; }
.roadmap-grid, .plain-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; padding: 20px 0 54px; }
.roadmap-grid article, .plain-grid article, .note-card { background: var(--page-panel); border:1px solid var(--page-line); border-radius: 24px; padding: 24px; }
.roadmap-grid span { display:inline-grid; place-items:center; width: 42px; height:42px; border-radius:50%; background: var(--page-warm); color:#17120a; font-weight:900; margin-bottom:18px; }
.note-strip { margin-bottom: 70px; background: var(--page-deep); color:#fff; border-radius: 30px; padding: 34px; }
.note-strip h2, .note-strip p { color:#fff; }
.note-strip p { color: rgba(255,255,255,.78); margin-top: 10px; }
.compact-hero { display:grid; grid-template-columns: .58fr .42fr; gap: 28px; align-items:end; }
.download-board { display:grid; gap: 12px; padding: 20px 0 70px; }
.download-row { display:grid; grid-template-columns: 54px 74px minmax(0,1fr) auto; gap: 16px; align-items:center; background: var(--page-panel); border: 1px solid var(--page-line); border-radius: 20px; padding: 12px 14px; }
.download-row img { width:74px; height:74px; border-radius: 18px; }
.guide-list { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding: 20px 0 70px; }
.guide-row { display:grid; grid-template-rows: 170px auto auto 1fr; gap: 12px; background: var(--page-panel); border:1px solid var(--page-line); border-radius: 26px; padding: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.guide-row img { width:100%; height:170px; border-radius: 18px; }
.guide-row span { color: var(--page-green); font-weight:900; text-transform:uppercase; letter-spacing:.13em; font-size:.76rem; }
.simple-page { padding-bottom: 70px; }
.text-hero { border-bottom: 1px solid var(--page-line); margin-bottom: 24px; }
.contact-strip { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.contact-strip div { background: var(--page-panel); border:1px solid var(--page-line); border-radius: 22px; padding: 22px; }
.contact-strip strong, .contact-strip span { display:block; }
.contact-strip span { color: var(--page-muted); margin-top: 5px; }
.article-shell, .detail-shell { display:grid; grid-template-columns: minmax(0,.46fr) minmax(0,.54fr); gap: 36px; padding: 60px 0 80px; align-items:start; }
.article-cover, .detail-media { position: sticky; top: 92px; background: var(--page-panel); border:1px solid var(--page-line); border-radius: 28px; padding: 14px; box-shadow: var(--page-shadow); }
.article-cover img, .detail-media img { width:100%; aspect-ratio: 2 / 1; height:auto; border-radius: 18px; object-fit: cover; }
.article-copy, .detail-copy { background: var(--page-panel); border:1px solid var(--page-line); border-radius: 30px; padding: clamp(24px, 4vw, 44px); }
.article-copy p, .detail-copy p { margin-top: 14px; }
.article-copy h2, .detail-copy h2 { margin-top: 30px; }
.article-button { margin-top: 18px; }
.game-index-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 30px 0 70px; }
.game-index-card { background: var(--page-panel); border:1px solid var(--page-line); border-radius: 22px; padding: 16px; display:flex; align-items:center; gap:14px; font-weight:900; }
.game-index-card img { width:64px; height:64px; border-radius:16px; }
@media (max-width: 1100px) {
  .hero-board, .profile-mast, .article-shell, .detail-shell { grid-template-columns: 1fr; }
  .phone-frame { min-height: 320px; }
  .article-cover, .detail-media { position: static; }
  .roadmap-grid, .plain-grid { grid-template-columns: repeat(2,1fr); }
  .guide-list { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .game-site { font-size: 15px; }
  .hero-board, .wide-section, .editorial-split, .page-hero, .download-board, .guide-list, .profile-mast, .roadmap-grid, .note-strip, .text-hero, .plain-grid, .contact-strip, .article-shell, .detail-shell, .game-index-grid, .audit-bar { width: min(100% - 24px, 100%); }
  .hero-board { padding-top: 28px; }
  .hero-panel { border-radius: 24px; padding: 28px; }
  .hero-logo { width: 180px; height: 180px; }
  .audit-bar, .section-intro, .editorial-split, .compact-hero, .contact-strip { grid-template-columns: 1fr; }
  .audit-bar div { border-right:0; border-bottom: 1px solid var(--page-line); padding: 18px; }
  .audit-bar div:last-child { border-bottom:0; }
  .rank-row { grid-template-columns: 42px 70px 1fr; }
  .rank-row img { width:70px; height:70px; }
  .rank-actions { grid-column: 2 / -1; justify-content:flex-start; flex-wrap:wrap; }
  .download-row { grid-template-columns: 42px 64px 1fr; }
  .download-row .action-primary { grid-column: 2 / -1; justify-self:start; }
  .download-row img { width:64px; height:64px; }
  .roadmap-grid, .plain-grid, .guide-list, .game-index-grid { grid-template-columns: 1fr; }
  .guide-row { grid-template-rows: auto; }
  .guide-row img { height:auto; aspect-ratio:2/1; }
  .text-flow { columns: 1; }
  .article-copy, .detail-copy { padding: 24px; }
}

