/* EMIGRATLY — schematic and map visuals. Loaded after app.css on every public page.
   Same tokens as app.css: dark ground, gold accent, teal secondary, hairline borders. */

/* ---------- Dot-matrix world map ---------- */

.worldmap {
    width: 100%;
    height: auto;
    display: block;
}

.worldmap__graticule line {
    stroke: var(--border);
    stroke-width: 0.12;
}

.worldmap__graticule line.is-equator {
    stroke: var(--border-strong);
    stroke-dasharray: 0.6 0.6;
}

.worldmap__cells--land {
    stroke: rgba(242, 241, 237, 0.13);
}

.worldmap__cells--dest {
    stroke: var(--accent);
    opacity: 0.5;
}

.worldmap__cells--src {
    stroke: var(--accent-2);
    opacity: 0.8;
}

.worldmap__arcs path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.16;
    opacity: 0.09;
    transition: opacity 0.3s;
}

.geomap.is-focused .worldmap__arc-set:not(.is-active) path {
    opacity: 0.03;
}

.worldmap__arc-set.is-active path {
    opacity: 0.85;
    stroke-width: 0.26;
    stroke-dasharray: 1.4 1;
    animation: worldmap-flow 1.6s linear infinite;
}

@keyframes worldmap-flow {
    to { stroke-dashoffset: -4.8; }
}

.worldmap__dest circle:not(.worldmap__hit) {
    fill: var(--accent);
}

.worldmap__hit {
    fill: transparent;
}

.worldmap__dest:hover circle:not(.worldmap__hit),
.worldmap__dest:focus-visible circle:not(.worldmap__hit) {
    fill: var(--ink);
}

.worldmap__src {
    cursor: pointer;
}

.worldmap__src circle:not(.worldmap__pulse) {
    fill: var(--accent-2);
    stroke: var(--bg);
    stroke-width: 0.25;
}

.worldmap__pulse {
    fill: none;
    stroke: var(--accent-2);
    stroke-width: 0.2;
    opacity: 0.5;
    transform-box: fill-box;
    transform-origin: center;
    animation: worldmap-pulse 3s ease-out infinite;
}

.worldmap__src.is-active .worldmap__pulse {
    stroke: var(--ink);
    opacity: 1;
}

@keyframes worldmap-pulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.geomap__picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.geomap__picker-label {
    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 4px;
}

.geomap__pick {
    font: 500 13px var(--font-body);
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.geomap__pick:hover {
    border-color: var(--accent-2);
}

.geomap__pick[aria-pressed="true"] {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #041418;
}

.geomap__readout {
    margin: 12px 0 0;
    font: 500 12px/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--muted);
    min-height: 1.4em;
}

.geomap__swatch--arc {
    width: 16px;
    height: 0;
    border-radius: 0;
    border-top: 1.5px dashed var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    .worldmap__pulse,
    .worldmap__arc-set.is-active path {
        animation: none;
    }
}

/* ---------- Country locator (destination and source pages) ---------- */

.geomap--locator {
    margin: 28px 0 0;
}

.worldmap__arcs--locator path {
    opacity: 0.55;
    stroke-width: 0.2;
    stroke-dasharray: 1.4 1;
    animation: worldmap-flow 2.2s linear infinite;
}

.worldmap__cross {
    stroke: var(--accent);
    stroke-width: 0.12;
    stroke-dasharray: 0.5 0.5;
    opacity: 0.45;
}

.worldmap__end--src {
    fill: var(--accent-2);
}

.worldmap__end--dest {
    fill: var(--accent);
}

.worldmap__ring {
    fill: none;
    stroke-width: 0.2;
    opacity: 0.7;
    transform-box: fill-box;
    transform-origin: center;
    animation: worldmap-pulse 2.4s ease-out infinite;
}

.worldmap__ring--dest,
.worldmap__pin--dest {
    stroke: var(--accent);
}

.worldmap__ring--src,
.worldmap__pin--src {
    stroke: var(--accent-2);
}

.worldmap__pin {
    stroke-width: 0.3;
}

.worldmap__pin--dest {
    fill: var(--accent);
}

.worldmap__pin--src {
    fill: var(--accent-2);
}

.geomap__caption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
}

.geomap__coord {
    font: 500 12px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
    .worldmap__arcs--locator path,
    .worldmap__ring {
        animation: none;
    }
}

/* ---------- Pixel-art glyphs ---------- */

.pixel-art {
    display: block;
    height: auto;
}

.sector-card__glyph {
    width: 44px;
    margin-bottom: 18px;
    transition: transform 0.2s ease;
}

.sector-card:hover .sector-card__glyph {
    transform: translateY(-2px);
}

.sector-heading__glyph {
    width: 64px;
    flex: none;
}

/* ---------- Who-can-see-what matrix ---------- */

.visibility {
    margin-top: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    overflow-x: auto;
}

.visibility__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13px;
}

.visibility__table thead th {
    font: 700 11px var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-strong);
}

.visibility__table tbody th {
    text-align: left;
    font-weight: 500;
    color: var(--ink);
    padding: 14px 16px;
    width: 34%;
}

.visibility__table tbody tr + tr > * {
    border-top: 1px solid var(--border);
}

.visibility__table td {
    text-align: center;
    padding: 12px;
    color: var(--muted);
    vertical-align: middle;
}

.visibility__table td.is-note {
    font-size: 12px;
    color: var(--accent-2);
    line-height: 1.4;
}

.visibility__mark {
    width: 22px;
    margin: 0 auto;
}

.visibility__dash {
    display: block;
    width: 14px;
    height: 2px;
    margin: 0 auto;
    background: var(--border-strong);
}

.visibility__foot {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- Role visibility flow ---------- */

.flow {
    margin-top: 28px;
}

.flow__trunk {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0;
    position: relative;
}

.flow__node,
.flow__branch {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}

.flow__node + .flow__node {
    margin-left: -1px;
}

.flow__node strong,
.flow__branch strong {
    font: 700 14px var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

.flow__node--accent {
    border-color: var(--accent);
    z-index: 1;
}

.flow__step {
    font: 500 11px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--accent);
}

.flow__glyph {
    width: 28px;
    margin-bottom: 4px;
}

.flow__fork {
    height: 36px;
    display: flex;
    justify-content: center;
}

.flow__fork span {
    width: 1px;
    height: 100%;
    background: linear-gradient(var(--accent), var(--border-strong));
}

.flow__branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.flow__branch {
    border-radius: var(--radius);
}

.flow__branch--private {
    border-color: var(--accent-2);
}

.flow__branch--public {
    border-color: var(--accent);
}

/* ---------- 90-day ruler ---------- */

.ruler {
    margin: 28px 0 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.ruler__bar {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 3px;
}

.ruler__block {
    display: block;
    height: 28px;
    background: rgba(255, 255, 255, 0.07);
}

.ruler__block.is-start,
.ruler__key.is-start {
    background: var(--accent);
}

.ruler__block.is-review,
.ruler__key.is-review {
    background: var(--accent-2);
}

.ruler__block.is-end,
.ruler__key.is-end {
    background: var(--ink);
}

.ruler__scale {
    position: relative;
    height: 22px;
    margin-top: 10px;
    font: 500 11px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--muted);
}

.ruler__scale span {
    position: absolute;
    top: 0;
}

.ruler__scale .ruler__scale-end {
    right: 0;
}

.ruler__legend {
    list-style: none;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 24px;
    font-size: 13px;
    color: var(--muted);
}

.ruler__legend strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
}

.ruler__key {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Verify page ---------- */

.checks {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.checks__item {
    position: relative;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.checks__glyph {
    width: 40px;
    margin-bottom: 16px;
}

.checks__index {
    position: absolute;
    top: 20px;
    right: 22px;
    font: 500 12px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--muted-dim);
}

.checks__item h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.checks__item p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.official-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.official-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--muted);
}

.official-card p {
    margin: 0;
}

.official-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.official-card__body {
    font: 600 12px/1.4 var(--font-body);
    letter-spacing: 0.04em;
    color: var(--accent);
}

.official-card--none {
    border-style: dashed;
}

.official-card--none .official-card__body {
    color: var(--accent-2);
}

.official-card__contact {
    font: 500 12px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--ink);
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
}

.official-card__links {
    margin-top: auto !important;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
    font-size: 13px;
}

.official-card__links a {
    display: inline-block;
    padding: 6px 0;
    min-height: 24px;
}

.verify-note {
    margin: 20px 0 0;
    font-size: 12px;
    color: var(--muted);
    max-width: 78ch;
}

/* ---------- Home hero map ---------- */

.hero__map {
    position: absolute;
    top: 24px;
    right: -120px;
    width: min(880px, 92vw);
    height: auto;
    opacity: 0.5;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to left, #000 22%, transparent 78%);
    mask-image: linear-gradient(to left, #000 22%, transparent 78%);
}

@media (max-width: 760px) {
    .hero__map {
        right: -40%;
        top: 12px;
        opacity: 0.32;
    }
}

/* ---------- Job offer checker ---------- */

.offer {
    margin-top: 28px;
}

.offer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.offer__group {
    margin: 0;
    padding: 20px 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.offer__group--flags {
    border-color: rgba(214, 162, 74, 0.4);
}

.offer__group legend {
    padding: 0 8px;
    font: 700 12px var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.offer__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 9px 0;
    font-size: 14px;
    color: var(--ink);
    cursor: pointer;
}

.offer__row + .offer__row {
    border-top: 1px solid var(--border);
}

.offer__row input {
    width: 24px;
    height: 24px;
    margin-top: 0;
    accent-color: var(--accent);
    flex: none;
}

.offer__result {
    margin-top: 16px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.offer[data-state="flag"] .offer__result {
    border-color: var(--accent);
}

.offer__meter {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.offer__cell {
    display: block;
    height: 16px;
    background: rgba(255, 255, 255, 0.07);
}

.offer__cell.is-on {
    background: var(--accent-2);
}

.offer__cell.is-warn {
    background: var(--accent);
}

.offer__verdict {
    margin: 16px 0 0;
    font: 600 15px/1.4 var(--font-body);
    color: var(--ink);
}

.offer__missing {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    font-size: 13px;
    color: var(--muted);
}

.offer__missing li {
    padding: 4px 0 4px 16px;
    position: relative;
}

.offer__missing li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--muted-dim);
}

.offer__missing .offer__missing-head {
    padding-left: 0;
    font-weight: 600;
    color: var(--ink);
}

.offer__missing .offer__missing-head::before {
    display: none;
}

.offer__next {
    margin: 14px 0 0;
    font-size: 14px;
}

/* ---------- Region mini-maps (destinations index) ---------- */

.region-card__map {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    margin-bottom: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ---------- Country "At a Glance" stats (World Bank snapshot) ---------- */

.stats-glance {
    margin: 28px 0 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.stats-glance h2 {
    margin-top: 0;
}

.stats-glance__lede,
.stats-glance__source {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.stats-glance__list {
    display: grid;
    gap: 18px;
    margin: 18px 0;
}

.stats-glance__row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 2fr;
    gap: 6px 20px;
    align-items: center;
}

.stats-glance__row dt {
    color: var(--muted);
    font-size: 13px;
}

.stats-glance__row dd {
    display: grid;
    gap: 6px;
    margin: 0;
}

.stats-glance__value {
    font-size: 20px;
    font-weight: 700;
}

.stats-glance__value small {
    font: 500 11px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--muted);
}

.stats-glance__bar {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 3px;
}

.stats-glance__bar i {
    display: block;
    height: 10px;
    background: rgba(255, 255, 255, 0.07);
}

.stats-glance__bar i.is-on {
    background: var(--accent);
}

.stats-glance__rank {
    font: 500 11px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--muted);
}

.stats-glance__source a {
    color: var(--accent);
}

@media (max-width: 640px) {
    .stats-glance {
        padding: 18px;
    }

    .stats-glance__row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Worker protections (sourced claims) ---------- */

.protections {
    margin: 28px 0 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.protections__head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.protections__head h2 {
    margin: 0 0 6px;
}

.protections__glyph {
    width: 56px;
    flex: none;
}

.protections__lede,
.protections__foot {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.protections__list {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.protections__list li {
    padding-left: 14px;
    border-left: 3px solid var(--accent);
}

.protections__list p {
    margin: 0 0 4px;
}

.protections__source {
    font: 500 11px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--accent);
}

.employer-directory .tag {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--accent);
}

/* ---------- Money sent home (remittance chart) ---------- */

.remit {
    margin: 28px 0 0;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
}

.remit h3 {
    margin: 0 0 6px;
}

.remit figcaption p,
.remit__source {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.remit__list {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.remit__row {
    display: grid;
    grid-template-columns: 110px 1fr 150px;
    gap: 14px;
    align-items: center;
}

.remit__name {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.remit__name:hover {
    color: var(--accent);
}

.remit__bar {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 2px;
}

.remit__bar i {
    display: block;
    height: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.remit__bar i.is-on {
    background: var(--accent);
}

.remit__value {
    font-weight: 700;
    font-size: 14px;
    text-align: right;
}

.remit__value small,
.remit__source a {
    font: 500 11px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: var(--muted);
}

.remit__source a {
    color: var(--accent);
}

@media (max-width: 640px) {
    .remit {
        padding: 18px;
    }

    .remit__row {
        grid-template-columns: 1fr auto;
    }

    .remit__bar {
        grid-column: 1 / -1;
        order: 3;
    }
}

.remit__more summary {
    cursor: pointer;
    color: var(--accent);
    font-size: 13px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.remit__more[open] summary {
    margin-bottom: 8px;
}

.remit__more .remit__list {
    margin-top: 0;
}

.protections__topic {
    margin: 26px 0 0;
    font: 700 12px/1.4 var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.protections__topic + .protections__list {
    margin-top: 12px;
}

/* ---------- Gulf labour rules comparison table ---------- */

.compare {
    margin: 28px 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    overflow-x: auto;
}

.compare:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.compare__caption {
    padding: 14px 18px;
    text-align: left;
    color: var(--muted);
    font-size: 13px;
    caption-side: top;
}

.compare__table {
    width: 100%;
    min-width: 1060px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    line-height: 1.55;
}

.compare__table th,
.compare__table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--border);
}

.compare__table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--panel);
    font-weight: 700;
    white-space: normal;
}

.compare__table thead th a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.compare__table thead th small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 500;
    font-size: 11px;
    line-height: 1.4;
}

.compare__table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 170px;
    min-width: 170px;
    background: var(--panel);
    font-weight: 600;
    color: var(--ink);
}

.compare__corner {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 170px;
}

.compare__section th {
    background: var(--panel-raised);
    color: var(--accent);
    font: 700 12px/1.4 var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compare__table td {
    min-width: 148px;
    color: var(--muted);
}

.compare__foot {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.compare__foot a {
    color: var(--accent);
}

@media (max-width: 640px) {
    .compare__table tbody th[scope="row"],
    .compare__corner {
        width: 118px;
        min-width: 118px;
        font-size: 12px;
    }

    .compare__table th,
    .compare__table td {
        padding: 10px;
    }
}

/* ---------- Guarantee timeline + date calculator ---------- */

.gtimeline {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.gtimeline__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 20px 0 0;
    border-top: 1px solid var(--border-strong);
    color: var(--muted);
    font-size: 14px;
}

.gtimeline__item::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--border-strong);
}

.gtimeline__item.is-start::before,
.gtimeline__item.is-end::before {
    background: var(--accent);
}

.gtimeline__item.is-review::before {
    background: var(--accent-2);
}

.gtimeline__item strong {
    color: var(--ink);
    font-size: 16px;
}

.gtimeline__when {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

@media (max-width: 760px) {
    .gtimeline {
        grid-template-columns: 1fr;
    }

    .gtimeline__item {
        border-top: 0;
        border-left: 1px solid var(--border-strong);
        padding: 0 0 28px 24px;
    }

    .gtimeline__item::before {
        top: 4px;
        left: -5px;
    }
}

.guarantee-calc {
    max-width: 640px;
}

.guarantee-calc__input {
    display: block;
    margin: 10px 0 0;
    width: 100%;
    max-width: 260px;
    min-height: 44px;
    padding: 8px 12px;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font: inherit;
    color-scheme: dark;
}

.guarantee-calc__out {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.guarantee-calc__out dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.guarantee-calc__out dl > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
}

.guarantee-calc__out dt {
    color: var(--muted);
    font-size: 14px;
}

.guarantee-calc__out dd {
    margin: 0;
    font-weight: 700;
    color: var(--ink);
}

.guarantee-calc__note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- Sample candidate file ---------- */

.sample__tabs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin: 20px 0 24px;
}

.sample__tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 64px;
    padding: 12px 12px 12px 0;
    background: transparent;
    color: var(--muted);
    border: 0;
    border-top: 2px solid var(--border-strong);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sample__tab:hover,
.sample__tab.is-past {
    color: var(--ink);
}

.sample__tab.is-past {
    border-top-color: var(--success);
}

.sample__tab[aria-selected="true"] {
    color: var(--ink);
    border-top-color: var(--accent);
}

.sample__tab-n {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.sample__tab-l {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
}

.sample__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.sample__day {
    color: var(--muted);
    font-size: 14px;
}

.sample__cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    align-items: start;
}

.sample__side {
    display: grid;
    gap: 16px;
}

.sample__panel .dashboard-card h3 {
    margin-top: 0;
}

.sample__name {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--accent);
}

@media (max-width: 900px) {
    .sample__tabs {
        grid-template-columns: repeat(4, 1fr);
    }

    .sample__cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .sample__tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Corridor pages ---------- */

.worldmap__arcs .worldmap__arc-set .corridor-arc {
    stroke-width: 0.35;
    stroke: var(--accent);
    opacity: 0.9;
}

.corridor-source {
    border-top: 1px solid var(--border);
    padding: 4px 0;
}

.corridor-source:last-of-type {
    border-bottom: 1px solid var(--border);
}

.corridor-source summary {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}

.corridor-source__region {
    margin: 16px 0 8px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

#cp-go[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}

/* ---------- Motion and finish (all of it off under prefers-reduced-motion) ---------- */

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

[id] {
    scroll-margin-top: 24px;
}

.answer-card,
.audience-card,
.official-card,
.dashboard-card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.answer-card:hover,
.audience-card:hover,
.official-card:hover {
    border-color: var(--border-strong);
    background: var(--panel-raised);
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    .answer-card,
    .audience-card,
    .official-card {
        transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    }

    .answer-card:hover,
    .audience-card:hover,
    .official-card:hover {
        transform: translateY(-2px);
    }

    .hero__content > * {
        animation: rise-in 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero__content > :nth-child(2) { animation-delay: 0.07s; }
    .hero__content > :nth-child(3) { animation-delay: 0.14s; }
    .hero__content > :nth-child(4) { animation-delay: 0.21s; }
    .hero__content > :nth-child(5) { animation-delay: 0.28s; }

    /* Set by reveal.js on below-the-fold sections only, so nothing above the fold ever flashes. */
    .reveal-pending {
        opacity: 0;
        transform: translateY(18px);
    }

    .reveal-pending.is-revealed {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
}

/* ---------- Graphics on the newer pages ---------- */

.guarantee-rail {
    display: block;
    width: 330px;
    max-width: 100%;
    height: auto;
}

.answer-card__glyph,
.gtimeline__glyph {
    align-self: flex-start;
    margin-bottom: 6px;
}

.sample__tab-glyph {
    margin-bottom: 2px;
}

.section-glyph {
    position: absolute;
    right: 24px;
    top: 32px;
    opacity: 0.9;
}

section.container.section:has(> .section-glyph) {
    position: relative;
}

@media (max-width: 760px) {
    .section-glyph {
        display: none;
    }
}

/* Explicit glyph sizes (a bare .pixel-art SVG has no intrinsic width and would fill its container). */
.answer-card__glyph { width: 40px; }
.gtimeline__glyph { width: 32px; }
.sample__tab-glyph { width: 27px; }
.section-glyph { width: 48px; }

/* ---------- Guides: before you fly / families / returning home ---------- */

.guide-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 8px; }
.guide-list--wide { max-width: 78ch; margin-top: 16px; }
.guide-subhead { margin: 32px 0 12px; font-size: 18px; color: var(--muted); }

.chip-static { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--ink); font-size: 14px; }
