:root {
    --horizon-ink: #0f172a;
    --horizon-muted: #64748b;
    --horizon-line: #dbe4ee;
    --horizon-surface: #ffffff;
    --horizon-surface-soft: #f8fafc;
    --horizon-background: #eef3f8;
    --horizon-primary: #2563eb;
    --horizon-primary-dark: #1d4ed8;
    --horizon-accent: #f59e0b;
    --horizon-danger: #dc2626;
    --horizon-success: #059669;
    --horizon-radius-sm: 10px;
    --horizon-radius: 16px;
    --horizon-radius-lg: 24px;
    --horizon-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    --horizon-shadow-soft: 0 4px 18px rgba(15, 23, 42, 0.06);
    --horizon-content-max: 1600px;
    --horizon-content-gutter: clamp(32px, 5vw, 72px);
}

html {
    scroll-behavior: smooth;
}

body.theme-horizon {
    min-height: 100vh;
    color: var(--horizon-ink);
    background:
        radial-gradient(circle at 12% -10%, rgba(37, 99, 235, 0.14), transparent 30rem),
        linear-gradient(180deg, #f8fbff 0, var(--horizon-background) 35rem, #f8fafc 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.theme-horizon a {
    color: var(--horizon-primary-dark);
}

.theme-horizon a:hover {
    text-decoration: none;
}

.theme-horizon .container,
.theme-horizon .container--wide {
    width: min(var(--horizon-content-max), calc(100% - var(--horizon-content-gutter)));
    margin-inline: auto;
}

.theme-preview-bar {
    position: sticky;
    z-index: 100;
    inset-block-start: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 9px 16px;
    color: #fff;
    background: #7c3aed;
    font-size: 14px;
    font-weight: 700;
}

.theme-preview-bar a {
    color: #fff;
    text-decoration: underline;
}

.horizon-header {
    position: relative;
    z-index: 20;
    color: #fff;
    background:
        radial-gradient(circle at 15% 0, rgba(59, 130, 246, 0.45), transparent 26rem),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #172554 100%);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
}

.horizon-header__topline {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.horizon-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.horizon-brand:hover {
    color: #fff;
}

.horizon-brand__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #0f172a;
    background: linear-gradient(145deg, #fde68a, #f59e0b);
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.28);
    font-size: 23px;
    font-weight: 900;
}

.horizon-brand strong,
.horizon-brand small {
    display: block;
}

.horizon-brand strong {
    font-size: 20px;
    letter-spacing: 0.01em;
}

.horizon-brand small {
    margin-top: 1px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.horizon-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
}

.horizon-account a,
.horizon-account .site-auth__button {
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
}

.horizon-account a:hover {
    color: #fff;
}

.horizon-account__name {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.horizon-account .site-auth__button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
}

.horizon-account .site-auth__button:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
}

.horizon-signup {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.08);
}

.horizon-icon-link {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.horizon-icon-link > span:first-child {
    font-size: 25px;
    line-height: 1;
}

.theme-horizon .site-auth__notification-count {
    position: absolute;
    inset-block-start: -6px;
    inset-inline-end: -6px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    border: 2px solid #0f172a;
    border-radius: 999px;
    color: #fff;
    background: var(--horizon-danger);
    font-size: 10px;
    line-height: 1;
}

.horizon-nav-shell {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.36);
    backdrop-filter: blur(12px);
}

.horizon-nav-row {
    min-height: 52px;
    display: flex;
    align-items: center;
}

.horizon-nav {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.horizon-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding-inline: 14px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 750;
}

.horizon-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    inset-block-end: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: transparent;
}

.horizon-nav a:hover,
.horizon-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.horizon-nav a.is-active::after {
    background: var(--horizon-accent);
}

.horizon-mobile-menu {
    display: none;
    width: 100%;
}

.horizon-mobile-menu summary {
    list-style: none;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
}

.horizon-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.horizon-mobile-menu nav {
    display: grid;
    gap: 4px;
    padding-block: 12px 16px;
}

.horizon-mobile-menu nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.06);
}

.horizon-page {
    min-height: 60vh;
    padding-block: 34px 72px;
}

.horizon-section-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.horizon-section-heading__eyebrow {
    color: var(--horizon-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.horizon-section-heading strong {
    color: var(--horizon-ink);
    font-size: 17px;
}

.theme-horizon .page-header {
    align-items: center;
    margin-bottom: 26px;
}

.theme-horizon .page-header h1,
.theme-horizon .news-post h1,
.theme-horizon .card h1 {
    color: #0f172a;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.theme-horizon h2,
.theme-horizon h3 {
    color: #172033;
    letter-spacing: -0.015em;
}

.theme-horizon .meta,
.theme-horizon small {
    color: var(--horizon-muted);
}

.theme-horizon .portal-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: clamp(30px, 6vw, 68px);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--horizon-radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(245, 158, 11, 0.38), transparent 14rem),
        radial-gradient(circle at 10% 100%, rgba(59, 130, 246, 0.45), transparent 24rem),
        linear-gradient(130deg, #0f172a, #172554 68%, #1e3a8a);
    box-shadow: var(--horizon-shadow);
}

.theme-horizon .portal-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    inset-inline-end: -90px;
    inset-block-end: -120px;
    border: 36px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.theme-horizon .portal-hero__eyebrow {
    margin: 0 0 10px;
    color: #fcd34d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.theme-horizon .portal-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.theme-horizon .portal-hero p:last-child {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 21px);
}

.theme-horizon .portal-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 1.8vw, 26px);
}

.theme-horizon .portal-section-card {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--horizon-line);
    border-radius: var(--horizon-radius);
    color: var(--horizon-ink);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--horizon-shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.theme-horizon .portal-section-card::before {
    content: "";
    width: 46px;
    height: 6px;
    margin-bottom: 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--horizon-primary), #60a5fa);
}

.theme-horizon .portal-section-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.13);
}

.theme-horizon .portal-section-card__title {
    color: #0f172a;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.theme-horizon .portal-section-card__description {
    margin-top: 10px;
    color: var(--horizon-muted);
    font-size: 15px;
}

.theme-horizon .portal-section-card__action {
    margin-top: auto;
    padding-top: 22px;
    color: var(--horizon-primary-dark);
    font-size: 13px;
    font-weight: 850;
}

.theme-horizon .card,
.theme-horizon .form-card,
.theme-horizon .filter-card,
.theme-horizon .listing-card,
.theme-horizon .profile-card,
.theme-horizon .news-card,
.theme-horizon .account-card,
.theme-horizon .message-card {
    border: 1px solid var(--horizon-line);
    border-radius: var(--horizon-radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--horizon-shadow-soft);
}

.theme-horizon .card,
.theme-horizon .form-card {
    padding: clamp(18px, 3vw, 28px);
}

.theme-horizon .listing-card,
.theme-horizon .profile-card,
.theme-horizon .news-card {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.theme-horizon .listing-card:hover,
.theme-horizon .profile-card:hover,
.theme-horizon .news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.theme-horizon .section-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 14px;
    padding: 6px;
    border: 1px solid var(--horizon-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    scrollbar-width: thin;
}

.theme-horizon .section-menu a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.theme-horizon .section-menu a:hover,
.theme-horizon .section-menu a.is-active {
    color: #fff;
    background: var(--horizon-primary);
}

.theme-horizon .board-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
}

.theme-horizon button,
.theme-horizon .button {
    min-height: 42px;
    border-radius: 11px;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--horizon-primary), var(--horizon-primary-dark));
    box-shadow: 0 7px 16px rgba(37, 99, 235, 0.2);
    font-weight: 800;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.theme-horizon button:hover,
.theme-horizon .button:hover {
    transform: translateY(-1px);
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.26);
}

.theme-horizon .button-secondary {
    color: #334155;
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.theme-horizon .button-secondary:hover,
.theme-horizon .button-secondary.is-active {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #94a3b8;
    box-shadow: none;
}

.theme-horizon .button-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 7px 16px rgba(220, 38, 38, 0.18);
}

.theme-horizon .unread-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-inline-start: 7px;
    padding-inline: 5px;
    border-radius: 999px;
    color: #fff;
    background: var(--horizon-danger);
    font-size: 11px;
}

.theme-horizon input[type="text"],
.theme-horizon input[type="email"],
.theme-horizon input[type="password"],
.theme-horizon input[type="number"],
.theme-horizon input[type="search"],
.theme-horizon input[type="date"],
.theme-horizon input[type="datetime-local"],
.theme-horizon select,
.theme-horizon textarea {
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    padding: 10px 12px;
    color: #0f172a;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.theme-horizon textarea {
    min-height: 130px;
}

.theme-horizon input:focus,
.theme-horizon select:focus,
.theme-horizon textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13);
}

.theme-horizon label,
.theme-horizon legend,
.theme-horizon .form-label {
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
}

.theme-horizon .flash-message,
.theme-horizon .error-box,
.theme-horizon .empty-state {
    border-radius: 14px;
    padding: 15px 17px;
    box-shadow: var(--horizon-shadow-soft);
}

.theme-horizon .flash-message {
    border: 1px solid #a7f3d0;
    color: #065f46;
    background: #ecfdf5;
}

.theme-horizon .error-box {
    border: 1px solid #fecaca;
    color: #991b1b;
    background: #fff1f2;
}

.theme-horizon .empty-state {
    border: 1px dashed #94a3b8;
    color: #64748b;
    background: rgba(255, 255, 255, 0.7);
}

.theme-horizon .pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.theme-horizon .promotion-badge,
.theme-horizon .listing-promotion,
.theme-horizon .profile-promotion {
    border-radius: 999px;
    color: #713f12;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    font-weight: 850;
}

.theme-horizon .horizon-adults-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 17px;
    border: 1px solid #f0abfc;
    border-radius: 14px;
    color: #701a75;
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
    box-shadow: var(--horizon-shadow-soft);
}

.theme-horizon .horizon-adults-notice strong {
    flex: 0 0 auto;
}

.theme-horizon .horizon-adults-notice span {
    color: #86198f;
    font-size: 14px;
}

.theme-horizon.horizon-section--adults {
    --horizon-primary: #a21caf;
    --horizon-primary-dark: #86198f;
}

.theme-horizon.horizon-section--real-estate {
    --horizon-primary: #0f766e;
    --horizon-primary-dark: #115e59;
}

.horizon-footer {
    color: #cbd5e1;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.horizon-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    align-items: start;
    gap: 44px;
    padding-block: 42px;
}

.horizon-footer__brand {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.horizon-footer p {
    max-width: 440px;
    margin: 9px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

.horizon-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

.horizon-footer nav a {
    color: #cbd5e1;
    font-size: 14px;
}

.horizon-footer nav a:hover {
    color: #fff;
}

.horizon-footer__meta {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .theme-horizon .portal-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .horizon-nav {
        display: none;
    }

    .horizon-mobile-menu {
        display: block;
    }

    .horizon-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .horizon-footer__meta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .theme-horizon .container,
    .theme-horizon .container--wide {
        width: min(100% - 24px, 1180px);
    }

    .horizon-header__topline {
        min-height: 72px;
    }

    .horizon-brand__mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 20px;
    }

    .horizon-brand small,
    .horizon-account__name,
    .horizon-account > a:not(.horizon-signup):not(.horizon-icon-link) {
        display: none;
    }

    .horizon-account {
        gap: 8px;
    }

    .horizon-account .site-auth__button,
    .horizon-signup {
        padding: 7px 10px;
        font-size: 12px;
    }

    .horizon-page {
        padding-block: 24px 52px;
    }

    .theme-horizon .portal-hero {
        padding: 34px 24px;
        border-radius: 20px;
    }

    .theme-horizon .portal-hero h1 {
        font-size: clamp(34px, 12vw, 50px);
    }

    .theme-horizon .portal-section-grid {
        grid-template-columns: 1fr;
    }

    .theme-horizon .portal-section-card {
        min-height: 180px;
    }

    .theme-horizon .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .theme-horizon .board-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .theme-horizon .board-actions .button {
        width: 100%;
    }

    .theme-horizon .horizon-adults-notice {
        align-items: flex-start;
        flex-direction: column;
    }

    .horizon-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .horizon-footer__meta {
        grid-column: auto;
    }
}

@media (max-width: 460px) {
    .theme-horizon .board-actions {
        grid-template-columns: 1fr;
    }

    .theme-preview-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

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

.theme-horizon .horizon-news-search {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--horizon-radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.96));
    box-shadow: var(--horizon-shadow-soft);
}

.theme-horizon .horizon-news-search__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.theme-horizon .horizon-news-search__heading span {
    color: var(--horizon-muted);
    font-size: 12px;
}

@media (max-width: 620px) {
    .theme-horizon .horizon-news-search__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

.theme-horizon :focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.55);
    outline-offset: 3px;
}

.theme-horizon .theme-preview-bar form {
    margin: 0;
}

.theme-horizon .theme-preview-bar button {
    min-height: auto;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    box-shadow: none;
    text-decoration: underline;
}

.theme-horizon .theme-preview-bar button:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
}

/* Accessible hamburger navigation for compact screens. */
.horizon-mobile-toggle {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding-inline: 4px;
    user-select: none;
}

.horizon-mobile-toggle__icon {
    width: 24px;
    display: grid;
    gap: 5px;
}

.horizon-mobile-toggle__icon span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.horizon-mobile-menu[open] .horizon-mobile-toggle__icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.horizon-mobile-menu[open] .horizon-mobile-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.horizon-mobile-menu[open] .horizon-mobile-toggle__icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.horizon-mobile-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr);
    gap: 16px;
    padding: 0 0 18px;
}

.horizon-mobile-panel nav,
.horizon-mobile-account {
    display: grid;
    gap: 6px;
}

.horizon-mobile-panel a,
.horizon-mobile-account button {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.055);
    font-weight: 750;
}

.horizon-mobile-panel a.is-active {
    border-color: rgba(245, 158, 11, 0.55);
    color: #fff;
    background: rgba(245, 158, 11, 0.14);
}

.horizon-mobile-account {
    align-content: start;
    padding-inline-start: 16px;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.horizon-mobile-account form {
    margin: 0;
}

.horizon-mobile-account button {
    width: 100%;
    font: inherit;
}

@media (max-width: 960px) {
    .horizon-account {
        display: none;
    }

    .horizon-header__topline {
        min-height: 72px;
    }
}

@media (max-width: 620px) {
    .horizon-mobile-panel {
        grid-template-columns: 1fr;
    }

    .horizon-mobile-account {
        padding-block-start: 12px;
        padding-inline-start: 0;
        border-block-start: 1px solid rgba(255, 255, 255, 0.1);
        border-inline-start: 0;
    }
}

.theme-horizon .section-identity {
    position: relative;
    overflow: hidden;
    margin-block-end: 30px;
    border-radius: 28px;
}

.theme-horizon .section-identity__eyebrow {
    margin-block-end: 12px;
    color: var(--horizon-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (max-width: 650px) {
    .theme-horizon .section-identity {
        border-radius: 20px;
    }
}

.theme-horizon .listing-card__placeholder,
.theme-horizon .profile-card__placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    margin: -20px -20px 18px;
    color: rgba(255, 255, 255, 0.94);
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.18), transparent 9rem),
        linear-gradient(135deg, #334155, #1e3a8a);
    text-decoration: none;
}

.theme-horizon .listing-card__placeholder span,
.theme-horizon .profile-card__placeholder span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 36px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.section-theme-velocity .listing-card__placeholder {
    margin: 0 -20px 18px;
    background: repeating-linear-gradient(125deg, #111821 0 22px, #172331 23px 44px);
}

.section-theme-habitat .listing-card__placeholder {
    margin: 0 -22px 18px;
    color: #284b3a;
    background: linear-gradient(135deg, #dfe8df, #ead9bd);
}

.section-theme-persona .profile-card__placeholder {
    margin: 0 -22px 18px;
    background: linear-gradient(145deg, #6d3cc7, #ef6a6a);
}

.section-theme-noir .profile-card__placeholder {
    margin: 0 -21px 18px;
    background: radial-gradient(circle at 50% 30%, #4b2441, #17111c 70%);
}

/* Compact section header used by Horizon Classic. */
.theme-horizon .portal-hero--compact {
    min-height: 0;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 26px;
    border-radius: 18px;
}

.theme-horizon .portal-hero--compact::after {
    width: 132px;
    height: 132px;
    inset-inline-end: -48px;
    inset-block-end: -72px;
    border-width: 20px;
}

.theme-horizon .portal-hero--compact .portal-hero__eyebrow {
    margin-bottom: 4px;
}

.theme-horizon .portal-hero--compact h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.02;
}

.theme-horizon .portal-hero--compact p:last-child {
    max-width: 760px;
    margin-top: 6px;
    font-size: clamp(14px, 1.6vw, 17px);
}

@media (max-width: 620px) {
    .theme-horizon .portal-hero--compact {
        margin-bottom: 16px;
        padding: 17px 18px;
        border-radius: 15px;
    }

    .theme-horizon .portal-hero--compact h1 {
        font-size: 30px;
    }
}

/* Keep the current section name centered without increasing header height. */
.theme-horizon .site-section-identity {
    max-width: 520px;
    align-self: center;
}

.theme-horizon .site-section-identity strong {
    font-size: clamp(18px, 2vw, 23px);
    letter-spacing: -0.01em;
}

.theme-horizon .site-section-identity span {
    color: #a9bad2;
    font-size: 12px;
}

.theme-horizon .filter-disclosure {
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: var(--horizon-shadow-soft);
}

.theme-horizon .filter-disclosure__summary {
    color: var(--horizon-ink);
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,255,.98));
}

.theme-horizon .home-section-feed {
    border-color: rgba(148, 163, 184, 0.24);
    border-radius: var(--horizon-radius-lg);
    box-shadow: var(--horizon-shadow-soft);
}

.theme-horizon .home-entry-card {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(145deg, #fff, #f8fafc);
}

@media (max-width: 960px) {
    .theme-horizon .site-section-identity {
        justify-items: end;
        text-align: right;
    }
}

@media (max-width: 620px) {
    .theme-horizon .site-section-identity strong {
        font-size: 17px;
    }
}

@media (min-width: 961px) {
    .theme-horizon .horizon-header__topline {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .theme-horizon .horizon-account {
        margin-left: 0;
    }
}

@media (max-width: 960px) {
    .theme-horizon .horizon-header__topline {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }
}

/* Gazeta.co.il masthead branding. */
.theme-horizon .horizon-header {
    color: #172033;
    background:
        linear-gradient(
            90deg,
            rgba(255, 250, 236, 0.99) 0%,
            rgba(255, 250, 236, 0.97) 45%,
            rgba(255, 250, 236, 0.82) 62%,
            rgba(255, 250, 236, 0.28) 82%,
            rgba(255, 250, 236, 0.08) 100%
        ),
        url('/images/branding/gazeta-headFB.png') center center / cover no-repeat;
    box-shadow: 0 12px 40px rgba(92, 64, 18, 0.18);
}

.theme-horizon .horizon-header__topline {
    min-height: 112px;
}

.theme-horizon .horizon-brand {
    gap: 15px;
    color: #123c78;
}

.theme-horizon .horizon-brand:hover {
    color: #0b2f66;
}

.theme-horizon .horizon-brand__logo {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: #fff8e8;
    box-shadow: 0 8px 24px rgba(107, 72, 13, 0.24);
}

.theme-horizon .horizon-brand__text {
    min-width: 0;
}

.theme-horizon .horizon-brand strong {
    color: #0b3a7e;
    font-size: clamp(24px, 2.1vw, 34px);
    letter-spacing: -0.025em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-horizon .horizon-brand small {
    margin-top: 3px;
    color: #303846;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.theme-horizon .horizon-account {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: rgba(255, 252, 242, 0.86);
    box-shadow: 0 8px 24px rgba(71, 50, 18, 0.12);
    backdrop-filter: blur(10px);
}

.theme-horizon .horizon-account a,
.theme-horizon .horizon-account .site-auth__button {
    color: #17365f;
}

.theme-horizon .horizon-account a:hover {
    color: #005dcc;
}

.theme-horizon .horizon-account .site-auth__button,
.theme-horizon .horizon-signup,
.theme-horizon .horizon-icon-link {
    border-color: rgba(18, 60, 120, 0.2);
    color: #17365f;
    background: rgba(255, 255, 255, 0.7);
}

.theme-horizon .horizon-account .site-auth__button:hover,
.theme-horizon .horizon-signup:hover,
.theme-horizon .horizon-icon-link:hover {
    border-color: rgba(18, 60, 120, 0.35);
    color: #005dcc;
    background: #fff;
}

.theme-horizon .site-auth__notification-count {
    border-color: #fff8e8;
}

.theme-horizon .site-section-identity strong {
    color: #17365f;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.theme-horizon .site-section-identity span {
    color: #49576a;
}

.theme-horizon .horizon-nav-shell {
    border-top-color: rgba(154, 105, 16, 0.18);
    background: rgba(255, 250, 236, 0.93);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
}

.theme-horizon .horizon-nav a {
    color: #2e3d52;
}

.theme-horizon .horizon-nav a:hover,
.theme-horizon .horizon-nav a.is-active {
    color: #083d84;
    background: rgba(255, 183, 0, 0.12);
}

.theme-horizon .horizon-nav a.is-active::after {
    background: #f2a900;
}

.theme-horizon .horizon-mobile-menu summary {
    color: #17365f;
}

.theme-horizon .horizon-mobile-panel a,
.theme-horizon .horizon-mobile-account button {
    border-color: rgba(18, 60, 120, 0.14);
    color: #17365f;
    background: rgba(255, 255, 255, 0.72);
}

.theme-horizon .horizon-mobile-panel a.is-active {
    border-color: rgba(242, 169, 0, 0.55);
    color: #083d84;
    background: rgba(255, 183, 0, 0.14);
}

.theme-horizon .horizon-mobile-account {
    border-color: rgba(18, 60, 120, 0.14);
}

@media (max-width: 960px) {
    .theme-horizon .horizon-header {
        background-position: 68% center;
    }

    .theme-horizon .horizon-header__topline {
        min-height: 86px;
    }

    .theme-horizon .horizon-brand__logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 620px) {
    .theme-horizon .horizon-header {
        background:
            linear-gradient(90deg, rgba(255, 250, 236, 0.98), rgba(255, 250, 236, 0.84)),
            url('/images/branding/gazeta-headFB.png') 68% center / cover no-repeat;
    }

    .theme-horizon .horizon-header__topline {
        min-height: 74px;
    }

    .theme-horizon .horizon-brand {
        gap: 10px;
    }

    .theme-horizon .horizon-brand__logo {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }

    .theme-horizon .horizon-brand strong {
        font-size: 21px;
    }

    .theme-horizon .horizon-brand small {
        display: none;
    }
}

/* The portal masthead has one visual contract on the home page and in every section. */
body.theme-horizon .site-header.horizon-header {
    color: #172033;
    background: #fffaf0;
    box-shadow: 0 12px 40px rgba(92, 64, 18, 0.18);
}

body.theme-horizon .site-header.horizon-header .horizon-header__topline {
    grid-template-columns: max-content minmax(160px, 1fr) max-content;
}

body.theme-horizon .site-header.horizon-header .horizon-masthead-art {
    position: relative;
    isolation: isolate;
    min-width: 0;
    width: 100%;
    height: 88px;
    overflow: hidden;
    border: 1px solid rgba(191, 137, 35, 0.22);
    border-radius: 18px;
    background: url('/images/branding/gazeta-headFB.png') 76% center / cover no-repeat;
    box-shadow: 0 8px 24px rgba(107, 72, 13, 0.12);
}

body.theme-horizon .site-header.horizon-header .horizon-masthead-art::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 250, 236, 0.5),
        rgba(255, 250, 236, 0.08) 28%,
        rgba(255, 250, 236, 0.08) 72%,
        rgba(255, 250, 236, 0.44)
    );
}

body.theme-horizon .site-header.horizon-header .horizon-masthead-art .site-section-identity {
    position: relative;
    width: max-content;
    max-width: calc(100% - 24px);
    min-height: 100%;
    margin-inline: auto;
    align-content: center;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(255, 250, 236, 0.78);
    backdrop-filter: blur(8px);
}

body.theme-horizon .site-header.horizon-header .horizon-account {
    width: max-content;
    max-width: 100%;
    margin-left: 0;
    justify-self: end;
    flex: 0 0 auto;
}

body.theme-horizon .site-header.horizon-header .horizon-brand,
body.theme-horizon .site-header.horizon-header .horizon-account a,
body.theme-horizon .site-header.horizon-header .horizon-account .site-auth__button,
body.theme-horizon .site-header.horizon-header .horizon-mobile-menu summary {
    color: #17365f;
}

body.theme-horizon .site-header.horizon-header .horizon-nav-shell {
    border-top-color: rgba(154, 105, 16, 0.18);
    background: rgba(255, 250, 236, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.theme-horizon .site-header.horizon-header .horizon-nav a {
    color: #2e3d52;
}

body.theme-horizon .site-header.horizon-header .horizon-nav a:hover,
body.theme-horizon .site-header.horizon-header .horizon-nav a.is-active {
    color: #083d84;
    background: rgba(255, 183, 0, 0.12);
}

body.theme-horizon .site-header.horizon-header .horizon-nav a.is-active::after {
    background: #f2a900;
}

body.theme-horizon .site-header.horizon-header .horizon-mobile-toggle__icon span {
    background: #17365f;
}

@media (max-width: 960px) {
    body.theme-horizon .site-header.horizon-header .horizon-header__topline {
        grid-template-columns: max-content minmax(0, 1fr);
    }

    body.theme-horizon .site-header.horizon-header .horizon-masthead-art {
        height: 68px;
        background-position: 78% center;
    }
}

@media (max-width: 620px) {
    body.theme-horizon .site-header.horizon-header .horizon-masthead-art {
        height: 56px;
        border-radius: 14px;
        background-position: 82% center;
    }

    body.theme-horizon .site-header.horizon-header .horizon-masthead-art .site-section-identity {
        max-width: calc(100% - 12px);
        padding: 7px 10px;
    }

    body.theme-horizon .site-header.horizon-header .horizon-masthead-art .site-section-identity span {
        display: none;
    }
}
