/* ==========================================================================
   The District Advocates Bar Association, Jaipur: public site theme
   Blue / white only, Poppins body + Roboto headings. Layered on Bootstrap 5.
   ========================================================================== */

:root {
    --brand: #1e56c7;
    --brand-dark: #1745a3;
    --brand-light: #8db8ff;
    --brand-soft: #e9f1fe;
    --navy: #0f2f66;
    --navy-2: #143a7a;
    --ink: #0f2f66;
    --text: #2c4166;
    --muted: #5a6e92;
    --bg: #ffffff;
    --bg-alt: #f2f6fd;
    --line: #dbe5f4;
    --overlay: rgba(15, 47, 102, 0.8);
    --radius: 4px;
    --shadow: 0 6px 24px rgba(15, 47, 102, 0.08);
    --header-h: 92px;
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* map onto Bootstrap */
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--text);
    --bs-link-color-rgb: 30, 86, 199;
    --bs-link-hover-color-rgb: 15, 47, 102;
    --bs-secondary-rgb: 90, 110, 146;
    --bs-secondary-color: var(--muted);
    --bs-border-color: var(--line);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); font-weight: 500; line-height: 1.25; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn-site {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.5rem;
    font: 500 13px/1 var(--font-body);
    letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid transparent; border-radius: var(--radius);
    transition: background-color .2s, color .2s, border-color .2s;
    cursor: pointer;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--brand); color: #fff; }
/* on navy backgrounds */
.band-dark .btn-outline-brand,
.on-navy .btn-outline-brand { border-color: #fff; color: #fff; }
.band-dark .btn-outline-brand:hover,
.on-navy .btn-outline-brand:hover { background: #fff; color: var(--navy); }

/* ---------- top bar ---------- */
.site-topbar { background: var(--navy); color: #d6e2f7; font-size: 13px; }
.site-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.site-topbar a { color: #eaf1fd; }
.site-topbar a:hover { color: #fff; text-decoration: underline; }
.site-topbar .topbar-note { display: flex; align-items: center; gap: .5rem; margin: 0; }
.site-topbar .topbar-note i { color: var(--brand-light); }
.site-topbar .topbar-actions { display: flex; align-items: stretch; align-self: stretch; gap: 1.25rem; }
.site-topbar .topbar-actions > a { display: flex; align-items: center; }
.site-topbar .topbar-login { background: var(--brand); color: #fff !important; padding: 0 1rem; gap: .4rem; }
.site-topbar .topbar-login:hover { background: var(--brand-dark); text-decoration: none; }

/* ---------- header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(15, 47, 102, .08); }
.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }
.site-brand { display: flex; align-items: center; gap: .85rem; color: var(--ink); }
.site-brand:hover { color: var(--ink); }
.site-brand img { height: 66px; width: auto; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-brand-text strong { font: 500 17px/1.2 var(--font-head); color: var(--ink); }
.site-brand-text span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.site-nav .nav-link {
    position: relative;
    font-size: 13.5px; font-weight: 500;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--ink);
    padding: .5rem .8rem !important;
}

.site-nav .nav-link::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem;
    height: 2px; background: var(--brand);
    transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); }
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-header .navbar-toggler { border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .6rem; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 2px var(--brand-soft); }

.site-nav .nav-link { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-brand-text strong { font-size: 13.5px; }
    .site-nav .nav-link { padding: .5rem .4rem !important; font-size: 12.5px; letter-spacing: .02em; }
    .site-nav .nav-link::after { left: .4rem; right: .4rem; }
}
/* Wide screens: seven menu items still need less room than the 0.8rem default, or the brand text runs into Home. */
@media (min-width: 1400px) {
    .site-brand-text strong { font-size: 15.5px; }
    .site-nav .nav-link { padding: .5rem .6rem !important; font-size: 13px; letter-spacing: .03em; }
    .site-nav .nav-link::after { left: .6rem; right: .6rem; }
}
@media (max-width: 1199.98px) {
    .site-nav { padding: .75rem 0 1rem; border-top: 1px solid var(--line); margin-top: .5rem; }
    .site-nav .nav-link::after { display: none; }
    .site-nav .nav-link { padding: .6rem 0 !important; border-bottom: 1px solid var(--bg-alt); }
}
@media (max-width: 575.98px) {
    :root { --header-h: 72px; }
    .site-brand img { height: 50px; }
    .site-brand-text strong { font-size: 14px; }
    .site-brand-text span { font-size: 10.5px; }
    .site-topbar .topbar-note { display: none; }
    .site-topbar .container { justify-content: flex-end; }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: min(78vh, 680px);
    display: flex; flex-direction: column; justify-content: center;
    color: #fff;
    background: var(--navy) var(--hero-img, none) center / cover no-repeat;
    isolation: isolate;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--overlay); z-index: -1; }
/* Home hero: the association's building, with a light navy shade so the text reads (not the heavy overlay the stock banners use). */
.hero-photo { background-position: center 55%; }
.hero-photo::before {
    background: linear-gradient(180deg, rgba(10, 32, 72, .78) 0%, rgba(10, 32, 72, .66) 45%, rgba(10, 32, 72, .74) 100%);
    -webkit-backdrop-filter: saturate(.5) brightness(.85); backdrop-filter: saturate(.5) brightness(.85); /* mute the photo's bright colours */
}
.hero-photo .hero-content { align-self: stretch; padding-top: 4rem; }
.hero-photo .hero-content h1 { text-shadow: 0 2px 18px rgba(5, 20, 50, .6); }
.hero-photo .hero-kicker, .hero-photo .hero-content h1 small { color: #fff; text-shadow: 0 1px 10px rgba(5, 20, 50, .6); }
.hero-content { text-align: center; padding: 6rem 0 9rem; }
.hero-kicker {
    display: inline-block; margin-bottom: 1.1rem;
    font-size: 12.5px; letter-spacing: .25em; text-transform: uppercase; color: var(--brand-light);
}
.hero h1 {
    color: #fff; font-family: var(--font-body); font-weight: 500;
    font-size: clamp(1.9rem, 4.4vw, 3.2rem);
    letter-spacing: .04em; text-transform: uppercase;
    max-width: 22ch; margin: 0 auto;
}
.hero h1 small { display: block; margin-top: .4rem; font-size: .62em; letter-spacing: .3em; color: #dbe7fb; }

/* ---------- home hero: the Association's seal in a ring, the President and General Secretary on either side ---------- */
.hero-emblem { background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--bg-alt) 100%); padding: 2.2rem 0 8rem; overflow: hidden; }
.he-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.05fr) minmax(0, 1fr); align-items: end; gap: 1rem; }
.he-center { grid-column: 2; grid-row: 1; align-self: center; text-align: center; padding-bottom: 1rem; }
.he-left { grid-column: 1; grid-row: 1; }
.he-right { grid-column: 3; grid-row: 1; }
.he-ring { position: relative; width: clamp(190px, 21vw, 250px); aspect-ratio: 1; margin: 0 auto 1.1rem; }
.he-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.he-ring img { position: absolute; left: 50%; top: 50%; width: 62%; height: auto; transform: translate(-50%, -50%); }
.he-kicker { display: block; font-size: 12.5px; letter-spacing: .25em; text-transform: uppercase; color: var(--brand); }
.hero-emblem h1 {
    margin: .5rem auto 0; max-width: 20ch; color: var(--navy);
    font: 600 clamp(1.45rem, 2.6vw, 2.1rem)/1.25 var(--font-body); letter-spacing: .03em; text-transform: uppercase;
}
.hero-emblem h1 small { display: block; margin-top: .3rem; font-size: .6em; letter-spacing: .3em; color: var(--brand); font-weight: 500; }
.he-person { margin: 0; text-align: center; }
.he-person img {
    display: block; width: auto; height: clamp(250px, 30vw, 400px); max-width: 100%; margin: 0 auto; object-fit: contain;
    mix-blend-mode: multiply;   /* the photos have white backgrounds: they melt into the page */
}
.he-person figcaption { margin-top: .5rem; color: var(--navy); }
.he-person figcaption strong { display: block; font: 600 17px/1.3 var(--font-body); }
.he-person figcaption span { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 767.98px) {
    .hero-emblem { padding: 1.5rem 0 5rem; }
    .he-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .he-center { grid-column: 1 / -1; grid-row: 1; padding-bottom: .5rem; }
    .he-left { grid-column: 1; grid-row: 2; }
    .he-right { grid-column: 2; grid-row: 2; }
    .he-person img { height: clamp(170px, 46vw, 260px); }
}

.quick-links { position: relative; margin-top: -5.5rem; z-index: 2; }
.quick-card {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    height: 100%;
    padding: 1.6rem 1.5rem;
    background: var(--brand);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .2);
    transition: background-color .2s;
}
.quick-links .col:last-child .quick-card { border-right: 0; }
.quick-card:hover { background: var(--brand-dark); color: #fff; }
.quick-card strong { display: block; font: 500 18px/1.35 var(--font-body); }
.quick-card span { display: block; margin-top: .2rem; font-size: 13px; color: #dbe7fb; }
.quick-card i { font-size: 30px; color: #fff; flex: none; transition: transform .2s; }
.quick-card:hover i { transform: translateX(4px); }
@media (max-width: 767.98px) {
    .hero { min-height: 0; }
    .hero-content { padding: 4.5rem 0 6rem; }
    .quick-links { margin-top: -3rem; }
    .quick-card { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
}

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
/* Announcements: a tighter gap under the page banner. */
.section.an-section { padding: 2.25rem 0 3.5rem; }
.an-section .section-head { margin-bottom: 1.1rem; }
.an-section .section-head h2::after { margin-top: .7rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head .eyebrow {
    display: block; margin-bottom: .5rem;
    font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand);
}
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 2px; margin: 1rem auto 0; background: var(--brand); }
.section-head p { margin: 1rem 0 0; color: var(--muted); }
.section-head.text-start { margin-left: 0; text-align: left; }
.section-head.text-start h2::after { margin-left: 0; }

/* ---------- people ---------- */
.person-tiers > .row + .row { margin-top: 0; }
.person-tiers { margin-bottom: 1rem; }
.person-grid { margin-bottom: 1.25rem; }
/* at most four across, so twelve executive members make three even rows */
.person-tiers, .person-grid { max-width: 900px; margin-left: auto; margin-right: auto; }
.person-grid > .col { flex: 0 0 auto; width: 205px; }
.person-card {
    position: relative; height: 100%; padding: 8px; overflow: hidden;
    background: #fff; border: 1.5px solid var(--brand); border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 47, 102, .04), 0 6px 18px rgba(15, 47, 102, .06);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.person-card:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 4px 8px rgba(15, 47, 102, .07), 0 16px 32px rgba(15, 47, 102, .13); }
.person-photo {
    position: relative; display: grid; place-items: center; overflow: hidden;
    width: 100%; aspect-ratio: 1 / 1.03; border-radius: 12px;
    background: linear-gradient(160deg, var(--brand), var(--navy));
    color: #fff; font: 500 2.2rem/1 var(--font-head); letter-spacing: .05em;
}
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.person-card:hover .person-photo img { transform: scale(1.04); }
.person-body { padding: .75rem .45rem .6rem; text-align: center; }
.person-body h3 { font-size: 15px; margin: 0 0 .4rem; line-height: 1.3; }
.person-role {
    display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--brand-soft);
    font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark);
}
.person-phone { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .5rem; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--ink); }
.person-phone i { color: var(--brand); font-size: 11px; }
.person-phone:hover { color: var(--brand); }

/* featured (homepage president / secretary) */
.person-feature {
    position: relative; display: flex; align-items: center; gap: 1.6rem; height: 100%;
    padding: 1.5rem 1.75rem 1.5rem 1.6rem; overflow: hidden;
    background: linear-gradient(120deg, #fff 0%, #f6f9ff 100%); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 1px 2px rgba(15, 47, 102, .05), 0 10px 28px rgba(15, 47, 102, .07);
    transition: box-shadow .25s ease, transform .25s ease;
}
.person-feature::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--brand), var(--navy)); }
.person-feature:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(15, 47, 102, .08), 0 18px 38px rgba(15, 47, 102, .13); }
.person-feature .person-photo { flex: none; width: 150px; height: 150px; aspect-ratio: auto; border-radius: 28px; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(15, 47, 102, .22); font-size: 2.3rem; }
.person-feature-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.person-feature-body .person-role { margin-bottom: .55rem; }
.person-feature-body h3 { font-size: 24px; margin: 0 0 .4rem; }
.person-feature-body .person-phone { margin-top: .75rem; }
.person-feature-body p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 575.98px) {
    .person-grid > .col { width: 50%; }
    .person-photo { font-size: 1.8rem; }
    .person-body h3 { font-size: 14px; }
    .person-role { font-size: 9.5px; padding: .18rem .5rem; }
    .person-phone { font-size: 12.5px; }
    .person-feature { flex-direction: column; text-align: center; padding: 1.4rem 1.2rem; }
    .person-feature::before { width: auto; height: 5px; right: 0; bottom: auto; background: linear-gradient(90deg, var(--brand), var(--navy)); }
    .person-feature-body { align-items: center; }
}

.group-title { display: flex; align-items: center; gap: 1rem; margin: 3.5rem 0 1.75rem; font-size: 22px; }
.section-people { padding: 2.75rem 0 4rem; }
.section-people .group-title { margin: 2.25rem 0 1.25rem; }
.section-people .group-title:first-child { margin-top: 0; }
.group-title:first-child { margin-top: 0; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- navy band ---------- */
.band-dark {
    position: relative; isolation: isolate;
    padding: 6rem 0; text-align: center; color: #dbe7fb;
    background: var(--navy) var(--band-img, none) center / cover no-repeat fixed;
}
.band-dark::before { content: ""; position: absolute; inset: 0; background: rgba(15, 47, 102, .86); z-index: -1; }
.band-dark h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.band-dark p { max-width: 760px; margin: 0 auto 2rem; }
@media (hover: none) { .band-dark { background-attachment: scroll; } }

/* ---------- inner page banner ---------- */
.page-banner {
    position: relative; isolation: isolate;
    padding: 1.25rem 0 1.1rem; color: #fff;
    background: var(--navy) var(--banner-img, none) center / cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(15, 47, 102, .8); z-index: -1; }
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 500; margin: 0 0 .5rem; }
.page-banner .breadcrumb { margin: 0; font-size: 14px; --bs-breadcrumb-divider-color: #b9cdee; --bs-breadcrumb-item-active-color: #e6eefc; }
.page-banner .breadcrumb a { color: var(--brand-light); }

/* ---------- cards / forms / tables ---------- */
.site-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
}
.site-card + .site-card { margin-top: 1.5rem; }
.form-control, .form-select {
    border-color: var(--line); border-radius: var(--radius);
    padding: .65rem .9rem; font-size: 14.5px; color: var(--text);
}
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(30, 86, 199, .18); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 500; font-size: 14px; color: var(--ink); }
.search-bar { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-bar .form-control { flex: 1 1 260px; }

.table-site { --bs-table-hover-bg: var(--brand-soft); --bs-table-color: var(--text); margin: 0; font-size: 14px; }
.table-site thead th {
    background: var(--brand); color: #fff; border-color: var(--brand);
    font-weight: 500; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap; vertical-align: middle;
}
.table-site td { vertical-align: middle; border-color: var(--line); }
.table-site img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 2px solid var(--brand-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.alert-site { border-left: 3px solid var(--brand); background: var(--brand-soft); color: var(--ink); border-radius: var(--radius); }

/* ---------- pagination ---------- */
.pagination { --bs-pagination-color: var(--ink); --bs-pagination-hover-color: var(--brand); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(30, 86, 199, .18);
    --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-border-color: var(--line); flex-wrap: wrap; }
nav[role="navigation"] p.small { color: var(--muted); }

/* ---------- registration wizard ---------- */
.register-wizard h2 { font-size: 26px; margin-bottom: .25rem; }
.register-wizard [hidden] { display: none !important; }
.req::after, .req-mark { content: " *"; color: var(--brand); font-weight: 600; }
.req-mark::after { content: none; }
.form-hint { margin-top: .3rem; font-size: 12.5px; color: var(--muted); }
.form-control.is-invalid ~ .invalid-feedback, .form-select.is-invalid ~ .invalid-feedback { display: block; }

.wizard-steps { display: flex; gap: .25rem; list-style: none; margin: 0 0 2rem; padding: 0; }
.wizard-steps li {
    position: relative; flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: .45rem;
    font-size: 12.5px; text-align: center; color: var(--muted); cursor: pointer;
}
.wizard-steps li::before {
    content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 2px; background: var(--line);
}
.wizard-steps li:first-child::before { display: none; }
.wizard-steps li span {
    position: relative; z-index: 1;
    width: 36px; height: 36px; display: grid; place-items: center;
    border: 2px solid var(--line); border-radius: 50%; background: #fff;
    font-weight: 600; color: var(--muted);
}
.wizard-steps li em { font-style: normal; line-height: 1.3; }
.wizard-steps li.is-active { color: var(--ink); font-weight: 500; }
.wizard-steps li.is-active span { border-color: var(--brand); background: var(--brand); color: #fff; }
.wizard-steps li.is-done span { border-color: var(--brand); color: var(--brand); }
.wizard-steps li.is-done::before, .wizard-steps li.is-active::before { background: var(--brand); }
@media (max-width: 575.98px) {
    .wizard-steps li em { display: none; }
    .wizard-steps li.is-active em { display: block; position: absolute; top: 44px; white-space: nowrap; }
    .wizard-steps { margin-bottom: 2.75rem; }
}

.wizard-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.register-wizard:not(.is-wizard) .wizard-step + .wizard-step { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.register-wizard:not(.is-wizard) .wizard-steps,
.register-wizard:not(.is-wizard) .wizard-nav { display: none; }
.wizard-step legend { float: none; margin-bottom: 1.25rem; font: 500 20px/1.3 var(--font-head); color: var(--ink); }
.wizard-subhead { margin: .75rem 0 0; font-size: 15px; font-weight: 500; color: var(--brand); letter-spacing: .02em; }

.pay-qr { height: 100%; padding: 1.25rem; text-align: center; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius); }
.pay-qr img { width: 100%; max-width: 220px; border-radius: var(--radius); }
.reg-summary { padding: .75rem 1rem; color: var(--ink); background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: var(--radius); font-size: 14px; }
.reg-summary:empty { display: none; }
.otp-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.otp-row .form-control { flex: 0 1 200px; }

.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.wizard-nav [data-wizard-prev][hidden] + .wizard-count { margin-right: auto; }
.wizard-count { font-size: 13px; color: var(--muted); }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 860px; margin: 0 auto; overflow-wrap: anywhere; }
.prose img, .prose table, .prose iframe, .prose [style*="width"] { max-width: 100% !important; }
.prose table { display: block; overflow-x: auto; }
.prose h2, .prose h3, .prose h4 { margin: 2rem 0 .75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }

/* ---------- document viewer ---------- */
.doc-frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }

/* ---------- auth pages ---------- */
.section.auth-section { padding: 2.5rem 0 3.5rem; }
.auth-wrap { max-width: 560px; margin: 0 auto; }
.auth-wrap.auth-wide { max-width: 980px; }
.auth-wrap .site-card { padding: 2.25rem; }
.auth-wrap h2 { font-size: 26px; margin-bottom: .35rem; }
.auth-panel { background: var(--navy); color: #dbe7fb; }
.auth-panel h2 { color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #c7d5ee; font-size: 14px; }
.site-footer .footer-main { padding: 4.5rem 0 3rem; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 1.25rem; }
.site-footer a { color: #c7d5ee; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; color: #fff; }
.footer-brand img { height: 58px; width: auto; background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand strong { font: 500 16px/1.3 var(--font-head); color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; column-gap: 1.5rem; }
@media (min-width: 1200px) { .footer-links { columns: 2; } }
.footer-links li { margin-bottom: .55rem; break-inside: avoid; }
.footer-links a::before { content: "\203A"; margin-right: .5rem; color: var(--brand-light); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .75rem; }
.footer-contact i { color: var(--brand-light); margin-top: .3rem; width: 16px; text-align: center; }
.footer-bottom { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; font-size: 13px; color: #a9bde0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-right: 4.5rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

.back-to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040;
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; background: var(--brand); color: #fff;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand-dark); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* the seal is red line-art: give it a white disc on the dark footer */
.footer-brand img { padding: 3px; border-radius: 50%; background: #fff; object-fit: contain; }

/* Touch screens: links that were 20px tall (phone numbers on the cards, footer links) get a finger-sized tap area. */
@media (pointer: coarse) {
    .person-phone { display: inline-flex; align-items: center; min-height: 36px; }
    .site-footer a, .footer-links a { display: inline-block; padding: 7px 0; }
}
