/* WESTACE-BUILD-1.0 | saloon noir theme: violet, gold and rose on espresso black. If this line is missing on the server, an old file is cached. */
:root {
    --ink: #0E0A12;
    --ink-2: #160F1D;
    --card: #1B1224;
    --card-2: #231730;
    --plum: #2A1340;
    --violet: #6B2FB8;
    --violet-hi: #9153E6;
    --rose: #C2185B;
    --rose-hi: #E0407E;
    --gold: #E8B53A;
    --gold-soft: #FFE39A;
    --gold-deep: #B7801E;
    --text: #EDE6F5;
    --muted: #B9ACCB;
    --line: rgba(255, 255, 255, 0.09);
    --line-gold: rgba(232, 181, 58, 0.32);
    --font-display: "Rye", Georgia, "Times New Roman", serif;
    --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
    --radius-l: 22px;
    --radius-m: 14px;
    --radius-s: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.72;
    color: var(--text);
    background:
        radial-gradient(1000px 520px at 88% -120px, rgba(107, 47, 184, 0.42), rgba(107, 47, 184, 0) 70%),
        radial-gradient(760px 460px at -6% 34%, rgba(194, 24, 91, 0.18), rgba(194, 24, 91, 0) 70%),
        radial-gradient(900px 600px at 50% 110%, rgba(232, 181, 58, 0.10), rgba(232, 181, 58, 0) 70%),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-soft); text-decoration-color: rgba(232, 181, 58, 0.45); text-underline-offset: 3px; }
a:hover { color: #FFFFFF; text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--gold); color: var(--ink); padding: 8px 14px; font-weight: 800; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 18px; }

/* ===== Header ===== */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 6, 14, 0.88);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-gold);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.header.scrolled { background: rgba(10, 6, 14, 0.97); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.logo { display: flex; flex-shrink: 0; }
.logo-img { width: auto; height: 46px; }

.header-nav { display: flex; gap: 4px; margin: 0 auto; }
.header-nav a {
    position: relative;
    font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
    color: #CFC3DF; text-decoration: none; padding: 10px 14px;
    transition: color 0.2s ease;
}
.header-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--rose-hi));
    transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.header-nav a:hover { color: #FFFFFF; }
.header-nav a:hover::after { transform: scaleX(1); }

.auth { display: flex; gap: 10px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 11px 24px;
    border-radius: var(--radius-s);
    font-family: var(--font-body); font-weight: 800; font-size: 15px; line-height: 1.1;
    letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
    background: linear-gradient(180deg, #F6CF6A 0%, var(--gold) 50%, var(--gold-deep) 100%);
    color: #1A0E05;
    box-shadow: 0 8px 22px rgba(232, 181, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn--primary:hover { color: #1A0E05; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232, 181, 58, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn--ghost { background: rgba(255, 255, 255, 0.02); color: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28); }
.btn--ghost:hover { color: #FFFFFF; box-shadow: inset 0 0 0 2px var(--gold); transform: translateY(-2px); }

/* ===== Hero carousel ===== */
.banner-carousel-wrapper { margin-top: 22px; }
.banner-carousel {
    position: relative; width: 100%; aspect-ratio: 3 / 1; min-height: 300px;
    overflow: hidden; background: var(--plum);
    border-radius: var(--radius-l);
    box-shadow: 0 0 0 1px var(--line-gold), 0 30px 70px rgba(0, 0, 0, 0.55);
}
.banner-carousel__viewport { position: absolute; inset: 0; }
.banner-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-slide__image { position: absolute; inset: 0; }
.banner-slide__image img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: var(--pos, 50%) 50%;
    transform: scale(1.04); transition: transform 7s ease;
}
.banner-slide.is-active .banner-slide__image img { transform: scale(1); }
.banner-slide__image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(14, 6, 20, 0.92) 0%, rgba(20, 8, 32, 0.66) 32%, rgba(20, 8, 32, 0.1) 55%, rgba(20, 8, 32, 0) 100%);
}
.banner-slide__content {
    position: relative; z-index: 2; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    max-width: 610px; padding: 0 0 0 56px;
}
.banner-slide__content::before {
    content: "UK Review"; display: inline-block; margin-bottom: 16px;
    padding: 5px 14px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(14, 6, 20, 0.45);
    color: #FFFFFF; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.banner-slide__title {
    font-family: var(--font-display); font-weight: 400;
    font-size: 54px; line-height: 1.08; color: #FFFFFF;
    margin-bottom: 14px; text-shadow: 0 3px 0 var(--violet), 0 10px 24px rgba(0, 0, 0, 0.5);
}
p.banner-slide__title { font-size: 42px; color: var(--gold-soft); }
.banner-slide__content p:not(.banner-slide__title) {
    font-size: 18px; line-height: 1.55; color: #E4DAF0;
    margin-bottom: 24px; max-width: 27em;
}
.banner-dots {
    position: absolute; z-index: 3; left: 56px; bottom: 22px;
    display: flex; gap: 8px;
}
.banner-dot {
    width: 10px; height: 10px; border: 0; padding: 0; cursor: pointer; border-radius: 999px;
    background: rgba(255, 255, 255, 0.4); transition: width 0.3s ease, background-color 0.3s ease;
}
.banner-dot.is-active { background: var(--gold); width: 36px; }

/* ===== Content ===== */
.container.page-content { padding-top: 30px; padding-bottom: 70px; }
.content-box {
    position: relative;
    background: linear-gradient(180deg, var(--card) 0%, var(--ink-2) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 54px 60px 64px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.content-box::before {
    content: ""; position: absolute; left: 60px; right: 60px; top: -1px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--rose-hi), transparent);
    border-radius: 0 0 4px 4px;
}
.page-text { counter-reset: section; }
.page-text p { margin: 0 0 18px; }
.page-text strong { color: #FFFFFF; }
.page-text > p:first-child { font-size: 20px; line-height: 1.68; color: #F4EEFA; }
.page-text > p:first-child::first-letter {
    float: left; font-family: var(--font-display); font-weight: 400;
    font-size: 66px; line-height: 0.9; padding: 8px 12px 0 0; color: var(--gold);
    text-shadow: 0 3px 0 var(--violet);
}
/* Signature element: section headings carry a numbered gold diamond */
.page-text h2 {
    counter-increment: section;
    display: flex; align-items: center; gap: 18px;
    font-family: var(--font-body); font-weight: 800;
    font-size: 34px; line-height: 1.18; color: #FFFFFF; letter-spacing: -0.01em;
    margin: 70px 0 22px;
    scroll-margin-top: 110px;
}
.page-text h2::before {
    content: counter(section, decimal-leading-zero);
    flex-shrink: 0; display: grid; place-items: center;
    width: 52px; height: 52px;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    font-family: var(--font-body); font-size: 15px; font-weight: 800; color: #1A0E05;
    background: linear-gradient(160deg, var(--gold-soft) 0%, var(--gold) 50%, var(--gold-deep) 100%);
}
.page-text h3 {
    font-family: var(--font-body); font-weight: 700;
    font-size: 22px; line-height: 1.3; color: var(--gold-soft);
    margin: 30px 0 8px;
}
.page-text ul, .page-text ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
.page-text ul li, .page-text ol li { position: relative; padding-left: 36px; margin-bottom: 10px; }
.page-text ul li::before {
    content: "\2660"; position: absolute; left: 8px; top: 0;
    color: var(--gold); font-size: 16px;
}
.page-text ol { counter-reset: step; }
.page-text ol li { counter-increment: step; }
.page-text ol li::before {
    content: counter(step); position: absolute; left: 0; top: 0.12em;
    width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center;
    background: var(--violet); color: #FFFFFF; font-size: 14px; font-weight: 800;
}

/* Navigation (table of contents) */
.toc {
    margin: 30px 0 10px;
    background: linear-gradient(135deg, var(--plum) 0%, #3A1656 60%, #4A1440 100%);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-m);
    color: var(--text);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}
.toc__title {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--gold-soft);
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after {
    content: ""; margin-left: auto; width: 11px; height: 11px;
    border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
    transform: rotate(45deg) translateY(-3px); transition: transform 0.25s ease;
}
.toc[open] .toc__title::after { transform: rotate(-135deg) translateY(-3px); }
.toc__icon {
    width: 22px; height: 18px; flex-shrink: 0;
    background:
        linear-gradient(var(--gold), var(--gold)) 0 0 / 22px 2px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 0 8px / 16px 2px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 0 16px / 10px 2px no-repeat;
}
.page-text .toc__list { margin: 0; padding: 4px 24px 22px 60px; columns: 2; column-gap: 40px; list-style: decimal; }
.page-text .toc__list li { padding-left: 0; margin-bottom: 8px; break-inside: avoid; color: var(--gold); }
.page-text .toc__list li::before { content: none; }
.toc__list a { color: #F1EAF8; text-decoration: none; font-weight: 600; }
.toc__list a:hover { color: var(--gold-soft); text-decoration: underline; }

/* Image beside text */
.media-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    margin: 26px 0 30px;
}
.media-row__figure { position: relative; }
.media-row__figure::before {
    content: ""; position: absolute; inset: 14px -14px -14px 14px;
    border: 2px solid var(--gold); border-radius: var(--radius-m);
    opacity: 0.8;
}
.media-row--flip .media-row__figure::before { inset: 14px 14px -14px -14px; border-color: var(--rose-hi); }
.media-row__figure img {
    position: relative;
    width: 100%; height: auto; aspect-ratio: 16 / 9;
    border-radius: var(--radius-m);
    background: var(--plum);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.media-row--flip .media-row__figure { order: 2; }
.media-row__text > :first-child { margin-top: 0; }
.media-row__text > :last-child { margin-bottom: 0; }

/* Tables */
.table-scroll {
    overflow-x: auto; margin: 24px 0 32px;
    border-radius: var(--radius-m); background: var(--card-2);
    box-shadow: 0 0 0 1px var(--line), 0 16px 34px rgba(0, 0, 0, 0.3);
}
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 560px; }
.table-scroll th {
    background: linear-gradient(90deg, var(--violet) 0%, #4E1F8A 100%); color: #FFFFFF;
    font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
    text-align: left; padding: 15px 18px;
}
.table-scroll td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: #E4DAF0; }
.table-scroll tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }
.table-scroll tbody tr:hover td { background: rgba(232, 181, 58, 0.06); }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll td:first-child { color: var(--gold-soft); font-weight: 700; white-space: nowrap; }

/* Promo strip */
.promo-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    margin: 40px 0; padding: 26px 32px;
    border-radius: var(--radius-m);
    background:
        radial-gradient(420px 160px at 100% 0%, rgba(232, 181, 58, 0.3), rgba(232, 181, 58, 0) 70%),
        linear-gradient(120deg, var(--plum) 0%, var(--violet) 55%, var(--rose) 100%);
    color: #FFFFFF;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.page-text .promo-strip__text { margin: 0; }
.promo-strip__text { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.3; }
.promo-strip__text span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 15px; color: #F0E4FA; margin-top: 6px; }

/* FAQ */
.faq { margin-top: 70px; }
.faq .faq__title { margin-top: 0; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
    background: var(--card-2); border-radius: var(--radius-m);
    border-left: 4px solid transparent;
    box-shadow: 0 0 0 1px var(--line);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq__item.open { border-left-color: var(--gold); box-shadow: 0 0 0 1px var(--line-gold), 0 14px 28px rgba(0, 0, 0, 0.35); }
.page-text .faq__q { margin: 0; font-size: inherit; }
.faq__question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: none; border: 0; color: #FFFFFF; cursor: pointer; text-align: left;
    font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1.4;
    padding: 18px 22px;
}
.faq__question:hover { color: var(--gold-soft); }
.faq__icon {
    position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px;
    background: var(--violet);
}
.faq__icon::before, .faq__icon::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 12px; height: 2px; background: #FFFFFF;
    transform: translate(-50%, -50%); transition: transform 0.25s ease;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.open .faq__icon { background: var(--gold-deep); }
.faq__item.open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer { overflow: hidden; transition: height 0.3s ease; }
.faq__answer p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.notfound { text-align: center; padding: 40px 0; }
.notfound h1 { font-family: var(--font-display); font-weight: 400; font-size: 44px; color: var(--gold-soft); margin-bottom: 16px; }

/* ===== Footer ===== */
.footer {
    background: rgba(8, 5, 11, 0.94); border-top: 1px solid var(--line-gold);
    padding: 46px 0 34px; color: #A99CBB; font-size: 15px; line-height: 1.6;
}
.footer__inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 18px; }
.footer__brand img { width: auto; height: 46px; }
.footer__age {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--rose-hi); color: #FFFFFF; font-weight: 800; font-size: 14px;
}
.footer__copy { max-width: 72ch; margin: 0 auto; }
.footer__nav-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer__nav-list a { color: #E6DDF1; text-decoration: none; font-weight: 600; }
.footer__nav-list a:hover { color: var(--gold); text-decoration: underline; }
.footer__copy a { color: var(--gold-soft); }
.footer__legal { font-size: 14px; color: #857899; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .header-nav { display: none; }
    .auth { margin-left: auto; }
    .content-box { padding: 44px 34px 50px; }
    .content-box::before { left: 34px; right: 34px; }
    .media-row { gap: 34px; }
    .banner-slide__title { font-size: 44px; }
    p.banner-slide__title { font-size: 34px; }
}
@media (max-width: 768px) {
    body { font-size: 17px; }
    .container { padding: 0 10px; }
    .header__inner { min-height: 66px; gap: 12px; }
    .logo-img { height: 32px; }
    .auth .btn { min-height: 40px; padding: 8px 14px; font-size: 13px; }
    .banner-carousel { aspect-ratio: auto; height: 500px; border-radius: var(--radius-m); }
    .banner-slide__image::after { background: linear-gradient(0deg, rgba(14, 6, 20, 0.97) 0%, rgba(20, 8, 32, 0.82) 42%, rgba(20, 8, 32, 0) 66%); }
    .banner-slide__image img { object-position: var(--pos, 50%) 0%; }
    .banner-slide__content { justify-content: flex-end; padding: 0 18px 50px; max-width: none; }
    .banner-slide__content::before { display: none; }
    .banner-slide__title { font-size: 34px; }
    p.banner-slide__title { font-size: 26px; }
    .banner-slide__content p:not(.banner-slide__title) { font-size: 15px; margin-bottom: 14px; }
    .banner-dots { left: 18px; bottom: 18px; }
    .container.page-content { padding-top: 16px; padding-bottom: 46px; }
    .content-box { padding: 30px 16px 36px; border-radius: var(--radius-m); }
    .content-box::before { left: 16px; right: 16px; }
    .page-text h2 { font-size: 26px; margin-top: 52px; gap: 12px; }
    .page-text h2::before { width: 42px; height: 42px; font-size: 13px; }
    .page-text > p:first-child { font-size: 18px; }
    .page-text > p:first-child::first-letter { font-size: 54px; }
    .page-text .toc__list { columns: 1; padding-left: 44px; }
    .media-row { grid-template-columns: 1fr; gap: 30px; }
    .media-row--flip .media-row__figure { order: 0; }
    .media-row__figure::before, .media-row--flip .media-row__figure::before { inset: 10px -8px -10px 8px; }
    .table-scroll table { min-width: 0; font-size: 15px; }
    .table-scroll td:first-child { white-space: normal; }
    .table-scroll th, .table-scroll td { padding: 10px 12px; }
    .promo-strip { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
    .promo-strip__text { font-size: 20px; }
    .faq__question { font-size: 16px; padding: 15px; }
    .faq__answer p { padding: 0 15px 16px; }
    .footer__brand img { height: 32px; }
}
@media (max-width: 420px) {
    .btn--ghost { display: none; }
    .container { padding: 0 8px; }
    .content-box { padding: 26px 12px 30px; }
    .logo-img { height: 28px; }
}
