/* AirLine Pop – policy site. Drawn in the game's own sticker style: a blue sky with
   the airline's planes and their cat pilots flying across it, cream cards that stand
   up like the game's board squares (one brown outline, a darker lip inside the bottom
   edge, a soft shadow under it), coral and orange accents, and the Baloo 2 typeface. */

:root {
    --sky-top: #6ebef0;
    --sky-bottom: #c4e8fb;
    --cream: #fffaf1;
    --cream-shade: #eee4d6;
    --brown: #643835;
    --brown-soft: #8a5a52;
    --text: #4a2c29;
    --coral: #f07c6c;
    --coral-dark: #ce5c52;
    --orange: #ffb547;
    --orange-dark: #e8932a;
    --sky: #78c4f0;
    --sky-dark: #4aa6dc;
    --mint: #7ec484;
    --radius: 26px;
    --line: 4px;
    --lip: 8px;
    --drop: 0 8px 0 rgba(100, 56, 53, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Baloo 2", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%) fixed;
    overflow-x: hidden;
}

/* Only the chosen language shows; the page starts in English until the script picks. */
html[data-lang="en"] [lang="vi"],
html[data-lang="vi"] [lang="en"] {
    display: none !important;
}

a {
    color: var(--coral-dark);
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brown);
}

img {
    max-width: 100%;
}

/* ------------------------------------------------------------------ sky */

.sky-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sky-layer img {
    position: absolute;
    opacity: 0.9;
    animation: drift linear infinite;
}

.sky-layer .c1 { top: 8%; width: 220px; animation-duration: 70s; animation-delay: -10s; }
.sky-layer .c2 { top: 34%; width: 160px; animation-duration: 90s; animation-delay: -55s; }
.sky-layer .c3 { top: 62%; width: 200px; animation-duration: 80s; animation-delay: -30s; }
.sky-layer .c4 { top: 84%; width: 140px; animation-duration: 100s; animation-delay: -75s; }

@keyframes drift {
    from { transform: translateX(-260px); }
    to { transform: translateX(calc(100vw + 260px)); }
}

.sky-layer .plane {
    position: absolute;
    left: 0;
    animation: fly linear infinite;
}

.sky-layer .plane img {
    display: block;
    position: static;
    opacity: 1;
    filter: drop-shadow(0 10px 0 rgba(100, 56, 53, 0.12));
    animation: bob 3s ease-in-out infinite;
}

.sky-layer .p1 { top: 17%; animation-duration: 34s; animation-delay: -4s; }
.sky-layer .p1 img { width: 128px; }
.sky-layer .p2 { top: 46%; animation-duration: 46s; animation-delay: -27s; }
.sky-layer .p2 img { width: 96px; animation-delay: -1s; }
.sky-layer .p3 { top: 73%; animation-duration: 40s; animation-delay: -15s; }
.sky-layer .p3 img { width: 112px; animation-delay: -2s; }
.sky-layer .p4 { top: 29%; animation-duration: 52s; animation-delay: -40s; }
.sky-layer .p4 img { width: 84px; animation-delay: -0.5s; }
.sky-layer .p5 { top: 90%; animation-duration: 44s; animation-delay: -33s; }
.sky-layer .p5 img { width: 100px; animation-delay: -1.5s; }

@keyframes fly {
    from { transform: translateX(-180px); }
    to { transform: translateX(calc(100vw + 180px)); }
}

@media (prefers-reduced-motion: reduce) {
    .sky-layer img,
    .sky-layer .plane { animation: none; left: 70%; }
    .sky-layer .plane img { animation: none; }
    .sky-layer .p2, .sky-layer .p4 { left: 4%; }
    .sky-layer .c2, .sky-layer .c4 { left: 6%; }
    .hero-plane { animation: none !important; }
}

/* ------------------------------------------------------------------ layout */

.page {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--brown);
    font-weight: 800;
    font-size: 22px;
}

.brand img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: var(--line) solid var(--brown);
    background: var(--cream);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ------------------------------------------------------------------ sticker pieces */

.card {
    background: var(--cream);
    border: var(--line) solid var(--brown);
    border-radius: var(--radius);
    box-shadow: inset 0 calc(var(--lip) * -1) 0 var(--cream-shade), var(--drop);
    padding: 28px 28px calc(28px + var(--lip));
    margin: 0 0 28px;
}

.btn,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 800;
    color: var(--brown);
    text-decoration: none;
    border: var(--line) solid var(--brown);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn {
    padding: 9px 24px 13px;
    font-size: 18px;
    background: var(--orange);
    box-shadow: inset 0 -5px 0 var(--orange-dark), 0 5px 0 rgba(100, 56, 53, 0.2);
}

.btn.sky {
    background: var(--cream);
    box-shadow: inset 0 -5px 0 var(--cream-shade), 0 5px 0 rgba(100, 56, 53, 0.2);
}

.btn.coral {
    background: var(--coral);
    color: #fff;
    box-shadow: inset 0 -5px 0 var(--coral-dark), 0 5px 0 rgba(100, 56, 53, 0.2);
}

.chip {
    padding: 3px 14px 6px;
    font-size: 15px;
    background: var(--cream);
    box-shadow: inset 0 -3px 0 var(--cream-shade), 0 3px 0 rgba(100, 56, 53, 0.18);
}

.chip[aria-current="page"] {
    background: var(--orange);
    box-shadow: inset 0 -3px 0 var(--orange-dark), 0 3px 0 rgba(100, 56, 53, 0.18);
}

.btn:hover,
.chip:hover {
    transform: translateY(-2px);
    color: var(--brown);
}

.btn:active,
.chip:active {
    transform: translateY(3px);
    box-shadow: inset 0 0 0 transparent;
}

.btn.coral:hover {
    color: #fff;
}

.lang-toggle {
    min-width: 56px;
    justify-content: center;
    background: var(--sky);
    box-shadow: inset 0 -3px 0 var(--sky-dark), 0 3px 0 rgba(100, 56, 53, 0.18);
}

/* ------------------------------------------------------------------ hero */

.hero {
    text-align: center;
    padding: 28px 0 8px;
}

.hero-plane {
    width: min(260px, 60vw);
    filter: drop-shadow(0 14px 0 rgba(100, 56, 53, 0.18));
    animation: bob 3.2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.hero h1 {
    margin: 8px 0 4px;
    font-size: clamp(40px, 9vw, 68px);
    line-height: 1.05;
    font-weight: 800;
    color: #fff;
    -webkit-text-stroke: 8px var(--brown);
    paint-order: stroke fill;
    letter-spacing: 1px;
}

.hero .tagline {
    margin: 0 auto 18px;
    max-width: 600px;
    font-size: 20px;
    font-weight: 700;
    color: var(--brown);
}

.hero .actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 18px 0 30px;
}

.crew {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
}

.crew figure {
    margin: 0;
    text-align: center;
    font-weight: 800;
    color: var(--brown);
    font-size: 15px;
}

.crew img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

/* ------------------------------------------------------------------ content */

h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    color: var(--brown);
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 img {
    width: 38px;
    height: 38px;
}

h3 {
    margin: 22px 0 6px;
    font-size: 20px;
    color: var(--brown);
}

p,
li {
    margin: 0 0 10px;
}

ul {
    padding-left: 22px;
}

li::marker {
    color: var(--coral);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.features .card {
    margin: 0;
    padding: 22px;
}

.features h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features h3 img {
    width: 32px;
    height: 32px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    margin: 6px 0 0;
}

.fact {
    background: #fff;
    border: 3px solid var(--brown);
    border-radius: 18px;
    box-shadow: inset 0 -5px 0 var(--cream-shade);
    padding: 8px 12px 13px;
    text-align: center;
}

.fact b {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    color: var(--coral-dark);
}

.fact span {
    font-size: 15px;
    font-weight: 700;
}

.doc-head {
    text-align: center;
    padding: 18px 0 6px;
}

.doc-head h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 52px);
    color: #fff;
    -webkit-text-stroke: 7px var(--brown);
    paint-order: stroke fill;
    line-height: 1.1;
}

.doc-head .updated {
    display: inline-block;
    margin-top: 10px;
}

.toc ol {
    columns: 2 240px;
    margin: 0;
    padding-left: 22px;
}

.toc li {
    break-inside: avoid;
}

.note {
    background: #fff5d6;
    border: 3px dashed var(--orange-dark);
    border-radius: 18px;
    padding: 12px 16px;
    margin: 12px 0;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 10px 0 14px;
    font-size: 15.5px;
    background: #fff;
    border: 3px solid var(--brown);
    border-radius: 16px;
    overflow: hidden;
}

th,
td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 2px solid var(--cream-shade);
}

th {
    background: var(--orange);
    color: var(--brown);
}

tr:last-child td {
    border-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-box img {
    width: 96px;
    flex: none;
}

.contact-box > div {
    flex: 1 1 260px;
}

/* ------------------------------------------------------------------ footer */

.footer {
    text-align: center;
    color: var(--brown);
    font-weight: 700;
    font-size: 15px;
    padding-top: 6px;
}

.footer nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .card {
        padding: 20px 18px;
    }

    .brand span {
        display: none;
    }

    .crew img {
        width: 64px;
        height: 64px;
    }

    h2 {
        font-size: 24px;
    }
}

/* ------------------------------------------------------------------ narrow screens */

.card,
.page {
    min-width: 0;
    overflow-wrap: break-word;
}

code {
    overflow-wrap: anywhere;
    font-size: 0.92em;
    background: #fff;
    border: 2px solid var(--cream-shade);
    border-radius: 8px;
    padding: 0 5px;
}

.table-wrap {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    min-width: 560px;
}

@media (max-width: 600px) {
    .topbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav {
        justify-content: center;
        gap: 6px;
    }

    .chip {
        padding: 3px 11px;
        font-size: 14px;
    }
}
