/**
 * Page regions and legacy-compatible position geometry.
 */

.site-services {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-block: 8px 10px;
    color: var(--color-brand);
    background: var(--color-surface);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15px;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

.site-services p {
    margin: 0;
}

.site-services > .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.site-topbar {
    padding: var(--topbar-padding);
    color: #ffffff;
    background: var(--color-brand-topbar);
}

.site-topbar a {
    color: #ffffff;
}

.site-topbar p {
    margin: 0;
}

.topbar-grid,
.header-grid,
.bottom-grid {
    display: grid;
    align-items: center;
}

.topbar-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--gutter);
}

.topbar-right {
    text-align: right;
}

.site-header {
    position: relative;
    z-index: 100;
    height: var(--header-height);
    background: var(--color-surface);
    box-shadow: var(--shadow-header);
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
}

.header-grid {
    grid-template-columns: minmax(230px, 3fr) minmax(0, 9fr);
    height: 100%;
}

.site-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    height: var(--header-height);
}

.site-brand img {
    width: auto;
    max-width: 100%;
    max-height: 80px;
}

.site-navigation {
    justify-self: end;
    min-width: 0;
}

.position-promo,
.position-slide {
    overflow: hidden;
}

.home-welcome {
    color: var(--color-text);
    background: #f4f7f6;
}

.home-welcome-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
    padding-block: clamp(42px, 6vw, 84px);
}

.home-welcome-copy h2 {
    margin-bottom: 14px;
    color: var(--color-brand-ink);
}

.home-welcome-rule {
    margin-bottom: 28px;
}

.home-welcome-copy p:last-child {
    margin-bottom: 0;
}

.home-welcome-services {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 18px 0 24px;
    list-style: none;
    font-weight: 700;
}

.home-welcome-services li {
    position: relative;
    padding-left: 30px;
}

.home-welcome-services li::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    color: #ffffff;
    background: var(--color-brand);
    border-radius: 50%;
    content: "+";
    font-size: 17px;
    line-height: 18px;
    text-align: center;
}

.home-welcome-media img {
    width: 100%;
    border-radius: var(--radius-panel);
}

.sp-page-title {
    min-height: 132px;
    padding: 30px 0;
    color: #ffffff;
    background-color: var(--color-brand);
    background-image: linear-gradient(rgba(0, 164, 153, 0.34), rgba(0, 164, 153, 0.34)), url("../images/page-title.jpg");
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}

.sp-page-title h1,
.sp-page-title h2,
.sp-page-title h3,
.sp-page-title a {
    color: #ffffff;
}

.site-main {
    padding: var(--main-padding) 0;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gutter);
}

.main-grid.has-left {
    grid-template-columns: 3fr 9fr;
}

.main-grid.has-right {
    grid-template-columns: 9fr 3fr;
}

.main-grid.has-left.has-right {
    grid-template-columns: 3fr 6fr 3fr;
}

.component-area,
.sidebar {
    min-width: 0;
}

.position-grid > .container {
    display: grid;
    gap: var(--gutter);
}

.site-bottom {
    padding: 50px 0;
    background: var(--color-surface-muted);
}

.bottom-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: var(--gutter);
}

.site-prefooter {
    padding: 30px 0;
    background: #f0f0f0;
}

.prefooter-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gutter);
}

.prefooter-callout h2,
.prefooter-callout p {
    margin-bottom: 0;
}

.site-footer {
    padding: 20px 0;
    color: #ffffff;
    text-align: center;
    background: var(--color-brand);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer > .container {
    display: block;
    text-align: center;
}

.footer-brand img {
    width: min(100%, 150px);
    margin-inline: auto;
}

.footer-legal p {
    max-width: 1120px;
    margin: 0 auto 8px;
}

.footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-brand-module + .footer-legal-module,
.footer-brand + .footer-legal {
    margin-top: 12px;
}

.error-content,
.offline-content {
    padding-block: 80px;
    text-align: center;
}

.offline-content img {
    margin: 0 auto 30px;
}

.error-code {
    margin: 0;
    color: var(--color-brand);
    font-size: clamp(72px, 16vw, 180px);
    font-weight: 800;
    line-height: 1;
}
