:root {
    --ink: #1b2b39;
    --ink-soft: #566577;
    --line: #d6dde4;
    --line-strong: #b8c4cf;
    --paper: #eef2f5;
    --paper-deep: #e3e9ee;
    --panel: #ffffff;
    --panel-soft: #f7f9fb;
    --brand: #12324a;
    --brand-deep: #0a2033;
    --brand-soft: #e6eef5;
    --accent: #9b7a39;
    --accent-soft: #f0e6d4;
    --shadow-soft: 0 18px 45px rgba(11, 31, 50, 0.08);
    --shadow-card: 0 16px 34px rgba(12, 27, 45, 0.06);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.85rem;
}

html {
    scroll-behavior: smooth;
}

body.app-body {
    background:
        radial-gradient(circle at top left, rgba(18, 50, 74, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fafb 0%, var(--paper) 36%, #edf2f6 100%);
    color: var(--ink);
    min-height: 100vh;
    font-family: "Public Sans", "Segoe UI Variable Text", "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--brand);
    text-decoration-color: rgba(18, 50, 74, 0.28);
}

a:hover {
    color: var(--brand-deep);
}

.public-body .container {
    width: min(100% - 1.6rem, 1500px);
    max-width: none;
}

.public-site h1,
.public-site h2,
.public-site h3,
.public-site h4,
.site-header .brand-title,
.site-footer .footer-title {
    font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
    letter-spacing: -0.02em;
}

.public-site {
    position: relative;
}

.public-main {
    position: relative;
    z-index: 1;
}

.has-whatsapp-float .public-site {
    padding-bottom: 6.5rem;
}

.public-topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, var(--brand-deep), #12324a 72%, #1c415c);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
}

.topbar-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    padding: 0.75rem 0;
}

.topbar-items span {
    position: relative;
}

.topbar-items span + span::before {
    content: "";
    position: absolute;
    left: -0.8rem;
    top: 50%;
    width: 0.26rem;
    height: 0.26rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-50%);
}

.whatsapp-float-button {
    position: fixed;
    right: 1.35rem;
    bottom: 1.35rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1rem 0.8rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #1fa855 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(16, 48, 32, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-float-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(16, 48, 32, 0.28);
}

.whatsapp-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.whatsapp-float-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.whatsapp-float-label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(10px);
}

.site-header .navbar {
    padding: 1rem 0 1.2rem;
}

.nav-surface {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(184, 196, 207, 0.75);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-right: 1rem;
    text-decoration: none;
}

.brand-mark,
.footer-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    background: linear-gradient(145deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-mark-image,
.footer-seal-image {
    padding: 0.2rem;
    background: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 20px rgba(12, 27, 45, 0.08);
}

.brand-mark-image img,
.footer-seal-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-kicker,
.section-kicker,
.panel-kicker,
.footer-kicker,
.eyebrow,
.notice-meta {
    display: inline-block;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.brand-kicker,
.section-kicker,
.panel-kicker,
.eyebrow {
    color: var(--accent);
}

.brand-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--brand-deep);
}

.site-header .navbar-collapse {
    align-items: center;
}

.site-header .navbar-nav {
    gap: 0.35rem;
}

.site-header .nav-link {
    position: relative;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--brand-deep);
    background: var(--brand-soft);
}

.site-header .nav-action {
    margin-left: 1rem;
}

.site-toggler {
    display: inline-flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--panel);
    box-shadow: none;
}

.site-toggler span {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: var(--brand-deep);
}

.public-site .btn,
.site-header .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.78rem 1.15rem;
    box-shadow: none;
}

.public-site .btn-sm,
.site-header .btn-sm {
    padding: 0.58rem 0.95rem;
}

.public-site .btn-primary,
.site-header .btn-primary {
    border-color: var(--brand);
    background: linear-gradient(135deg, var(--brand) 0%, #214967 100%);
}

.public-site .btn-primary:hover,
.site-header .btn-primary:hover {
    border-color: var(--brand-deep);
    background: linear-gradient(135deg, var(--brand-deep) 0%, #17364e 100%);
}

.public-site .btn-outline-primary,
.site-header .btn-outline-primary {
    color: var(--brand);
    border-color: rgba(18, 50, 74, 0.22);
    background: rgba(255, 255, 255, 0.78);
}

.public-site .btn-outline-primary:hover,
.site-header .btn-outline-primary:hover {
    color: var(--brand-deep);
    border-color: rgba(18, 50, 74, 0.35);
    background: var(--brand-soft);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 1.6rem 0 1.8rem;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(18, 50, 74, 0.18), transparent 25%),
        radial-gradient(circle at left center, rgba(155, 122, 57, 0.12), transparent 22%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1.75rem;
    align-items: stretch;
}

.hero-copy,
.hero-panel,
.page-hero-shell,
.public-card,
.public-panel,
.content-card,
.sidebar-card,
.table-shell {
    border: 1px solid rgba(184, 196, 207, 0.82);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
}

.hero-copy {
    padding: 3rem;
    border-radius: 2rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 252, 0.92)),
        var(--panel);
}

.hero-map-shell {
    padding: 1.1rem;
}

.hero-map-shell .hero-location-card {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hero-copy h1,
.page-hero-shell h1,
.detail-hero h1 {
    color: var(--brand-deep);
    font-size: clamp(2.3rem, 4vw, 4.25rem);
    line-height: 0.98;
    margin: 0.35rem 0 1rem;
}

.hero-summary,
.page-hero-shell p,
.detail-hero p,
.results-summary,
.public-card p,
.public-panel p,
.content-card p,
.site-footer p,
.rich-copy,
.page-content {
    color: var(--ink-soft);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 2rem 0 2.2rem;
}

.hero-location-card {
    height: 100%;
    padding: 1.1rem;
    border: 1px solid rgba(184, 196, 207, 0.78);
    border-radius: 1.45rem;
    background:
        linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(238, 244, 248, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-location-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.hero-location-head h2 {
    margin: 0.2rem 0 0;
    color: var(--brand-deep);
    font-size: 1.6rem;
}

.hero-location-frame {
    overflow: hidden;
    min-height: 420px;
    border: 1px solid rgba(184, 196, 207, 0.9);
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #dbe4eb 0%, #eef3f7 100%);
    box-shadow: 0 18px 32px rgba(12, 27, 45, 0.08);
}

.hero-location-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
    filter: saturate(0.9) contrast(1.02);
}

.hero-location-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.9rem 1.2rem;
    margin-top: 0.95rem;
}

.hero-location-meta div {
    min-width: 0;
    flex: 1 1 240px;
}

.hero-location-meta span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-location-meta strong {
    color: var(--brand-deep);
    font-size: 0.98rem;
    line-height: 1.45;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.public-metric {
    padding: 1.3rem 1.4rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
}

.metric-card span {
    color: var(--ink-soft);
    font-size: 0.93rem;
}

.metric-card strong {
    font-size: 2rem;
    line-height: 1;
    color: var(--brand-deep);
}

.hero-panel {
    position: relative;
    padding: 2rem;
    border-radius: 2rem;
    background:
        linear-gradient(180deg, rgba(10, 32, 51, 0.98), rgba(18, 50, 74, 0.95)),
        var(--brand-deep);
    color: rgba(255, 255, 255, 0.9);
}

.hero-panel-home {
    display: flex;
    flex-direction: column;
}

.hero-panel-home h1 {
    margin: 0.35rem 0 0.45rem;
    color: #ffffff;
    font-size: clamp(2.25rem, 3.8vw, 3.6rem);
    line-height: 0.96;
}

.hero-panel-subtitle {
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.45;
}

.hero-panel-summary {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.hero-actions-panel {
    margin: 1.45rem 0 1.75rem;
}

.hero-actions-compact {
    margin: 1.4rem 0 0;
}

.hero-panel .btn-outline-primary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.hero-panel .btn-outline-primary:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.14);
}

.hero-panel h2 {
    color: #ffffff;
    font-size: 2rem;
    margin: 0.35rem 0 1.2rem;
}

.info-stack {
    display: grid;
    gap: 1rem;
}

.hero-panel .info-stack div {
    padding: 0.95rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-panel .info-stack span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.79rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.hero-panel .info-stack strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.hero-note,
.footer-note {
    margin: 1.4rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.contact-panel .info-stack div {
    padding: 0.95rem 0 0;
    border-top: 1px solid rgba(18, 50, 74, 0.08);
}

.contact-panel .info-stack span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.79rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.contact-panel .info-stack strong {
    color: var(--brand-deep);
    font-size: 1rem;
    font-weight: 600;
}

.contact-panel .hero-note,
.site-footer .footer-note {
    background: rgba(18, 50, 74, 0.06);
    color: var(--ink-soft);
}

.public-section {
    padding: 1.2rem 0 2.8rem;
}

.services-section {
    padding-top: 1.1rem;
}

.section-soft {
    background:
        linear-gradient(180deg, rgba(18, 50, 74, 0.03), rgba(255, 255, 255, 0)),
        transparent;
}

.page-hero {
    padding: 2rem 0 1.6rem;
}

.page-hero-compact {
    padding-top: 1.4rem;
}

.page-hero-shell {
    position: relative;
    overflow: hidden;
    padding: 2.35rem 2.6rem;
    border-radius: 1.8rem;
    background:
        radial-gradient(circle at top right, rgba(18, 50, 74, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 251, 0.94));
}

.page-hero-shell h1 {
    font-size: clamp(2rem, 3.2vw, 3.3rem);
    margin-bottom: 0.75rem;
}

.section-heading,
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--brand-deep);
}

.section-link {
    font-weight: 600;
    text-decoration: none;
}

.compact-filter-shell {
    padding: 1.35rem 1.45rem;
    border-radius: 1.3rem;
}

.compact-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.compact-filter-shell .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.compact-filter-meta {
    flex-shrink: 0;
}

.result-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.48rem 0.85rem;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.86rem;
    font-weight: 700;
}

.compact-filter-form .form-label {
    margin-bottom: 0.35rem;
}

.compact-filter-form .form-control,
.compact-filter-form .form-select {
    min-height: 2.85rem;
}

.compact-filter-form .btn {
    padding-block: 0.72rem;
}

.services-results {
    margin-top: 0.2rem;
}

.public-card,
.public-panel,
.content-card,
.sidebar-card,
.table-shell {
    border-radius: var(--radius-lg);
}

.public-card,
.public-panel,
.content-card,
.sidebar-card {
    padding: 1.55rem;
}

.public-card,
.feature-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.public-card:hover,
.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(18, 50, 74, 0.28);
    box-shadow: 0 20px 38px rgba(12, 27, 45, 0.09);
}

.feature-topline,
.record-topline,
.staff-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-category,
.feature-code,
.stack-item-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.feature-category,
.stack-item-badge {
    background: var(--brand-soft);
    color: var(--brand);
}

.feature-code {
    background: var(--accent-soft);
    color: #785c28;
}

.public-card h2,
.public-card h3,
.public-panel h2,
.public-panel h3,
.content-card h2,
.sidebar-card h2 {
    color: var(--brand-deep);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.shift-card {
    border: 1px solid rgba(184, 196, 207, 0.76);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 251, 0.94));
}

.shift-card .shift-time {
    margin: 0 0 0.55rem;
    color: var(--brand-deep);
    font-size: 1rem;
    font-weight: 700;
}

.shift-card .shift-notes {
    margin: 0;
    color: var(--ink-soft);
}

.popup-notice-card {
    border: 1px solid rgba(184, 196, 207, 0.76);
    border-radius: 1.5rem;
    overflow: hidden;
}

.popup-notice-card .modal-header,
.popup-notice-card .modal-body {
    padding-inline: 1.75rem;
}

.popup-notice-card .modal-header {
    padding-top: 1.5rem;
}

.popup-notice-card .modal-body {
    padding-bottom: 1.75rem;
}

.popup-notice-important {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 251, 0.96));
}

.popup-notice-warning {
    background: linear-gradient(180deg, rgba(255, 250, 238, 0.98), rgba(255, 246, 220, 0.96));
}

.popup-notice-promotion {
    background: linear-gradient(180deg, rgba(246, 251, 255, 0.99), rgba(233, 244, 252, 0.96));
}

.popup-notice-info {
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(240, 246, 250, 0.96));
}

.popup-notice-media {
    border-radius: 1.2rem;
    overflow: hidden;
    background: rgba(18, 50, 74, 0.06);
    min-height: 18rem;
}

.popup-notice-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-notice-text,
.popup-notice-html {
    color: var(--ink);
    line-height: 1.7;
}

.popup-notice-html p:last-child,
.popup-notice-text p:last-child {
    margin-bottom: 0;
}

.popup-notice-html a {
    color: var(--brand);
    font-weight: 600;
}

.notice-card::before,
.record-panel::before,
.content-card::before,
.sidebar-card::before {
    content: "";
    display: block;
    width: 3.5rem;
    height: 0.22rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(155, 122, 57, 0.16));
}

.notice-card-warning {
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

.notice-card-danger,
.notice-card-error {
    background: linear-gradient(180deg, #fff8f6 0%, #ffffff 100%);
}

.feature-meta,
.staff-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.feature-meta span,
.staff-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.72rem;
    border-radius: 999px;
    background: rgba(18, 50, 74, 0.06);
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.staff-role {
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-weight: 600;
}

.stack-list {
    display: grid;
    gap: 1rem;
}

.stack-item,
.stack-item-card {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.stack-item-date {
    min-width: 6.2rem;
    padding-top: 0.15rem;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stack-item h3,
.stack-item-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.quick-links-grid a {
    display: flex;
    align-items: end;
    min-height: 7rem;
    padding: 1.15rem;
    border: 1px solid rgba(184, 196, 207, 0.76);
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 249, 251, 0.96));
    color: var(--brand-deep);
    font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
    font-size: 1.18rem;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.quick-links-grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(18, 50, 74, 0.28);
}

.home-quick-links-panel {
    padding-block: 1.7rem;
}

.quick-links-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.quick-links-grid-home a {
    min-height: 6.2rem;
    font-size: 1.08rem;
}

.home-gallery-rotator {
    position: relative;
    --home-gallery-main-height: 460px;
    --home-gallery-gap: 0.95rem;
    --home-gallery-side-width: 31%;
    --home-gallery-main-width: calc(100% - var(--home-gallery-side-width) - var(--home-gallery-gap));
    --home-gallery-side-height: calc((100% - var(--home-gallery-gap)) / 2);
}

.home-gallery-stage {
    position: relative;
    height: var(--home-gallery-main-height);
    overflow: hidden;
}

.home-gallery-panel {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(184, 196, 207, 0.82);
    border-radius: 1.4rem;
    box-shadow: var(--shadow-card);
    background: #d7e0e8;
    transform-origin: center center;
    will-change: top, right, left, bottom, width, height, opacity, transform;
    transition:
        top 0.72s cubic-bezier(0.2, 0.88, 0.24, 1),
        right 0.72s cubic-bezier(0.2, 0.88, 0.24, 1),
        left 0.72s cubic-bezier(0.2, 0.88, 0.24, 1),
        bottom 0.72s cubic-bezier(0.2, 0.88, 0.24, 1),
        width 0.72s cubic-bezier(0.2, 0.88, 0.24, 1),
        height 0.72s cubic-bezier(0.2, 0.88, 0.24, 1),
        opacity 0.44s ease,
        transform 0.72s cubic-bezier(0.2, 0.88, 0.24, 1),
        box-shadow 0.72s cubic-bezier(0.2, 0.88, 0.24, 1);
}

.position-main {
    top: 0;
    left: 0;
    width: var(--home-gallery-main-width);
    height: 100%;
    z-index: 3;
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow: 0 22px 44px rgba(12, 27, 45, 0.1);
}

.position-top {
    top: 0;
    right: 0;
    width: var(--home-gallery-side-width);
    height: var(--home-gallery-side-height);
    z-index: 2;
    transform: translate3d(0, 0, 0) scale(0.985);
}

.position-bottom {
    right: 0;
    bottom: 0;
    width: var(--home-gallery-side-width);
    height: var(--home-gallery-side-height);
    z-index: 1;
    transform: translate3d(0, 0, 0) scale(0.985);
}

.position-enter-right {
    right: calc(-1 * (var(--home-gallery-side-width) + var(--home-gallery-gap)));
    bottom: 0;
    width: var(--home-gallery-side-width);
    height: var(--home-gallery-side-height);
    opacity: 0;
    transform: translate3d(18px, 0, 0) scale(0.94);
    z-index: 1;
    pointer-events: none;
}

.position-enter-left {
    top: 0;
    left: calc(-1 * (var(--home-gallery-main-width) + var(--home-gallery-gap)));
    width: var(--home-gallery-main-width);
    height: 100%;
    opacity: 0;
    transform: translate3d(-18px, 0, 0) scale(0.96);
    z-index: 3;
    pointer-events: none;
}

.position-exit-left {
    top: 0;
    left: calc(-1 * (var(--home-gallery-main-width) + var(--home-gallery-gap)));
    width: var(--home-gallery-main-width);
    height: 100%;
    opacity: 0;
    transform: translate3d(-18px, 0, 0) scale(0.94);
    z-index: 0;
    pointer-events: none;
}

.position-exit-right {
    right: calc(-1 * (var(--home-gallery-side-width) + var(--home-gallery-gap)));
    bottom: 0;
    width: var(--home-gallery-side-width);
    height: var(--home-gallery-side-height);
    opacity: 0;
    transform: translate3d(18px, 0, 0) scale(0.94);
    z-index: 0;
    pointer-events: none;
}

.home-gallery-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.8rem 0.95rem;
    background:
        linear-gradient(180deg, rgba(10, 32, 51, 0.03) 0%, rgba(10, 32, 51, 0.82) 72%, rgba(10, 32, 51, 0.92) 100%);
}

.home-gallery-overlay .panel-kicker {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.2rem;
    font-size: 0.66rem;
}

.home-gallery-overlay h3 {
    margin-bottom: 0.15rem;
    color: #ffffff;
    font-size: 1.05rem;
}

.home-gallery-overlay p {
    margin: 0;
    max-width: 70ch;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.35;
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.position-main .home-gallery-overlay h3 {
    font-size: 1.35rem;
}

.position-main .home-gallery-overlay p {
    font-size: 0.92rem;
}

.position-top .home-gallery-overlay,
.position-bottom .home-gallery-overlay,
.position-enter-right .home-gallery-overlay,
.position-exit-right .home-gallery-overlay {
    padding: 0.65rem 0.8rem;
}

.position-top .home-gallery-overlay .panel-kicker,
.position-bottom .home-gallery-overlay .panel-kicker,
.position-enter-right .home-gallery-overlay .panel-kicker,
.position-exit-right .home-gallery-overlay .panel-kicker {
    display: none;
}

.position-top .home-gallery-overlay h3,
.position-bottom .home-gallery-overlay h3,
.position-enter-right .home-gallery-overlay h3,
.position-exit-right .home-gallery-overlay h3 {
    font-size: 0.96rem;
}

.position-top .home-gallery-overlay p,
.position-bottom .home-gallery-overlay p,
.position-enter-right .home-gallery-overlay p,
.position-exit-right .home-gallery-overlay p {
    font-size: 0.78rem;
    -webkit-line-clamp: 1;
}

.home-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 1rem;
}

.home-carousel-control {
    position: static;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(184, 196, 207, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-deep);
    opacity: 1;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.home-carousel-control:hover {
    border-color: rgba(18, 50, 74, 0.28);
    background: var(--brand-soft);
}

.home-carousel-control span {
    font-size: 2rem;
    line-height: 1;
}

.home-gallery-status {
    margin-top: 0.85rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.home-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.home-gallery-thumb {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.6rem;
    border: 1px solid rgba(184, 196, 207, 0.82);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.home-gallery-thumb:hover,
.home-gallery-thumb.active,
.home-gallery-thumb[aria-current="true"] {
    transform: translateY(-1px);
    border-color: rgba(18, 50, 74, 0.28);
    background: var(--brand-soft);
}

.home-gallery-thumb img {
    width: 78px;
    height: 58px;
    object-fit: cover;
    border-radius: 0.8rem;
    display: block;
}

.home-gallery-thumb span {
    color: var(--brand-deep);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.empty-state {
    padding: 1.25rem 1.35rem;
    border: 1px dashed var(--line-strong);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
}

.empty-state-inline {
    margin-top: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.back-link::before {
    content: "<";
}

.detail-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: start;
    padding: 2.2rem 2.4rem;
    border: 1px solid rgba(184, 196, 207, 0.82);
    border-radius: 1.8rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 251, 0.94));
    box-shadow: var(--shadow-card);
}

.detail-hero-code {
    min-width: 5.8rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1.1rem;
    background: var(--brand-deep);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.content-card,
.sidebar-card {
    margin-bottom: 1.25rem;
}

.rich-copy,
.page-content {
    font-size: 1rem;
}

.sidebar-stack {
    display: grid;
    gap: 1.25rem;
}

.sticky-card {
    position: sticky;
    top: 8.75rem;
}

.public-definition {
    display: grid;
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: 0.8rem 1rem;
    margin: 0;
}

.public-definition dt {
    font-weight: 700;
    color: var(--brand-deep);
}

.public-definition dd {
    margin: 0;
    color: var(--ink-soft);
}

.compact-definition {
    grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
    font-size: 0.94rem;
}

.inline-link {
    font-weight: 600;
    text-decoration: none;
}

.support-note {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(155, 122, 57, 0.18);
    border-radius: 1rem;
    background: linear-gradient(180deg, #fffaf0 0%, #fffefe 100%);
    color: #6c5a34;
}

.results-header {
    margin-bottom: 1.2rem;
}

.table-shell {
    overflow: hidden;
}

.institutional-table thead th {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f9fbfc 0%, #f1f5f8 100%);
    color: var(--brand-deep);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.institutional-table > :not(caption) > * > * {
    padding: 1rem 1.1rem;
    border-color: rgba(214, 221, 228, 0.95);
}

.institutional-table tbody tr:hover {
    background: rgba(230, 238, 245, 0.38);
}

.pagination-shell {
    margin-top: 1.6rem;
}

.public-site .pagination {
    gap: 0.5rem;
    margin-bottom: 0;
}

.public-site .page-link {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand);
    background: rgba(255, 255, 255, 0.9);
}

.public-site .page-item.active .page-link {
    border-color: var(--brand);
    background: var(--brand);
}

.public-site .form-label {
    color: var(--brand-deep);
    font-size: 0.92rem;
    font-weight: 600;
}

.public-site .form-control,
.public-site .form-select,
.public-site textarea {
    min-height: 3rem;
    border-color: var(--line);
    border-radius: 0.95rem;
    padding: 0.8rem 0.95rem;
    background: #fbfcfd;
}

.public-site textarea.form-control {
    min-height: 8rem;
}

.public-site .form-control:focus,
.public-site .form-select:focus {
    border-color: rgba(18, 50, 74, 0.34);
    box-shadow: 0 0 0 0.25rem rgba(18, 50, 74, 0.09);
}

.contact-form-card .btn-primary {
    min-width: 12rem;
}

.faq-accordion .accordion-item {
    overflow: hidden;
    border: 1px solid rgba(184, 196, 207, 0.82);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
}

.faq-accordion .accordion-item + .accordion-item {
    margin-top: 1rem;
}

.faq-accordion .accordion-button {
    padding: 1.2rem 1.25rem;
    font-weight: 600;
    color: var(--brand-deep);
    background: #ffffff;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--brand-soft);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.prose-card .page-content {
    max-width: 74ch;
}

.site-footer,
.admin-sidebar,
.card,
.info-panel,
.metric-card {
    background: var(--panel);
}

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(184, 196, 207, 0.7);
    background:
        radial-gradient(circle at bottom left, rgba(18, 50, 74, 0.12), transparent 24%),
        linear-gradient(180deg, #f7fafc 0%, #eef3f6 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer-brand-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.footer-title {
    margin: 0 0 0.6rem;
    color: var(--brand-deep);
    font-size: 1.45rem;
}

.footer-copy {
    max-width: 38ch;
}

.footer-block h2 {
    margin-bottom: 0.9rem;
    font-size: 1rem;
    font-family: "Public Sans", "Segoe UI Variable Text", "Segoe UI", sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-deep);
}

.footer-list,
.footer-links {
    display: grid;
    gap: 0.55rem;
}

.footer-list {
    padding: 0;
    margin: 0;
    list-style: none;
    color: var(--ink-soft);
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--brand-deep);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(184, 196, 207, 0.7);
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.footer-credit a {
    color: var(--brand-deep);
    font-weight: 600;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.admin-shell {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset -1px 0 0 rgba(184, 196, 207, 0.6);
}

.sidebar-title {
    padding: 0.35rem 0.3rem 1rem;
    border-bottom: 1px solid rgba(184, 196, 207, 0.7);
}

.sidebar-caption {
    margin-top: 0.45rem;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-sidebar-nav {
    display: grid;
    gap: 0.8rem;
}

.sidebar-group {
    border: 1px solid rgba(184, 196, 207, 0.72);
    border-radius: 1rem;
    background: rgba(247, 249, 251, 0.88);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sidebar-group[open] {
    background: #fff;
    border-color: rgba(18, 50, 74, 0.16);
    box-shadow: 0 16px 34px rgba(12, 27, 45, 0.05);
}

.sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style: none;
    color: var(--brand-deep);
    font-weight: 700;
}

.sidebar-group-toggle::-webkit-details-marker {
    display: none;
}

.sidebar-group-toggle::after {
    content: "›";
    color: var(--ink-soft);
    font-size: 1.15rem;
    transform: none;
    transition: transform 0.18s ease;
}

.sidebar-group[open] .sidebar-group-toggle::after {
    transform: rotate(90deg);
}

.sidebar-group-title {
    font-size: 0.95rem;
}

.sidebar-group-meta {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-subnav {
    display: grid;
    gap: 0.35rem;
    padding: 0 0.55rem 0.65rem;
}

.sidebar-quicklink {
    margin-bottom: 0.1rem;
}

.admin-sidebar .nav-link {
    color: var(--ink);
    border-radius: 0.8rem;
}

.admin-sidebar .sidebar-link {
    display: block;
    padding: 0.7rem 0.85rem;
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-sidebar .nav-link:hover {
    background: var(--brand-soft);
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--brand) 0%, #214967 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(18, 50, 74, 0.18);
}

.sidebar-account {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(184, 196, 207, 0.72);
}

.sidebar-account .nav-link + .nav-link {
    margin-top: 0.25rem;
}

.admin-main {
    min-width: 0;
}

dl dt {
    font-weight: 600;
    margin-top: 0.75rem;
}

dl dd {
    margin-bottom: 0;
    color: var(--ink-soft);
}

@media (max-width: 1199px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-bottom: 1px solid var(--line);
    }

    .nav-surface {
        display: block;
        padding: 1rem;
    }

    .site-header .navbar-collapse {
        margin-top: 1rem;
    }

    .site-header .nav-action {
        margin: 1rem 0 0;
    }

    .section-heading,
    .results-header,
    .compact-filter-header,
    .hero-location-head,
    .detail-hero,
    .footer-bottom {
        flex-direction: column;
        align-items: start;
    }

    .footer-bottom {
        padding-right: 0;
    }

    .has-whatsapp-float .public-site {
        padding-bottom: 5.25rem;
    }

    .sticky-card {
        position: static;
    }

    .quick-links-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .quick-links-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-location-frame,
    .hero-location-frame iframe {
        min-height: 320px;
    }

    .home-gallery-rotator {
        --home-gallery-main-height: 360px;
    }

    .home-gallery-stage {
        height: auto;
        display: grid;
        gap: var(--home-gallery-gap);
    }

    .home-gallery-panel,
    .position-main,
    .position-top,
    .position-bottom,
    .position-enter-left,
    .position-enter-right,
    .position-exit-left,
    .position-exit-right {
        position: relative;
        inset: auto;
        width: 100%;
        transform: none;
        opacity: 1;
    }

    .position-main {
        height: var(--home-gallery-main-height);
    }

    .position-top,
    .position-bottom {
        height: 150px;
    }

    .public-definition,
    .compact-definition {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .public-body .container {
        width: min(100% - 1rem, 1500px);
    }

    .hero-copy,
    .hero-panel,
    .page-hero-shell,
    .detail-hero,
    .public-card,
    .public-panel,
    .content-card,
    .sidebar-card {
        padding: 1.3rem;
        border-radius: 1.25rem;
    }

    .home-gallery-panel,
    .home-gallery-thumb {
        border-radius: 1.1rem;
    }

    .hero-copy h1,
    .page-hero-shell h1,
    .detail-hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .topbar-items {
        gap: 0.45rem 1rem;
    }

    .topbar-items span + span::before {
        display: none;
    }

    .whatsapp-float-button {
        right: 1rem;
        bottom: 1rem;
        padding: 0.82rem 0.95rem;
    }

    .hero-location-card {
        padding: 0.9rem;
    }

    .quick-links-grid-home {
        grid-template-columns: 1fr;
    }

    .hero-location-frame,
    .hero-location-frame iframe {
        min-height: 240px;
    }

    .home-gallery-rotator {
        --home-gallery-main-height: 260px;
        --home-gallery-gap: 0.7rem;
    }
}

.timeline-stack {
    display: grid;
    gap: 1rem;
}

.timeline-card {
    border: 1px solid rgba(15, 42, 66, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 42, 66, 0.06);
}
