.editorial-figure {margin:22px 0;padding:0;}
.editorial-figure img {display:block;width:100%;max-height:330px;object-fit:contain;border-radius:16px;background:#111827;}
.editorial-figure figcaption,.editorial-small {font-size:.9rem;line-height:1.7;color:var(--text-muted);margin-top:10px;}
.editorial-meta {display:flex;flex-wrap:wrap;gap:8px 22px;font-size:1rem;line-height:1.8;margin-block:12px 20px;}
.article-meta > .editorial-meta {display:grid;gap:8px;width:100%;min-width:0;margin:0;text-align:start;}
.editorial-meta > span {display:block;width:auto;height:auto;min-width:0;border-radius:0;background:transparent;overflow-wrap:anywhere;}
.article-meta {line-height:1.8;}
.editorial-note {padding:16px 20px;border-inline-start:4px solid var(--primary);background:var(--bg-card);line-height:1.9;border-radius:8px;}
.editorial-sources {margin-block:28px;line-height:1.8;overflow-wrap:anywhere;}
.editorial-sources a {color:var(--primary);text-decoration:underline;text-underline-offset:4px;}
.editorial-sources p {margin-block:12px;}
#material-ramadan {scroll-margin-top:120px;}
.practice-sheet-frame img[src$=".svg"] {width:100%;height:auto;}
.home-picks-section .home-pick-type {align-self:flex-start;padding:5px 10px;border-radius:999px;background:#ede9fe;color:#5b21b6;font-size:.875rem;line-height:1.5;font-weight:700;}
.home-picks-section .featured-article-info {gap:12px;}
.home-picks-section .product-title {font-size:1.125rem;line-height:1.65;min-height:0;}
.home-picks-section .featured-article-desc {display:block;font-size:1rem;line-height:1.8;min-height:0;color:#475569;-webkit-line-clamp:unset;}
.home-picks-section .featured-article-link {font-size:1rem;padding-top:8px;}
.home-picks-actions {display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:28px;}
.home-picks-actions button {border:1px solid #c4b5fd;border-radius:12px;padding:12px 18px;background:#fff;color:#5b21b6;font:inherit;font-size:1rem;cursor:pointer;}
.home-picks-actions button:hover {background:#f5f3ff;}
.home-picks-actions button:focus-visible {outline:3px solid #7c3aed;outline-offset:3px;}
.home-picks-section a.home-pick-card {text-decoration:none;color:inherit;}

/* A readable introduction with three clear entry points. */
.hero-section .hero-grid,body[dir="rtl"] .hero-section .hero-grid {grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:28px;align-items:stretch;}
.hero-section .hero-content {padding:30px;gap:24px;min-width:0;}
.hero-section .hero-title {font-size:clamp(2rem,2.8vw,2.65rem);line-height:1.5;text-wrap:balance;margin:0;max-width:19ch;}
.hero-section .hero-eyebrow {font-size:.875rem;line-height:1.6;}
.hero-section .hero-cards-row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;overflow:visible;padding:0;margin:0;}
.hero-section .hero-cards-row>.hero-card {grid-column:auto;height:350px;padding:12px;min-width:0;}
.hero-section .hero-cards-row .hero-card-content {height:auto;display:block;width:100%;}
.hero-section .hero-cards-row .hero-card-pill {height:auto;min-height:56px;padding:10px 8px;border-radius:16px;white-space:normal;}
.hero-section .hero-cards-row .hero-card-pill>[data-i18n] {font-size:1rem;line-height:1.6;white-space:normal;letter-spacing:normal;}
.hero-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px;position:relative;z-index:1;}
.hero-actions .hero-btn {padding:13px 22px;font-size:1rem;line-height:1.6;}
.hero-secondary-btn {padding:12px 20px;border:1px solid #a78bfa;border-radius:999px;background:transparent;color:var(--text-main);font:inherit;font-size:1rem;cursor:pointer;}
.hero-upcoming {margin-top:24px;}
.hero-upcoming>h2 {font-size:1rem;color:var(--text-muted);margin-bottom:12px;font-weight:600;}
.hero-upcoming-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.hero-upcoming .hero-card {grid-column:auto;height:150px;padding:16px;}
.hero-upcoming .hero-card-content {height:auto;display:block;width:auto;max-width:90%;align-self:center;}
.hero-upcoming .hero-card-pill {height:auto;min-height:44px;padding:10px 18px;font-size:1rem;line-height:1.5;border-radius:14px;}
.hero-upcoming .hero-card-pill>[data-i18n] {font-size:1rem;line-height:1.5;white-space:normal;}
.hero-upcoming .app-showcase {opacity:.65;}
@media(max-width:960px){
 .hero-section .hero-grid,body[dir="rtl"] .hero-section .hero-grid {grid-template-columns:minmax(0,1fr);gap:22px;}
 .hero-section .hero-content {order:-1;padding:28px;}
 .hero-section .hero-title {font-size:2.1rem;max-width:25ch;}
 .hero-section .hero-cards-row>.hero-card {height:300px;}
}
@media(max-width:560px){
 .hero-section .hero-content {padding:24px 20px;gap:20px;}
 .hero-section .hero-title {font-size:1.85rem;line-height:1.55;max-width:20ch;}
 .hero-section .hero-cards-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible;}
 .hero-section .hero-cards-row>.hero-card {height:245px;flex:initial;padding:10px;}
 .hero-section .hero-cards-row>.card-men {grid-column:1/-1;height:190px;}
 .hero-section .hero-cards-row>.card-men .hero-card-content {max-width:240px;align-self:center;}
 .hero-section .hero-cards-row .hero-card-pill>[data-i18n] {font-size:.95rem;}
 .hero-upcoming-grid {grid-template-columns:minmax(0,1fr);}
 .hero-upcoming .hero-card {height:130px;}
 .hero-actions {gap:10px;}
 .hero-actions .hero-btn,.hero-secondary-btn {padding:11px 16px;}
}
/* Restrained brand palette; original photography remains unchanged. */
[data-theme="light"] {--primary:#6d28d9;--primary-hover:#5b21b6;--primary-glow:rgba(109,40,217,.12);--bg-main:#f8fafc;--text-main:#172033;--text-muted:#475569;}
.hero-section .hero-bg-decor {display:none;}
.hero-section .hero-content::after {display:none;}
.hero-section .hero-content {border-color:var(--border-color);box-shadow:0 6px 20px rgba(15,23,42,.06);}
[data-theme="light"] .hero-section .hero-content {background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.06);}
.hero-section .hero-card {box-shadow:0 4px 14px rgba(15,23,42,.09);}
.hero-section .hero-card:hover {transform:translateY(-3px);box-shadow:0 8px 20px rgba(15,23,42,.12);}
.hero-section .hero-card.card-men {background:#d9eee7;}
.hero-section .hero-card.card-kids {background:#f4e4ed;}
.hero-section .hero-card.card-winter {background:#f4e8cc;}
.hero-section .hero-card-pill {color:#172033;background:#fff;box-shadow:none;}
.hero-section .hero-btn {background:var(--primary);box-shadow:none;}
.hero-section .hero-btn:hover {background:var(--primary-hover);box-shadow:none;transform:translateY(-1px);}
.hero-section .hero-eyebrow {font-weight:600;border-color:transparent;}
.hero-section .hero-secondary-btn {border-color:var(--border-color);}
.hero-section .hero-secondary-btn:hover {background:var(--primary-light);color:#5b21b6;}
.hero-upcoming .hero-card.card-app-news {background:linear-gradient(120deg,#454a79,#65528d);}
.hero-upcoming .hero-card.card-mother {background:#dfd2c5;}
.hero-section .hero-upcoming .hero-card {height:116px;box-shadow:none;}
.hero-upcoming .app-showcase {opacity:.5;}
.home-picks-section {box-shadow:none;border-top:1px solid #e2e8f0;}
.home-picks-section::before {display:none;}
.home-picks-section .featured-article-card {background:#fff;border-color:#e2e8f0;box-shadow:0 3px 12px rgba(15,23,42,.04);}
.home-picks-section .featured-article-card:hover {border-color:#c4b5fd;box-shadow:0 8px 22px rgba(15,23,42,.08);}
.home-picks-section .featured-article-desc {color:#475569;}
.home-picks-section .section-subtitle {color:#475569;font-size:1rem;line-height:1.8;}
.home-picks-section .featured-article-link {color:#6d28d9;}
.site-header .nav-link {font-size:.875rem;line-height:1.6;}
.site-header .nav-settings {gap:10px;}
.site-header .nav-link.active {box-shadow:none;}
.hero-actions button:focus-visible,.hero-card:focus-visible {outline:3px solid #a78bfa;outline-offset:4px;}
@media(prefers-reduced-motion:reduce){.hero-section *, .home-picks-section * {animation:none!important;transition:none!important;}}

/* User-supplied display face for the Uyghur homepage headline. */
@font-face {
 font-family:'ShahBala UKIJ ChiK';
 src:url('../fonts/UKIJChiK.ttf') format('truetype');
 font-style:normal;
 font-weight:400;
 font-display:swap;
}
html[lang="ug"] .hero-section .hero-title,
body[lang="ug"] .hero-section .hero-title {
 font-family:'ShahBala UKIJ ChiK',var(--font-base);
 font-weight:400;
 font-synthesis:none;
 line-height:1.65;
}

/* Book and atlas brand with the embedded UKIJ Ekran wordmark. */
.site-header .brand-logo {padding:0;background:transparent;border:0;box-shadow:none;flex-shrink:0;}
.site-header .brand-logo-image {height:58px;width:189px;max-width:none;object-fit:contain;border-radius:8px;}
@media(max-width:560px){.site-header .brand-logo-image {height:48px;width:156px;max-width:none;}}

/* Keep desktop navigation beside the brand, with controls at the opposite end. */
.site-header .nav-wrapper {min-width:0;gap:12px 24px;}
.site-header .nav-menu {min-width:0;max-width:100%;}
.site-header .nav-actions {min-width:0;border:0;background:transparent;padding:0;box-shadow:none;}
.site-header .brand-logo-image {filter:none;}
.site-header .nav-settings {gap:12px;}
.site-header .lang-pill-group {gap:6px;}
.site-header .nav-link {font-size:1rem;font-weight:600;}
@media(min-width:901px){
 .site-header .nav-wrapper {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;padding:14px 0 10px;}
 .site-header .brand-logo {grid-column:1;grid-row:1;justify-self:start;}
 .site-header .nav-actions {grid-column:3;grid-row:1;display:flex;align-items:center;gap:8px;justify-self:end;}
 .site-header .nav-menu {grid-column:2;grid-row:1;display:flex;justify-self:center;justify-content:center;flex-wrap:nowrap;border:0;border-radius:0;padding:0;margin:0;background:transparent;gap:4px;}
 .site-header .nav-link {padding:9px 16px;min-height:44px;}
 .site-header .nav-settings {display:flex;}
 .site-header .nav-quick-actions {display:flex;}
 .site-header .mobile-toggle {display:none;}
}
@media(max-width:900px){
 .site-header .nav-wrapper {grid-template-columns:minmax(0,1fr) auto;}
 .site-header .mobile-menu-open .nav-settings {gap:12px;justify-content:flex-start;}
 .site-header .mobile-menu-open .nav-menu {gap:4px;padding:8px;}
 .site-header .mobile-menu-open .nav-link {min-height:44px;}
}
@media(max-width:560px){
 .site-header .mobile-menu-open .nav-settings {display:grid;grid-template-columns:auto minmax(0,1fr);}
 .site-header .lang-pill-group {flex-wrap:wrap;justify-content:center;}
 .site-header #currentLangLabel {display:none;}
}

/* Compact language picker and quiet header controls. */
.header-language {position:relative;min-width:130px;color:var(--text-main);font-size:1rem;}
.header-language>summary {display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:8px 14px;list-style:none;cursor:pointer;border:1px solid var(--border-color);border-radius:10px;}
.header-language>summary::-webkit-details-marker {display:none;}
.header-language-options {position:absolute;inset-inline-end:0;top:calc(100% + 8px);min-width:170px;padding:6px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;box-shadow:0 8px 24px #0002;z-index:110;}
.header-language-options .lang-flag-btn {display:block;width:100%;height:auto;min-height:44px;padding:10px 14px;text-align:start;font:inherit;color:var(--text-main);border-radius:8px;background:transparent;}
.header-language-options .lang-flag-btn.active,.header-language-options .lang-flag-btn:hover {background:var(--primary-light);color:#5b21b6;}
.site-header #currentLangLabel {display:inline!important;font-size:1rem;}
.site-header .theme-toggle-btn {display:inline-flex;width:44px;min-width:44px;height:44px;border:1px solid var(--border-color);border-radius:10px;padding:0;align-items:center;justify-content:center;background:var(--bg-card);box-shadow:none;}
.site-header .theme-toggle-btn .toggle-switch,.site-header .theme-toggle-btn .fa-sun {display:none;}
[data-theme="dark"] .site-header .theme-toggle-btn .fa-sun {display:inline;}
[data-theme="dark"] .site-header .theme-toggle-btn .fa-moon {display:none;}
.site-header .icon-btn {border:0;box-shadow:none;background:transparent;}
.site-header .nav-menu {background:transparent;}
.site-header .nav-link:hover {background:var(--bg-surface);}
.site-header .nav-link.active {background:var(--primary);color:#fff;}
@media(min-width:901px){.site-header .nav-quick-actions {order:-1;}.site-header .header-language {order:-1;}}
@media(max-width:900px){.header-language-options {position:static;margin-top:8px;box-shadow:none;}.site-header .mobile-menu-open .nav-settings {display:flex;flex-wrap:wrap;align-items:flex-start;}.site-header .header-language {order:-1;}}

/* Align the interface with the navy-and-gold book identity. */
:root {--brand-navy:#172b4d;--brand-gold:#b89135;}
[data-theme="light"] {--primary:#172b4d;--primary-hover:#243f68;--primary-light:#edf2f8;--primary-glow:rgba(23,43,77,.12);}
[data-theme="dark"] {--primary:#d7b65c;--primary-hover:#e6c979;--primary-light:#28364c;--primary-glow:rgba(215,182,92,.1);--text-muted:#b1bdce;}
body,[data-theme="light"] body {background:var(--bg-main);}
.site-header {border-bottom-color:var(--border-color);box-shadow:0 3px 14px #00000008;}
.site-header .nav-link.active,.hero-section .hero-btn,.site-header .btn-login {background:var(--brand-navy);color:#fff;border:1px solid var(--brand-navy);box-shadow:none;}
[data-theme="dark"] .site-header .nav-link.active,[data-theme="dark"] .hero-section .hero-btn,[data-theme="dark"] .site-header .btn-login {border-color:#b89135;}
.hero-section .hero-eyebrow {background:transparent;color:var(--text-muted);border:0;border-inline-start:3px solid var(--brand-gold);border-radius:0;padding:3px 12px;}
[data-theme="light"] .hero-section .hero-eyebrow {color:#475569;}
.hero-section .hero-content {border-top:3px solid var(--brand-gold);}
.hero-section .hero-secondary-btn:hover {background:var(--primary-light);color:var(--text-main);}
.home-picks-section .home-pick-type {background:#f4eedf;color:#725315;}
.home-picks-section .featured-article-link,.home-picks-actions button {color:#172b4d;}
.home-picks-actions button {border-color:#cbd5e1;}
.home-picks-actions button:hover {background:#edf2f8;}
.home-picks-section .featured-article-card:hover {border-color:#b89135;}
.header-language-options .lang-flag-btn.active,.header-language-options .lang-flag-btn:hover {color:var(--text-main);background:var(--primary-light);}
.hero-section .hero-btn:hover,.site-header .btn-login:hover {background:#243f68;color:#fff;}
.hero-actions button:focus-visible,.hero-card:focus-visible,.home-picks-actions button:focus-visible {outline-color:#b89135;}

/* Compact editorial header, aligned with the content column. */
.site-header > .container {max-width:1280px;}
.site-header .nav-wrapper {min-height:0;gap:6px 20px;padding:8px 0;}
.site-header .brand-logo-image {width:169px;height:52px;border-radius:0;}
.site-header .header-language {min-width:112px;}
.site-header .header-language>summary {min-height:40px;padding:6px 10px;border-color:var(--border-color);border-radius:8px;gap:10px;}
.site-header .header-language>summary:hover {background:var(--bg-surface);}
.site-header .theme-toggle-btn i {color:var(--text-muted)!important;}
.site-header .nav-link.active,[data-theme="dark"] .site-header .nav-link.active {background:transparent;color:var(--text-main);border:0;border-radius:0;box-shadow:inset 0 -2px 0 var(--brand-gold);}
.site-header .nav-link {font-weight:600;}
.site-header .btn-login {padding:10px 20px;font-size:.95rem;}
.cms-collection {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px;padding-block:24px;}
.cms-entry {display:grid;align-content:start;gap:10px;padding:18px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;}
.cms-entry img {width:100%;height:190px;object-fit:cover;border-radius:8px;}
.cms-entry summary {cursor:pointer;}
.cms-entry-body {white-space:pre-wrap;}
@media(min-width:901px){
 .site-header .nav-wrapper {padding:8px 0;gap:12px;}
 .site-header .nav-menu {padding:0;gap:4px;}
 .site-header .nav-link {min-height:44px;padding:8px;font-size:.95rem;}
 .site-header .nav-settings {gap:6px;}
 .site-header .nav-more > .dropdown-menu {position:absolute;box-shadow:var(--shadow-lg);}
 .site-header .header-language-options {position:absolute;}
 .site-header .mobile-menu-open {max-height:none;overflow:visible;}
}
@media(min-width:901px) and (max-width:1200px){
 .site-header .brand-logo-image {width:145px;height:46px;}
 .site-header .nav-wrapper {gap:8px;}
 .site-header .nav-menu {gap:2px;}
 .site-header .nav-menu .nav-link {width:auto;padding:8px 6px;font-size:.9rem;}
 .site-header .nav-settings {display:flex;gap:4px;}
 .site-header .nav-settings .theme-toggle-btn {display:inline-flex;}
 .site-header .nav-settings #loginOpenBtn {display:none;}
 .site-header .header-language {min-width:96px;font-size:.9rem;}
 .site-header #currentLangLabel {font-size:.9rem;}
 .site-header .header-language>summary {padding-inline:6px;gap:6px;}
}
@media(max-width:560px){
 .site-header .brand-logo-image {width:150px;height:46px;}
 .site-header > .container {padding-inline:16px;}
}
