/* Before you apply and the Help centre (review 30 Oct, U4): public pages in the applicant pages'
   design (assets/css/user/ua_design.css) - its colours, fonts and cards - read at a reading width. */
body.ga-page { margin: 0; padding-top: 0; background: var(--ua-ground); color: var(--text-color); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.ga-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--secondary-color); color: #fff; font-weight: 600; text-decoration: none; }
.ga-skip:focus { top: 12px; color: #fff; }

/* ---- the bar at the top ---- */
.ga-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 10px max(16px, calc((100vw - 1120px) / 2)); background: var(--ua-card); border-bottom: 1px solid var(--line); }
.ga-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--text-color); text-decoration: none; }
.ga-brand img { height: 38px; width: auto; flex: none; }
.ga-brand b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 18px; }
.ga-links > a:not(.ua-btn) { display: inline-flex; align-items: center; min-height: 32px; color: var(--p-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.ga-links > a:not(.ua-btn):hover { text-decoration: underline; }

/* ---- the page ---- */
.ga-main { max-width: 1120px; margin: 0 auto; padding: 28px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.ga-hero, .ga-sec { background: var(--ua-card); border: 1px solid var(--line); border-radius: 16px; }
.ga-hero { display: flex; flex-direction: column; gap: 14px; padding: 30px 32px 22px; }
.ga-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 38px) !important; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; color: var(--text-color); }
.ga-lede { margin: 0; max-width: 68ch; font-size: 16px; line-height: 1.65; color: var(--muted); }
.ga-toc { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.ga-toc a { color: var(--p-ink); font-weight: 600; text-decoration: none; }
.ga-toc a:hover { text-decoration: underline; }
.ga-sec { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; scroll-margin-top: 84px; }
.ga-sec h2 { margin: 0; font-size: 21px !important; line-height: 1.3; text-wrap: balance; color: var(--text-color); }
.ga-sec p { margin: 0; max-width: 72ch; line-height: 1.65; font-size: 15px; }
.ga-sub, .ga-muted { color: var(--muted); }
.ga-h3 { margin: 6px 0 0; font-size: 15px !important; color: var(--text-color); }
.ga-empty { margin: 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.ga-empty[hidden], .ga-sec[hidden] { display: none; }
.ga-sec .ga-empty { max-width: none; }

/* ---- which request fits: three questions, then the forms that fit ---- */
.ga-finder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 4px 0 0; }
.ga-finder fieldset { margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.ga-finder legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; font-size: 14px; font-weight: 650; color: var(--text-color); }
[dir="rtl"] .ga-finder legend { float: right; }
.ga-chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.ga-chip { position: relative; display: inline-flex; margin: 0; }
.ga-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ga-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--field-line, var(--line)); border-radius: 999px;
    background: var(--ua-card); color: var(--text-color); font-size: 13.5px; font-weight: 600; }
.ga-chip input:checked + span { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }
.ga-chip input:focus-visible + span { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.ga-count { color: var(--muted); font-size: 13.5px !important; font-variant-numeric: tabular-nums; }
.ga-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.ga-form { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ua-card); }
.ga-form[hidden] { display: none; }
.ga-form-group { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--p-ink); }
[dir="rtl"] .ga-form-group { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.ga-form h3 { margin: 0; font-size: 16px !important; color: var(--text-color); }
.ga-form p { font-size: 14px; color: var(--muted); }
.ga-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.5; }
.ga-facts li { display: flex; gap: 8px; align-items: flex-start; }
.ga-facts i { color: var(--p-ink); margin-top: 2px; flex: none; }

/* ---- before the first request: the steps, in their order ---- */
.ga-steps { list-style: none; counter-reset: ga-step; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.ga-steps > li { counter-increment: ga-step; position: relative; padding-bottom: 22px; padding-inline-start: 52px; }
.ga-steps > li:last-child { padding-bottom: 0; }
.ga-steps > li::before { content: counter(ga-step); position: absolute; inset-inline-start: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; background: var(--secondary-color); color: #fff; font-family: var(--ua-mono); font-size: 14px; font-weight: 600; }
.ga-steps > li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 16px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.ga-steps h3 { margin: 6px 0 6px; font-size: 16px !important; color: var(--text-color); }
.ga-docs h4 { margin: 14px 0 0; font-size: 14px !important; color: var(--text-color); }
.ga-docs ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ga-docs li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ga-doc-name { font-weight: 600; font-size: 14px; }
.ga-doc-kind { font-family: var(--ua-mono); font-size: 12px; color: var(--muted); }
.ga-doc-sample { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-inline-start: auto; color: var(--p-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.ga-doc-sample:hover { text-decoration: underline; }
.ga-doc-desc { flex-basis: 100%; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---- time, fees ---- */
.ga-closures { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: 14.5px; }
.ga-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.ga-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ga-table th { padding: 10px 14px; text-align: start; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--ua-ground); border-bottom: 1px solid var(--line); white-space: nowrap; }
[dir="rtl"] .ga-table th { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.ga-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ga-table tr:last-child td { border-bottom: 0; }

/* ---- questions, guides and the contact ---- */
.ga-ask-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ga-faq { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ua-card); }
.ga-faq details + details { border-top: 1px solid var(--line); }
.ga-faq details[hidden] { display: none; }
/* body.ua: the user pages' own "summary { display: list-item }" is outranked. */
body.ua .ga-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.ga-faq summary::-webkit-details-marker { display: none; }
.ga-faq summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-size: 13px; color: var(--muted); flex: none; margin-inline-start: auto; transition: transform .15s; }
.ga-faq details[open] > summary::after { transform: rotate(180deg); }
.ga-faq summary:hover { background: var(--p-soft); }
.ga-faq summary:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; }
.ga-body { padding: 0 16px 16px; }
.ga-body p, .ga-body li { font-size: 14.5px; line-height: 1.7; max-width: 72ch; }
.ga-body p { margin: 0; }
.ga-body p + p, .ga-body p + ul, .ga-body ul + p { margin-top: 8px; }
.ga-body ul { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.ga-body a { color: var(--p-ink); font-weight: 600; overflow-wrap: anywhere; }
.ga-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--p-ink); font-weight: 600; text-decoration: none; }
.ga-more:hover { text-decoration: underline; }
.ga-contact { padding: 16px 18px; border-radius: 12px; background: var(--s-soft, var(--ua-ground)); border: 1px solid var(--s-line, var(--line)); }
.ga-contact h3 { margin: 0 0 10px; font-size: 15px !important; color: var(--text-color); }
.ga-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.ga-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.ga-contact i { color: var(--p-ink); margin-top: 2px; flex: none; }
.ga-contact a { color: var(--p-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ga-contact a:hover { text-decoration: underline; }
.ga-sec > .ga-contact { width: fit-content; min-width: min(100%, 360px); }

/* ---- the Help centre's search and guides ---- */
.hc-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hc-search .ua-search { flex: 1 1 320px; max-width: 520px; }
.hc-kind { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; }
.hc-kind i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--p-soft); color: var(--p-ink); flex: none; }

/* ---- the accessibility statement: a reading width, its points as a list with marks ---- */
.ga-main--read { max-width: 880px; }
.ga-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ga-points li { display: flex; gap: 10px; align-items: flex-start; max-width: 72ch; font-size: 15px; line-height: 1.6; }
.ga-points i { flex: none; margin-top: 2px; color: var(--p-ink); font-size: 17px; }
.ga-points--gaps i { color: var(--muted); }
.ga-note { font-size: 13.5px !important; }

/* ---- the foot ---- */
.ga-foot { max-width: 1120px; margin: 0 auto; padding: 0 16px 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.ga-foot a { color: var(--p-ink); font-weight: 600; }

@media (max-width: 900px) {
    .ga-finder, .ga-ask-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .ga-brand b { display: none; }
    .ga-hero, .ga-sec { padding: 20px 18px; border-radius: 14px; }
    .ga-main { padding-top: 18px; }
    .ga-steps > li { padding-inline-start: 46px; }
}
