/*
Theme Name: GDS Trainer
Theme URI: https://gds-trainer.com
Author: Mounir Aboulama
Description: Site de formation indépendant et non officiel : simulateur de terminal cryptique Amadeus (disponibilités, PNR, tarification, émission, NDC, files d'attente), essai gratuit, abonnement Stripe, suivi des inscriptions et des scores. Interface FR / EN / DE.
Version: 2.7.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: amsim
*/

/* Aviation operations palette: strip bay, ink, aviation orange, departure board */
:root {
	--paper: #f6f8fa;
	--bay: #e3e8ed;
	--bay-2: #d3dae2;
	--ink: #15223a;
	--ink-2: #3b4a62;
	--mute: #66738a;
	--rule: #ccd4dd;
	--orange: #ff5a1f;
	--orange-2: #ff7a47;
	--orange-ink: #b83c0c;
	--board: #1b1f25;
	--board-2: #262b33;
	--flap: #ffd34d;
	--s-buff: #f2e3a0; --s-blue: #bcd6ee; --s-pink: #f4c6b8; --s-green: #c5e6cf; --s-lilac: #d8d0f0;
	--ok: #1d8a5a;
	--white: #ffffff;
	--font-display: 'Big Shoulders', 'Arial Narrow', sans-serif;
	--font-body: 'Atkinson Next', system-ui, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
	/* names used by older templates */
	--apron: var(--bay); --slate: var(--ink); --slate-2: #22314d; --slate-3: #3b4a62; --sign: var(--orange); --sign-2: var(--orange-2); --line: var(--rule);
	--navy: var(--ink); --navy-2: #22314d; --gold: var(--orange); --gold-2: var(--orange-2); --bg: var(--paper); --text: var(--ink); --mute-c: var(--mute); --flap-ink: var(--flap);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--font-body); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* ---------- Layout basics ---------- */
.wrap { max-width: 1440px; margin: 0 auto; }
.site-main { padding: 24px; }
.site-main.narrow { max-width: 920px; margin: 0 auto; padding-top: 40px; }
.site-main-full { padding: 0; }
.entry-title { font: 800 clamp(30px, 4vw, 42px)/1.05 var(--font-display);  letter-spacing: -.03em; margin: 0 0 24px; color: #111827; }
.card { background: var(--white); border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px; }

/* ---------- Buttons ---------- */
.gt-btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font: 700 16px/1.15 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.gt-btn-sign, .gt-btn-gold { background: var(--sign); color: var(--slate); }
.gt-btn-sign:hover, .gt-btn-gold:hover { background: var(--sign-2); }
.gt-btn-ghost { border-color: #5b6673; color: var(--white); }
.gt-btn-ghost:hover { border-color: var(--white); }
.gt-btn-dark { background: var(--slate); color: var(--white); }
.gt-btn-dark:hover { background: var(--slate-2); }
.gt-btn-line { border-color: var(--line); color: var(--slate); background: var(--white); }
.gt-btn-line:hover { border-color: var(--slate); }
.gt-block { display: block; width: 100%; }

/* (home page styles: see SaaS section at the end) */

/* ---------- Forms, account, paywall ---------- */
.gt-form, .gt-account { max-width: 540px; margin: 8px 0 40px; }
.gt-paywall { margin: 40px auto; }
.gt-form h2, .gt-account h2 { margin-top: 0; font: 800 28px/1.1 var(--font-display);  }
.gt-form label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 16px; }
.gt-form input[type=text], .gt-form input[type=email], .gt-form input[type=password], .amsim-login input[type=text], .amsim-login input[type=password] { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #aeb7c2; border-radius: 4px; font: inherit; background: var(--white); }
.gt-form input:focus { border-color: var(--slate); }
.gt-form small { font-weight: 400; color: var(--mute); }
.gt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gt-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.gt-check input { margin-top: 5px; accent-color: var(--slate); }
.gt-hp { position: absolute !important; left: -9999px !important; }
.gt-alert { background: #fde8e6; color: #8a1f17; border-radius: 4px; padding: 11px 14px; margin: 0 0 18px; font-size: 15px; }
.gt-alert.gt-ok { background: #e2f5ec; color: #145a3a; }
.gt-hello { font-weight: 700; }
.gt-hello span { font-weight: 400; color: var(--mute); }
.gt-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; background: #e5e9ee; }
.gt-st-trial { background: #fff1c4; color: #6b4e00; }
.gt-st-active, .gt-st-sub_trial, .gt-st-staff { background: #e2f5ec; color: #145a3a; }
.gt-st-past_due, .gt-st-unpaid, .gt-st-expired, .gt-st-canceled, .gt-st-blocked { background: #fde8e6; color: #8a1f17; }
.gt-st-canceling, .gt-st-manual { background: #e8eefb; color: #24447a; }
.gt-small { font-size: 14px; color: var(--mute); margin: 14px 0 0; }
.gt-paywall { text-align: center; }
.amsim-login { max-width: 480px; margin: 40px auto; }
.amsim-login h2 { margin-top: 0; font: 800 28px/1.1 var(--font-display);  }
.amsim-login input[type=submit] { background: var(--slate); color: var(--white); border: 0; border-radius: 4px; padding: 12px 20px; font-weight: 700; cursor: pointer; }
.button-gold { background: var(--sign); color: var(--slate); border-radius: 4px; padding: 12px 20px; font-weight: 700; text-decoration: none; display: inline-block; }

/* ---------- Team admin ---------- */
.gt-account { max-width: 920px; }
.gt-subscribe { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.gt-subscribe label { display: flex; align-items: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.gt-num { width: 90px; padding: 9px 10px; border: 1px solid #aeb7c2; border-radius: 4px; font: inherit; }
.gt-subscribe .gt-btn { margin-top: 14px; }
.gt-team { max-width: 920px; margin: 0 0 48px; }
.gt-team-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.gt-team-head h2 { margin: 0; font: 800 28px/1.1 var(--font-display);  }
.gt-seats { font: 600 18px/1 var(--font-mono); color: var(--mute); }
.gt-seats b { font: 900 34px/1 var(--font-display);  color: var(--slate); }
.gt-seats-l { margin: 6px 0 10px; }
.gt-seatbar { display: flex; gap: 6px; margin: 0 0 22px; flex-wrap: wrap; }
.gt-seatbar i { width: 34px; height: 12px; border-radius: 2px; background: var(--apron); box-shadow: inset 0 0 0 1px var(--line); }
.gt-seatbar i.on { background: var(--sign); box-shadow: inset 0 0 0 1px #d9a400; }
.gt-cred { background: var(--slate); color: var(--white); border-radius: 6px; padding: 18px 20px; margin: 0 0 20px; }
.gt-cred p { margin: 0 0 10px; }
.gt-cred dl { display: flex; gap: 32px; margin: 0; flex-wrap: wrap; }
.gt-cred dt { font-size: 13px; color: #aab4c0; }
.gt-cred dd { margin: 2px 0 0; }
.gt-cred code { font: 700 18px/1.3 var(--font-mono); color: var(--sign); background: none; user-select: all; }
.gt-cred .gt-small { color: #aab4c0; margin-top: 12px; }
.gt-team-table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15px; }
.gt-team-table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--mute); padding: 8px 10px; border-bottom: 2px solid var(--slate); }
.gt-team-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gt-team-table small { color: var(--mute); }
.gt-team-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.gt-team-acts { white-space: nowrap; }
.gt-team-acts a { margin-right: 12px; font-size: 14px; }
.gt-team-acts a:last-child { color: #a3261b; }
.gt-team-add { max-width: none; margin: 0 0 8px; padding: 20px; background: var(--apron); border-radius: 6px; }
.gt-team-add h3, .gt-extra h3 { margin: 0 0 14px; font: 700 19px/1.2 var(--font-display);  }
.gt-row3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.gt-extra { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.gt-inline { display: flex; gap: 10px; align-items: center; }
.gt-inline .gt-btn { padding: 9px 16px; }

/* ---------- Ranking & stats ---------- */
.amsim-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.amsim-table th { background: var(--slate); color: var(--white); text-align: left; padding: 11px 14px; font-weight: 600; }
.amsim-table td { padding: 11px 14px; border-top: 1px solid var(--line); }
.amsim-table tr.me td { background: #fff6d6; font-weight: 600; }
.amsim-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--apron); font-weight: 700; }
.medal.g1 { background: var(--sign); }
.medal.g2 { background: #d4dae1; }
.medal.g3 { background: #ecc9a0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0 32px; }
.stat-grid div { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.stat-grid div:first-child { background: var(--slate); color: var(--white); border-color: var(--slate); }
.stat-grid div:first-child b { color: var(--sign); }
.stat-grid b { display: block; font: 800 30px/1.1 var(--font-display);  }
.stat-grid span { color: var(--mute); font-size: 14px; }
.stat-grid div:first-child span { color: #c9d1db; }

@media (max-width: 900px) {
	.gt-hero-row, .gt-split, .gt-signs, .gt-route { grid-template-columns: 1fr; }
	.gt-route::before { display: none; }
	.gt-pass { grid-template-columns: 1fr; }
	.gt-pass-stub { border-left: 0; border-top: 2px dashed rgba(27,33,40,.45); border-radius: 0 0 10px 10px; }
	.gt-pass-stub::before { top: -13px; left: -12px; }
	.gt-pass-stub::after { top: -13px; bottom: auto; left: auto; right: -12px; }
	.gt-pass-fields, .gt-pass-list { grid-template-columns: 1fr 1fr; }
	.gt-sec { padding: 72px 0; }
	.gt-split { gap: 32px; }
	.header-right { margin-left: 0; width: 100%; }
}
@media (max-width: 680px) {
	.gt-board .gt-c3 { display: none; }
	.gt-flap { width: 12px; height: 20px; font-size: 12px; }
	.gt-board-head span:nth-child(1) { width: auto; }
	.gt-cryptic dl div { grid-template-columns: 1fr; gap: 4px; }
	.gt-row, .gt-row3 { grid-template-columns: 1fr; }
	.gt-team-table thead { display: none; }
	.gt-team-table td { display: block; border: 0; padding: 4px 0; }
	.gt-team-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.gt-pass-list { grid-template-columns: 1fr; }
	.gt-pass-main { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}


/* =====================================================================
   Site (.sx-*) and application shell (.app-*)
   One idea everywhere: airport operations. A departure board for the
   moment that matters, flight strips for lists, a boarding pass for the offer.
   ===================================================================== */
.sx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.sx-ic { width: 20px; height: 20px; flex: none; }

/* Brand mark: one split-flap tile */
.sx-logo-mark { position: relative; display: inline-grid; place-items: center; width: 34px; height: 38px; border-radius: 5px; background: var(--board); color: var(--flap); font: 800 17px/1 var(--font-display); letter-spacing: .02em; flex: none; overflow: hidden; }
.sx-logo-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.65); box-shadow: 0 1px 0 rgba(255,255,255,.08); }

/* Buttons */
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font: 700 16px/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.sx-btn-primary { background: var(--orange); color: var(--ink); }
.sx-btn-primary:hover { background: var(--orange-2); color: var(--ink); }
.sx-btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.sx-btn-ghost:hover { background: var(--ink); color: #fff; }
.sx-btn-ink { background: var(--ink); color: #fff; }
.sx-btn-ink:hover { background: #22314d; color: #fff; }
.sx-btn-lg { padding: 15px 26px; font-size: 17px; }
.sx-btn-sm { padding: 8px 14px; font-size: 14.5px; }
.sx-btn-block { display: flex; width: 100%; }
.sx-link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.sx-link:hover { color: var(--ink); text-decoration: underline; }

/* Header */
.sx-header { position: sticky; top: 0; z-index: 50; background: rgba(246,248,250,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.admin-bar .sx-header { top: 32px; }
.sx-header-in { display: flex; align-items: center; gap: 36px; height: 72px; }
.sx-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 800 24px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.sx-brand img { max-height: 38px; width: auto; }
.sx-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.sx-nav a { display: block; padding: 8px 12px; color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 600; border-bottom: 2px solid transparent; }
.sx-nav a:hover { color: var(--ink); border-bottom-color: var(--orange); }
.sx-header-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.sx-lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; }
.sx-lang a { padding: 5px 9px; font: 600 13px/1.2 var(--font-mono); color: var(--mute); text-decoration: none; }
.sx-lang a + a { border-left: 1px solid var(--rule); }
.sx-lang a.on { background: var(--ink); color: #fff; }

/* Hero */
.sx-hero { padding: 64px 0 72px; background: var(--paper); }
.sx-hero-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.sx-disclaim { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.sx-disclaim::before { content: ""; width: 10px; height: 10px; background: var(--orange); }
.sx-h1 { margin: 0 0 24px; font: 900 clamp(48px, 5.4vw, 78px)/.9 var(--font-display); text-transform: uppercase; color: var(--ink); max-width: 15ch; text-wrap: balance; }
.sx-lead { margin: 0 0 32px; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.sx-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sx-note { color: var(--mute); font-size: 15px; margin: 16px 0 0; }

/* Departure board — the one loud object on the page */
.sx-board { background: var(--board); border-radius: 10px; padding: 18px 18px 14px; color: #e8ecf1; box-shadow: 0 2px 0 #000, 0 30px 60px -30px rgba(21,34,58,.6); }
.sx-board-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 12px; border-bottom: 1px solid #333a44; }
.sx-board-title { font: 800 30px/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.sx-board-clock { font: 700 28px/1 var(--font-mono); color: var(--flap); letter-spacing: .04em; }
.sx-board-cols, .sx-board-rows li { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); gap: 14px; align-items: center; }
.sx-board-cols span:nth-child(1) { width: 64px; } .sx-board-cols span:nth-child(2) { width: 240px; } .sx-board-cols span:nth-child(3) { width: 128px; }
.sx-board-cols { padding: 10px 4px 6px; font: 600 12.5px/1 var(--font-body); color: #8a94a3; }
.sx-board-rows { list-style: none; margin: 0; padding: 0; }
.sx-board-rows li { padding: 7px 4px; border-top: 1px solid #2a3039; }
.sx-f { display: flex; gap: 2px; font: 600 14px/1 var(--font-mono); color: var(--flap); white-space: pre; }
.sx-f i { position: relative; display: inline-grid; place-items: center; width: 14px; height: 22px; border-radius: 2px; background: #2c323b; font-style: normal; overflow: hidden; }
.sx-f i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.7); }
.sx-f i.flip { animation: sxflip .09s linear; }
@keyframes sxflip { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }
.sx-st { font: 700 13px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .03em; }
.sx-st-ok { color: #7ee2b0; }
.sx-st-go { color: var(--orange-2); animation: sxblink 1.6s steps(1) infinite; }
.sx-st-new { color: #9cc7ff; }
@keyframes sxblink { 50% { opacity: .35; } }

/* Stats band: one long flight strip */
.sx-band { padding: 0 0 72px; background: var(--paper); }
.sx-strip-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--s-buff); border: 1px solid #d9c77a; border-left: 14px solid var(--ink); border-radius: 4px; }
.sx-strip-stats div { padding: 18px 22px; border-left: 1px solid rgba(21,34,58,.22); }
.sx-strip-stats div:first-child { border-left: 0; }
.sx-strip-stats dt { font: 800 40px/1 var(--font-display); color: var(--ink); }
.sx-strip-stats dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.sx-trust { margin: 16px 0 0; color: var(--mute); font-size: 15px; }

/* Sections */
.sx-sec { padding: 104px 0; }
.sx-bay { background: var(--bay); }
.sx-head { max-width: 760px; margin: 0 0 48px; }
.sx-h2 { margin: 0 0 14px; font: 900 clamp(40px, 5vw, 64px)/.95 var(--font-display); text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.sx-sub { margin: 0; color: var(--ink-2); font-size: 19px; max-width: 58ch; }
.sx-p { color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; }
.sx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* Modules as flight strips */
.sx-strips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sx-strip { --tab: var(--s-buff); }
.sx-strips .sx-strip { display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(0, 300px); align-items: stretch; background: #fff; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.sx-strip-blue { --tab: var(--s-blue); } .sx-strip-buff { --tab: var(--s-buff); } .sx-strip-pink { --tab: var(--s-pink); } .sx-strip-green { --tab: var(--s-green); } .sx-strip-lilac { --tab: var(--s-lilac); }
.sx-strip-tab { display: grid; place-items: center; background: var(--tab); border-right: 1px solid rgba(21,34,58,.18); font: 900 34px/1 var(--font-display); color: var(--ink); }
.sx-strip-body { padding: 20px 26px; }
.sx-strip-body h3 { margin: 0 0 4px; font: 800 24px/1.1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.sx-strip-body p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 64ch; }
.sx-strip-cmd { display: flex; align-items: center; padding: 0 24px; border-left: 1px dashed var(--rule); font: 600 14.5px/1.3 var(--font-mono); color: var(--ink); background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-strip-pts b { font: 900 30px/1 var(--font-display); margin-right: 6px; color: var(--orange-ink); }

/* Cryptic examples on a terminal panel */
.sx-term { background: var(--board); color: #e8ecf1; border-radius: 8px; overflow: hidden; }
.sx-term-t { margin: 0; padding: 16px 22px; font: 800 22px/1 var(--font-display); text-transform: uppercase; color: #fff; border-bottom: 1px solid #333a44; }
.sx-term dl { margin: 0; }
.sx-term dl div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 15px 22px; border-bottom: 1px solid #2a3039; align-items: baseline; }
.sx-term dl div:last-child { border-bottom: 0; }
.sx-term dt { font: 600 15px/1.3 var(--font-mono); color: var(--flap); }
.sx-term dd { margin: 0; color: #c3cad4; font-size: 16px; }

/* Team as a cabin: one seat per account */
.sx-cabin { background: #fff; border: 2px solid var(--ink); border-radius: 28px 28px 10px 10px; padding: 26px; }
.sx-cabin-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.sx-cabin-h b { font: 800 26px/1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.sx-cabin-h span { font: 700 16px var(--font-mono); color: var(--mute); }
.sx-cabin-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sx-seat { position: relative; display: grid; gap: 2px; padding: 14px 12px 12px; border: 1px dashed var(--bay-2); border-radius: 12px 12px 4px 4px; background: var(--paper); min-height: 96px; }
.sx-seat i { font: 700 12.5px/1 var(--font-mono); font-style: normal; color: var(--mute); }
.sx-seat b { font-size: 15.5px; color: var(--ink-2); }
.sx-seat span { font-size: 13px; color: var(--mute); }
.sx-seat.on { border: 1px solid var(--ink); background: var(--s-blue); }
.sx-seat.on b { color: var(--ink); }
.sx-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.sx-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.sx-checks .sx-ic { color: var(--ink); background: var(--orange); border-radius: 3px; padding: 3px; width: 22px; height: 22px; margin-top: 1px; }

/* How it works: a route with three waypoints */
.sx-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.sx-route::before { content: ""; position: absolute; top: 11px; left: 11px; right: 12%; border-top: 3px dashed var(--ink); }
.sx-route li { position: relative; }
.sx-wp { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); border: 4px solid var(--ink); box-shadow: 0 0 0 6px var(--bay); margin-bottom: 22px; }
.sx-route li:last-child .sx-wp { border-radius: 4px; transform: rotate(45deg); }
.sx-route h3 { margin: 0 0 8px; font: 800 26px/1.05 var(--font-display); text-transform: uppercase; color: var(--ink); }
.sx-route p { margin: 0; color: var(--ink-2); }

/* Offer as a boarding pass */
.sx-pass { display: grid; grid-template-columns: minmax(0, 1fr) 320px; max-width: 1040px; filter: drop-shadow(0 24px 34px rgba(21,34,58,.16)); }
.sx-pass-main, .sx-pass-stub { position: relative; background: #fff; }
.sx-pass-main { padding: 34px 40px 38px; border-radius: 14px 0 0 14px; }
.sx-pass-stub { padding: 34px 30px; border-radius: 0 14px 14px 0; border-left: 2px dashed var(--rule); background: var(--s-buff); }
.sx-pass-stub::before, .sx-pass-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); }
.sx-pass-stub::before { top: -12px; } .sx-pass-stub::after { bottom: -12px; }
.sx-pass-top { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.sx-pass-top b { font: 800 22px/1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.sx-pass-top span:last-child { margin-left: auto; padding: 5px 10px; background: var(--ink); color: #fff; border-radius: 4px; font-weight: 700; font-size: 14px; }
.sx-pass-route { display: flex; align-items: center; gap: 18px; margin: 22px 0 6px; }
.sx-pass-route b { font: 900 76px/.9 var(--font-display); color: var(--ink); }
.sx-pass-route span { flex: 1; height: 3px; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 18px); position: relative; }
.sx-pass-route span::after { content: "✈"; position: absolute; right: -4px; top: -15px; font-size: 26px; color: var(--orange); }
.sx-pass-fields { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; margin: 22px 0 24px; border: 1px solid var(--rule); border-radius: 6px; }
.sx-pass-fields div { padding: 12px 16px; border-left: 1px solid var(--rule); }
.sx-pass-fields div:first-child { border-left: 0; }
.sx-pass-fields dt { font-size: 13.5px; color: var(--mute); font-weight: 600; }
.sx-pass-fields dd { margin: 4px 0 0; font: 800 30px/1 var(--font-display); color: var(--ink); }
.sx-pass-fields dd small { font: 600 14px var(--font-body); color: var(--mute); }
.sx-pass-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.sx-pass-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 16px; }
.sx-pass-list .sx-ic { width: 18px; height: 18px; color: var(--orange-ink); margin-top: 3px; }
.sx-pass-stub-t { margin: 0; font: 800 22px/1.05 var(--font-display); text-transform: uppercase; color: var(--ink); }
.sx-pass-big { margin: 18px 0 2px; font: 900 84px/.85 var(--font-display); color: var(--ink); }
.sx-pass-per { margin: 0 0 18px; color: var(--ink-2); font-weight: 600; }
.sx-pass-stub ul { margin: 0 0 22px; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 6px; }
.sx-barcode { height: 54px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px); opacity: .9; }
.sx-plan-note { color: var(--mute); font-size: 15px; margin: 26px 0 0; max-width: 72ch; }

/* FAQ */
.sx-faq { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
.sx-faq details { background: #fff; border: 1px solid var(--rule); border-left: 6px solid var(--s-blue); border-radius: 4px; padding: 18px 22px; margin-bottom: 8px; }
.sx-faq details[open] { border-left-color: var(--orange); }
.sx-faq summary { cursor: pointer; font-weight: 700; font-size: 17.5px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: "+"; font: 800 26px/1 var(--font-display); color: var(--ink); }
.sx-faq details[open] summary::after { content: "–"; }
.sx-faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 70ch; }

/* Closing call to action */
.sx-final { background: var(--orange); padding: 88px 0; }
.sx-final-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.sx-final h2 { margin: 0; font: 900 clamp(46px, 6vw, 86px)/.9 var(--font-display); text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.sx-final p { margin: 0 0 22px; color: var(--ink); font-size: 19px; font-weight: 600; }

/* Footer */
.sx-footer { padding: 64px 0 36px; background: var(--board); color: #aeb7c4; font-size: 15px; }
.sx-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.sx-footer .sx-brand { color: #fff; }
.sx-footer h4 { margin: 4px 0 14px; color: #fff; font: 800 18px/1 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.sx-footer a:not(.sx-brand) { display: block; color: #aeb7c4; text-decoration: none; margin-bottom: 9px; }
.sx-footer a:not(.sx-brand):hover { color: var(--flap); }
.sx-footer-brand p { margin: 14px 0 0; max-width: 34ch; }
.sx-footer-muted { color: #7d8796; }
.sx-footer-disc { margin: 44px 0 0; padding-top: 24px; border-top: 1px solid #333a44; font-size: 13.5px; max-width: 110ch; color: #8d97a6; }
.sx-footer-disc strong { color: #d3d9e1; }
.sx-footer-copy { margin: 10px 0 0; font-size: 13.5px; color: #6f7a8a; }

/* Pages without the app layout (sign-up, login) */
.is-site .site-main.narrow { padding-top: 56px; padding-bottom: 80px; }
.is-site .gt-form { margin-left: auto; margin-right: auto; }
.is-site .amsim-login { margin: 0 auto; }
.is-site .entry-title { text-align: center; }
.gt-login { max-width: 460px; }
.gt-login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 18px; font-size: 15px; }
.gt-login-row .gt-check { margin: 0; }
.gt-center { text-align: center; }
.gt-pw-t { margin: 0 0 16px; font: 800 26px/1.1 var(--font-display); text-transform: uppercase; }
.gt-pw .gt-form { max-width: none; margin: 0; }
.app-page .gt-login, .is-site .gt-login, .is-site .card { margin-left: auto; margin-right: auto; background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--orange); border-radius: 6px; padding: 32px; box-shadow: 0 20px 40px -28px rgba(21,34,58,.4); }
.entry-title { font: 900 clamp(40px, 5vw, 60px)/.95 var(--font-display); text-transform: uppercase; letter-spacing: 0; color: var(--ink); }
.gt-form h2, .gt-account h2, .amsim-login h2, .gt-team-head h2 { font: 800 30px/1 var(--font-display); text-transform: uppercase; }
.gt-form input[type=text], .gt-form input[type=email], .gt-form input[type=password], .amsim-login input[type=text], .amsim-login input[type=password], .gt-num { border: 1px solid var(--bay-2); border-radius: 6px; background: var(--paper); }
.gt-form input:focus, .amsim-login input:focus, .gt-num:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,90,31,.3); background: #fff; }
.gt-btn { border-radius: 6px; }
.gt-btn-sign, .gt-btn-gold { background: var(--orange); color: var(--ink); }
.gt-btn-sign:hover, .gt-btn-gold:hover { background: var(--orange-2); }
.gt-btn-dark { background: var(--ink); color: #fff; }
.gt-cred { background: var(--board); }
.gt-cred code { color: var(--flap); }
.gt-seatbar i { border-radius: 8px 8px 2px 2px; height: 22px; width: 26px; }
.gt-seatbar i.on { background: var(--s-blue); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Application shell (trainees and team admins) ---------- */
.is-app { background: var(--paper); }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--bay) 248px, var(--paper) 248px); }
.app-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bay); border-right: 1px solid var(--bay-2); padding: 20px 14px; }
.admin-bar .app-side { top: 32px; height: calc(100vh - 32px); }
.app-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 22px/1 var(--font-display); text-transform: uppercase; padding: 2px 6px 24px; }
.app-nav { display: grid; gap: 6px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border-radius: 4px; color: var(--ink-2); text-decoration: none; font-size: 15.5px; font-weight: 600; border: 1px solid transparent; border-left: 6px solid transparent; }
.app-nav a:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.app-nav a.on { background: #fff; color: var(--ink); border-color: var(--rule); border-left-color: var(--orange); box-shadow: 0 1px 0 var(--bay-2); }
.app-side-foot { margin-top: auto; display: grid; gap: 12px; }
.app-trial { background: var(--s-buff); border: 1px solid #d9c77a; border-left: 6px solid var(--ink); border-radius: 4px; padding: 14px; }
.app-trial p { margin: 0 0 8px; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.app-trial-bar { display: block; height: 6px; border-radius: 3px; background: rgba(21,34,58,.15); margin-bottom: 12px; overflow: hidden; }
.app-trial-bar i { display: block; height: 100%; background: var(--ink); }
.app-user { display: flex; align-items: center; gap: 10px; padding: 12px 6px 6px; border-top: 1px solid var(--bay-2); }
.app-user b { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.app-user small { color: var(--mute); font-size: 13px; }
.sx-av { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 16px/1 var(--font-display); flex: none; }
.app-side-links a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; border-radius: 4px; }
.app-side-links a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.app-side-links .sx-ic { width: 17px; height: 17px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 0 32px; background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 20; }
.admin-bar .app-top { top: 32px; }
.app-top h1 { margin: 0; font: 900 38px/1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.app-content { padding: 26px 32px 44px; }
.app-page .card { border-radius: 6px; border: 1px solid var(--rule); box-shadow: none; background: #fff; }
.app-page .gt-account, .app-page .gt-team { max-width: 1000px; margin: 0 0 22px; border-left: 6px solid var(--s-blue); }
.app-page .gt-team { border-left-color: var(--s-buff); }
.app-page .amsim { height: calc(100vh - 76px - 52px); min-height: 520px; border-radius: 8px; }
.admin-bar .app-page .amsim { height: calc(100vh - 108px - 52px); }
.app-page .amsim-login { margin: 0; }

/* Ranking & personal stats in the same language */
.amsim-table { border: 1px solid var(--rule); border-radius: 6px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.amsim-table th { background: var(--ink); font-weight: 700; }
.amsim-table tr.me td { background: var(--s-buff); }
.medal { border-radius: 4px; }
.medal.g1 { background: var(--orange); color: var(--ink); }
.stat-grid div { border-radius: 4px; border-left: 6px solid var(--s-blue); }
.stat-grid div:first-child { background: var(--board); border-color: var(--board); border-left-color: var(--orange); }
.stat-grid div:first-child b { color: var(--flap); }
.stat-grid b { font-weight: 900; font-size: 38px; }

@media (max-width: 1080px) {
	.sx-hero-in, .sx-split, .sx-faq, .sx-final-in { grid-template-columns: 1fr; gap: 40px; }
	.sx-strips .sx-strip { grid-template-columns: 90px minmax(0, 1fr); }
	.sx-strip-cmd { grid-column: 2; border-left: 0; border-top: 1px dashed var(--rule); padding: 10px 26px; }
	.sx-route { grid-template-columns: 1fr; gap: 28px; padding-left: 44px; }
	.sx-route::before { top: 12px; bottom: 12px; left: 11px; right: auto; border-top: 0; border-left: 3px dashed var(--ink); }
	.sx-wp { position: absolute; left: -44px; top: 0; }
	.sx-pass { grid-template-columns: 1fr; }
	.sx-pass-main { border-radius: 14px 14px 0 0; }
	.sx-pass-stub { border-radius: 0 0 14px 14px; border-left: 0; border-top: 2px dashed var(--rule); }
	.sx-pass-stub::before, .sx-pass-stub::after { top: -13px; bottom: auto; }
	.sx-pass-stub::before { left: -12px; } .sx-pass-stub::after { left: auto; right: -12px; }
	.sx-nav { display: none; }
	.sx-footer-grid { grid-template-columns: 1fr 1fr; }
	.app { grid-template-columns: 1fr; background: var(--paper); }
	.app-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--bay-2); }
	.admin-bar .app-side { height: auto; }
	.app-logo { padding: 4px 6px; }
	.app-nav { display: flex; flex-wrap: wrap; gap: 4px; }
	.app-nav a span { display: none; }
	.app-side-foot { display: none; }
	.app-top { padding: 0 16px; min-height: 64px; }
	.app-top h1 { font-size: 30px; }
	.app-content { padding: 16px; }
}
@media (max-width: 640px) {
	.sx-wrap { padding: 0 18px; }
	.sx-header-in { gap: 12px; height: 64px; }
	.sx-header-r .sx-link, .sx-header-r .sx-lang { display: none; }
	.sx-brand span:last-child { display: none; }
	.sx-hero { padding-top: 36px; }
	.sx-board { padding: 12px 10px; }
	.sx-board-cols { display: none; }
	.sx-board-rows li { gap: 8px; }
	.sx-board-rows li .sx-f:nth-child(1), .sx-board-rows li .sx-f:nth-child(3) { display: none; }
	.sx-f i { width: 12px; height: 19px; }
	.sx-f { font-size: 12px; }
	.sx-st { font-size: 11px; }
	.sx-strip-stats { grid-template-columns: 1fr 1fr; }
	.sx-strip-stats div:nth-child(3) { border-left: 0; }
	.sx-strip-stats div:nth-child(n+3) { border-top: 1px solid rgba(21,34,58,.22); }
	.sx-term dl div { grid-template-columns: 1fr; gap: 4px; }
	.sx-cabin-rows { grid-template-columns: 1fr 1fr; }
	.sx-pass-main { padding: 26px 22px; }
	.sx-pass-route b { font-size: 56px; }
	.sx-pass-fields { grid-template-columns: 1fr; }
	.sx-pass-fields div { border-left: 0; border-top: 1px solid var(--rule); }
	.sx-pass-fields div:first-child { border-top: 0; }
	.sx-pass-list { grid-template-columns: 1fr; }
	.sx-sec { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.sx-f i.flip, .sx-st-go { animation: none; }
}
.sx-footer .sx-logo-mark { box-shadow: 0 0 0 1px #4a5361; }
