/* Selector v2. Load after site.css. This file does not style the admin panel. */

:root {
    --ink: #19283e;
    --muted: #54647a;
    --paper: #f6f8fc;
    --line: #dce4ef;
    --night: #172234;
    --surface: #22314a;
    --blue: #0064ed;
    --blue-dark: #0052bd;
    --sky: #a5ccff;
    --width: 1200px;
}

body {
    line-height: 1.72;
}

.anchor-alias {
    display: block;
    height: 0;
    scroll-margin-top: 12px;
}

.header-inner {
    min-height: 80px;
    gap: 24px;
}

.brand img {
    width: 134px;
}

.primary-nav {
    gap: 20px;
}

.primary-nav a {
    font-size: 15px;
    font-weight: 600;
}

.hero {
    padding: 44px 0 46px;
    background: var(--night);
}

.hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.hero-grid > * {
    min-width: 0;
}

.eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: .06em;
}

.hero h1 {
    max-width: 640px;
    font-size: clamp(38px, 4.2vw, 56px);
    line-height: 1.07;
    letter-spacing: -.035em;
}

.hero-intro {
    max-width: 58ch;
    margin-top: 20px;
    color: #dae3ef;
    font-size: 17px;
    line-height: 1.65;
}

.hero-address {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin-top: 22px;
    padding: 12px 16px;
    border: 1px solid #425775;
    border-radius: 8px;
    background: #ffffff05;
    color: #cedbed;
    font-size: 15px;
    line-height: 1.55;
}

.hero-address a,
.hero-address strong {
    color: white;
    font-size: 17px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.hero-address small {
    flex-basis: 100%;
    color: #bdcce0;
    font-size: 14px;
}

.hero .actions {
    margin-top: 20px;
}

.hero-meta {
    gap: 6px 16px;
    margin-top: 14px;
    color: #bdcce0;
    font-size: 14px;
}

.hero-shot {
    width: 100%;
    margin: 0;
    align-self: center;
}

.hero-shot .zoom-image {
    display: block;
    padding: 7px;
    border: 1px solid #486280;
    border-radius: 12px;
    background: #22314a;
}

.hero-shot .zoom-image:hover {
    border-color: #a5ccff;
}

.hero-shot img {
    width: 100%;
    height: auto;
    border-radius: 7px;
}

.hero-shot figcaption {
    margin-top: 12px;
    color: #c3d0e2;
    font-size: 14px;
    line-height: 1.55;
}

.hero .quick-strip {
    margin-top: 22px;
    border: 0;
    background: transparent;
}

.quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero .quick-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hero .quick-grid a {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #425775;
    border-radius: 7px;
    color: #e1ebf8;
    font-size: 14px;
    line-height: 1.4;
    gap: 8px;
}

.hero .quick-grid a:hover {
    border-color: #9fc8ff;
    background: #ffffff08;
    color: white;
}

.reading-layout {
    grid-template-columns: minmax(0, 820px) minmax(0, 244px);
    gap: 56px;
    padding-block: 44px 64px;
}

.article-section {
    margin-top: 42px;
    padding-top: 34px;
    scroll-margin-top: 0;
}

.article-section h2 {
    max-width: 30ch;
    margin-bottom: 20px;
    font-size: clamp(27px, 2.9vw, 35px);
    line-height: 1.2;
    scroll-margin-top: 12px;
}

.article-section h3 {
    max-width: 42ch;
    margin: 28px 0 14px;
    font-size: 23px;
    line-height: 1.3;
}

.article-section > p,
.article-section > ul,
.article-section > ol,
.note p {
    max-width: 72ch;
}

.section-number {
    margin-bottom: 10px;
    letter-spacing: .04em;
    font-size: 12px;
}

.toc {
    padding: 0 0 4px;
    border-top-width: 2px;
}

.toc summary {
    padding: 16px 0 12px;
    font-size: 16px;
}

.toc ol {
    max-height: calc(100dvh - var(--header-clearance, 106px) - 80px);
    scrollbar-width: thin;
}

.toc a {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.4;
}

.toc a[aria-current="location"] {
    background: #e7effb;
    color: #064bab;
    font-weight: 650;
    text-decoration: none;
}

.table-wrap {
    max-width: 100%;
    margin-block: 24px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #7897c2 #e9eff7;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    width: 100%;
    min-width: var(--table-min-width, 600px);
    font-size: 16px;
    line-height: 1.55;
}

.table-wrap caption {
    padding: 15px 18px;
    color: #233b60;
    font-size: 16px;
}

.table-wrap th,
.table-wrap td {
    padding: 14px 16px;
    border-bottom: 1px solid #dce4ef;
}

.table-wrap thead th {
    color: #30435e;
    font-size: 15px;
}

.table-wrap tbody th {
    min-width: 150px;
    width: 25%;
}

.table-wrap tbody tr:last-child td,
.table-wrap tbody tr:last-child th {
    border-bottom: 0;
}

.table-scroll-hint {
    margin: 0 0 20px;
    color: #54647a;
    font-size: 14px;
    line-height: 1.5;
}

.note {
    padding: 18px 20px;
    font-size: 16px;
    line-height: 1.65;
}

.note > strong {
    display: block;
    margin-bottom: 6px;
    color: #183e73;
}

.steps {
    gap: 18px;
}

.steps li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
}

.steps li::before {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.steps p {
    color: #41536d;
    font-size: 16px;
    line-height: 1.65;
}

.screenshot figcaption,
.game-card small {
    font-size: 14px;
    line-height: 1.5;
}

.game-card strong,
.sources-list {
    font-size: 16px;
}

.faq summary {
    padding: 17px 20px;
}

.faq p {
    padding: 0 20px 20px;
    line-height: 1.7;
}

.back-to-contents {
    min-height: 44px;
    margin-top: 12px;
    font-size: 14px;
}

.closing {
    margin-top: 36px;
    padding: 28px;
}

.closing p {
    font-size: 22px;
}

.site-footer {
    font-size: 15px;
}

@media (max-width: 1160px) {
    .header-inner {
        gap: 18px;
    }

    .hero-grid {
        gap: 32px;
    }

    .reading-layout {
        grid-template-columns: minmax(0, 1fr) 228px;
        gap: 34px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 74px;
        gap: 14px;
    }

    .hero {
        padding: 32px 0 36px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .hero h1 {
        max-width: 21ch;
    }

    .hero-shot {
        max-width: 680px;
    }

    .hero .quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .reading-layout {
        display: flex;
        gap: 30px;
        padding-top: 30px;
    }

    .toc {
        padding: 0 16px 4px;
        border: 1px solid var(--line);
        border-top: 2px solid var(--blue);
        border-radius: 8px;
    }

    .toc ol {
        max-height: none;
    }

    .toc a {
        padding-inline: 6px;
    }

    .article-section > p,
    .article-section > ul,
    .article-section > ol {
        max-width: 72ch;
    }
}

@media (max-width: 620px) {
    .header-inner {
        min-height: 68px;
        padding-block: 8px;
    }

    .brand img {
        width: 118px;
    }

    .hero {
        padding-top: 26px;
    }

    .hero h1 {
        font-size: clamp(34px, 8.7vw, 43px);
        line-height: 1.1;
    }

    .hero-intro {
        font-size: 16px;
        margin-top: 16px;
    }

    .hero-address {
        margin-top: 18px;
        padding: 11px 13px;
    }

    .hero .actions {
        gap: 10px;
        margin-top: 18px;
    }

    .hero .actions .button {
        flex: 1 1 140px;
    }

    .hero .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero .quick-grid a {
        font-size: 14px;
    }

    .hero-shot figcaption {
        margin-top: 9px;
    }

    .reading-layout {
        padding-bottom: 42px;
    }

    .article-section {
        padding-top: 28px;
        margin-top: 32px;
    }

    .article-section h2 {
        margin-bottom: 18px;
        font-size: 27px;
    }

    .article-section h3 {
        font-size: 22px;
    }

    /* Restore native table layout instead of the v1 mobile card conversion. */
    .table-wrap table {
        display: table;
    }

    .table-wrap caption {
        display: table-caption;
        width: auto;
        padding: 14px 16px;
    }

    .table-wrap thead {
        display: table-header-group;
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
    }

    .table-wrap tbody {
        display: table-row-group;
        width: auto;
    }

    .table-wrap tr {
        display: table-row;
        width: auto;
        padding: 0;
        border: 0;
    }

    .table-wrap th,
    .table-wrap td {
        display: table-cell;
        width: auto;
        padding: 13px 15px;
        border-bottom: 1px solid #dce4ef;
    }

    .table-wrap tbody th {
        min-width: 150px;
        width: 25%;
        font-size: 16px;
    }

    .table-wrap td::before {
        content: none;
        display: none;
    }

    .note {
        padding: 16px;
    }

    .steps li {
        gap: 12px;
    }

    .faq summary {
        padding: 16px;
        font-size: 16px;
    }

    .faq p {
        padding: 0 16px 18px;
    }

    .closing {
        padding: 22px;
    }

    .site-footer {
        padding-bottom: calc(var(--mobile-clearance, 88px) + 28px);
    }

    .mobile-actions {
        background: #172234;
    }

    .consent-panel {
        bottom: var(--mobile-clearance, calc(88px + env(safe-area-inset-bottom)));
        max-height: calc(100dvh - var(--mobile-clearance, 88px) - 24px);
    }
}

@media print {
    .site-header,
    .mobile-actions,
    .hero .actions,
    .quick-strip,
    .toc,
    .back-to-contents,
    .consent-panel,
    .closing {
        display: none !important;
    }

    body,
    .hero,
    .site-footer {
        color: black;
        background: white;
    }

    .hero *,
    .site-footer * {
        color: black;
    }

    .container {
        width: 100%;
    }

    .hero-grid,
    .reading-layout {
        display: block;
    }

    .hero-shot {
        max-width: 600px;
        margin-top: 20px;
    }

    .table-wrap {
        overflow: visible;
        break-inside: avoid;
    }

    .table-wrap table {
        min-width: 0;
        font-size: 11pt;
    }
}
