/*
 * Oman Visa — presentation study
 * Direction: Gulf editorial / quiet wayfinding.
 * Warm limestone surfaces, deep ink-blue, and restrained date-palm teal.
 * This file intentionally changes presentation only; keep the site's copy,
 * controls, IDs, and application behavior untouched.
 */

:root {
    color-scheme: light;
    --ov-paper: #f2f0e8;
    --ov-surface: #fffefa;
    --ov-surface-soft: #e9eee9;
    --ov-ink: #18333d;
    --ov-muted: #56686b;
    --ov-line: #d5ddd7;
    --ov-primary: #145d61;
    --ov-primary-strong: #0e494e;
    --ov-accent: #b47742;
    --ov-warning: #805a25;
    --ov-danger: #8d3d3d;
    --ov-success: #276653;
    --ov-radius: 18px;
    --ov-radius-small: 11px;
    --ov-shadow: 0 18px 48px rgba(28, 49, 48, .09);
    --ov-shadow-small: 0 5px 18px rgba(28, 49, 48, .07);
    --ov-font: "Noto Sans Arabic", "Geeza Pro", "Tahoma", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--ov-paper);
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 8% 4%, rgba(180, 119, 66, .075), transparent 32rem),
        linear-gradient(180deg, #f7f5ee 0%, var(--ov-paper) 50%, #eceee8 100%);
    color: var(--ov-ink);
    font-family: var(--ov-font);
    font-size: 16px;
    line-height: 1.7;
    text-align: start;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a,
summary,
label[for],
input[type="radio"],
input[type="checkbox"] {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--ov-primary);
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--ov-primary-strong);
}

:focus-visible {
    outline: 3px solid #b47742 !important;
    outline-offset: 3px;
}

::selection {
    background: #c8dfd8;
    color: #143a3d;
}

/* Shared page frame */
.container,
header,
main,
footer {
    width: min(100% - 32px, 880px);
    margin-inline: auto;
}

.container {
    padding: 32px 0 56px;
}

header {
    padding-block: 18px;
}

.header {
    position: relative;
    margin: 22px 0 26px;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 24px;
    background:
        linear-gradient(120deg, rgba(20, 93, 97, .97), rgba(24, 65, 70, .96));
    box-shadow: 0 16px 36px rgba(17, 61, 64, .17);
    color: #fffefa;
    text-align: start;
    overflow: hidden;
}

.header::after {
    position: absolute;
    inset-inline-end: -38px;
    bottom: -96px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 49px rgba(255,255,255,.025);
    content: "";
    pointer-events: none;
}

.header h1,
#pageTitle {
    position: relative;
    z-index: 1;
    margin: 0;
    color: inherit;
    font-size: clamp(1.55rem, 6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.035em;
    text-shadow: none;
}

.header p {
    position: relative;
    z-index: 1;
    max-width: 58ch;
    margin: 10px 0 0;
    color: rgba(255, 254, 250, .84);
    font-size: clamp(.98rem, 2.8vw, 1.1rem);
}

/* Consistent, quiet language control */
.language-switcher {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    inset-inline-end: auto;
    right: max(12px, env(safe-area-inset-right));
    left: auto;
    z-index: 1100;
    width: max-content;
    max-width: calc(100vw - 24px);
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(213, 221, 215, .9);
    border-radius: 999px;
    background: rgba(255, 254, 250, .95);
    box-shadow: var(--ov-shadow-small);
    backdrop-filter: blur(12px);
}

.lang-btn,
.language button {
    min-height: 40px;
    padding: 7px 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ov-muted);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.lang-btn.active,
.language button:focus-visible {
    background: var(--ov-primary);
    color: #fffefa;
}

.lang-btn:hover,
.language button:hover {
    background: var(--ov-surface-soft);
    color: var(--ov-ink);
}

.lang-btn.active:hover {
    background: var(--ov-primary-strong);
    color: #fffefa;
}

.language {
    align-items: center;
    gap: 4px;
}

.language button {
    border: 1px solid var(--ov-line);
    background: var(--ov-surface);
}

/* Primary surfaces */
.card,
.panel {
    margin: 18px 0;
    padding: clamp(20px, 5vw, 36px);
    border: 1px solid var(--ov-line);
    border-radius: var(--ov-radius);
    background: var(--ov-surface);
    box-shadow: var(--ov-shadow);
}

.card h2,
.panel h2 {
    margin: 0 0 14px;
    color: var(--ov-primary-strong);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.card h3,
.panel h3 {
    margin: 24px 0 11px;
    color: var(--ov-ink);
    font-size: 1.15rem;
    font-weight: 750;
    line-height: 1.45;
}

.card p,
.panel p {
    color: #44595c;
    line-height: 1.85;
}

.card ul,
.panel ul {
    padding-inline-start: 1.35em;
    color: #44595c;
    line-height: 1.9;
}

.card li,
.panel li {
    padding-inline-start: .2em;
    margin-block: 6px;
}

.step-header {
    position: relative;
    overflow: hidden;
    margin: 0 0 26px;
    padding: 22px clamp(18px, 4vw, 28px);
    border: 0;
    border-radius: 15px;
    background: var(--ov-primary);
    color: #fffefa;
    text-align: start;
}

.step-header::before {
    position: absolute;
    inset-inline-end: -30px;
    top: -56px;
    width: 132px;
    height: 132px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    content: "";
}

.step-title {
    position: relative;
    font-size: clamp(1.2rem, 4.5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.35;
}

.step-description {
    position: relative;
    margin-top: 6px;
    color: rgba(255,254,250,.82);
    line-height: 1.65;
}

/* The primary homepage is a service workspace, not a government portal */
.service-disclaimer {
    margin: 12px 0;
    padding: 13px 16px;
    border: 1px solid #d8c6a9;
    border-inline-start: 4px solid var(--ov-accent);
    border-radius: var(--ov-radius-small);
    background: #f5efe4;
    color: #574a3b;
    font-size: .92rem;
    line-height: 1.7;
}

.fee-notice {
    margin: 0 0 14px;
    padding: 15px 17px;
    border: 1px solid rgba(255,255,255,.12);
    border-inline-start: 4px solid #d6a66d;
    border-radius: 13px;
    background: #244f52;
    color: #fffefa;
    line-height: 1.8;
}

.track-shortcut {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    inset-inline-start: auto;
    left: max(12px, env(safe-area-inset-left));
    right: auto;
    z-index: 1000;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--ov-line);
    border-radius: 999px;
    background: var(--ov-surface);
    color: var(--ov-primary-strong);
    font-weight: 750;
    box-shadow: var(--ov-shadow-small);
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.track-shortcut:hover {
    transform: translateY(-1px);
    background: #f4f6ef;
    box-shadow: var(--ov-shadow);
}

.tracking-card {
    margin-top: 18px;
    padding: clamp(20px, 4vw, 28px);
    border-inline-start: 4px solid var(--ov-accent);
}

.tracking-card h2 {
    margin-bottom: 6px !important;
}

.tracking-form {
    align-items: stretch;
    gap: 9px;
}

/* Forms: generous targets, clear focus, dependable LTR data entry */
.form-group {
    margin-bottom: 21px;
}

.form-group label,
.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--ov-ink);
    font-size: .98rem;
    font-weight: 750;
}

.form-group input,
.form-group select,
.form-group textarea,
.tracking-form input,
.contact-form input,
.contact-form textarea,
.payment-dialog input,
.visa-assistant-form input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #c8d3ce;
    border-radius: var(--ov-radius-small);
    background: #fffefa;
    color: var(--ov-ink);
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: inset 0 1px 2px rgba(24, 51, 61, .025);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.tracking-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.payment-dialog input:focus,
.visa-assistant-form input:focus {
    outline: none;
    border-color: var(--ov-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(20, 93, 97, .14);
}

.form-group input::placeholder,
.tracking-form input::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #81908e;
    opacity: 1;
}

/* Keep identifiers, email, phone and dates legible in either interface language */
input[type="email"],
input[type="tel"],
input[type="date"],
#passportNumber,
#trackRequestId,
#trackContact,
#contactPhone,
.tracking-form input {
    direction: ltr;
    text-align: left;
}

input[type="file"] {
    max-width: 100%;
}

.radio-group {
    flex-wrap: wrap;
    gap: 12px;
}

.radio-option {
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid var(--ov-line);
    border-radius: 10px;
    background: #f8f8f2;
}

.radio-option input,
.checkbox-group input {
    width: 18px !important;
    height: 18px;
    accent-color: var(--ov-primary);
}

.checkbox-group {
    align-items: flex-start;
    gap: 10px;
    line-height: 1.65;
}

.processing-type-fieldset {
    margin: 0;
    padding: 0;
}

.processing-type-fieldset legend {
    margin-bottom: 10px;
    color: var(--ov-ink);
    font-weight: 800;
}

.processing-cards {
    gap: 12px;
}

.processing-card {
    min-height: 142px;
    padding: 18px;
    border: 1px solid #cbd7d1;
    border-radius: 14px;
    background: #fbfcf7;
    color: var(--ov-ink);
}

.processing-card:hover {
    border-color: var(--ov-primary);
    background: #f6faf5;
}

.processing-card.selected,
.processing-card:has(input:checked) {
    border-color: var(--ov-primary);
    background: #edf5ef;
    box-shadow: inset 0 0 0 1px var(--ov-primary), 0 0 0 3px rgba(20, 93, 97, .09);
}

.processing-card-price {
    color: var(--ov-primary-strong);
    font-size: 1.25rem;
    font-weight: 850;
}

.processing-card-time,
.upload-guidance {
    color: var(--ov-muted);
}

.processing-price-summary,
.info-box,
.checkout-note {
    border: 1px solid #cbdcd5;
    border-radius: 12px;
    background: #edf4ef;
    color: #254c47;
    line-height: 1.75;
}

.info-box {
    padding: 17px 18px;
}

.info-box h3 {
    margin-top: 0;
    color: #254c47;
}

.processing-price-summary {
    padding: 13px 15px;
}

.file-upload {
    padding: 26px 18px;
    border: 2px dashed #8baea4;
    border-radius: 14px;
    background: #f7faf5;
    color: var(--ov-primary-strong);
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--ov-primary);
    background: #edf5ef;
}

.file-preview {
    border: 1px solid var(--ov-line);
    border-radius: 9px;
    background: #f6f6ef;
    overflow-wrap: anywhere;
}

.progress-bar {
    height: 9px;
    border-radius: 999px;
    background: #e1e7e1;
}

.progress-fill {
    border-radius: inherit;
    background: var(--ov-primary);
}

.navigation {
    gap: 10px;
    border-color: var(--ov-line);
}

.btn,
.back-link,
.whatsapp-btn {
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 11px;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn {
    margin: 4px 0;
}

.btn-primary,
.back-link {
    border: 1px solid var(--ov-primary);
    background: var(--ov-primary);
    color: #fffefa;
    box-shadow: 0 5px 13px rgba(20, 93, 97, .15);
}

.btn-primary:hover,
.back-link:hover {
    transform: translateY(-1px);
    border-color: var(--ov-primary-strong);
    background: var(--ov-primary-strong);
    color: #fffefa;
    box-shadow: 0 8px 18px rgba(20, 93, 97, .18);
}

.btn-secondary {
    border: 1px solid #cbd5d0;
    background: #f2f4ef;
    color: #3e5556;
}

.btn-secondary:hover {
    background: #e7ece6;
}

.btn-success {
    border: 1px solid #276653;
    background: #276653;
    color: #fffefa;
}

.btn-large {
    min-height: 56px;
    padding: 16px 26px;
    font-size: 1.08rem;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.agency-card {
    border: 1px solid var(--ov-line);
    border-radius: 14px;
    background: #fffefa;
}

.agency-card:hover,
.agency-card.selected {
    border-color: var(--ov-primary);
    background: #f3f7f1;
    box-shadow: var(--ov-shadow-small);
}

.agency-price,
.success-message {
    color: var(--ov-success);
}

.request-id {
    border: 1px solid #91b8ad;
    border-radius: 13px;
    background: #edf4ef;
}

.request-id h3 {
    color: var(--ov-primary);
}

.request-id p {
    overflow-wrap: anywhere;
    color: var(--ov-ink);
}

/* Tracking timeline: a legible status hierarchy without changing labels */
.status-timeline {
    border-color: var(--ov-line);
}

.status-timeline h4 {
    color: var(--ov-primary-strong);
}

.timeline-item.is-complete {
    color: var(--ov-success);
}

.timeline-item.is-current {
    color: var(--ov-primary-strong);
}

.timeline-item.is-current .timeline-marker {
    border-color: var(--ov-primary);
    background: var(--ov-primary);
}

.timeline-outcomes .timeline-item {
    border-color: var(--ov-line);
    background: #fbfcf7;
}

.timeline-unrecognized {
    color: var(--ov-warning);
}

.error-message {
    border: 1px solid #e3bdb7;
    border-radius: 11px;
    background: #fbefeb;
    color: var(--ov-danger);
}

.loading {
    color: var(--ov-muted);
}

.spinner {
    border-color: #dce6df;
    border-top-color: var(--ov-primary);
}

/* FAQ and legal pages share the same editorial rhythm */
body:has(.faq-item) {
    color: var(--ov-ink);
}

body:has(.faq-item) header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

body:has(.faq-item) header nav,
body:has(.faq-item) footer nav,
body:has(.panel) header nav,
body:has(.panel) footer nav,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body:has(.faq-item) header nav a,
body:has(.faq-item) footer nav a,
body:has(.panel) header nav a,
body:has(.panel) footer nav a,
.footer-links a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ov-primary-strong);
    font-size: .93rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

body:has(.faq-item) header nav a:hover,
body:has(.faq-item) footer nav a:hover,
body:has(.panel) header nav a:hover,
body:has(.panel) footer nav a:hover,
.footer-links a:hover {
    border-color: var(--ov-line);
    background: #fffefa;
    color: var(--ov-primary);
}

.panel {
    max-width: 880px;
}

.panel h1 {
    margin: 0 0 12px;
    color: var(--ov-primary-strong);
    font-size: clamp(1.6rem, 6vw, 2.3rem);
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.faq-item {
    margin: 12px 0;
    border: 1px solid var(--ov-line);
    border-radius: 13px;
    background: #fbfcf7;
    transition: border-color .18s ease, background-color .18s ease;
}

.faq-item[open] {
    border-color: #9dbcb0;
    background: #f4f8f2;
}

.faq-item summary {
    min-height: 54px;
    padding: 15px 18px;
    color: var(--ov-ink);
    font-weight: 750;
    line-height: 1.55;
    cursor: pointer;
}

.faq-item summary::marker {
    color: var(--ov-accent);
}

.faq-item p {
    padding: 0 18px 17px;
    color: #4b5f60;
}

.notice {
    margin-block: 16px;
    border: 1px solid #d8c6a9;
    border-inline-start: 4px solid var(--ov-accent);
    border-radius: 11px;
    background: #f5efe4;
    color: #574a3b;
    line-height: 1.8;
}

.footer {
    width: 100%;
    margin-top: 36px;
    padding: 26px max(16px, calc((100% - 880px) / 2)) 30px;
    border-top: 1px solid var(--ov-line);
    background: #e7ebe4;
    color: var(--ov-ink);
    text-align: center;
}

.footer-links {
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--ov-primary-strong);
}

.footer .service-disclaimer {
    max-width: 880px;
    margin: 12px auto;
    text-align: start;
}

.footer-copyright {
    color: #61706d;
    font-size: .87rem;
}

/* Contact surface */
.contact-info {
    border: 1px solid var(--ov-line);
    background: #f5f6ef;
}

.contact-item a {
    color: var(--ov-primary);
    overflow-wrap: anywhere;
}

.note {
    border-inline-start: 4px solid var(--ov-accent);
    border-radius: 0 11px 11px 0;
    background: #f5efe4;
    color: #574a3b;
}

.contact-form {
    gap: 15px;
}

.contact-form label {
    margin: 0;
}

.contact-form label > span {
    display: inline-block;
    margin-bottom: 7px;
}

.contact-form textarea {
    min-height: 145px;
    resize: vertical;
}

.form-status:not(:empty) {
    padding: 12px 14px;
    border-radius: 10px;
}

/* Checkout remains clear and contained; no payment behavior is altered */
.payment-modal {
    padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
    background: rgba(18, 40, 43, .72);
    backdrop-filter: blur(5px);
}

.payment-dialog {
    border: 1px solid var(--ov-line);
    border-radius: 18px;
    background: var(--ov-surface);
    box-shadow: 0 24px 80px rgba(12, 38, 40, .3);
}

.payment-dialog h2 {
    color: var(--ov-primary-strong);
}

.checkout-frame {
    border-color: var(--ov-line);
}

/* Embedded assistant and consent UI */
.visa-assistant-launcher {
    border: 1px solid rgba(255,255,255,.18);
    background: var(--ov-primary);
    box-shadow: 0 8px 24px rgba(16, 58, 61, .25);
}

.visa-assistant-panel {
    border-color: var(--ov-line);
    border-radius: 18px;
    background: var(--ov-surface);
    color: var(--ov-ink);
    box-shadow: 0 18px 56px rgba(16, 45, 48, .2);
}

.visa-assistant-header {
    background: var(--ov-primary);
}

.visa-assistant-message {
    background: #edf3ee;
}

.visa-assistant-message[data-from="user"] {
    background: #dfeee6;
}

.visa-assistant-quick-replies button,
.visa-assistant-form button {
    border-color: #c5d4cd;
    color: var(--ov-primary-strong);
}

.visa-assistant-form button {
    border-color: var(--ov-primary);
    background: var(--ov-primary);
    color: #fffefa;
}

#oman-cookie-consent {
    border-color: var(--ov-line);
    border-radius: 16px;
    background: var(--ov-surface);
    color: var(--ov-ink);
    box-shadow: 0 14px 42px rgba(16, 45, 48, .2);
    font-family: var(--ov-font);
}

#oman-cookie-consent button,
#oman-cookie-settings {
    min-height: 44px;
    border-color: var(--ov-primary);
    border-radius: 10px;
    color: var(--ov-primary-strong);
    font-family: var(--ov-font);
}

#oman-cookie-consent button[data-choice="all"] {
    background: var(--ov-primary);
    color: #fffefa;
}

#oman-cookie-consent a {
    color: var(--ov-primary);
}

#oman-cookie-settings {
    background: var(--ov-surface);
    box-shadow: var(--ov-shadow-small);
}

/* Subtle entrance, limited to structural surfaces */
@media (prefers-reduced-motion: no-preference) {
    .header,
    .card,
    .panel {
        animation: ov-arrive .42s ease both;
    }

    .card:nth-of-type(2),
    .faq-item:nth-of-type(2) {
        animation-delay: .04s;
    }

    @keyframes ov-arrive {
        from { opacity: .72; transform: translateY(7px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 700px) {
    .container,
    header,
    main {
        width: min(100% - 24px, 560px);
    }

    .container {
        padding-top: 76px;
        padding-bottom: 34px;
    }

    .header {
        margin: 12px 0 16px;
        padding: 23px 19px;
        border-radius: 19px;
    }

    .language-switcher {
        top: max(10px, env(safe-area-inset-top));
        inset-inline-end: auto;
        right: 10px;
        left: auto;
    }

    .lang-btn,
    .language button {
        min-height: 38px;
        padding-inline: 11px;
    }

    .track-shortcut {
        top: max(10px, env(safe-area-inset-top));
        inset-inline-start: auto;
        left: 10px;
        right: auto;
        min-height: 42px;
        padding-inline: 11px;
        font-size: .9rem;
    }

    .card,
    .panel {
        margin-block: 13px;
        padding: 20px 17px;
        border-radius: 16px;
    }

    .step-header {
        margin-bottom: 20px;
        padding: 18px 16px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .tracking-form {
        flex-direction: column;
    }

    .tracking-form .btn {
        width: 100%;
    }

    .tracking-card {
        padding: 18px 16px;
    }

    .processing-cards {
        grid-template-columns: 1fr;
    }

    .processing-card {
        min-height: 0;
    }

    .timeline-outcomes {
        grid-template-columns: 1fr;
    }

    .timeline-outcomes .timeline-item {
        min-height: 48px;
    }

    .navigation {
        align-items: stretch;
        margin-top: 22px;
        padding-top: 14px;
    }

    .navigation .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 12px;
    }

    .footer {
        margin-top: 24px;
        padding: 22px 12px 26px;
    }

    .footer {
        padding-bottom: calc(176px + env(safe-area-inset-bottom));
    }

    .footer-links {
        gap: 3px;
    }

    .visa-assistant-launcher {
        bottom: calc(112px + env(safe-area-inset-bottom));
    }

    body:has(.faq-item) header {
        align-items: flex-start;
    }

    body:has(.faq-item) header nav {
        gap: 2px;
    }

    body:has(.faq-item) header nav a,
    body:has(.faq-item) footer nav a,
    body:has(.panel) header nav a,
    body:has(.panel) footer nav a {
        padding-inline: 9px;
        font-size: .88rem;
    }
}

@media (max-width: 390px) {
    .container,
    header,
    main {
        width: calc(100% - 20px);
    }

    .header h1,
    #pageTitle {
        font-size: 1.5rem;
    }

    .track-shortcut {
        font-size: .82rem;
        padding-inline: 8px;
    }

    .btn,
    .back-link {
        padding-inline: 16px;
    }

    .radio-group {
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
