/* Turizm Media — main stylesheet */

/* Fonts (self-hosted subsets: Latin, Azerbaijani, Russian; variable weights). */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2?v=0.4.5") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight.woff2?v=0.4.5") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2?v=0.4.5") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
	--ink: #0F1B24;
	--ink-2: #1C2A35;
	--muted: #55636F;
	--muted-2: #3D4B57;
	--line: #E3E8ED;
	--line-2: #C9D2DA;
	--surface: #F3F6F8;
	--bg: #FFFFFF;
	--accent: #0B5CAD;
	--accent-ink: #FFFFFF;
	--gold: #E8A317;
	--gold-ink: #8A5F00; /* 5.6:1 on white: readable at small sizes (WCAG AA) */
	--night: #0F1B24;
	--night-2: #18283A;
	--night-text: #C9D2DA;
	--radius: 14px;
	--font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Inter Tight", Inter, system-ui, sans-serif;
	--font-serif: "Source Serif 4", Georgia, serif;
	--gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
@media (max-width: 600px) { :root { --gutter: 16px; } }

/* Buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 24px; border: 0; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { color: #fff; filter: brightness(1.08); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { color: var(--ink); filter: brightness(1.05); }
.btn--gold:disabled { opacity: .6; cursor: not-allowed; }
.btn--outline { border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.btn--block { display: flex; width: 100%; margin-top: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

.chip { display: inline-block; background: var(--chip-bg, #E3E8ED); color: var(--chip-fg, #3D4B57); font-size: 13px; font-weight: 600; line-height: 1.4; padding: 3px 10px; border-radius: 999px; }
.chip:hover { color: var(--chip-fg); filter: brightness(.97); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.views { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.byline__role .views { margin-left: 4px; vertical-align: -2px; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.eyebrow--green { color: #2F6127; }
.eyebrow--gold { color: #7A5203; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--ghost { border: 1px solid #3D4B57; color: #D5DDE4; }

/* Top bar + header */
.topbar { background: var(--night); color: #D5DDE4; font-size: 13px; }
.topbar__row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar__info, .topbar__social, .topbar__lang { display: flex; flex-wrap: wrap; gap: 18px; }
.topbar__lang { gap: 12px; margin-left: auto; }
.topbar__lang [aria-current] { color: #fff; font-weight: 700; }
.topbar a { color: #D5DDE4; }
.topbar a:hover { color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 14px; }
.site-header__actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo__img { display: block; width: auto; height: 34px; }
.logo--light .logo__img { height: 30px; }

.primary-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; font-weight: 600; font-size: 15px; scrollbar-width: none; }
.primary-nav__list a { display: block; padding: 12px 14px; color: var(--muted-2); white-space: nowrap; border-bottom: 3px solid transparent; }
.primary-nav__list .current-menu-item > a, .primary-nav__list .current-post-ancestor > a, .primary-nav__list .current-menu-parent > a { color: var(--ink); border-bottom-color: var(--accent); }
/* "More" dropdown: links that don't fit on one line move here (main.js); the phone menu lists them all. */
.primary-nav__list.has-more { overflow: visible; }
.primary-nav__more { position: relative; }
.primary-nav__more > button { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted-2); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.primary-nav__more > button:hover, .primary-nav__more > button[aria-expanded="true"] { color: var(--ink); }
.primary-nav__more.is-current > button { color: var(--ink); border-bottom-color: var(--accent); }
.primary-nav__more > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.primary-nav__dropdown { position: absolute; top: 100%; right: 0; z-index: 60; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 27, 36, .14); }
.primary-nav__dropdown[hidden] { display: none; }
.primary-nav__dropdown a { padding: 10px 12px; border-bottom: 0; border-radius: 8px; }
.primary-nav__dropdown a:hover { background: var(--surface); color: var(--ink); }
.primary-nav__dropdown .current-menu-item > a { background: var(--surface); color: var(--ink); }

.site-search { border-top: 1px solid var(--line); padding: 14px 0; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1 1 auto; min-width: 0; height: 48px; border: 1px solid var(--line-2); border-radius: 24px; padding: 0 18px; font: inherit; }

@media (max-width: 800px) {
	.nav-toggle { display: inline-flex; }
	.logo__img { height: 26px; }
	.site-header__actions .btn { display: none; }
	.primary-nav { display: none; border-top: 1px solid var(--line); }
	.primary-nav.is-open { display: block; }
	.primary-nav__list { flex-direction: column; }
	.primary-nav__list a { border-bottom: 1px solid var(--line); padding: 14px 4px; }
	.primary-nav__more { display: none; }
}

/* Phone header: no top bar; language button in the header; the menu also holds language, subscribe,
   social links, date and rate; the header slides away while reading down and comes back on scroll up. */
.lang-menu, .nav-extras, .nav-toggle svg + svg { display: none; }
@media (max-width: 800px) {
	.topbar { display: none; }
	.site-header { position: sticky; top: 0; z-index: 50; transition: transform .25s ease; }
	.site-header.is-hidden { transform: translateY(-100%); }
	body.admin-bar .site-header { top: 32px; }
	.site-header__row { padding-top: 10px; padding-bottom: 10px; gap: 12px; }
	.site-header__actions { gap: 8px; }
	.nav-toggle[aria-expanded="true"] svg { display: none; }
	.nav-toggle[aria-expanded="true"] svg + svg { display: block; }

	.lang-menu { display: block; position: relative; }
	.lang-menu__btn { height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
	.lang-menu__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
	.lang-menu__list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 180px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 27, 36, .14); }
	.lang-menu__list[hidden] { display: none; }
	.lang-menu__list a { display: flex; gap: 10px; padding: 11px 12px; border-radius: 8px; color: var(--ink); }
	.lang-menu__list b { min-width: 24px; }
	.lang-menu__list [aria-current] { background: var(--surface); font-weight: 700; }

	.primary-nav.is-open { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
	.nav-extras { display: flex; flex-direction: column; gap: 16px; padding: 18px 0 22px; }
	.nav-extras__lang { display: flex; gap: 8px; }
	.nav-extras__lang a { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); font-weight: 700; }
	.nav-extras__lang [aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
	.nav-extras__subscribe { width: 100%; }
	.nav-extras__social { display: flex; justify-content: center; gap: 10px; }
	.nav-extras__social a { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
	.nav-extras__info { margin: 0; text-align: center; font-size: 13px; color: var(--muted-2); }
}
@media (min-width: 601px) and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* Stories */
.stories { background: #fff; border-bottom: 1px solid var(--line); }
.stories__row { display: flex; gap: 18px; overflow-x: auto; padding-top: 16px; padding-bottom: 12px; scrollbar-width: none; }
.stories__row::-webkit-scrollbar { display: none; }
.story { flex: 0 0 80px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.story__ring { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--accent); padding: 3px; display: block; }
.story--quiz .story__ring { border-color: var(--gold); }
.story--sponsor .story__ring { border-color: #7C3AED; }
.story.is-seen .story__ring { border-color: var(--line-2); }
.story__img { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #E3EEFA; color: var(--muted-2); display: flex; align-items: center; justify-content: center; }
.story--quiz .story__img { background: #FBEFD5; color: #7A5203; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__label { font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
@media (max-width: 600px) {
	.story { flex-basis: 66px; }
	.story__ring { width: 64px; height: 64px; }
	.story__label { font-size: 11px; white-space: nowrap; }
}

.story-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 14, 20, .92); display: flex; align-items: center; justify-content: center; }
.story-viewer[hidden] { display: none; }
.story-viewer__frame { position: relative; width: min(420px, 100vw); height: min(780px, 100dvh); background: #22384C; color: #fff; overflow: hidden; border-radius: 18px; }
@media (max-width: 600px) { .story-viewer__frame { border-radius: 0; } }
.story-viewer__media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); }
.story-viewer__media img { width: 100%; height: 100%; object-fit: cover; }
.story-viewer__bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; gap: 4px; }
.story-viewer__bars span { flex: 1 1 0; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-viewer__bars i { display: block; height: 100%; width: 0; background: #fff; }
.story-viewer__bars .is-done i { width: 100%; }
.story-viewer__bars .is-active i { animation: tm-story 6s linear forwards; }
.story-viewer.is-paused .story-viewer__bars .is-active i { animation-play-state: paused; }
@keyframes tm-story { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .story-viewer__bars .is-active i { animation: none; width: 100%; } }
.story-viewer__head { position: absolute; top: 18px; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 14px; background: linear-gradient(rgba(15,27,36,.6), rgba(15,27,36,0)); }
.story-viewer__group { font-weight: 700; font-size: 14px; }
.story-viewer__date { font-size: 12px; color: #D5DDE4; flex: 1 1 auto; }
.story-viewer__close { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.story-viewer__prev, .story-viewer__next { position: absolute; top: 80px; bottom: 220px; z-index: 2; border: 0; background: transparent; cursor: pointer; }
.story-viewer__prev { left: 0; width: 35%; }
.story-viewer__next { right: 0; width: 65%; }
.story-viewer__panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 22px 20px 26px; background: rgba(15,27,36,.9); display: flex; flex-direction: column; gap: 12px; }
.story-viewer__chip { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #E3EEFA; color: #0B4F94; }
.story-viewer__chip:empty { display: none; }
.story-viewer__title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 25px; line-height: 1.15; }
.story-viewer__cta { height: 50px; border-radius: 25px; background: #fff; color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.story-viewer__cta:hover { color: var(--ink); }
.story-viewer.is-quiz .story-viewer__frame { background: #2B2416; }
.story-viewer.is-quiz .story-viewer__cta { background: var(--gold); }
.story-viewer.is-sponsor .story-viewer__chip { background: #EDE4FD; color: #5B21B6; }
.story--poll .story__ring { border-color: var(--accent); }
.story--poll .story__img { background: #E3EEFA; color: var(--accent); }
.story-viewer.is-poll .story-viewer__frame { background: #13283D; }
.story-viewer.is-poll .story-viewer__title { font-size: 22px; }
.story-viewer__poll { display: grid; gap: 10px; }
.story-viewer__poll[hidden] { display: none; }
.story-poll__btn { min-height: 50px; padding: 10px 18px; border: 0; border-radius: 25px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.story-poll__btn:hover { background: #FBEFD5; }
.story-poll__btn:disabled { opacity: .6; cursor: default; }
.story-poll__res { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; overflow: hidden; }
.story-poll__res i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(232,163,23,.42); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.story-poll__res span, .story-poll__res b { position: relative; }
.story-poll__res.is-choice { box-shadow: inset 0 0 0 2px var(--gold); }
body.has-story-open { overflow: hidden; }

/* Ticker */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker__row { display: flex; gap: 14px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.ticker__label { background: var(--gold); color: var(--ink); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 4px; white-space: nowrap; }
.ticker__list { list-style: none; margin: 0; padding: 0; position: relative; flex: 1 1 auto; min-width: 0; height: 24px; overflow: hidden; }
.ticker__item { position: absolute; inset: 0; display: flex; gap: 10px; align-items: center; opacity: 0; transform: translateY(100%); transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.ticker__item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ticker__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.ticker__item a { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ticker__time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 13px; }
.ticker__nav { display: flex; gap: 4px; }
.ticker__btn { width: 32px; height: 32px; border-radius: 16px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ticker__item { transition: none; } }
@media (max-width: 600px) { .ticker__label { display: none; } .ticker__nav { display: none; } }

/* Thumbnails */
.thumb { display: block; position: relative; overflow: hidden; border-radius: 12px; background: #C9DCEB; }
.thumb--16x9 { aspect-ratio: 16 / 9; }
.thumb--3x2 { aspect-ratio: 3 / 2; }
.thumb img, .thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.thumb:hover img { transform: scale(1.03); }
.thumb__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted-2); }

/* Home: hero */
.site-main { padding-bottom: 8px; }
/* One block of up to 5 posts. Desktop: the lead on the left, the other four as compact rows on the right
   (under the lead, two by two, on narrow screens). Phones: a swipeable slider. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; padding-top: 10px; }
.hero__lead { grid-column: 1 / -1; min-width: 0; display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.hero__lead .thumb { border-radius: var(--radius); }
.hero__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero__time, .hero-nav { display: none; }
.hero__title { margin: 0; font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.02em; }
.hero__excerpt { margin: 0; font-size: 18px; color: var(--muted-2); max-width: 720px; }
.hero picture { display: contents; }
@media (min-width: 801px) {
	.hero { margin-bottom: 40px; } /* Room before "Son xəbərlər" when the ad slot under the hero is empty. */
	.hero .hero__item.card-tile { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
	.hero .hero__item.card-tile .thumb { aspect-ratio: 3 / 2; border-radius: 8px; }
	.hero .hero__item.card-tile .hero__body { gap: 6px; }
	.hero .hero__item.card-tile .meta { font-size: 12px; }
	.hero .hero__item.card-tile .card-tile__title { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (min-width: 960px) {
	.hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); grid-template-rows: repeat(4, auto) 1fr; } /* Rows stack at the top. */
	.hero__lead { grid-column: 1; grid-row: 1 / span 5; margin-bottom: 0; }
	.hero .hero__item.card-tile:nth-child(2) { border-top: 0; padding-top: 0; }
}
@media (max-width: 800px) {
	.hero { position: relative; display: flex; gap: 0; padding-top: 0; margin: 0 calc(-1 * var(--gutter)); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; background: var(--night); }
	.hero::-webkit-scrollbar { display: none; }
	.hero__item, .hero__item--phone { position: relative; flex: 0 0 100%; display: block; scroll-snap-align: start; scroll-snap-stop: always; }
	.hero__item .thumb { aspect-ratio: 375 / 320; border-radius: 0; }
	.hero__item .thumb::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(rgba(8, 14, 20, 0), rgba(8, 14, 20, .9)); }
	a.thumb:hover img { transform: none; }
	.hero__body { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 16px; gap: 8px; }
	.hero__item .meta { color: #E6ECF1; }
	.hero__date, .hero__extra, .hero__excerpt, .hero__item .views { display: none; }
	.hero__time { display: inline; font-weight: 600; }
	.hero__title, .hero__item .card-tile__title { font-size: 22px; line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.hero__title a, .hero__item .card-tile__title a { color: #fff; }
	.hero__title a::after, .hero__item .card-tile__title a::after { content: ""; position: absolute; inset: 0; } /* Whole slide opens the post. */
	.hero__item .chip { position: relative; z-index: 1; }

	.hero-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 0 calc(-1 * var(--gutter)) 28px; background: var(--night); }
	.hero-nav__btn { position: relative; height: 56px; padding: 0; border: 0; border-left: 1px solid rgba(255, 255, 255, .08); background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
	.hero-nav__btn:first-child { border-left: 0; }
	.hero-nav__img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--night-2); opacity: .55; transition: opacity .2s; }
	.hero-nav__btn[aria-current] .hero-nav__img { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
	.hero-nav__btn i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); }
	.hero-nav__btn[aria-current] i { animation: tm-hero-progress 6s linear forwards; }
	.hero-nav.is-paused .hero-nav__btn[aria-current] i { animation: none; width: 100%; }
}
@keyframes tm-hero-progress { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-nav__btn[aria-current] i { animation: none; width: 100%; } }

.card-tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-tile__title { margin: 0; font-weight: 700; font-size: 21px; line-height: 1.22; }
.card-tile--sm .card-tile__title { font-size: 18px; line-height: 1.3; }

.ad-slot { margin: 44px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-family: var(--font-body); }
.ad-slot__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--muted); }
.ad-slot img { max-width: 100%; height: auto; border-radius: 6px; }
.ad-slot__ph { width: 100%; min-height: 90px; border: 1px dashed #B7C2CC; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.ad-slot--box { margin: 0; }
.ad-slot--box .ad-slot__ph { min-height: 250px; }
.ad-slot--home_middle .ad-slot__ph { min-height: 160px; }
.ad-slot--inline { margin: 32px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Layout */
.layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.layout__main { flex: 999 1 560px; min-width: 0; }
.sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.layout--even { padding-top: 64px; padding-bottom: 64px; }

.section-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.section-title { margin: 0; font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.link-more { font-weight: 600; color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; }
.pill:hover { border-color: var(--ink); color: var(--ink); }
/* Phones: one row of smaller pills that scrolls sideways, edge to edge; the right edge fades to show there is more. */
@media (max-width: 600px) {
	.section-head .pills { flex: 1 0 100%; flex-wrap: nowrap; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 32px 2px var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
	.section-head .pills::-webkit-scrollbar { display: none; }
	.section-head .pill { flex: none; height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
}

.feed { display: flex; flex-direction: column; }
.card-row { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.card-row__thumb { flex: 0 0 200px; }
.card-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.card-row__title { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.25; }
@media (max-width: 600px) {
	.card-row { gap: 12px; padding: 14px 0; }
	.card-row__thumb { flex-basis: 110px; border-radius: 8px; }
	.card-row__title { font-size: 16px; }
	.card-row .chip { display: none; }
}

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.band { background: var(--surface); margin-top: 64px; padding: 52px 0; }
.band .card-tile { background: #fff; border-radius: var(--radius); overflow: hidden; padding-bottom: 18px; }
.band .card-tile .thumb { border-radius: 0; }
.band .card-tile__title { padding: 0 18px; }

/* Sidebar boxes */
.box__title { margin: 0 0 8px; font-weight: 800; font-size: 22px; }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ranked__n { font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1; color: var(--accent); width: 24px; flex: 0 0 24px; }
.ranked a { font-weight: 600; line-height: 1.35; }
.promo { border-radius: 16px; padding: 22px; display: flex; gap: 14px; }
.promo--dark { background: var(--night); color: #fff; flex-direction: column; align-items: flex-start; }
.promo--dark:hover { color: #fff; }
.promo--line { border: 1px solid var(--line); align-items: center; }
.promo__eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.promo__title { font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1.2; display: block; }
.promo__title--sm { font-size: 16px; }
.promo__text { font-size: 14px; color: var(--muted); display: block; }
.promo__icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 22px; background: #E3EEFA; color: #0B4F94; display: flex; align-items: center; justify-content: center; }

/* Quiz band */
.quiz-band { padding-top: 64px; }
.quiz-band__grid { display: flex; flex-wrap: wrap; gap: 24px; }
.quiz-band__card { flex: 999 1 480px; min-width: 0; background: var(--night); color: #fff; border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.quiz-band__card--light { flex: 1 1 300px; background: var(--surface); color: var(--ink); }
.quiz-band__card--light:hover { color: var(--ink); }
.quiz-band__card--light .quiz-band__title { font-size: clamp(24px, 2.4vw, 30px); }
.quiz-band__card--light .quiz-band__text { color: var(--muted-2); }
.tag--line { border: 1px solid var(--line-2); color: var(--ink); }
.promo__text--light { color: var(--night-text); }
.quiz-band__card:hover { color: #fff; }
.quiz-band__tags { display: flex; gap: 8px; }
.quiz-band__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.02em; }
.quiz-band__text { color: var(--night-text); font-size: 17px; max-width: 560px; }

.column-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.column-card__title { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.25; flex: 1 1 auto; }
.byline { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.35; }
.byline img { border-radius: 50%; }
.byline > span { display: flex; flex-direction: column; }
.byline__name { font-weight: 700; color: var(--ink); }
.byline__role { color: var(--muted); }

.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.events__item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: #FBF6EA; }
.events__item a { font-weight: 600; line-height: 1.35; }
.events__date { flex: 0 0 56px; height: 56px; border-radius: 10px; background: #fff; border: 1px solid #EAD9B0; color: #7A5203; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.events__date span { font-family: var(--font-head); font-size: 22px; }

/* Article */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding: 24px 0 20px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); }
.article { max-width: 780px; }
.article__title { margin: 14px 0; font-weight: 800; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.015em; }
.article__lead { margin: 0; font-size: 21px; line-height: 1.45; color: var(--muted-2); }
.article__bar { margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; cursor: pointer; color: var(--ink); }
.share__btn--icon { width: 40px; padding: 0; justify-content: center; }
.share__btn.is-copied { border-color: #2F6127; color: #2F6127; }
/* Phones: the three share buttons split one row, the copy-link button stays round. */
@media (max-width: 600px) {
	.share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 40px; gap: 6px; }
	.share__btn { justify-content: center; padding: 0 6px; font-size: 13px; white-space: nowrap; }
	.share__btn--icon { padding: 0; }
}
.article__figure { margin: 26px 0 0; }
.article__figure img { width: 100%; border-radius: var(--radius); }
.article__figure figcaption, .wp-caption-text { margin-top: 10px; font-size: 14px; color: var(--muted); }

.entry-content { margin-top: 28px; font-family: var(--font-serif); font-size: 20px; line-height: 1.7; color: var(--ink-2); overflow-wrap: break-word; }
.entry-content--sans { font-family: var(--font-body); font-size: 18px; }
.entry-content > * { margin: 0 0 1.1em; }
.entry-content h2, .entry-content h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin-top: 1.4em; }
.entry-content h2 { font-size: 27px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-style: italic; color: var(--muted-2); }
.entry-content iframe, .entry-content video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-family: var(--font-body); font-size: 16px; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px 10px; }
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 6px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }
.tags a::before { content: "#"; }
.author-box { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.author-box img { border-radius: 50%; flex: 0 0 64px; }
.author-box p { margin: 6px 0 0; color: var(--muted-2); font-size: 15px; }

.comments { margin-top: 40px; }
.comments__list { list-style: none; padding: 0; }
.comments__list .comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font: inherit; }

/* Pages, archives */
.page-title { margin: 0 0 18px; font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.page-article { padding-bottom: 48px; }
.archive-head { margin-bottom: 8px; }
.archive-head__desc { color: var(--muted-2); max-width: 720px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 48px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { color: var(--muted); }
.not-found { padding: 40px 0 56px; }
.not-found__code { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 72px; line-height: 1; color: var(--gold-ink); }
.not-found .search-form { margin: 24px 0; }

/* Newsletter + footer */
.newsletter { background: var(--night-2); color: #fff; margin-top: 64px; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.newsletter__text { flex: 1 1 360px; min-width: 0; }
.newsletter__text h2 { margin: 0 0 6px; font-size: 26px; }
.newsletter__text p { margin: 0; color: var(--night-text); }
.newsletter__form { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 8px; } /* min-width 0: may shrink below 380px on phones. */
.newsletter__form label { font-size: 13px; font-weight: 600; color: #D5DDE4; }
.newsletter__fields { display: flex; gap: 8px; }
.newsletter__fields .btn { flex: none; white-space: nowrap; }
.newsletter__fields input { flex: 1 1 auto; width: 100%; min-width: 0; height: 48px; border-radius: 10px; border: 1px solid #3D4B57; background: var(--night); color: #fff; padding: 0 14px; font: inherit; }
.newsletter__form small { color: var(--night-text); }
.newsletter__form small a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter__msg { margin: 0; font-size: 14px; font-weight: 600; }
.newsletter__msg:empty { display: none; }
.newsletter__msg.is-ok { color: #7FD8A6; }
.newsletter__msg.is-error { color: #FFB4A8; }

.site-footer { background: var(--night); color: var(--night-text); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; padding-top: 52px; padding-bottom: 36px; }
.site-footer__brand p { margin: 14px 0; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer a { color: var(--night-text); }
.site-footer a:hover { color: #fff; }
.site-footer__title { margin: 0 0 12px; color: #fff; font-size: 16px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__bottom { border-top: 1px solid #263646; font-size: 14px; }
.site-footer__bottom-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
/* Social links: round icons (the name stays for screen readers and as a tooltip). */
.site-footer__social a { width: 44px; height: 44px; border-radius: 22px; border: 1px solid #2C3E50; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background-color .2s, border-color .2s; }
.site-footer__social a:hover { background: var(--night-2); border-color: #4A5C6E; color: #fff; }
.site-footer__social svg { display: block; }
.site-footer__social-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Phones: social links as round icons; Bölmələr on the left, Redaksiya and Əməkdaşlıq stacked on the right. */
@media (max-width: 600px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; padding-top: 40px; padding-bottom: 28px; }
	.site-footer__brand { grid-column: 1 / -1; }
	.site-footer__grid > nav:nth-of-type(1) { grid-column: 1; grid-row: 2 / span 2; }
	.site-footer__grid > nav:nth-of-type(2) { grid-column: 2; grid-row: 2; }
	.site-footer__grid > nav:nth-of-type(3) { grid-column: 2; grid-row: 3; }
	.site-footer__col ul { gap: 9px; font-size: 14px; }
	.site-footer__bottom-row { flex-direction: column; justify-content: center; text-align: center; }
	.site-footer__legal { justify-content: center; }
}
