:root {
    --primary-color: #137f73;
    --primary-dark: #0c5f56;
    --secondary-color: #171c22;
    --accent-color: #ffc20e;
    --accent-soft: #fff3bf;
    --background-color: #f3f8f6;
    --surface-color: #ffffff;
    --text-color: #172026;
    --muted-color: #637083;
    --border-color: #d7e3df;
    --shadow: 0 24px 70px rgba(23, 28, 34, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--primary-color);
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell,
.admin-layout {
    min-height: 100vh;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    min-height: 88vh;
    padding: clamp(28px, 6vw, 76px) clamp(16px, 6vw, 96px);
    overflow: hidden;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 12px;
    border: 1px solid rgba(19, 127, 115, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 194, 14, 0.18);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.82rem;
}

.brand-title {
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-size: clamp(3rem, 9vw, 6.6rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.tagline {
    margin: 0 0 12px;
    color: #06254a;
    font-size: clamp(1.18rem, 3.6vw, 1.8rem);
    font-weight: 800;
}

.hero-text {
    max-width: 620px;
    margin: 0 0 28px;
    color: var(--muted-color);
    font-size: 1.08rem;
}

.search-form {
    display: grid;
    gap: 10px;
    width: min(100%, 720px);
}

.field-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.text-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    background: #ffffff;
    color: var(--text-color);
    outline: none;
}

.text-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(19, 127, 115, 0.12);
}

textarea.text-input {
    resize: vertical;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.button:hover {
    background: var(--primary-dark);
}

.button.secondary {
    background: var(--secondary-color);
}

.button.secondary:hover {
    background: #000000;
}

.search-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted-color);
}

.search-types span {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 12px;
    background: #ffffff;
}

.app-preview {
    position: relative;
    min-height: 560px;
}

.phone {
    position: absolute;
    width: min(48vw, 270px);
    min-width: 230px;
    border: 10px solid #fbfaf5;
    border-radius: 34px;
    background: #fffdf6;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.phone-list {
    left: 0;
    top: 74px;
    padding: 22px 18px 28px;
    transform: rotate(-4deg);
}

.phone-map {
    right: 2%;
    top: 8px;
    min-height: 500px;
    background: #23261f;
    transform: rotate(4deg);
}

.phone-bar {
    width: 60px;
    height: 5px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: rgba(23, 28, 34, 0.18);
}

.mini-profile {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #8f4d24);
}

.phone h2 {
    margin: 20px 0;
    font-size: 1.65rem;
    line-height: 1.1;
}

.quick-card {
    display: inline-flex;
    width: calc(50% - 5px);
    min-height: 78px;
    margin-bottom: 8px;
    border-radius: 14px;
    padding: 12px;
    color: var(--secondary-color);
    font-weight: 850;
}

.quick-card.yellow {
    background: var(--accent-color);
}

.quick-card.pale {
    background: var(--accent-soft);
}

.mini-result {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    border-radius: 14px;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(23, 28, 34, 0.08);
}

.mini-result span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #c8ece6;
}

.mini-result strong {
    font-size: 0.88rem;
}

.mini-result em {
    border-radius: 999px;
    padding: 4px 7px;
    background: var(--secondary-color);
    color: #ffffff;
    font-size: 0.72rem;
    font-style: normal;
}

.bottom-nav {
    height: 44px;
    width: 78%;
    margin: 20px auto 0;
    border-radius: 999px;
    background: var(--secondary-color);
}

.map-area {
    position: relative;
    min-height: 345px;
    background:
        radial-gradient(circle at 48% 45%, rgba(255, 194, 14, 0.28) 0 90px, transparent 92px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
        #242820;
}

.map-area::before,
.map-area::after {
    content: "";
    position: absolute;
    inset: 22% -20%;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    transform: rotate(-24deg);
}

.map-area::after {
    inset: 58% -20%;
    transform: rotate(18deg);
}

.map-area i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    border-radius: 999px;
    padding: 5px 8px;
    background: var(--accent-color);
    color: var(--secondary-color);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
}

.map-sheet {
    display: grid;
    gap: 4px;
    min-height: 135px;
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
    padding: 24px 20px;
    background: #ffffff;
}

.results-band,
.detail-page {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 20px clamp(16px, 5vw, 48px) 72px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2,
.locations-section h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.section-heading p {
    margin: 0;
    color: var(--muted-color);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.result-card,
.book-detail,
.admin-form-panel,
.admin-list-panel,
.auth-panel {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface-color);
    box-shadow: 0 14px 35px rgba(23, 28, 34, 0.07);
}

.result-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 18px;
}

.card-topline,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.stand-badge,
.multi-location {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--accent-color);
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 0.82rem;
}

.multi-location {
    background: #eef4f2;
    color: var(--primary-dark);
}

.result-card h3 {
    margin: 0;
    font-size: 1.22rem;
}

.result-card p {
    margin: 0;
    color: var(--muted-color);
}

.result-card .authors,
.result-card .price {
    color: var(--text-color);
    font-weight: 800;
}

.location-line {
    display: grid;
    gap: 2px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.empty-state {
    grid-column: 1 / -1;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
    color: var(--muted-color);
}

.back-link {
    display: inline-flex;
    margin: 18px 0;
    font-weight: 800;
}

.book-detail {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(18px, 5vw, 36px);
    padding: clamp(18px, 5vw, 36px);
}

.book-cover {
    display: grid;
    align-content: space-between;
    min-height: 260px;
    border-radius: 8px;
    padding: 18px;
    background: linear-gradient(160deg, var(--accent-color), #fff0ac 58%, #ffffff);
    color: var(--secondary-color);
    box-shadow: inset 0 0 0 1px rgba(23, 28, 34, 0.08);
}

.book-cover span {
    font-weight: 900;
}

.book-cover strong {
    font-size: 2rem;
}

.book-detail h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
}

.subtitle {
    color: var(--muted-color);
    font-size: 1.15rem;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.meta-list div {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.meta-list dt {
    color: var(--muted-color);
    font-size: 0.82rem;
    font-weight: 800;
}

.meta-list dd {
    margin: 0;
    font-weight: 800;
}

.locations-section {
    margin-top: 24px;
}

.public-main {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px 16px;
}

.auth-panel {
    width: min(100%, 460px);
    padding: clamp(20px, 5vw, 36px);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 4vw, 34px);
    background: var(--secondary-color);
    color: #ffffff;
}

.admin-header a {
    margin-right: 12px;
    color: #ffffff;
    font-weight: 750;
    text-decoration: none;
}

.admin-header {
    min-height: 66px;
}

.admin-body {
    display: flex;
    min-height: calc(100vh - 66px);
    background: #f4f7f6;
}

.admin-sidebar {
    display: flex;
    width: 235px;
    flex: 0 0 235px;
    flex-direction: column;
    gap: 4px;
    padding: 25px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f5ff 100%);
    border-right: 1px solid var(--border-color);
}

.admin-sidebar-brand { display: flex; align-items: center; gap: 10px; margin: 0 8px 8px; color: #25243a; }
.admin-sidebar-brand > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; background: #635bff; color: #fff; font-size: .72rem; font-weight: 900; }
.admin-sidebar-brand strong, .admin-sidebar-brand small { display: block; }
.admin-sidebar-brand strong { font-size: .85rem; }.admin-sidebar-brand small { color: #7c8095; font-size: .62rem; }
.admin-sidebar-search { display: flex; align-items: center; gap: 6px; margin: 8px 0 10px; padding: 8px 10px; border: 1px solid #e1e5f2; border-radius: 7px; background: #f7f8fd; color: #7c8095; }
.admin-sidebar-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #25243a; font: inherit; font-size: .76rem; }

.admin-sidebar a {
    display: block;
    border-radius: 6px;
    padding: 12px 14px;
    color: #29465f;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a:focus-visible {
    background: #e7f3ef;
    color: var(--primary-dark);
}

.admin-sidebar a[href$="/admin/books"]:hover, .admin-sidebar a[href$="/admin/books"]:focus-visible, .admin-sidebar a[href$="/admin/users"]:hover, .admin-sidebar a[href$="/admin/users"]:focus-visible { background: #635bff; color: #fff; }

.admin-sidebar-label {
    margin: 13px 10px 5px;
    color: var(--muted-color);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-content {
    min-width: 0;
    flex: 1;
}

.admin-date { color: #d9f3ec; font-size: .78rem; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 18px; margin-top: 20px; }
.dashboard-grid-bottom { grid-template-columns: 1fr 1fr; }
.chart-card { padding: 22px; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(23,28,34,.06); }
.chart-card h2 { margin: 0; font-size: 1.15rem; }
.chart-card-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.chart-badge { border-radius: 999px; padding: 5px 9px; background: #e7f3ef; color: var(--primary-dark); font-size: .7rem; font-weight: 900; }
.bar-chart { display: flex; height: 220px; align-items: end; gap: clamp(8px, 2vw, 20px); margin-top: 25px; padding: 15px 10px 0; border-bottom: 1px solid var(--border-color); }
.bar-chart i { position: relative; flex: 1; height: var(--bar-height); min-height: 20px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--primary-color), #55b8a8); animation: chart-rise 900ms cubic-bezier(.2,.8,.2,1) both; }
.bar-chart i:nth-child(2n) { background: linear-gradient(180deg, #d71920, #f06d69); animation-delay: 90ms; }
.bar-chart i span { position: absolute; top: calc(100% + 9px); width: 100%; color: var(--muted-color); font-size: .68rem; font-style: normal; text-align: center; }
.chart-note { margin: 25px 0 0; color: var(--muted-color); font-size: .8rem; }
@keyframes chart-rise { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
.pie-layout { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.donut-chart { width: 150px; height: 150px; flex: 0 0 150px; border-radius: 50%; background: conic-gradient(var(--primary-color) 0 42%, var(--accent-color) 42% 67%, #d71920 67% 85%, #8fc9c0 85%); animation: pie-in 900ms ease-out both; }
.donut-chart::after { display: block; width: 78px; height: 78px; margin: 36px; border-radius: 50%; background: #fff; content: ""; }
@keyframes pie-in { from { transform: rotate(-45deg) scale(.6); opacity: .2; } to { transform: rotate(0) scale(1); opacity: 1; } }
.chart-legend { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; font-size: .78rem; }
.chart-legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--primary-color); }.chart-legend .legend-1 { background: var(--accent-color); }.chart-legend .legend-2 { background: #d71920; }.chart-legend .legend-3 { background: #8fc9c0; }
.metric-list { display: grid; gap: 18px; margin-top: 22px; }.metric-list div { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--muted-color); font-size: .82rem; }.metric-list strong { color: var(--secondary-color); }.metric-list i { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--primary-color) var(--metric-width), #e4eeeb var(--metric-width)); }.quick-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }.quick-actions h2 { margin-bottom: 8px; }
.admin-modal-backdrop[hidden] { display: none; }.admin-modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6, 59, 105, .62); }.admin-modal { position: relative; width: min(900px, 100%); max-height: 92vh; overflow-y: auto; padding: clamp(20px, 4vw, 32px); border-radius: 12px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.28); }.admin-modal-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #edf5f2; color: var(--primary-dark); font-size: 1.4rem; cursor: pointer; }.admin-modal .cms-panel-heading { padding-right: 35px; }

.admin-main {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 24px 16px;
}

.admin-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-title-row h1 {
    margin-bottom: 4px;
}

.admin-title-row p {
    margin: 0;
    color: var(--muted-color);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.stat-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    background: var(--surface-color);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
}

.admin-form-panel,
.admin-list-panel {
    margin-bottom: 20px;
    padding: 18px;
}

.admin-grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-span,
.form-actions {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted-color);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.cms-page { max-width: 1240px; }
.admin-breadcrumb { margin: 0 0 5px; color: var(--primary-color) !important; font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cms-tabs { display: flex; gap: 5px; margin: 0 0 20px; padding: 5px; overflow-x: auto; border: 1px solid var(--border-color); border-radius: 8px; background: #eaf2ef; }.cms-tab { border: 0; border-radius: 5px; padding: 11px 18px; background: transparent; color: #52656b; font: inherit; font-size: .84rem; font-weight: 850; white-space: nowrap; cursor: pointer; }.cms-tab:hover, .cms-tab.is-active { background: var(--primary-color); color: #fff; }.cms-tab-panel[hidden] { display: none; }
.cms-panel { padding: clamp(18px, 3vw, 28px); }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.security-tabs { display: flex; gap: 5px; margin-bottom: 18px; padding: 5px; border-radius: 8px; background: #eaf2ef; }.security-tab { border: 0; border-radius: 5px; padding: 11px 24px; background: transparent; color: #52656b; font: inherit; font-weight: 850; cursor: pointer; }.security-tab:hover, .security-tab.is-active { background: #635bff; color: #fff; }.security-panel[hidden] { display: none; }
.role-list { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-color); }
.role-list h3 { margin: 0 0 10px; font-size: .9rem; }
.role-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf0f5; font-size: .8rem; }
.role-list span { color: var(--muted-color); text-align: right; }
.location-fields { margin-top: 8px; padding: 18px; border: 1px solid #dfeae6; border-radius: 8px; background: #f7fbf9; }.location-fields h3 { margin: 0 0 5px; color: var(--primary-dark); font-size: 1rem; }.form-help { margin: 0 0 14px; color: var(--muted-color); font-size: .8rem; }.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stand-photo { display: block; width: 100%; max-height: 210px; margin-bottom: 12px; border-radius: 7px; object-fit: cover; }
.search-chat { position: fixed; z-index: 15; right: 24px; bottom: 24px; width: min(360px, calc(100vw - 32px)); }
.search-chat-toggle { display: flex; align-items: center; gap: 9px; margin-left: auto; border: 0; border-radius: 999px; padding: 9px 16px 9px 10px; background: var(--primary-color); color: #fff; font-weight: 850; box-shadow: 0 12px 28px rgba(12,95,86,.3); cursor: pointer; }
.chat-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--accent-color); color: #172026; font-weight: 900; }
.search-chat-panel { overflow: hidden; border: 1px solid #d7e3df; border-radius: 13px; background: #fff; box-shadow: 0 20px 55px rgba(23,28,34,.22); }
.search-chat-header { display: flex; justify-content: space-between; padding: 15px 16px; background: var(--primary-color); color: #fff; }.search-chat-header strong, .search-chat-header small { display: block; }.search-chat-header small { color: #ccebe4; font-size: .72rem; }.search-chat-header button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.25rem; cursor: pointer; }
.search-chat-messages { display: grid; gap: 9px; max-height: 290px; overflow-y: auto; padding: 14px; background: #f5f9f7; }.chat-message { max-width: 90%; margin: 0; padding: 9px 11px; border-radius: 9px; color: var(--text-color); font-size: .78rem; line-height: 1.45; }.chat-message-bot { justify-self: start; background: #fff; border: 1px solid #e1ece8; }.chat-message-user { justify-self: end; background: #e7f3ef; color: var(--primary-dark); }.chat-message hr { border: 0; border-top: 1px solid #dbe7e2; }.chat-message b { color: var(--primary-dark); }.search-chat-form { display: flex; gap: 7px; padding: 10px; border-top: 1px solid #e1ece8; background: #fff; }.search-chat-form input { min-width: 0; flex: 1; border: 1px solid #d7e3df; border-radius: 6px; padding: 9px; outline: 0; }.search-chat-form button { width: 38px; border: 0; border-radius: 6px; background: var(--accent-color); color: #172026; font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.cms-panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.cms-panel-heading h2 { margin: 0 0 5px; }
.cms-panel-heading p:last-child { margin: 0; color: var(--muted-color); }
.admin-search { display: flex; min-width: min(100%, 400px); gap: 8px; }
.admin-search .text-input { min-width: 0; }
.cms-table { min-width: 900px; }
.cms-table td strong, .cms-table td small { display: block; }
.cms-table td small { margin-top: 4px; color: var(--muted-color); font-size: .75rem; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.button-small { min-height: 34px; padding: 7px 10px; font-size: .76rem; }
.button.danger { background: #a81218; }
.button.danger:hover, .button.danger:focus-visible { background: #7d0d12; }
.status-pill { display: inline-flex; border-radius: 999px; padding: 5px 9px; background: #e7f3ef; color: var(--primary-dark); font-size: .72rem; font-weight: 900; text-transform: capitalize; }
.status-inactive, .status-draft { background: #fff5d6; color: #795600; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.pagination a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border-color); border-radius: 5px; color: var(--primary-dark); font-weight: 800; text-decoration: none; }
.pagination a:hover, .pagination a.is-active { background: var(--primary-color); color: #ffffff; }

.alert {
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert.success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .app-preview {
        min-height: 470px;
    }

    .phone {
        width: min(56vw, 250px);
    }

    .phone-map {
        right: 10%;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 28px;
    }

    .search-row,
    .book-detail,
    .admin-grid-form {
        grid-template-columns: 1fr;
    }

    .search-row .button {
        width: 100%;
    }

    .section-heading,
    .admin-title-row,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-preview {
        min-height: 380px;
    }

    .admin-body {
        display: block;
    }

    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        padding: 10px;
    }

    .admin-sidebar-label {
        width: 100%;
        margin: 5px 8px 0;
    }

    .admin-sidebar-brand, .admin-sidebar-search { flex: 1 1 100%; }

    .admin-sidebar a {
        flex: 1 1 auto;
        padding: 10px 9px;
        text-align: center;
    }

    .cms-panel-heading,
    .admin-search {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-search .button {
        width: 100%;
    }

    .admin-date { order: 3; }
    .security-grid { grid-template-columns: 1fr; }
    .location-grid { grid-template-columns: 1fr; }
    .search-chat { right: 16px; bottom: 16px; }
    .dashboard-grid, .dashboard-grid-bottom { grid-template-columns: 1fr; }
    .pie-layout { align-items: start; flex-direction: column; }
    .admin-modal-backdrop { align-items: end; padding: 0; }
    .admin-modal { max-height: 94vh; border-radius: 16px 16px 0 0; }

    .phone {
        min-width: 190px;
    }

    .phone-list {
        top: 42px;
    }

    .phone-map {
        right: 0;
        min-height: 390px;
    }

    .map-area {
        min-height: 250px;
    }

    .book-cover {
        min-height: 180px;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions .button {
        width: 100%;
    }
}

/* Public institutional shell */
.page-width {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.official-bar {
    background: #063b69;
    color: #ffffff;
    font-size: 0.78rem;
}

.official-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
}

.official-bar a {
    margin-left: auto;
    color: #ffffff;
    font-weight: 700;
}

.flag-mark {
    width: 18px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(90deg, #d71920 0 45%, #ffffff 45% 55%, #1464a0 55%);
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid #dbe5ec;
    background: #ffffff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.official-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    text-decoration: none;
}

.official-brand img {
    display: block;
    width: min(225px, 42vw);
    max-height: 68px;
    object-fit: contain;
    object-position: left center;
}

.brand-divider {
    display: none;
}

.finder-mark {
    display: none;
}

.finder-mark strong {
    color: #063b69;
    font-size: 1rem;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 0;
}

.header-search {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    width: min(330px, 28vw);
    gap: 6px;
}

.header-search .text-input {
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 6px;
    font-size: 0.82rem;
}

.header-search-button {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    background: #063b69;
    color: #ffffff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.header-search-button:hover,
.header-search-button:focus-visible {
    background: #d71920;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.public-nav a {
    color: #29465f;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.public-nav a:hover,
.public-nav a:focus-visible {
    color: #d71920;
}

.public-nav .nav-admin {
    border-radius: 6px;
    padding: 9px 13px;
    background: #d71920;
    color: #ffffff;
}

.hero {
    position: relative;
    background: linear-gradient(135deg, #f5f9fb 0%, #ffffff 62%, #fff8e5 100%);
}

.hero::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 34%;
    height: 5px;
    background: #d71920;
    content: "";
}

.hero-copy {
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero .brand-title {
    max-width: 620px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1;
}

.eyebrow,
.section-kicker {
    color: #063b69;
    letter-spacing: 0;
}

.eyebrow {
    border-color: rgba(6, 59, 105, 0.2);
    background: #fff1c4;
}

.tagline {
    color: #063b69;
}

.search-form {
    position: relative;
    width: min(100%, 720px);
    margin: 24px 0 0;
    padding: 16px;
    border: 2px solid rgba(215, 25, 32, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(6, 59, 105, 0.14), 0 0 0 6px rgba(242, 201, 76, 0.2);
}

.search-form::before {
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -2px;
    width: 6px;
    border-radius: 12px 0 0 12px;
    background: #d71920;
    content: "";
}

.search-form .button {
    background: #d71920;
}

.search-form .button:hover,
.search-form .button:focus-visible {
    background: #a81218;
}

.hero .search-types {
    justify-content: flex-start;
}

.landing-steps {
    border-top: 1px solid #dbe5ec;
    border-bottom: 1px solid #dbe5ec;
    padding: 58px 0 64px;
    background: #ffffff;
}

.section-kicker {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-steps h2 {
    max-width: 500px;
    margin: 0 0 30px;
    color: #063b69;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.steps-grid article {
    border-top: 3px solid #f2c94c;
    padding: 18px 4px 0;
}

.steps-grid span {
    color: #d71920;
    font-size: 0.8rem;
    font-weight: 900;
}

.steps-grid h3 {
    margin: 12px 0 6px;
    color: #063b69;
    font-size: 1.3rem;
}

.steps-grid p {
    max-width: 260px;
    margin: 0;
    color: var(--muted-color);
}

.results-band {
    background: #f5f9fb;
}

.public-footer {
    background: #063b69;
    color: #dceaf5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 48px;
    padding: 52px 0 42px;
}

.footer-brand {
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 1.5rem;
    text-decoration: none;
}

.footer-brand strong {
    color: #f2c94c;
}

.public-footer p {
    max-width: 340px;
    color: #b9d0e1;
    font-size: 0.9rem;
}

.public-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.public-footer a:not(.footer-brand) {
    display: block;
    margin: 7px 0;
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 18px 0;
    color: #b9d0e1;
    font-size: 0.78rem;
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
    }

    .header-search {
        width: 100%;
    }

    .public-nav {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        gap: 8px;
    }

    .public-nav a {
        font-size: 0.78rem;
    }

    .brand-divider,
    .finder-mark {
        display: none;
    }

    .steps-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-grid {
        padding: 38px 0 28px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

.landing-page {
    overflow: hidden;
    background-color: #f6faf9;
    background-image: linear-gradient(rgba(19, 127, 115, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 127, 115, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
}

.landing-page h1,
.landing-page h2,
.landing-page h3 {
    color: #171c22;
    letter-spacing: -0.02em;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: clamp(35px, 8vw, 110px);
    align-items: center;
    min-height: 680px;
    padding-top: clamp(70px, 10vw, 125px);
    padding-bottom: clamp(70px, 10vw, 125px);
}

.landing-hero h1 {
    max-width: 680px;
    margin: 14px 0 20px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.94;
}

.landing-lead { max-width: 560px; margin: 0 0 28px; color: var(--muted-color); font-size: 1.08rem; }
.section-kicker { color: #d71920; letter-spacing: 0.11em; }
.landing-search { max-width: 650px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.landing-search::before { display: none; }
.landing-search .field-label { color: #171c22; }
.landing-search .text-input { border-color: #c9dcd7; border-radius: 4px; }
.landing-search .button { border-radius: 4px; background: var(--primary-color); }
.search-types { display: flex; gap: 20px; margin-top: 15px; color: var(--muted-color); font-size: 0.78rem; }
.search-types span::before { margin-right: 5px; color: #d71920; content: "•"; }

.hero-art { position: relative; min-height: 475px; display: grid; place-items: center; }
.hero-art-frame { width: min(100%, 430px); aspect-ratio: 0.88; padding: 14px; border: 12px solid var(--primary-color); border-radius: 42% 8% 40% 10%; background: var(--accent-color); transform: rotate(4deg); box-shadow: 18px 22px 0 rgba(255, 194, 14, 0.28); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 28% 5% 25% 5%; }
.scribble { position: absolute; color: #d71920; font-size: 2.2rem; }
.scribble-star { top: 12%; left: 9%; }
.scribble-sun { right: 7%; bottom: 12%; color: var(--accent-color); }

.landing-services, .landing-features, .landing-testimonials { padding-top: 100px; padding-bottom: 100px; }
.split-heading { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: end; margin-bottom: 42px; }
.split-heading h2, .center-heading h2, .landing-testimonials h2 { max-width: 650px; margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; }
.split-heading > p { max-width: 400px; margin: 0 0 5px; color: var(--muted-color); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { padding: 18px; border: 2px solid var(--primary-color); border-radius: 14px; background: var(--primary-color); color: #fff; }
.service-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 900; }
.round-arrow { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--accent-color); color: #171c22; }
.service-card img { width: 100%; height: 155px; object-fit: cover; border-radius: 7px; }
.service-card h3 { margin: 16px 0 5px; color: #fff; font-size: 1.2rem; }
.service-card p { margin: 0; color: rgba(255,255,255,.78); font-size: .88rem; }
.center-heading { margin: 0 auto 80px; text-align: center; }
.center-heading h2 { margin: 0 auto; }
.feature-row { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(45px, 9vw, 130px); align-items: center; margin-bottom: 115px; }
.feature-row-reverse { grid-template-columns: 0.85fr 1fr; }
.feature-row-reverse .feature-image { order: 2; }
.feature-image { position: relative; padding: 13px; border: 11px solid var(--accent-color); border-radius: 18% 5% 18% 5%; transform: rotate(-3deg); }
.feature-row:nth-of-type(3n) .feature-image { border-color: var(--primary-color); transform: rotate(3deg); }
.feature-image img { display: block; width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 10%; }
.feature-copy h2 { margin: 10px 0 15px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; }
.feature-copy > p:not(.section-kicker) { max-width: 440px; color: var(--muted-color); }
.text-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--primary-dark); font-weight: 900; text-decoration: none; }
.text-link span { color: #d71920; }
.results-band { padding: 80px 0; background: #fff; }
.landing-testimonials { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.testimonial-heading > p:last-child { color: var(--muted-color); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.testimonial-grid article { min-height: 220px; padding: 22px; border-radius: 12px; background: #eef4f1; }
.quote-mark { color: #d71920; font-size: 2.4rem; line-height: .7; }
.testimonial-grid p { font-size: .9rem; }
.testimonial-grid strong { display: block; font-size: .75rem; }
.stars { color: var(--accent-color); font-size: .8rem; }
.landing-cta { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 90px; padding: clamp(35px, 6vw, 70px); border-radius: 25px; background: var(--primary-color); color: #fff; }
.landing-cta h2 { max-width: 650px; margin: 5px 0 12px; color: #fff; font-size: clamp(2rem, 4vw, 4rem); line-height: .98; }
.landing-cta p { max-width: 560px; margin: 0; color: rgba(255,255,255,.82); }
.landing-cta .button { background: var(--accent-color); color: #171c22; }
.landing-cta .section-kicker { color: var(--accent-color); }
.landing-page .countdown-content h2 { color: #ffffff; }
.landing-page .countdown-content .section-kicker { color: var(--accent-color); }
.landing-cta .button:hover, .landing-cta .button:focus-visible { background: #ffffff; color: var(--primary-dark); }
.service-card .section-kicker, .service-card h3 { color: #ffffff; }
.button:focus-visible, .public-nav a:focus-visible, .login-back:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }
.public-nav .nav-admin:hover, .public-nav .nav-admin:focus-visible { background: var(--primary-dark); color: #ffffff; }

.admin-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.editor-group-title { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-color); }
.editor-group-title h3 { margin: 0; color: var(--primary-dark); }
.landing-editor-field textarea { min-height: 76px; }

.login-page { position: relative; min-height: 720px; background-color: #f6faf9; background-image: linear-gradient(rgba(19, 127, 115, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 127, 115, .06) 1px, transparent 1px); background-size: 42px 42px; }
.login-page::before { position: absolute; width: 240px; height: 240px; top: 12%; left: 14%; border-radius: 48% 52% 42% 58%; background: var(--accent-color); opacity: .25; content: ""; }
.login-page::after { position: absolute; width: 280px; height: 280px; right: 12%; bottom: 10%; border-radius: 52% 48% 58% 42%; background: var(--primary-color); opacity: .2; content: ""; }
.login-page .auth-panel { position: relative; z-index: 1; width: min(100%, 490px); padding: clamp(28px, 6vw, 52px); border: 0; border-top: 7px solid var(--primary-color); border-radius: 18px; box-shadow: 0 24px 70px rgba(23, 28, 34, .16); }
.login-intro { margin-bottom: 30px; }
.login-intro h1 { margin: 0 0 12px; color: var(--secondary-color); font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: .98; }
.login-intro p:last-child { margin: 0; color: var(--muted-color); }
.login-page form { display: grid; gap: 8px; }
.login-page form .field-label { margin-top: 8px; }
.login-page form .text-input { min-height: 50px; border-radius: 6px; }
.login-submit { width: 100%; margin-top: 14px; border-radius: 6px; background: var(--primary-color); }
.login-submit:hover, .login-submit:focus-visible { background: var(--primary-dark); }
.login-back { display: block; margin-top: 24px; color: var(--primary-dark); font-size: .88rem; font-weight: 800; text-align: center; text-decoration: none; }
.testimonial-avatar { display: block; width: 54px; height: 54px; margin-bottom: 15px; border: 3px solid var(--accent-color); border-radius: 50%; object-fit: cover; }

@media (max-width: 760px) {
    .landing-hero { display: block; min-height: auto; padding-top: 60px; }
    .landing-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
    .hero-art { min-height: 390px; margin-top: 35px; }
    .hero-art-frame { width: min(82vw, 360px); }
    .split-heading, .landing-testimonials { grid-template-columns: 1fr; gap: 20px; }
    .landing-services, .landing-features, .landing-testimonials { padding-top: 65px; padding-bottom: 65px; }
    .service-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .feature-row, .feature-row-reverse { grid-template-columns: 1fr; gap: 35px; margin-bottom: 70px; }
    .feature-row-reverse .feature-image { order: 0; }
    .landing-cta { align-items: start; flex-direction: column; margin-bottom: 55px; }
    .admin-section-heading { flex-direction: column; }
    .login-page { min-height: 620px; padding-top: 40px; padding-bottom: 40px; }
    .login-page::before { top: 5%; left: -70px; }
    .login-page::after { right: -100px; bottom: 4%; }
    .login-page .auth-panel { padding: 30px 22px; }
    .landing-search .search-row { grid-template-columns: 1fr; }
}

.countdown-band {
    background: #063b69;
    color: #ffffff;
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 0;
}

.countdown-content h2 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.countdown-content .section-kicker {
    margin-bottom: 4px;
    color: #f2c94c;
}

.countdown {
    display: flex;
    gap: 10px;
}

.countdown div {
    display: grid;
    min-width: 74px;
    padding: 9px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.countdown strong {
    color: #ffffff;
    font-size: 1.55rem;
    line-height: 1;
}

.countdown span {
    margin-top: 5px;
    color: #b9d0e1;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.result-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 20px;
    scroll-snap-type: x mandatory;
    scrollbar-color: #9db9cb transparent;
}

.result-carousel .result-card {
    flex: 0 0 calc((100% - 32px) / 3);
    scroll-snap-align: start;
}

.carousel-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -8px 0 12px;
}

.carousel-control {
    width: 38px;
    height: 38px;
    border: 1px solid #c7d8e4;
    border-radius: 50%;
    background: #ffffff;
    color: #063b69;
    font-size: 1.1rem;
    cursor: pointer;
}

.carousel-control:hover,
.carousel-control:focus-visible {
    border-color: #d71920;
    color: #d71920;
}

.ranking-section {
    padding: 68px 0;
    background: #ffffff;
}

.ranking-tabs {
    display: flex;
    align-self: end;
    gap: 4px;
    padding: 4px;
    border: 1px solid #dbe5ec;
    border-radius: 8px;
    background: #f5f9fb;
}

.ranking-tab {
    border: 0;
    border-radius: 5px;
    padding: 9px 13px;
    background: transparent;
    color: #637083;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.ranking-tab.is-active {
    background: #063b69;
    color: #ffffff;
}

.ranking-chart {
    display: grid;
    gap: 17px;
    max-width: 820px;
    padding: 26px;
    border: 1px solid #dbe5ec;
    border-radius: 10px;
    background: #f5f9fb;
}

.chart-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) 1fr 42px;
    align-items: center;
    gap: 14px;
    font-size: 0.84rem;
}

.chart-row i {
    position: relative;
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe5ec;
}

.chart-row i::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--bar);
    border-radius: inherit;
    background: linear-gradient(90deg, #d71920, #f2c94c);
    content: "";
    animation: grow-bar 900ms ease-out both;
}

.chart-row strong {
    color: #063b69;
    text-align: right;
}

.ranking-note {
    margin: 12px 0 0;
    color: var(--muted-color);
    font-size: 0.84rem;
}

@keyframes grow-bar {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

.modal-backdrop[hidden],
.ranking-panel[hidden] {
    display: none;
}

.modal-backdrop {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(6, 59, 105, 0.58);
}

.site-modal {
    position: relative;
    width: min(100%, 600px);
    max-height: min(720px, 92vh);
    overflow-y: auto;
    border-top: 5px solid #d71920;
    border-radius: 10px;
    padding: clamp(22px, 5vw, 36px);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(6, 59, 105, 0.3);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f5f9fb;
    color: #063b69;
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-kicker {
    margin: 0 0 7px;
    color: #d71920;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-modal h2 {
    margin: 0 36px 8px 0;
    color: #063b69;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.05;
}

.site-modal h3 {
    margin: 22px 0 10px;
    color: #063b69;
}

.modal-lead {
    color: var(--muted-color);
}

.modal-facts {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0;
    padding: 12px;
    border-radius: 7px;
    background: #fff5d6;
}

.modal-locations {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding-left: 20px;
}

.modal-locations li::marker {
    color: #d71920;
}

.map-frame {
    aspect-ratio: 16 / 9;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 7px;
    background: #e7eef3;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-open {
    overflow: hidden;
}

.countdown-admin-form {
    display: flex;
    align-items: end;
    gap: 14px;
}

.countdown-admin-form > div {
    flex: 1;
}

@media (max-width: 760px) {
    .countdown-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .countdown {
        width: 100%;
    }

    .countdown div {
        min-width: 0;
        flex: 1;
    }

    .result-carousel .result-card {
        flex-basis: min(82vw, 320px);
    }

    .ranking-section .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-row {
        grid-template-columns: 1fr 46px;
        gap: 8px;
    }

    .chart-row i {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .countdown-admin-form {
        align-items: stretch;
        flex-direction: column;
    }
}
