/* Naba_News.mv — main stylesheet. Written with logical properties so it works in RTL (Dhivehi) and LTR. */

:root {
	--bg: #f3f4fa;
	--surface: #ffffff;
	--surface-2: #eceef8;
	--ink: #14173d;
	--muted: #5a5f86;
	--line: #dcdff0;
	--shadow: 0 1px 2px rgba(20, 23, 61, .06), 0 6px 18px rgba(20, 23, 61, .06);
	--radius: 6px;
	--side-w: 340px;
	--gap: 22px;
	--font: 'Faruma', 'MV Boli', 'Noto Sans Thaana', system-ui, sans-serif;
	--fs: 18px;
	--lh: 1.9;
	--hw: 700;
	--wrap: 1240px;
}

html[data-theme="dark"] {
	--bg: #0c0e24;
	--surface: #151836;
	--surface-2: #1d2146;
	--ink: #eceefc;
	--muted: #a5aad4;
	--line: #2a2f5a;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	overflow-x: clip;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs);
	line-height: var(--lh);
	letter-spacing: 0;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
html[data-theme="dark"] a:hover { color: #aab2ff; }
h1, h2, h3, h4 { font-weight: var(--hw); line-height: 1.55; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
html[data-theme="dark"] :focus-visible { outline-color: #aab2ff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; inset-block-start: 8px; inset-inline-start: 8px;
	background: var(--surface); padding: 8px 14px; border-radius: var(--radius);
}

.wrap { max-width: none; margin-inline: auto; padding-inline: 16px; }
.wrap--narrow { max-width: 860px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--tb-bg); color: var(--tb-color); font-size: .9rem; line-height: 1.6; }
.topbar a:hover { color: #fff; }
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: 46px; }
.topbar__dt { display: flex; gap: 14px; white-space: nowrap; flex: none; }
.topbar__time { opacity: .85; }
.topbar__end { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; flex: none; }
.topbar__lang { padding: 1px 10px; border: 1px solid currentColor; border-radius: 99px; opacity: .9; }
.social { display: flex; gap: 4px; flex-wrap: wrap; }
.social__link {
	display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	transition: background-color .15s, color .15s;
}
.social--top .social__link:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.tb-news { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 40px; }
.tb-news__label {
	flex: none; background: var(--tb-label-bg); color: var(--tb-label-fg);
	padding: 0 14px; height: 28px; display: inline-flex; align-items: center; border-radius: 3px;
	font-weight: var(--hw); margin-inline-end: 12px;
}
.tb-news__view { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.tb-news__list { list-style: none; margin: 0; padding: 0; }
.tb-news__list a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tb-news__track { display: flex; width: max-content; height: 100%; align-items: center; animation: tb-ltr var(--tb-speed) linear infinite; }
.tb-news__track .tb-news__list { display: flex; flex: none; gap: 44px; padding-inline-end: 44px; }
.tb-news__track .tb-news__list a { overflow: visible; }
.tb-news:hover .tb-news__track { animation-play-state: paused; }
html[dir="rtl"] .tb-news__track { animation-name: tb-rtl; }
@keyframes tb-ltr { to { transform: translateX(-50%); } }
@keyframes tb-rtl { to { transform: translateX(50%); } }

.tb-news--fade .tb-news__list li, .tb-news--slide .tb-news__list li {
	position: absolute; inset-inline: 0; inset-block: 0; display: flex; align-items: center;
	opacity: 0; pointer-events: none; transition: opacity .5s ease, transform .5s ease;
}
.tb-news--slide .tb-news__list li { transform: translateY(100%); }
.tb-news--fade .tb-news__list li.is-active, .tb-news--slide .tb-news__list li.is-active { opacity: 1; transform: none; pointer-events: auto; }
.tb-news--slide .tb-news__list li.is-leaving { opacity: 0; transform: translateY(-100%); }
.tb-news--static .tb-news__list li { display: flex; align-items: center; height: 100%; }
.tb-news--static .tb-news__list a, .tb-news--fade .tb-news__list a, .tb-news--slide .tb-news__list a { width: 100%; }

/* ---------- Header ---------- */
.site-header { background: var(--hd-bg); color: var(--hd-color); background-size: cover; background-position: center; border-block-end: 1px solid var(--line); z-index: 50; }
html[data-theme="dark"] .site-header { background-color: var(--surface); color: var(--ink); }
.has-sticky-header .site-header { position: sticky; inset-block-start: 0; }
.admin-bar.has-sticky-header .site-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { inset-block-start: 46px; } }
.site-header__in { display: flex; align-items: center; gap: 22px; min-height: var(--hd-h, 96px); }
.brand { flex: none; display: flex; flex-direction: column; justify-content: center; }
.brand img, .custom-logo { height: var(--logo-h); width: auto; max-width: 100%; object-fit: contain; }
.brand__name { font-size: 2.1rem; font-weight: var(--hw); color: var(--primary); line-height: 1.3; }
html[data-theme="dark"] .brand__name { color: #fff; }
.brand__tag { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.4; }

.nav { flex: 1; min-width: 0; }
.nav .menu, .nav .menu ul { list-style: none; margin: 0; padding: 0; }
.nav .menu { display: flex; flex-wrap: wrap; gap: 2px; }
.nav .menu > li { position: relative; }
.nav .menu a { display: block; padding: 12px clamp(8px, 1vw, 16px); border-radius: var(--radius); font-weight: var(--hw); white-space: nowrap; font-size: clamp(16px, 1.45vw, var(--menu-fs, 20px)); }
.nav .menu > li > a { border-block-end: 3px solid transparent; border-radius: 0; }
.nav .menu > li:hover > a, .nav .menu > .current-menu-item > a, .nav .menu > .current-cat > a, .nav .menu > .current-menu-ancestor > a { border-block-end-color: var(--primary); color: var(--primary); }
html[data-theme="dark"] .nav .menu > li:hover > a { color: #aab2ff; border-block-end-color: #aab2ff; }
.nav .sub-menu, .nav .children {
	position: absolute; inset-inline-start: 0; inset-block-start: 100%; min-width: 220px; z-index: 60;
	background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-block-start: 3px solid var(--primary);
	box-shadow: var(--shadow); padding: 6px; display: none;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu, .nav li:hover > .children, .nav li:focus-within > .children { display: block; }
.nav .sub-menu a, .nav .children a { white-space: normal; font-weight: 400; }
.nav .sub-menu a:hover, .nav .children a:hover { background: var(--surface-2); }
.nav .sub-menu .sub-menu { inset-inline-start: 100%; inset-block-start: -9px; }

.tools { display: flex; gap: 4px; margin-inline-start: auto; flex: none; }
.tool {
	display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
	background: transparent;
}
.tool:hover { background: var(--surface-2); color: var(--primary); }
.tool--burger { display: none; }
.tool--burger .ico--close, html:not([data-theme="dark"]) .tool--mode .ico--sun, html[data-theme="dark"] .tool--mode .ico--moon { display: none; }
body.nav-open .tool--burger .ico--close { display: block; }
body.nav-open .tool--burger .ico--menu { display: none; }

.site-header--stacked .site-header__in { flex-wrap: wrap; justify-content: center; padding-block-start: 14px; }
.site-header--stacked .brand { flex: 1 0 100%; align-items: center; text-align: center; }
.site-header--stacked .nav { flex: 1 0 100%; border-block-start: 1px solid var(--line); }
.site-header--stacked .nav .menu { justify-content: center; }
.site-header--stacked .tools { position: absolute; inset-inline-end: 16px; inset-block-start: 14px; }
.site-header--stacked .wrap { position: relative; }

.searchbar { border-block-start: 1px solid var(--line); padding-block: 12px; background: var(--surface); }
.searchform { display: flex; gap: 0; }
.searchform__field {
	flex: 1; min-width: 0; font: inherit; padding: 8px 14px; background: var(--surface); color: var(--ink);
	border: 1px solid var(--line); border-inline-end: 0; border-start-start-radius: var(--radius); border-end-start-radius: var(--radius);
}
.searchform__btn { padding: 0 16px; border: 0; background: var(--primary); color: #fff; border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }

/* drawer pieces (visible on phones / tablets only) */
.mnav, .nav__head, .nav__foot, .sub-toggle, .nav-overlay { display: none; }

/* ---------- Layout ---------- */
.site-main { padding-block: 22px 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); gap: calc(var(--gap) + 8px); align-items: start; }
body.sidebar-none .layout { grid-template-columns: minmax(0, 1fr); }
body.sidebar-start .layout { grid-template-columns: var(--side-w) minmax(0, 1fr); }
body.sidebar-start .layout__side { order: -1; }
.layout__side.is-sticky .layout__side-in { position: sticky; inset-block-start: 96px; }
.admin-bar .layout__side.is-sticky .layout__side-in { inset-block-start: 128px; }

.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	margin-block: 8px 14px; padding-block-end: 8px; border-block-end: 2px solid var(--line); position: relative;
}
.section-head::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: -2px; width: 72px; height: 2px; background: var(--c, var(--primary)); }
.section-head__title { margin: 0; font-size: 1.3rem; }
.section-head__more { font-size: .85rem; color: var(--muted); }
.section-head__more:hover { color: var(--c, var(--primary)); }

.grid { display: grid; gap: var(--gap); }
.grid--1 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tagsec { margin-block-start: 34px; }
.missed { background: var(--surface-2); padding-block: 22px 30px; margin-block-start: 30px; }
.front-extra { margin-block-start: 34px; }
.empty { padding: 30px; text-align: center; background: var(--surface); border-radius: var(--radius); color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-block-start: 3px solid var(--c, var(--primary)); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; margin: 0; }
.card__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.6rem; font-weight: var(--hw); color: #fff; background: linear-gradient(135deg, var(--primary), #14173d); }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__title { margin: 0; font-size: 1.08rem; line-height: 1.7; }
.card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: var(--c, var(--primary)); }
.card__excerpt { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-block-start: auto; padding-block-start: 6px; }

.badge {
	align-self: flex-start; display: inline-block; padding: 0 10px; font-size: .78rem; line-height: 1.8;
	background: var(--c, var(--primary)); color: #fff; border-radius: 3px;
}
.badge:hover { color: #fff; filter: brightness(1.12); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.meta__author { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.meta__author img { border-radius: 50%; width: 22px; height: 22px; object-fit: cover; }
.meta__author:hover { color: var(--primary); }
.meta--full { font-size: .92rem; gap: 6px 18px; padding-block: 10px; border-block: 1px solid var(--line); }
.meta--full .meta__author img { width: 36px; height: 36px; }

.card--list { flex-direction: row; }
.card--list .card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 160px; }
.card--list .card__body { padding: 14px 18px; }

/* featured (hero) */
.hero { position: relative; margin-block-end: 26px; }
.hero__grid { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(150px, 1fr)); }
.hero--mosaic .card--hero:first-child { grid-column: span 2; grid-row: span 2; }
.card--hero { position: relative; border: 0; box-shadow: none; background: #14173d; min-height: 150px; overflow: hidden; }
.card--hero .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--hero .card__body { position: relative; z-index: 1; margin-block-start: auto; padding: 36px 16px 14px; color: #fff; background: linear-gradient(to top, rgba(8, 10, 34, .92), rgba(8, 10, 34, 0)); flex: 0 0 auto; }
.card--hero { justify-content: flex-end; }
.card--hero .card__title { font-size: .98rem; line-height: 1.65; }
.card--hero:first-child .card__title { font-size: 1.55rem; line-height: 1.6; }
.card--hero .card__title a { -webkit-line-clamp: 3; }
.card--hero .card__title a:hover { color: #fff; text-decoration: underline; }
.card--hero .meta { color: rgba(255, 255, 255, .85); }
.card--hero .badge { margin-block-end: 2px; }

.hero--slider .hero__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px; }
.hero--slider .hero__grid::-webkit-scrollbar { display: none; }
.hero--slider .card--hero { flex: 0 0 min(100%, 780px); aspect-ratio: 16 / 8.5; scroll-snap-align: start; }
.hero--slider .card--hero .card__title { font-size: 1.4rem; }
.hero__nav {
	position: absolute; inset-block-start: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%;
	border: 0; background: rgba(255, 255, 255, .92); color: #14173d; display: grid; place-items: center; box-shadow: var(--shadow);
}
html[dir="ltr"] .hero__nav .ico { transform: scaleX(-1); }
.hero__nav--prev { inset-inline-start: 10px; }
.hero__nav--next { inset-inline-end: 10px; }

/* ---------- Widgets ---------- */
.widget { background: var(--surface); box-shadow: var(--shadow); padding: 16px 18px 18px; margin-block-end: var(--gap); border-block-start: 3px solid var(--primary); }
.widget__title { font-size: 1.15rem; margin: 0 0 12px; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank__item { display: flex; align-items: flex-start; gap: 12px; padding-block: 12px; border-block-end: 1px solid var(--line); }
.rank__item:first-child { padding-block-start: 0; }
.rank__item:last-child { border-block-end: 0; padding-block-end: 0; }
.rank__body { min-width: 0; }
.rank__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: var(--hw); line-height: 1.7; font-size: .98rem; }
.rank .meta { margin-block-start: 2px; }
.rank .meta__author img { display: none; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .tagcloud a, .wp-block-tag-cloud a {
	display: inline-block; padding: 1px 13px; font-size: .88rem !important; line-height: 1.8; border: 1px solid var(--c, var(--primary));
	border-radius: 99px; color: var(--ink); background: color-mix(in srgb, var(--c, var(--primary)) 8%, var(--surface));
}
.chip:hover, .tagcloud a:hover, .wp-block-tag-cloud a:hover { background: var(--c, var(--primary)); color: #fff; }
.tagcloud, .wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a, .wp-block-tag-cloud a { margin: 0; }
.chip small { opacity: .7; margin-inline-start: 4px; }
.social--widget .social__link, .social--footer .social__link { width: 38px; height: 38px; background: var(--surface-2); }
.social--widget .social__link:hover { background: var(--primary); color: #fff; }

/* popular (photos) */
.rank--photos .rank__item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start; }
.rank--photos .rank__item--lead { display: block; }
.rank__thumb { position: relative; display: block; overflow: hidden; background: var(--surface-2); width: 104px; aspect-ratio: 4 / 3; }
.rank__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank__thumb .ph { font-size: 1.6rem; }
.rank--photos .rank__item--lead .rank__thumb { width: 100%; aspect-ratio: 16 / 10; margin-block-end: 8px; }
.rank__n {
	position: absolute; inset-block-start: 0; inset-inline-start: 0; z-index: 1; min-width: 26px; height: 26px; padding-inline: 6px;
	display: grid; place-items: center; background: var(--primary); color: #fff; font: 800 .85rem/1 system-ui, sans-serif;
}
.rank__item--lead .rank__n { min-width: 34px; height: 34px; font-size: 1.1rem; }
.rank__item--lead .rank__title { font-size: 1.08rem; }

/* ---------- Single ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: .82rem; color: var(--muted); margin-block-end: 14px; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs a:hover { color: var(--primary); }
.article { background: var(--surface); box-shadow: var(--shadow); padding: 22px clamp(16px, 3vw, 32px) 26px; }
.article__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 8px; }
.article__title { font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: 1.65; margin-block-end: 8px; }
.article__lede { font-size: 1.1rem; color: var(--muted); }
.article__image { margin: 18px 0 0; }
.article__image img { width: 100%; }
.article__image figcaption { font-size: .85rem; color: var(--muted); padding-block: 6px; }
.article__content { margin-block-start: 20px; font-size: 1.05em; }
.entry > * { max-width: 100%; }
.entry img { height: auto; }
.entry a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .entry a { color: #aab2ff; }
.entry blockquote { margin: 1.4em 0; padding: 4px 18px; border-inline-start: 4px solid var(--primary); background: var(--surface-2); }
.entry table { border-collapse: collapse; width: 100%; }
.entry th, .entry td { border: 1px solid var(--line); padding: 6px 10px; }
.alignwide { max-width: 100%; }
.article__tags { margin-block: 18px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 14px; border-block-start: 1px solid var(--line); }
.share__label { font-weight: var(--hw); margin-inline-end: 4px; }
.share__btn { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 10px; border-radius: 99px; border: 0; background: var(--surface-2); font-size: .85rem; line-height: 1; }
.share__btn:hover { background: var(--primary); color: #fff; }
.authorbox { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--surface-2); margin-block-start: 8px; }
.authorbox img { border-radius: 50%; flex: none; }
.authorbox p, .authorbox h2 { margin: 0; }
.authorbox__label { font-size: .8rem; color: var(--muted); }
.authorbox__name { font-size: 1.1rem; }
.authorbox__bio { font-size: .9rem; color: var(--muted); }
.post-navigation { margin-block: var(--gap); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.post-navigation a { display: block; background: var(--surface); box-shadow: var(--shadow); padding: 12px 16px; height: 100%; }
.post-navigation .nav-next { text-align: end; }
.nav-sub { display: block; font-size: .78rem; color: var(--muted); }
.nav-title { display: block; font-weight: var(--hw); line-height: 1.7; }
.related { margin-block-start: 28px; }

.archive-head { margin-block-end: 18px; }
.archive-head__title { font-size: 1.7rem; margin: 0; padding-inline-start: 14px; border-inline-start: 6px solid var(--c, var(--primary)); }
.archive-head__desc { color: var(--muted); margin-block-start: 6px; }
.notfound { text-align: center; padding-block: 24px 30px; }
.notfound__code { font-size: 5rem; font-weight: 800; line-height: 1.1; margin: 0; color: var(--primary); font-family: system-ui, sans-serif; }

.loadmore { text-align: center; margin-block-start: 24px; }
.btn { display: inline-block; font: inherit; border: 0; background: var(--primary); color: #fff; padding: 8px 34px; border-radius: 99px; font-weight: var(--hw); }
.btn:hover { filter: brightness(1.12); color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }
.pager ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 24px 0 0; }
.pager a, .pager span { display: block; min-width: 40px; padding: 2px 12px; text-align: center; background: var(--surface); box-shadow: var(--shadow); }
.pager .current { background: var(--primary); color: #fff; }

.comments { margin-block-start: 28px; background: var(--surface); box-shadow: var(--shadow); padding: 20px 26px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 1.4em; }
.comment-body { padding-block: 12px; border-block-end: 1px solid var(--line); }
.comment-author img { border-radius: 50%; margin-inline-end: 8px; }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius);
}
.comment-form .submit { background: var(--primary); color: #fff; border: 0; padding: 8px 28px; border-radius: 99px; }
.page-links { margin-block: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ft-bg); color: #cfd3f2; margin-block-start: 0; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 36px 26px; align-items: start; }
.footer__logo { display: inline-block; margin-block-end: 8px; }
.footer__logo img { max-height: 72px; width: auto; }
.footer__logo span { font-size: 1.6rem; font-weight: var(--hw); color: #fff; }
.footer__text { font-size: .92rem; margin-block-start: 10px; }
.footer__contact { list-style: none; padding: 0; margin: 12px 0; font-size: .92rem; line-height: 2; }
.footer__contact strong { color: #fff; font-weight: var(--hw); }
.footer__contact a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .social__link { background: rgba(255, 255, 255, .1); color: #fff; }
.site-footer .social__link:hover { background: #fff; color: var(--ft-bg); }
.site-footer .widget { background: transparent; box-shadow: none; padding: 0; border: 0; }
.site-footer .widget__title { color: #fff; }
.site-footer .widget a { color: inherit; }
.site-footer .rank__title { color: #fff; }
.site-footer .rank__item { border-color: rgba(255, 255, 255, .12); }
.footer__bar { border-block-start: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer__bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
.footer__bar p { margin: 0; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.to-top { position: fixed; inset-inline-end: 18px; inset-block-end: 18px; z-index: 70; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.to-top[hidden] { display: none; }

/* off-canvas panel */
.offcanvas { position: fixed; inset-block: 0; inset-inline-end: 0; width: min(380px, 92vw); background: var(--surface); z-index: 120; padding: 56px 20px 24px; overflow-y: auto; transform: translateX(110%); transition: transform .3s ease; box-shadow: var(--shadow); }
html[dir="rtl"] .offcanvas { transform: translateX(-110%); }
.offcanvas.is-open { transform: none; }
.offcanvas__close { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; width: 40px; height: 40px; border: 0; background: var(--surface-2); border-radius: 50%; display: grid; place-items: center; }
.overlay { position: fixed; inset: 0; background: rgba(8, 10, 34, .55); z-index: 110; }
.overlay[hidden] { display: none; }

/* ---------- Ads ---------- */
.naba-ad { margin-block: 18px; text-align: center; max-width: 100%; overflow: hidden; }
.naba-ad__label { display: block; font-size: .7rem; color: var(--muted); line-height: 1.6; margin-block-end: 2px; }
.naba-ad__body img { margin-inline: auto; }
.naba-ad--header_top, .naba-ad--header_below, .naba-ad--footer_above { margin-block: 0; padding-block: 10px; background: var(--surface-2); }
.naba-ad--in_feed { grid-column: 1 / -1; margin-block: 0; }
.naba-ad--sidebar_top, .naba-ad--sidebar_bottom { margin-block: 0 var(--gap); }
.sticky-ad { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 90; background: var(--surface); box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); text-align: center; padding: 4px 36px; }
.sticky-ad .naba-ad { margin: 0; }
.sticky-ad__close { position: absolute; inset-block-start: 2px; inset-inline-end: 6px; border: 0; background: var(--surface-2); width: 26px; height: 26px; border-radius: 50%; line-height: 1; font-size: 1.1rem; }
.sticky-ad[hidden] { display: none; }
@media (max-width: 767px) { .naba-ad--desktop { display: none; } }
@media (min-width: 768px) { .naba-ad--mobile { display: none; } }

/* ---------- Responsive ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.tb-news__track { animation: none; overflow-x: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
	.topbar, .site-header, .site-footer, .layout__side, .naba-ad, .share, .to-top, .related, .comments { display: none !important; }
	.article { box-shadow: none; padding: 0; }
}


/* ---------- Mini frames ---------- */
.card--mini { flex-direction: row; align-items: stretch; border-block-start: 0; border-inline-start: 3px solid var(--c, var(--primary)); min-height: 84px; }
.card--mini .card__media { flex: 0 0 108px; aspect-ratio: auto; min-height: 84px; }
.card--mini .card__body { padding: 8px 12px; gap: 2px; justify-content: center; }
.card--mini .card__title { font-size: .95rem; line-height: 1.65; }
.card--mini .meta { padding: 0; margin: 0; }

/* ---------- Front page sections ---------- */
.fsec { margin-block-start: 38px; }
.fsec__big, .fsec__small, .fsec__picked { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.fsec__small { margin-block-start: 16px; gap: 12px var(--gap); }


.fsec .loadmore { margin-block-start: 20px; }
.fsec .loadmore .btn { background: var(--c, var(--primary)); }

/* hand-picked boxes (Report, Column) */
.fsec--picked { background: var(--surface-2); border-block-start: 3px solid var(--c, var(--primary)); padding: 6px 18px 20px; }
.fsec--column { --c: var(--accent); }
.fsec--picked .section-head { border-block-end-color: var(--line); }
.fsec__picked .card--hero { aspect-ratio: 16 / 11; }
.fsec__picked .card--hero .card__title, .fsec__picked .card--hero:first-child .card__title { font-size: 1.1rem; }

/* gallery / portfolio */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(var(--gcols, 4), minmax(0, 1fr)); grid-auto-flow: dense; }
.gallery--cols-3 { --gcols: 3; }
.gallery--cols-4 { --gcols: 4; }
.gallery--feature .gtile:first-child { grid-column: span 2; grid-row: span 2; }
.gtile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery--feature .gtile:first-child { aspect-ratio: auto; }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gtile:hover img { transform: scale(1.05); }
.gtile::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 65%; background: linear-gradient(to top, rgba(8, 10, 34, .9), rgba(8, 10, 34, 0)); pointer-events: none; }
.gtile__cap {
	position: absolute; inset-inline: 12px; inset-block-end: 10px; z-index: 1; padding: 0; color: #fff; font-size: .92rem; line-height: 1.7;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gtile:hover { color: #fff; }

/* pop-up image viewer */
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(8, 10, 34, .9); padding: 24px; }
.lb.is-open { display: flex; }
.lb__fig { margin: 0; max-width: min(1100px, 100%); max-height: 100%; text-align: center; color: #fff; }
.lb__fig img { max-height: 80vh; width: auto; margin-inline: auto; }
.lb__fig figcaption { padding-block: 10px; line-height: 1.7; }
.lb__close { position: absolute; inset-block-start: 14px; inset-inline-end: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.8rem; line-height: 1; }

/* ---------- Standard news-list blocks and widgets, with photos ---------- */
.wp-block-latest-posts, .widget_recent_entries ul { list-style: none; padding: 0; margin: 0; }
.wp-block-latest-posts li { padding-block: 12px; border-block-end: 1px solid var(--line); }
.wp-block-latest-posts li:last-child { border-block-end: 0; }
.wp-block-latest-posts li:has(.wp-block-latest-posts__featured-image) { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 2px 12px; align-items: start; }
.wp-block-latest-posts__featured-image { grid-row: 1 / span 4; margin: 0 !important; float: none !important; }
.wp-block-latest-posts__featured-image img { width: 104px !important; height: 78px !important; max-width: none; object-fit: cover; }
.wp-block-latest-posts__post-title { font-weight: var(--hw); line-height: 1.7; }
.wp-block-latest-posts__post-date, .wp-block-latest-posts__post-author { font-size: .8rem; color: var(--muted); display: block; }


/* =====================================================================
   RESPONSIVE — tablets and phones
   ===================================================================== */
@media (max-width: 1100px) {
	:root { --side-w: 300px; }
	.grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	:root { --gap: 16px; }
	.layout, body.sidebar-start .layout, body.sidebar-none .layout { grid-template-columns: minmax(0, 1fr); }
	body.sidebar-start .layout__side { order: 0; }
	.layout__side.is-sticky .layout__side-in { position: static; }
	.footer__grid { grid-template-columns: 1fr; }
	.grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* top bar: only the breaking-news line */
	.topbar__dt, .topbar__end .social, .topbar__lang { display: none; }
	.topbar__in { min-height: 44px; }

	/* header */
	.site-header__in { min-height: var(--hd-h-m, 68px); gap: 6px; flex-wrap: nowrap; justify-content: flex-start; padding-block: 0; }
	.brand, .site-header--stacked .brand { flex: 0 1 auto; align-items: flex-start; text-align: start; min-width: 0; }
	.brand img, .custom-logo { height: min(var(--logo-h), var(--logo-h-m, 52px)); }
	.brand__name { font-size: 1.7rem; }
	.brand__tag { display: none; }
	.tools, .site-header--stacked .tools { position: static; margin-inline-start: auto; gap: 2px; }
	.tool { width: 48px; height: 48px; }
	.tool--burger { display: inline-grid; background: var(--primary); color: #fff; margin-inline-start: 4px; }
	.tool--burger:hover { background: var(--primary); color: #fff; }
	.tool--panel { display: none; }
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { z-index: 300; }

	/* slide-in menu */
	.nav, .site-header--stacked .nav {
		position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 300; flex: none; width: min(88vw, 360px); max-height: none;
		background: var(--surface); color: var(--ink); border: 0; padding: 0; display: flex; flex-direction: column; overflow-y: auto;
		transform: translateX(-105%); transition: transform .28s ease; visibility: hidden; overscroll-behavior: contain;
	}
	html[dir="rtl"] .nav, html[dir="rtl"] .site-header--stacked .nav { transform: translateX(105%); }
	body.nav-open .nav { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
	.nav-overlay { display: block; position: fixed; inset: 0; z-index: 290; background: rgba(8, 10, 34, .55); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
	body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
	.nav__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 16px; padding-inline: 16px 10px; background: var(--surface); border-block-end: 1px solid var(--line); position: sticky; inset-block-start: 0; z-index: 2; }
	.nav__title { font-size: 1.25rem; font-weight: var(--hw); color: var(--primary); }
	html[data-theme="dark"] .nav__title { color: #fff; }
	.nav__close { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
	.nav .menu { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 4px 10px; }
	.nav .menu li { position: relative; }
	.nav .menu > li { border-block-end: 1px solid var(--line); }
	.nav .menu a { padding: 13px 8px; font-size: 1.1rem; white-space: normal; border-radius: 0; min-height: 52px; display: flex; align-items: center; }
	.nav .menu > li > a { border-block-end: 0; }
	.nav .menu > li:hover > a { border-block-end: 0; color: inherit; }
	.nav .menu > .current-menu-item > a, .nav .menu > .current-cat > a, .nav .menu > .current-menu-ancestor > a { color: var(--primary); }
	.nav li.has-sub > a, .nav .menu li:has(> ul) > a { padding-inline-end: 56px; }
	.sub-toggle { display: grid; place-items: center; position: absolute; inset-block-start: 3px; inset-inline-end: 0; width: 48px; height: 48px; border: 0; background: transparent; color: inherit; }
	.sub-toggle svg { transition: transform .2s ease; }
	li.is-open > .sub-toggle svg { transform: rotate(180deg); }
	.nav .sub-menu, .nav .children {
		position: static; display: none; min-width: 0; box-shadow: none; border: 0; background: var(--surface-2);
		padding: 2px 0; margin: 0 0 8px; border-radius: var(--radius);
	}
	.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu, .nav li:hover > .children, .nav li:focus-within > .children { display: none; }
	.nav li.is-open > .sub-menu, .nav li.is-open > .children { display: block; }
	.nav .sub-menu a, .nav .children a { padding-inline-start: 22px; font-weight: 400; font-size: 1.02rem; min-height: 46px; }
	.nav .sub-menu .sub-menu { inset: auto; }
	.nav__foot { display: flex; flex-direction: column; gap: 12px; margin-block-start: auto; padding: 16px; border-block-start: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
	.nav__lang { align-self: flex-start; padding: 2px 16px; border: 1px solid currentColor; border-radius: 99px; }
	.nav__foot .social { gap: 8px; }
	.nav__foot .social__link { width: 44px; height: 44px; background: var(--surface-2); color: var(--ink); }

	/* swipeable section strip under the header */
	.mnav { display: block; background: var(--hd-bg); border-block-end: 1px solid var(--line); }
	html[data-theme="dark"] .mnav { background: var(--surface); }
	.mnav__list { list-style: none; margin: 0; padding: 8px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
	.mnav__list::-webkit-scrollbar { display: none; }
	.mnav__list li { flex: none; scroll-snap-align: center; }
	.mnav__list a { display: block; white-space: nowrap; padding: 3px 18px; min-height: 40px; line-height: 1.9; border-radius: 99px; background: var(--surface-2); color: var(--ink); font-weight: var(--hw); font-size: 1rem; }
	.mnav__list .current-menu-item > a, .mnav__list .current-cat > a, .mnav__list .current-menu-ancestor > a { background: var(--primary); color: #fff; }

	/* featured stories: swipe */
	.hero { margin-inline: -16px; margin-block-end: 20px; }
	.hero__grid, .hero--mosaic .hero__grid, .hero--slider .hero__grid {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-inline: 16px; scroll-padding-inline: 16px;
		scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.hero__grid::-webkit-scrollbar { display: none; }
	.hero .card--hero, .hero--mosaic .card--hero:first-child, .hero--slider .card--hero { flex: 0 0 86%; max-width: 560px; aspect-ratio: 16 / 11; min-height: 0; grid-column: auto; grid-row: auto; scroll-snap-align: start; }
	.hero .card--hero .card__title, .hero .card--hero:first-child .card__title { font-size: 1.14rem; line-height: 1.7; }
	.hero__nav { display: none; }

	/* sections */
			.fsec__big, .fsec__small, .fsec__picked { --cols: 2 !important; }
	.fsec__big > :nth-child(3) { grid-column: 1 / -1; }
	.gallery, .gallery--cols-3, .gallery--cols-4 { --gcols: 3; }
}

@media (max-width: 640px) {
	:root { --gap: 14px; }
	body { font-size: var(--fs-m, var(--fs)); }
	.wrap { padding-inline: 16px; }
	.site-main { padding-block: 14px 30px; }
	.section-head { margin-block: 4px 12px; }
	.section-head__title { font-size: 1.3rem; }
	.crumbs { font-size: .85rem; margin-block-end: 10px; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; scrollbar-width: none; }

	/* top bar */
	.tb-news__label { padding: 0 10px; font-size: .88rem; }
	.topbar { font-size: .92rem; }

	/* every news list: photo on the side, big readable title */
	.grid--1, .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--surface); box-shadow: var(--shadow); }
	.grid > .card { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; border: 0; border-block-end: 1px solid var(--line); box-shadow: none; background: transparent; }
	.grid > .card:last-child { border-block-end: 0; }
	.grid > .card .card__media { flex: 0 0 124px; width: 124px; aspect-ratio: 4 / 3; min-height: 0; }
	.grid > .card .card__body { padding: 0; gap: 3px; min-width: 0; }
	.grid > .card .card__title { font-size: 1.06rem; line-height: 1.8; }
	.grid > .card .card__title a { -webkit-line-clamp: 4; }
	.grid > .card .card__excerpt { display: none; }
	.grid > .card .badge { font-size: .76rem; line-height: 1.75; padding: 0 9px; }
	.grid > .card .meta { font-size: .85rem; }
	.grid > .card .meta__author img { display: none; }
	/* the first story of a list is large */
	.grid > .card:first-child { flex-direction: column; gap: 0; padding: 0; }
	.grid > .card:first-child .card__media { flex: none; width: 100%; aspect-ratio: 16 / 10; }
	.grid > .card:first-child .card__body { padding: 12px 14px 14px; gap: 4px; }
	.grid > .card:first-child .card__title { font-size: 1.32rem; line-height: 1.75; }
	.grid > .card:first-child .card__title a { -webkit-line-clamp: 4; }
	.grid > .card:first-child .card__excerpt { display: -webkit-box; font-size: .98rem; }
	.grid > .card:first-child .meta__author img { display: inline-block; }
	.naba-ad--in_feed { padding-inline: 14px; }

	/* tag sections: large frames swipe sideways, small frames form a tidy list */
	.fsec { margin-block-start: 30px; }
	.fsec__big, .fsec__picked {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 2px 16px 12px;
		scroll-padding-inline: 16px; scrollbar-width: none; background: transparent; box-shadow: none; -webkit-overflow-scrolling: touch;
	}
	.fsec__big::-webkit-scrollbar, .fsec__picked::-webkit-scrollbar { display: none; }
	.fsec__big > .card, .fsec__picked > .card { flex: 0 0 80%; scroll-snap-align: start; flex-direction: column; padding: 0; border-block-end: 0; background: var(--surface); box-shadow: var(--shadow); border-block-start: 3px solid var(--c, var(--primary)); }
	.fsec__big > .card .card__media { flex: none; width: 100%; aspect-ratio: 16 / 10; }
	.fsec__big > .card .card__body { padding: 10px 12px 12px; }
	.fsec__big > .card .card__title { font-size: 1.08rem; }
	.fsec__picked > .card { aspect-ratio: 16 / 11; border-block-start: 0; }
	.fsec__picked > .card { flex-basis: 82%; }
	.fsec__picked .card--hero .card__title, .fsec__picked .card--hero:first-child .card__title { font-size: 1.08rem; }
				.fsec__small { display: block; margin-block-start: 10px; gap: 0; background: var(--surface); box-shadow: var(--shadow); }
		.card--mini { padding: 12px 14px; gap: 12px; min-height: 0; border-inline-start: 0; border-block-end: 1px solid var(--line); box-shadow: none; background: transparent; align-items: flex-start; }
	.fsec__small > .card--mini:last-child { border-block-end: 0; }
	.card--mini .card__media { flex: 0 0 108px; width: 108px; aspect-ratio: 4 / 3; min-height: 0; }
	.card--mini .card__body { padding: 0; justify-content: flex-start; }
	.card--mini .card__title { font-size: 1.04rem; line-height: 1.8; }
	.card--mini .card__title a { -webkit-line-clamp: 3; }
	.fsec--picked { padding: 4px 16px 6px; }
	.fsec .loadmore, .loadmore { margin-block-start: 16px; }
	.btn { display: block; width: 100%; padding: 13px 20px; font-size: 1.05rem; }
	.gallery, .gallery--cols-3, .gallery--cols-4 { --gcols: 2; gap: 6px; }
	.gallery--feature .gtile:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
	.gtile__cap { font-size: .95rem; }

	/* sidebar widgets */
	.widget { padding: 14px 14px 16px; }
	.widget__title { font-size: 1.2rem; }
	.rank--photos .rank__item { grid-template-columns: 104px minmax(0, 1fr); }
	.rank__title { font-size: 1.02rem; }
	.chip, .tagcloud a, .wp-block-tag-cloud a { font-size: 1rem !important; padding: 3px 15px; }
	.social--widget .social__link { width: 46px; height: 46px; }

	/* article page: edge to edge, large type */
	.article { margin-inline: -16px; padding: 16px 16px 20px; box-shadow: none; }
	.article__cats { margin-block-end: 6px; }
	.article__title { font-size: 1.62rem; line-height: 1.75; }
	.article__lede { font-size: 1.08rem; }
	.meta--full { font-size: .92rem; gap: 6px 14px; }
	.meta--full .meta__author { flex: 1 0 100%; }
	.article__image { margin-inline: -16px; }
	.article__image figcaption { padding-inline: 16px; }
	.article__content { font-size: 1.08em; line-height: 2.05; margin-block-start: 16px; }
	.entry p { margin-block-end: 1.2em; }
	.entry h2 { font-size: 1.35rem; }
	.entry h3 { font-size: 1.2rem; }
	.entry iframe, .entry video { width: 100%; }
	.share { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 12px; }
	.share::-webkit-scrollbar { display: none; }
	.share__label { display: none; }
	.share__btn { flex: none; min-width: 46px; height: 46px; }
	.authorbox { flex-direction: row; text-align: start; gap: 12px; padding: 12px; }
	.authorbox img { width: 56px; height: 56px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation a { padding: 14px; }
	.related { margin-block-start: 22px; }
	.comments { margin-inline: -16px; padding: 16px; box-shadow: none; }
	.pager a, .pager span { min-width: 46px; padding: 6px 14px; }
	.archive-head__title { font-size: 1.5rem; }

	/* footer */
	.footer__grid { gap: 22px; padding-block: 24px 14px; }
	.footer__contact { font-size: 1rem; line-height: 2.3; }
	.site-footer .social__link { width: 46px; height: 46px; }
	.footer__bar-in { flex-direction: column; align-items: flex-start; gap: 6px; }
	.footer__links { gap: 4px 18px; }
	.missed { margin-block-start: 26px; padding-block: 16px 22px; }

	/* floating bits clear of the phone's home bar */
	.to-top { inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; width: 46px; height: 46px; }
	.sticky-ad { padding-block-end: env(safe-area-inset-bottom, 0px); }
}

@media (max-width: 380px) {
	.brand__name { font-size: 1.25rem; }
	.tool { width: 42px; height: 42px; }
	.hero .card--hero { flex-basis: 90%; }
	.grid > .card .card__media { flex-basis: 108px; width: 108px; }
}


/* ---------- Footer language link ---------- */
.footer__lang { margin: 10px 0 0; }
.footer__lang a { display: inline-block; padding: 2px 18px; border: 1px solid currentColor; border-radius: 99px; font-size: .92rem; }

/* ---------- English edition (left to right, Latin type) ---------- */
.lang-en h1, .lang-en h2, .lang-en h3, .lang-en h4 { line-height: 1.3; }
.lang-en .card__title, .lang-en .rank__title, .lang-en .card--mini .card__title { line-height: 1.4; }
.lang-en .card__excerpt { line-height: 1.6; }
.lang-en .card--hero .card__title, .lang-en .card--hero:first-child .card__title, .lang-en .lang-en .article__title { line-height: 1.25; }
.lang-en .brand__name { letter-spacing: -.01em; }
.lang-en .meta { line-height: 1.5; }
@media (max-width: 640px) {
	.lang-en .grid > .card .card__title, .lang-en .card--mini .card__title { line-height: 1.4; }
	.lang-en .grid > .card:first-child .card__title, .lang-en .hero .card--hero .card__title, .lang-en .hero .card--hero:first-child .card__title, .lang-en 	.lang-en .article__title { line-height: 1.3; }
	.lang-en .article__content { line-height: 1.75; }
}


/* ---------- Politics-style section: one large square beside small squares ---------- */
.fsec--lead .fsec__body { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.fsec--lead .fsec__big { display: block; grid-column: span 2; grid-row: span 2; margin: 0; padding: 0; overflow: visible; }
.fsec--lead .fsec__small { display: contents; }
.fsec--lead .fsec__big > .card { height: 100%; width: 100%; aspect-ratio: auto; min-height: 0; flex: none; }
.fsec--lead .fsec__big .card--hero .card__title { font-size: 1.5rem; line-height: 1.6; }
.card--tile { aspect-ratio: 1 / 1; min-height: 0; flex: none; }
.card--tile .card__body { padding: 30px 12px 10px; gap: 2px; }
.card--tile .card__title, .card--tile:first-child .card__title { font-size: .98rem; line-height: 1.7; }
.card--tile .card__title a { -webkit-line-clamp: 4; }
.card--tile .meta { font-size: .78rem; }
.lang-en .card--tile .card__title, .lang-en .card--tile:first-child .card__title { line-height: 1.35; }
.lang-en .fsec--lead .fsec__big .card--hero .card__title { line-height: 1.3; }

/* ---------- Language switch button in the header ---------- */
.tool--lang { width: auto; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); font-weight: var(--hw); font-size: .95rem; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; margin-inline-end: 4px; color: var(--primary); background: var(--surface-2); }
.tool--lang:hover { background: var(--primary); color: #fff; }
html[data-theme="dark"] .tool--lang { color: #fff; }

@media (max-width: 900px) {
	.fsec--lead .fsec__body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fsec--lead .fsec__big { grid-column: 1 / -1; grid-row: auto; }
	.fsec--lead .fsec__big > .card { height: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
	.fsec--lead .fsec__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.fsec--lead .fsec__big > .card { aspect-ratio: 16 / 11; border-block-start: 0; }
	.fsec--lead .fsec__big .card--hero .card__title { font-size: 1.3rem; }
	.fsec--lead .fsec__small { background: none; box-shadow: none; margin: 0; }
	.card--tile .card__title, .card--tile:first-child .card__title { font-size: .95rem; }
	.tool--lang { padding: 0 12px; font-size: .88rem; height: 40px; margin-inline-end: 2px; }
}
@media (max-width: 380px) {
	.tool--lang { padding: 0 9px; font-size: .8rem; }
}


/* ---------- Right-to-left quotation marks for <q> ---------- */
html[dir="rtl"] q { quotes: "\201D" "\201C" "\2019" "\2018"; }


/* ---------- Tags: navy blue text, white on hover ---------- */
.chip, .tagcloud a, .wp-block-tag-cloud a { color: var(--tag-color, #0a1f5c); }
.chip:hover, .tagcloud a:hover, .wp-block-tag-cloud a:hover, .chip:focus-visible { color: var(--tag-hover, #fff); }
.site-footer .widget .chip, .site-footer .widget .tagcloud a, .site-footer .widget .wp-block-tag-cloud a { color: var(--tag-color, #0a1f5c); }
.site-footer .widget .chip:hover, .site-footer .widget .tagcloud a:hover, .site-footer .widget .wp-block-tag-cloud a:hover { color: var(--tag-hover, #fff); }
html[data-theme="dark"] .chip, html[data-theme="dark"] .tagcloud a, html[data-theme="dark"] .wp-block-tag-cloud a,
html[data-theme="dark"] .site-footer .widget .chip { color: #dfe2f7; }
html[data-theme="dark"] .chip:hover, html[data-theme="dark"] .tagcloud a:hover, html[data-theme="dark"] .site-footer .widget .chip:hover { color: #fff; }

/* ---------- Footer: three columns ---------- */
.footer__col .widget { margin-block-end: 0; }
@media (max-width: 900px) {
	.footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.footer__col.is-empty { display: none; }
}


/* ---------- Social icons stay visible on phones and tablets: a full-width row under the breaking-news line ---------- */
@media (max-width: 900px) {
	.topbar__in { flex-wrap: wrap; row-gap: 0; }
	.topbar__end { order: 3; flex: 1 0 100%; margin: 0; padding: 5px 0 7px; border-block-start: 1px solid rgba(255, 255, 255, .12); }
	.topbar__end .social { display: flex; flex: 1; justify-content: space-between; flex-wrap: nowrap; gap: 4px; max-width: 460px; margin-inline: auto; }
	.topbar__end .social__link { width: 32px; height: 32px; flex: none; background: rgba(255, 255, 255, .08); }
}
@media (max-width: 380px) {
	.topbar__end .social__link { width: 30px; height: 30px; }
}

/* ---------- Footer social icons: all ten on one line on desktop ---------- */
@media (min-width: 901px) {
	.site-footer .social--footer { gap: 4px; flex-wrap: nowrap; }
	.site-footer .social--footer .social__link { width: 32px; height: 32px; flex: none; }
}


/* ---------- Large header on computers: big logo row, then a full-width menu row (the menu row stays pinned when scrolling) ---------- */
@media (min-width: 901px) {
	.site-header--stacked .site-header__in { flex-wrap: wrap; justify-content: flex-start; align-content: flex-start; padding-block: 0; min-height: 0; gap: 0 22px; }
	.site-header--stacked .brand { flex: 1 1 auto; align-items: flex-start; text-align: start; min-height: var(--hd-h, 96px); justify-content: center; }
	.site-header--stacked .tools { position: static; margin-inline-start: auto; display: flex; align-items: center; min-height: var(--hd-h, 96px); }
	.site-header--stacked .nav { order: 3; flex: 1 0 100%; border-block-start: 1px solid var(--line); }
	.site-header--stacked .nav .menu { justify-content: center; gap: 2px; flex-wrap: wrap; }
	.has-sticky-header .site-header--stacked { inset-block-start: calc(-1 * var(--hd-h, 96px)); }
	.admin-bar.has-sticky-header .site-header--stacked { inset-block-start: calc(32px - var(--hd-h, 96px)); }
}

/* Phones and tablets: the large two-row header becomes one compact row (menu is in the slide-in drawer) */
@media (max-width: 900px) {
	.site-header--stacked .site-header__in { flex-wrap: nowrap; justify-content: flex-start; align-content: center; padding-block: 0; min-height: var(--hd-h-m, 68px); gap: 6px; }
	.site-header--stacked .brand { min-height: 0; }
	.site-header--stacked .tools { min-height: 0; }
	.has-sticky-header .site-header--stacked { inset-block-start: 0; }
	.admin-bar.has-sticky-header .site-header--stacked { inset-block-start: 46px; }
}


/* Phones: the logo gets the room; the light / dark button lives in the slide-in menu */
.nav__mode { display: none; }
@media (max-width: 900px) {
	.brand, .site-header--stacked .brand { flex: 0 1 auto; min-width: 0; max-width: 58%; }
	.tools { flex: none; }
	.nav__mode { display: flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .95rem; }
	.nav__mode .ico--sun, html[data-theme="dark"] .nav__mode .ico--moon { display: none; }
	html[data-theme="dark"] .nav__mode .ico--sun { display: inline-block; }
}
@media (max-width: 480px) {
	.tool--mode { display: none; }
	.tool { width: 44px; height: 44px; }
	.tool.tool--lang { width: auto; height: 38px; padding: 0 11px; }
}


/* ---------- Full-width widget areas (ads, banners) ---------- */
.wide-area { padding-block: 10px; }
.wide-area--header-top, .wide-area--header-bottom { background: var(--surface-2); }
.wide-area .widget { background: transparent; box-shadow: none; border: 0; padding: 0; margin: 0 0 10px; text-align: center; }
.wide-area .widget:last-child { margin-block-end: 0; }
.wide-area .widget__title { font-size: .95rem; color: var(--muted); }
.wide-area img { max-width: 100%; height: auto; }

/* Phone menu: the open state must beat the closed-state rules in every layout (right-to-left + large header included) */
@media (max-width: 900px) {
	html body.nav-open .nav,
	html[dir="rtl"] body.nav-open .nav,
	html body.nav-open .site-header--stacked .nav,
	html[dir="rtl"] body.nav-open .site-header--stacked .nav,
	html[dir="ltr"] body.nav-open .site-header--stacked .nav { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
}

/* =====================================================================
   FULL-WIDTH DESKTOP: the theme fills the screen; header and type scale up
   ===================================================================== */
:root { --gutter: clamp(16px, 2vw, 48px); }
.wrap { padding-inline: var(--gutter); }
.wrap--narrow { max-width: 980px; }

@media (min-width: 901px) {
	:root { --side-w: clamp(320px, 22vw, 470px); --gap: clamp(20px, 1.5vw, 36px); }
	.topbar__in { min-height: 52px; }
	.topbar__social, .topbar .social__link { width: clamp(30px, 2vw, 38px); height: clamp(30px, 2vw, 38px); }
	.site-header__in { gap: clamp(22px, 2vw, 44px); }
	.brand__name { font-size: clamp(2.1rem, 2.6vw, 3.2rem); }
	.tool { width: clamp(46px, 3vw, 58px); height: clamp(46px, 3vw, 58px); }
	.tool.tool--lang { width: auto; height: clamp(40px, 2.6vw, 50px); padding-inline: clamp(16px, 1.3vw, 26px); font-size: clamp(.95rem, 1.05vw, 1.2rem); }
	.site-header--stacked .nav .menu { justify-content: space-evenly; }
	.nav .menu a { padding: 14px clamp(10px, 1.1vw, 24px); }
	.hero--mosaic .hero__grid { grid-template-rows: repeat(2, clamp(180px, 14vw, 340px)); gap: clamp(8px, .7vw, 14px); }
	.hero { margin-block-end: 34px; }
	.article__content { max-width: 66rem; }
}
@media (min-width: 1760px) {
	.layout__main .grid--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.layout__main .grid--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.fsec__small { --cols: 4 !important; }
	.fsec--lead .fsec__small { --cols: 3 !important; }
}


/* Width of the layout: full by default; "wide" and "boxed" are chosen with a body class */
body.layout-boxed .wrap:not(.wrap--narrow) { max-width: var(--wrap-boxed, 1240px); }

/* Footer logo: the site logo is usually dark, so it sits on a light plate; a footer logo (light version) needs none */
.footer__logo--plate img { background: #fff; padding: 10px 18px; border-radius: 12px; box-sizing: content-box; }


/* =====================================================================
   Side margins for the content; the header, featured stories, Report and Column run edge to edge
   (computers only; "Full width everywhere" and "Boxed" switch the edge-to-edge parts off)
   ===================================================================== */
@media (min-width: 901px) {
	.wrap { padding-inline: var(--page-m, clamp(16px, 7vw, 260px)); }

	body:not(.layout-full):not(.layout-boxed) .hero,
	body:not(.layout-full):not(.layout-boxed) .fsec--picked { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
	body.home:not(.layout-full):not(.layout-boxed) .site-main { padding-block-start: 0; }
	body:not(.layout-full):not(.layout-boxed) .hero__grid { gap: 4px; }
	body:not(.layout-full):not(.layout-boxed) .hero .card--hero { border-radius: 0; }
	body:not(.layout-full):not(.layout-boxed) .hero--slider .card--hero { flex: 0 0 100%; aspect-ratio: auto; height: clamp(320px, 30vw, 640px); }
	body:not(.layout-full):not(.layout-boxed) .fsec--picked { padding-inline: 0; }
	body:not(.layout-full):not(.layout-boxed) .fsec--picked .section-head { padding-inline: var(--page-m, clamp(16px, 7vw, 260px)); }
	body:not(.layout-full):not(.layout-boxed) .fsec--picked .fsec__picked { gap: 4px; }
	body:not(.layout-full):not(.layout-boxed) .fsec--picked .card--hero { border-radius: 0; }
}

/* News cards that did not fit beside the sidebar wait here until "Load more" is pressed (computers only) */
@media (min-width: 901px) {
	.is-fit-hidden { display: none !important; }
}

/* Computers: the menu is one row; the script shrinks the text if a long menu would not fit */
@media (min-width: 901px) {
	.site-header--stacked .nav .menu { flex-wrap: nowrap; }
	.site-header--stacked .nav .menu > li { flex: 0 0 auto; }
	.site-header--stacked .nav .menu > li > a { white-space: nowrap; }
}


/* Footer top row: logo on one margin, English / Dhivehi on the other (like the header) */
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; padding-block: 34px 22px; border-block-end: 1px solid rgba(255, 255, 255, .12); }
.footer__top + .footer__grid { padding-block-start: 26px; }
.footer__brand { min-width: 0; }
.footer__brand .widget { margin: 0; text-align: start; }
.footer__brand .widget > :last-child { margin-block-end: 0; }
.footer__brand img, .footer__brand .aligncenter, .footer__brand .alignleft, .footer__brand .alignright { display: block; float: none; margin-inline: 0 auto; }
.footer__top .footer__logo { margin-block-end: 0; }
.footer__top .footer__lang { margin: 0; }
.footer__lang--col { display: none; }
@media (max-width: 900px) {
	.footer__top { padding-block: 24px 0; border-block-end: 0; }
	.footer__top + .footer__grid { padding-block-start: 0; }
	.footer__lang--top { display: none; }
	.footer__lang--col { display: block; }
}

/* The picture height of the latest-news cards is fitted to the sidebar by the script (computers only) */
@media (min-width: 901px) {
	[data-grid].is-fitted > .card--box .card__media { aspect-ratio: auto; height: var(--fit-media-h); }
}
