@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Unbounded:wght@500;600&display=swap');

.homepage {
    --home-ink: #122b2b;
    --home-ink-soft: #3b5856;
    --home-lake: #176b67;
    --home-lake-dark: #0f504d;
    --home-signal: #e95d3f;
    --home-paper: #f4f8f6;
    --home-skywash: #dcece8;
    --home-line: #c7d8d4;
    --home-white: #ffffff;
    min-width: 320px;
    background: var(--home-paper);
    color: var(--home-ink);
    font: 400 15px/1.55 'Onest', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.homepage * { box-sizing: border-box; }
.homepage a,
.homepage button,
.homepage input { font: inherit; }
.homepage [hidden] { display: none !important; }

.homepage a:focus-visible,
.homepage button:focus-visible,
.homepage input:focus-visible,
.homepage summary:focus-visible {
    outline: 3px solid rgba(233, 93, 63, .42);
    outline-offset: 3px;
}

.home-shell {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.home-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Compact portal header */
.homepage .home-header {
    height: auto;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--home-line);
    background: rgba(244, 248, 246, .97);
    position: relative;
    z-index: 20;
}

.home-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.home-brand {
    color: var(--home-ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.home-brand:hover { color: var(--home-lake); }

.home-brand__mark {
    width: 34px;
    height: 34px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    transform: rotate(45deg);
}

.home-brand__mark span {
    display: block;
    background: var(--home-lake);
    border-radius: 2px;
}

.home-brand__mark span:nth-child(2),
.home-brand__mark span:nth-child(3) { background: var(--home-signal); }

.home-brand__text {
    display: flex;
    align-items: baseline;
    gap: 7px;
    line-height: 1;
}

.home-brand__text strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.04em;
}

.home-brand__text small {
    color: var(--home-ink-soft);
    font-size: 12px;
}

.homepage .home-nav {
    float: none;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.homepage .home-nav a {
    color: var(--home-ink-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.homepage .home-nav a:hover { color: var(--home-lake); }

.home-header__search {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border: 1px solid var(--home-ink);
    border-radius: 99px;
    color: var(--home-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease;
}

.home-header__search span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 18px;
    font-size: 0;
}

.home-header__search svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.home-header__search:hover { background: var(--home-ink); color: var(--home-white); }

/* Shared type */
.home-main { overflow: hidden; }

.home-kicker {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--home-lake);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-kicker span {
    width: 22px;
    height: 2px;
    background: currentColor;
}

.homepage .home-main h1,
.homepage .home-main h2,
.homepage .home-updates .page_title {
    float: none !important;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    letter-spacing: -.05em;
    text-transform: none;
}

.homepage .home-main h1 {
    max-width: 580px;
    margin: 0 0 18px !important;
    color: var(--home-ink);
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.08 !important;
}

.homepage .home-main h2 {
    margin: 0 !important;
    color: var(--home-ink);
    font-size: clamp(27px, 2.7vw, 38px);
    line-height: 1.14 !important;
}

/* Search + quick links: one functional first screen */
.home-portal {
    padding: 48px 0 0;
    background-color: var(--home-paper);
    background-image:
        linear-gradient(rgba(23, 107, 103, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 107, 103, .03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.home-portal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(470px, .98fr);
    gap: 42px;
    align-items: center;
}

.home-portal__search-area { padding: 12px 0 30px; }

.home-portal__lead {
    margin: 0 0 25px;
    color: var(--home-ink-soft);
    font-size: 17px;
}

.home-search {
    min-height: 64px;
    max-width: 620px;
    padding: 6px 6px 6px 20px;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 12px;
    background: var(--home-white);
    border: 1px solid rgba(18, 43, 43, .14);
    border-radius: 14px;
    box-shadow: 0 15px 42px rgba(18, 43, 43, .09);
}

.home-search:focus-within {
    border-color: var(--home-lake);
    box-shadow: 0 15px 42px rgba(18, 43, 43, .12), 0 0 0 3px rgba(23, 107, 103, .08);
}

.home-search__icon,
.home-region-search div > span {
    width: 17px;
    height: 17px;
    display: block;
    border: 2px solid var(--home-lake);
    border-radius: 50%;
    position: relative;
}

.home-search__icon::after,
.home-region-search div > span::after {
    content: '';
    width: 6px;
    height: 2px;
    background: var(--home-lake);
    position: absolute;
    right: -5px;
    bottom: -2px;
    transform: rotate(45deg);
}

.home-search input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--home-ink);
    font-size: 15px;
}

.home-search input::placeholder { color: #728886; }

.home-search button {
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--home-signal);
    color: var(--home-white);
    font-weight: 700;
    cursor: pointer;
}

.home-search button:hover { background: #d84d31; }

.home-search-hints {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #6c8380;
    font-size: 12px;
}

.home-search-hints a {
    padding: 4px 9px;
    border: 1px solid var(--home-line);
    border-radius: 99px;
    color: var(--home-lake-dark);
    text-decoration: none;
    font-weight: 600;
}

.home-search-hints a:hover { border-color: var(--home-lake); }

.home-quick {
    background: var(--home-white);
    border: 1px solid var(--home-line);
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(18, 43, 43, .08);
}

.home-quick__heading {
    min-height: 78px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--home-line);
}

.home-quick__heading span {
    display: block;
    color: #718784;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.homepage .home-quick__heading h2 {
    margin-top: 5px !important;
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    letter-spacing: 0;
}

.home-quick__heading > a {
    color: var(--home-lake);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

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

.home-quick-link {
    min-height: 86px;
    padding: 15px 16px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    color: var(--home-ink);
    text-decoration: none;
    border-right: 1px solid var(--home-line);
    border-bottom: 1px solid var(--home-line);
    transition: background 150ms ease;
}

.home-quick-link:nth-child(2n) { border-right: 0; }
.home-quick-link:nth-last-child(-n + 2) { border-bottom: 0; }
.home-quick-link:hover { background: var(--home-paper); }

.home-quick-link__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--home-skywash);
    color: var(--home-lake);
}

.home-quick-link__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-quick-link strong,
.home-quick-link small { display: block; }
.home-quick-link strong { font-size: 13px; line-height: 1.25; }
.home-quick-link small { margin-top: 3px; color: #718784; font-size: 10px; line-height: 1.3; }
.home-quick-link i { color: var(--home-lake); font-size: 15px; font-style: normal; }

.home-portal__meta {
    min-height: 58px;
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-top: 1px solid var(--home-line);
    color: #617875;
    font-size: 11px;
}

.home-portal__meta strong { color: var(--home-lake-dark); font-size: 12px; }
.home-portal__meta span { position: relative; padding-left: 11px; }
.home-portal__meta span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--home-signal);
    position: absolute;
    left: 0;
    top: 6px;
}
.home-portal__meta p { margin: 0 0 0 auto; text-align: right; }

/* Dense directory workspace */
.home-directory { padding: 64px 0; background: var(--home-skywash); }

.home-directory__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.home-directory__main {
    padding: 30px;
    background: var(--home-white);
    border: 1px solid #bdd3ce;
    border-radius: 16px;
}

.home-directory__heading {
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: end;
    gap: 30px;
}

.home-region-search label {
    display: block;
    margin-bottom: 7px;
    color: #637b78;
    font-size: 11px;
    font-weight: 600;
}

.home-region-search > div {
    min-height: 46px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 19px 1fr;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--home-line);
    border-radius: 9px;
    background: var(--home-paper);
}

.home-region-search input {
    width: 100%;
    height: 44px;
    padding: 0;
    color: var(--home-ink);
    background: transparent;
    border: 0;
    outline: 0;
}

.home-directory__hint {
    margin: 20px 0 18px;
    padding-top: 16px;
    border-top: 1px solid var(--home-line);
    color: #6d8380;
    font-size: 11px;
}

.home-region-accordion {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-region-group {
    min-width: 0;
    border: 1px solid var(--home-line);
    border-radius: 9px;
    background: var(--home-white);
    overflow: hidden;
}

.home-region-group summary {
    min-height: 54px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 30px 1fr 16px;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.home-region-group summary::-webkit-details-marker { display: none; }

.home-region-group summary > strong {
    color: var(--home-signal);
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
}

.home-region-group summary > span { color: #647c79; font-size: 11px; }

.home-region-group summary > i {
    width: 14px;
    height: 14px;
    position: relative;
}

.home-region-group summary > i::before,
.home-region-group summary > i::after {
    content: '';
    background: var(--home-lake);
    position: absolute;
    inset: 6px 1px auto;
    height: 2px;
}

.home-region-group summary > i::after {
    transform: rotate(90deg);
    transition: transform 150ms ease;
}

.home-region-group[open] {
    grid-column: span 1;
    border-color: #8eb7af;
    box-shadow: 0 8px 24px rgba(18, 43, 43, .08);
}

.home-region-group[open] summary { background: var(--home-paper); }
.home-region-group[open] summary > i::after { transform: rotate(0); }

.home-region-group ul {
    margin: 0;
    padding: 6px 14px 14px 53px;
    display: grid;
    gap: 7px;
}

.home-region-group a {
    color: var(--home-ink-soft);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.35;
}

.home-region-group a:hover { color: var(--home-lake); text-decoration: underline; }

.home-region-empty {
    margin: 16px 0 0;
    padding: 14px;
    border-radius: 8px;
    background: #fff1ec;
    color: #8e3c29;
    font-size: 12px;
}

.home-sidebar { display: grid; gap: 16px; }

.home-sidebar-card {
    padding: 24px;
    background: var(--home-ink);
    border-radius: 14px;
    color: #d6e3e1;
}

.home-sidebar-card__label {
    display: block;
    margin-bottom: 9px;
    color: #8dbab3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.homepage .home-sidebar-card h2 {
    color: var(--home-white);
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    letter-spacing: -.02em;
}

.home-checklist { margin-top: 20px; display: grid; gap: 17px; }

.home-checklist li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
}

.home-checklist i {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(145, 195, 187, .14);
    color: #91c3bb;
    font-size: 11px;
    font-style: normal;
}

.home-checklist strong,
.home-checklist small { display: block; }
.home-checklist strong { color: var(--home-white); font-size: 12px; }
.home-checklist small { margin-top: 3px; color: #9db3b0; font-size: 10px; line-height: 1.45; }

.home-sidebar-card--accent { background: var(--home-lake); }
.home-sidebar-card--accent p { margin: 12px 0 18px; color: #cfe0dd; font-size: 12px; }
.home-sidebar-card--accent a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border-radius: 99px;
    background: var(--home-white);
    color: var(--home-lake-dark);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

/* News + reviews in one dashboard row */
.home-updates { padding: 64px 0; background: var(--home-white); }

.home-updates__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
    gap: 40px;
    align-items: start;
}

.homepage .home-updates .wrapper { width: 100%; margin: 0; }
.homepage .home-updates .news_container,
.homepage .home-updates .reviews_container { margin: 0; background: transparent; }

.homepage .home-updates .page_title {
    margin: 0 0 24px !important;
    color: var(--home-ink);
    font-size: 27px;
    line-height: 1.18;
    text-align: left;
}

.homepage .home-updates .news_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.homepage .home-updates .news_container > .page_title,
.homepage .home-updates .news_container > .allnews { grid-column: 1 / -1; }

.homepage .home-updates .newsbox,
.homepage .home-updates .reviewbox { float: none; width: auto; }

.homepage .home-updates .newsbox > .grid_out {
    height: 100%;
    margin: 0;
    padding: 0 0 14px;
    display: flex;
    flex-direction: column;
    background: var(--home-paper);
    border-bottom: 2px solid var(--home-lake);
}

.homepage .home-updates .newsbox .img {
    height: 132px;
    margin: 0 0 13px;
    background: var(--home-skywash);
}

.homepage .home-updates .newsbox .img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.homepage .home-updates .newsbox .rev_date {
    margin: 0 15px 8px;
    color: #6c8380;
    font-size: 10px;
}

.homepage .home-updates .rev_date .time::before { display: none; }

.homepage .home-updates .newsbox .name {
    height: 39px;
    margin: 0 15px 8px;
    font-size: 14px;
    line-height: 1.4;
}

.homepage .home-updates .newsbox .name a { color: var(--home-ink); }

.homepage .home-updates .newsbox .txt {
    height: 55px;
    margin: 0 15px 12px;
    color: #607774;
    font-size: 11px;
    line-height: 1.55;
}

.homepage .home-updates .newsbox .more {
    margin: auto 15px 0;
    color: var(--home-lake);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.homepage .home-updates .reviews_container { display: grid; gap: 12px; }
.homepage .home-updates .reviewbox .grid_out {
    height: 100%;
    margin: 0;
    padding: 17px;
    border: 1px solid var(--home-line);
    border-radius: 10px;
    background: var(--home-white);
}
.homepage .home-updates .reviewbox .grid_out::before,
.homepage .home-updates .reviewbox .grid_out::after { display: none; }
.homepage .home-updates .rev_name { float: none; margin: 0 0 3px; font-size: 13px; font-weight: 700; }
.homepage .home-updates .reviewbox .rev_date { float: none; margin: 0 0 10px; font-size: 9px; }
.homepage .home-updates .rev_meta { margin: 0 0 9px; font-size: 10px; line-height: 1.4; font-style: normal; }
.homepage .home-updates .rev_meta a { color: var(--home-lake); }
.homepage .home-updates .rev_txt { height: 60px; color: var(--home-ink-soft); font-size: 11px; line-height: 1.5; }

.homepage .home-updates .allnews {
    float: none;
    width: auto;
    margin-top: 5px;
    text-align: left;
    font-size: 11px;
    line-height: 1;
    text-transform: none;
}

.homepage .home-updates .allnews::before { display: none; }
.homepage .home-updates .allnews a {
    min-height: 39px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--home-ink);
    border-radius: 99px;
    background: transparent;
    color: var(--home-ink);
    font-weight: 700;
    text-decoration: none;
}
.homepage .home-updates .allnews a:hover { background: var(--home-ink); color: var(--home-white); }

/* Footer */
.homepage .home-footer {
    width: 100%;
    padding: 45px 0 28px;
    background: #0b2322;
    color: #9db3b0;
}

.home-footer__grid {
    display: grid;
    grid-template-columns: 1fr .6fr 1fr;
    gap: 55px;
    align-items: start;
}

.home-brand--footer { color: var(--home-white); }
.home-footer__note { max-width: 330px; margin: 18px 0 0; font-size: 11px; }
.homepage .home-footer__nav { float: none; display: grid; gap: 8px; }
.homepage .home-footer__nav a { color: #d4e1df; text-decoration: none; font-size: 11px; }
.homepage .home-footer__nav a:hover { color: var(--home-white); }
.home-footer__legal { font-size: 10px; }
.home-footer__legal p { margin: 0 0 18px; }
.home-footer__legal span { color: #d4e1df; }

@media (max-width: 1040px) {
    .homepage .home-nav { display: none; }
    .home-portal__grid { grid-template-columns: 1fr; gap: 28px; }
    .home-portal__search-area { padding-bottom: 0; }
    .home-quick { max-width: 720px; }
    .home-portal__meta { flex-wrap: wrap; padding: 15px 0; gap: 12px 22px; }
    .home-portal__meta p { width: 100%; margin: 0; text-align: left; }
    .home-directory__layout { grid-template-columns: 1fr; }
    .home-sidebar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .home-shell { width: min(100% - 32px, 640px); }
    .home-header__inner { min-height: 68px; }
    .home-brand__text { display: block; }
    .home-brand__text strong,
    .home-brand__text small { display: block; }
    .home-brand__text strong { font-size: 10px; }
    .home-brand__text small { margin-top: 4px; font-size: 9px; }
    .home-header__search { min-height: 38px; padding: 0 12px; gap: 0; font-size: 0; }
    .home-header__search span { font-size: 0; }
    .home-portal { padding-top: 36px; }
    .homepage .home-main h1 { font-size: 38px; }
    .home-portal__lead { font-size: 15px; }
    .home-directory { padding: 42px 0; }
    .home-directory__main { padding: 22px; }
    .home-directory__heading { grid-template-columns: 1fr; gap: 20px; }
    .home-region-accordion { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-updates__grid { grid-template-columns: 1fr; gap: 48px; }
    .home-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .home-footer__legal { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .home-brand__mark { width: 29px; height: 29px; }
    .homepage .home-main h1 { font-size: 32px; line-height: 1.12 !important; }
    .home-search { padding: 11px; grid-template-columns: 20px 1fr; }
    .home-search input { height: 40px; font-size: 13px; }
    .home-search button { width: 100%; height: 45px; grid-column: 1 / -1; }
    .home-search-hints > span { width: 100%; }
    .home-quick__heading { min-height: 68px; }
    .home-quick__heading > a { display: none; }
    .home-quick__grid { grid-template-columns: 1fr; }
    .home-quick-link,
    .home-quick-link:nth-child(2n),
    .home-quick-link:nth-last-child(-n + 2) { min-height: 72px; border-right: 0; border-bottom: 1px solid var(--home-line); }
    .home-quick-link:last-child { border-bottom: 0; }
    .home-portal__meta span { display: none; }
    .homepage .home-main h2 { font-size: 26px; }
    .home-region-accordion { grid-template-columns: 1fr; }
    .home-sidebar { grid-template-columns: 1fr; }
    .homepage .home-updates .news_container { grid-template-columns: 1fr; }
    .home-footer__grid { grid-template-columns: 1fr; }
    .home-footer__legal { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .homepage *,
    .homepage *::before,
    .homepage *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
