/* Explain: Styles for UI components like cards, buttons, navigation, and forms. */
/* ============ Header ============ */
.topbar {
    background: var(--header-bg-2);
    color: var(--header-muted);
    font-size: .82rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; min-height: 38px; flex-wrap: wrap; padding-block: .3rem;
}
.topbar-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-meta i { color: var(--gold); }
.topbar-actions { display: flex; align-items: center; gap: .8rem; }
.topbar-link { color: var(--header-muted); font-weight: 600; transition: color .2s; }
.topbar-link:hover { color: #fff; }
.topbar-social { display: flex; align-items: center; gap: .45rem; }
.topbar-social a, .social-row a {
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, .09); color: var(--header-text);
    font-size: .78rem; transition: background .25s, transform .25s;
}
.topbar-social a:hover { background: var(--accent-color); transform: translateY(-2px); }
.icon-btn {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, .09); color: var(--header-text);
    border: none; transition: background .25s;
}
.icon-btn:hover { background: var(--accent-color); }
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; overflow: hidden; }
.lang-btn {
    background: transparent; color: var(--header-muted); border: none;
    padding: .15rem .62rem; font-size: .75rem; font-weight: 700; transition: background .2s, color .2s;
}
.lang-btn.is-active { background: var(--accent-color); color: #fff; }

.masthead { background: var(--header-bg); color: var(--header-text); }
.masthead-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: .85rem; padding-block: .85rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.brand-mark {
    flex: 0 0 auto;
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--accent-color), #6d0f12);
    color: #fff; font-family: var(--font-heading); font-size: 1.65rem; font-weight: 800;
    box-shadow: 0 8px 18px rgba(164, 22, 26, .38);
}
.brand-ar { display: block; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.brand-tag { display: block; font-size: .72rem; color: var(--header-muted); letter-spacing: .3px; }

.search-form {
    display: flex; align-items: center; flex: 1 1 230px; max-width: 380px; min-width: 0;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px; overflow: hidden;
}
.search-form input {
    flex: 1 1 auto; min-width: 0; background: transparent; border: none;
    color: #fff; padding: .55rem 1rem; font-size: .9rem;
}
.search-form input::placeholder { color: var(--header-muted); }
.search-form input:focus { outline: none; }
.search-form button { background: var(--accent-color); color: #fff; border: none; padding: .55rem 1rem; transition: background .2s; }
.search-form button:hover { background: var(--accent-hover); }

.menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .09);
    color: #fff; font-size: 1.15rem;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mainnav { background: var(--header-bg-2); border-top: 1px solid rgba(255, 255, 255, .08); display: none; }
@media (min-width: 1024px) { .mainnav { display: block; } }
.mainnav-inner { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
    display: inline-flex; align-items: center; gap: .42rem; padding: .85rem .82rem;
    color: var(--header-muted); font-family: var(--font-heading); font-weight: 700;
    font-size: .95rem; background: transparent; border: none; border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s, background .2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { color: #fff; border-bottom-color: var(--accent-color); background: rgba(255, 255, 255, .05); }
.nav-more { position: relative; }
.nav-dropdown {
    position: absolute; top: 100%; inset-inline-start: 0; min-width: 215px;
    background: var(--header-bg); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: .4rem; list-style: none; margin: 0; display: none; z-index: 70;
}
.nav-more:hover .nav-dropdown,
.nav-more:focus-within .nav-dropdown,
.nav-more.is-open .nav-dropdown { display: block; }
.nav-dropdown a {
    display: flex; align-items: center; gap: .55rem; padding: .55rem .8rem;
    border-radius: 6px; color: var(--header-muted); font-weight: 600; font-size: .92rem;
}
.nav-dropdown a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-dropdown i { color: var(--accent-color); width: 16px; text-align: center; }

/* ============ Breaking ticker ============ */
.breaking-bar { background: var(--accent-color); color: #fff; display: flex; align-items: stretch; overflow: hidden; }
.breaking-label {
    display: inline-flex; align-items: center; gap: .5rem; background: #7d1013;
    padding: .6rem 1rem; font-family: var(--font-heading); font-weight: 800;
    white-space: nowrap; font-size: .88rem; flex: 0 0 auto;
}
.breaking-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulseDot 1.4s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.65); } }
.ticker-item {
    display: inline-flex; align-items: center; gap: .5rem; padding-inline: 1.1rem;
    color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.ticker-item:hover { text-decoration: underline; }
.ticker-item::after { content: '•'; margin-inline-start: 1.1rem; color: rgba(255, 255, 255, .55); }

/* ============ Mobile drawer ============ */
.mobile-drawer {
    position: fixed; top: 0; inset-inline-start: 0; height: 100%;
    width: min(86vw, 350px); background: var(--header-bg); color: #fff;
    z-index: 90; padding: 1.1rem; overflow-y: auto;
    --drawer-hide: -105%;
    transform: translateX(var(--drawer-hide));
    transition: transform .32s ease;
}
html[dir="rtl"] .mobile-drawer { --drawer-hide: 105%; }
.mobile-drawer.is-open { transform: translateX(0); }
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(3, 8, 18, .62); z-index: 80;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer-search { max-width: none; flex: none; margin-bottom: 1rem; }
.drawer-link {
    display: flex; align-items: center; gap: .7rem; padding: .8rem .55rem;
    border-radius: 8px; color: var(--header-muted); font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.drawer-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.drawer-link i { color: var(--accent-color); width: 18px; text-align: center; }
.drawer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }

/* ============ Section headers ============ */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.35rem; flex-wrap: wrap;
}
.section-title { display: flex; align-items: center; gap: .65rem; font-size: clamp(1.25rem, 3vw, 1.6rem); }
.section-title::before { content: ''; width: 5px; height: 26px; border-radius: 4px; background: var(--accent-color); }
.section-link { color: var(--accent-color); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.section-link:hover { text-decoration: underline; }

/* ============ News cards ============ */
.card-news {
    display: flex; flex-direction: column; height: 100%;
    background: var(--background-color); border: 1px solid var(--border-color);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-news:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-news:hover .card-media img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.05rem 1.15rem; flex: 1 1 auto; }
.card-title { font-size: 1.08rem; line-height: 1.55; }
.card-title a:hover { color: var(--accent-color); }
.card-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.75; }
.card-meta {
    display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: .65rem;
    font-size: .76rem; color: var(--text-muted); border-top: 1px dashed var(--border-color); flex-wrap: wrap;
}
.card-meta i { color: var(--accent-color); margin-inline-end: .35rem; }

.chip {
    display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem;
    border-radius: 999px; background: var(--surface-2); color: var(--primary-color);
    font-size: .74rem; font-weight: 700; font-family: var(--font-heading);
    transition: background .2s, color .2s;
}
a.chip:hover { background: var(--primary-color); color: #fff; }
.chip-accent { background: var(--accent-color); color: #fff; }

/* ============ Hero block ============ */
.hero-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}
.hero-story {
    position: relative; display: flex; align-items: flex-end;
    min-height: 400px; border-radius: var(--radius-lg); overflow: hidden; background: #06101f;
}
@media (min-width: 768px) { .hero-story { min-height: 470px; } }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-story::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(4, 12, 26, .95) 6%, rgba(4, 12, 26, .6) 45%, rgba(4, 12, 26, .12) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 1.35rem; color: #fff; width: 100%; display: grid; gap: .7rem; justify-items: start; }
.hero-title { color: #fff; font-size: clamp(1.4rem, 3.6vw, 2.15rem); line-height: 1.4; }
.hero-title a:hover { color: #ffd9da; }
.hero-desc { color: rgba(255, 255, 255, .85); font-size: .95rem; max-width: 60ch; }
.hero-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: rgba(255, 255, 255, .78); }
.hero-meta i { color: var(--gold); margin-inline-end: .35rem; }
.hero-side { display: grid; gap: .9rem; align-content: start; }

.mini-card { display: flex; gap: .8rem; padding-bottom: .85rem; border-bottom: 1px dashed var(--border-color); }
.mini-card:last-child { border-bottom: none; padding-bottom: 0; }
.mini-media { flex: 0 0 98px; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { min-width: 0; display: grid; gap: .3rem; align-content: start; }
.mini-title { font-size: .97rem; line-height: 1.5; }
.mini-title a:hover { color: var(--accent-color); }
.mini-meta { font-size: .74rem; color: var(--text-muted); }
.mini-meta i { color: var(--accent-color); margin-inline-end: .3rem; }

/* ============ Sidebar widgets ============ */
.sidebar-box {
    background: var(--background-color); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 1.1rem;
}
.sidebar-title {
    font-size: 1.05rem; margin-bottom: .85rem; padding-bottom: .55rem;
    border-bottom: 2px solid var(--accent-color); display: inline-block;
}
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: rank; }
.rank-list li { display: flex; gap: .7rem; align-items: flex-start; }
.rank-num {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px;
    background: var(--surface-2); color: var(--primary-color);
    display: grid; place-items: center; font-weight: 800; font-size: .8rem; font-family: var(--font-heading);
}
.rank-list li:first-child .rank-num { background: var(--accent-color); color: #fff; }
.rank-list a { font-weight: 600; font-size: .92rem; line-height: 1.6; }
.rank-list a:hover { color: var(--accent-color); }
.chip-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.social-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.social-row a { width: 38px; height: 38px; font-size: .95rem; background: var(--surface-2); color: var(--primary-color); }
.social-row a:hover { background: var(--accent-color); color: #fff; transform: translateY(-3px); }

/* ============ Buttons & forms ============ */
.btn-news {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .68rem 1.35rem; border-radius: var(--radius-sm);
    background: var(--primary-color); color: #fff; border: 1px solid transparent;
    font-family: var(--font-heading); font-weight: 700; font-size: .95rem;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-news:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-news:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-accent { background: var(--accent-color); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text-color); border-color: var(--border-color); }
.btn-outline:hover { background: var(--surface-color); color: var(--text-color); }

.form-msg { font-size: .88rem; font-weight: 600; margin-top: .6rem; min-height: 1.2rem; }
.form-msg.is-ok { color: #15803d; }
.form-msg.is-error { color: var(--accent-color); }
html.dark .form-msg.is-ok { color: #4ade80; }

.field-label { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; display: block; }
.field-input {
    width: 100%; padding: .7rem .9rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color); background: var(--background-color);
    color: var(--text-color); transition: border-color .2s, box-shadow .2s;
}
.field-input::placeholder { color: var(--text-muted); opacity: .8; }
.field-input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(164, 22, 26, .14); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid .span-2 { grid-column: span 2; } }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============ Filter chips & pager ============ */
.filter-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; }
.filter-chip {
    white-space: nowrap; padding: .5rem 1rem; border-radius: 999px;
    border: 1px solid var(--border-color); background: var(--background-color);
    color: var(--text-muted); font-weight: 700; font-size: .87rem;
    font-family: var(--font-heading); transition: all .22s ease;
    display: inline-flex; align-items: center; gap: .4rem;
}
.filter-chip:hover, .filter-chip.is-active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; flex-wrap: wrap; }
.pager button {
    min-width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-color);
    background: var(--background-color); color: var(--text-color); font-weight: 700;
}
.pager button.is-active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

/* ============ Article page ============ */
.article-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0; background: var(--accent-color); z-index: 100; transition: width .12s linear; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.breadcrumb a:hover { color: var(--accent-color); }
.breadcrumb i { font-size: .65rem; opacity: .6; }
.article-wrap { max-width: 820px; margin-inline: auto; }
.article-head { display: grid; gap: .85rem; justify-items: start; margin-bottom: 1.25rem; }
.article-title { font-size: clamp(1.6rem, 4.4vw, 2.6rem); line-height: 1.35; }
.article-lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.9; }
.article-meta {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    font-size: .82rem; color: var(--text-muted);
    padding-block: .75rem; border-block: 1px solid var(--border-color); width: 100%;
}
.article-meta i { color: var(--accent-color); margin-inline-end: .35rem; }
.article-figure { margin: 0 0 1.5rem; }
.article-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }
.article-body { font-size: 1.08rem; line-height: 2.1; }
.article-body p { margin-block: 0 1.15rem; }
.article-body h2 { font-size: 1.5rem; margin-block: 1.8rem .8rem; }
.article-body h3 { font-size: 1.22rem; margin-block: 1.5rem .7rem; }
.article-body ul, .article-body ol { margin-block: 0 1.15rem; padding-inline-start: 1.5rem; }
.article-body blockquote {
    margin: 1.5rem 0; padding: 1rem 1.25rem; border-inline-start: 4px solid var(--accent-color);
    background: var(--surface-color); border-radius: var(--radius-sm); font-weight: 600;
}
.article-body img { border-radius: var(--radius); margin-block: 1.25rem; }
.article-body a { color: var(--accent-color); text-decoration: underline; }
.share-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-block: 1.75rem; }
.share-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-color);
    background: var(--background-color); color: var(--text-color);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .25s, color .25s, transform .25s;
}
.share-btn:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); transform: translateY(-3px); }
.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 1rem 2rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery-item { padding: 0; border: none; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.article-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-block: 1.5rem; }
.tag-label { font-weight: 700; font-size: .88rem; color: var(--text-muted); }
.embed-frame { width: 100%; aspect-ratio: 16 / 9; border: none; border-radius: var(--radius); background: #06101f; display: block; }

/* ============ Video ============ */
.video-card {
    display: block; width: 100%; padding: 0; border: none; text-align: start;
    position: relative; border-radius: var(--radius); overflow: hidden; background: #06101f;
    transition: transform .3s ease, box-shadow .3s ease;
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-play span {
    width: 58px; height: 58px; border-radius: 50%; background: rgba(164, 22, 26, .92);
    color: #fff; display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s;
}
.video-card:hover .video-play span { transform: scale(1.12); }
.video-info { padding: .9rem 1rem 1.05rem; color: #fff; display: grid; gap: .35rem; }
.video-title { color: #fff; font-size: 1rem; line-height: 1.55; }
.video-meta { font-size: .75rem; color: rgba(255, 255, 255, .65); display: flex; gap: .9rem; flex-wrap: wrap; }
.badge-live {
    display: inline-flex; align-items: center; gap: .35rem; background: var(--accent-color);
    color: #fff; padding: .15rem .6rem; border-radius: 4px; font-size: .7rem; font-weight: 800;
}
.badge-duration {
    position: absolute; inset-block-end: .6rem; inset-inline-start: .6rem;
    background: rgba(3, 8, 18, .82); color: #fff; padding: .12rem .5rem;
    border-radius: 4px; font-size: .72rem; font-weight: 700;
}
.video-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #06101f; aspect-ratio: 16 / 9; }
.video-stage img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.video-stage-play {
    position: absolute; inset: 0; display: grid; place-items: center; gap: .6rem;
    background: linear-gradient(to top, rgba(4, 12, 26, .9), rgba(4, 12, 26, .25));
    color: #fff; border: none; width: 100%; padding: 1rem;
}
.video-stage-play span.icon {
    width: 74px; height: 74px; border-radius: 50%; background: rgba(164, 22, 26, .95);
    display: grid; place-items: center; font-size: 1.5rem;
}
.video-modal { position: fixed; inset: 0; z-index: 95; display: none; align-items: center; justify-content: center; padding: 1rem; }
.video-modal.is-open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 18, .86); }
.video-modal-panel {
    position: relative; width: min(960px, 100%); background: var(--background-color);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); z-index: 2;
}
.video-modal-body { background: #000; aspect-ratio: 16 / 9; }
.media-frame { width: 100%; height: 100%; border: none; display: block; }
.video-modal-title { padding: .9rem 1rem; font-size: 1.05rem; }
.video-modal-close {
    position: absolute; top: .6rem; inset-inline-end: .6rem; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: rgba(3, 8, 18, .72); color: #fff; display: grid; place-items: center;
}

/* ============ Newsletter ============ */
.newsletter-band {
    background: linear-gradient(135deg, var(--primary-color), #06101f);
    color: #fff; border-radius: var(--radius-lg); padding: 1.75rem;
    display: grid; gap: 1.2rem; align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
}
@media (min-width: 900px) { .newsletter-band { grid-template-columns: 1.3fr 1fr; padding: 2.25rem; } }
.newsletter-title { color: #fff; font-size: clamp(1.3rem, 3.4vw, 1.8rem); }
.newsletter-sub { color: rgba(255, 255, 255, .8); margin-top: .4rem; font-size: .95rem; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-input {
    flex: 1 1 200px; min-width: 0; padding: .7rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff;
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, .65); }
.newsletter-input:focus { outline: none; border-color: #fff; }
.newsletter-band .form-msg.is-ok { color: #86efac; }
.newsletter-band .form-msg.is-error { color: #fecaca; }

/* ============ Search results ============ */
.search-page-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.search-page-form input {
    flex: 1 1 260px; min-width: 0; padding: .7rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color); background: var(--background-color); color: var(--text-color);
}
.search-page-form input:focus { outline: none; border-color: var(--accent-color); }
.search-results { display: grid; gap: .85rem; }
.result-card {
    display: grid; gap: .35rem; padding: 1.1rem 1.2rem;
    background: var(--background-color); border: 1px solid var(--border-color);
    border-radius: var(--radius); transition: border-color .25s, box-shadow .25s, transform .25s;
    overflow-wrap: anywhere;
}
.result-card:hover { border-color: var(--accent-color); box-shadow: var(--shadow); transform: translateY(-2px); }
.result-badge { font-size: .72rem; font-weight: 800; color: var(--accent-color); font-family: var(--font-heading); }
.result-title { font-size: 1.1rem; line-height: 1.55; }
.result-snippet { color: var(--text-muted); font-size: .9rem; }

/* ============ Footer ============ */
.site-footer { background: var(--header-bg); color: var(--header-muted); margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 2.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.footer-about { font-size: .9rem; line-height: 1.9; margin-block: .9rem 1rem; max-width: 46ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: var(--header-muted); font-size: .92rem; transition: color .2s, padding .2s; }
.footer-links a:hover { color: #fff; padding-inline-start: .3rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1rem;
    font-size: .82rem; display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.footer-demo { color: var(--gold); }

/* ============ Contact ============ */
.contact-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); align-items: start; } }
.contact-box { background: var(--surface-color); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .85rem; }
.contact-line { display: flex; align-items: center; gap: .7rem; font-size: .92rem; }
.contact-line i { color: var(--accent-color); width: 20px; text-align: center; }