
/*
Theme Name: Magazine Iran HTML
Description: RTL Persian news magazine UI kit
Version: 1.0.0
*/

:root {
  color-scheme: light;
  --bg: #f4f8f7;
  --surface: #ffffff;
  --surface-soft: #eaf4f1;
  --surface-strong: #dcebe7;
  --text: #102522;
  --muted: #60716e;
  --line: #d7e5e1;
  --brand: #087f72;
  --brand-strong: #05645b;
  --brand-soft: #e2f5f1;
  --accent: #e9a23b;
  --warning: #a86100;
  --success: #087a55;
  --shadow-sm: 0 8px 24px rgba(14, 55, 49, .055);
  --shadow-md: 0 22px 55px rgba(14, 55, 49, .12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --container: 1280px;
  --header-height: 76px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1715;
  --surface: #10211e;
  --surface-soft: #17302c;
  --surface-strong: #214039;
  --text: #f1f8f6;
  --muted: #a7bbb6;
  --line: #294740;
  --brand: #54d6c2;
  --brand-strong: #82e4d5;
  --brand-soft: #153d36;
  --accent: #f3ba65;
  --warning: #ffb34d;
  --success: #46d6a3;
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, .18);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.modal-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 65%, transparent); outline-offset: 3px; }
::selection { background: var(--brand); color: #fff; }

.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 32px), 820px); margin-inline: auto; }
.stack { display: grid; gap: 24px; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--brand); font-size: .82rem; font-weight: 800; letter-spacing: .01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 9999; transform: translateY(-180%); background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.icon-btn, .plain-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.icon-btn:hover, .plain-btn:hover { transform: translateY(-2px); border-color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-outline { background: transparent; border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.topbar { background: #0b302b; color: #eefaf7; font-size: .82rem; }
.topbar__inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a:hover { color: #8fe5d8; }
.topbar__links { display: flex; align-items: center; gap: 16px; }
.breaking { border-bottom: 1px solid var(--line); background: var(--surface); }
.breaking__inner { min-height: 44px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; overflow: hidden; }
.breaking__label { background: var(--brand); color: #fff; padding: 4px 11px; border-radius: 999px; font-weight: 900; font-size: .78rem; white-space: nowrap; }
.breaking__track { overflow: hidden; white-space: nowrap; direction: ltr; }
.breaking__items { display: inline-flex; gap: 42px; animation: ticker 32s linear infinite; padding-left: 100%; direction: rtl; }
.breaking.is-paused .breaking__items { animation-play-state: paused; }
.breaking__items a::before { content: "•"; color: var(--brand); margin-inline-end: 8px; }
@keyframes ticker { to { transform: translateX(-100%); } }

.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header__inner { min-height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 950; font-size: 1.36rem; line-height: 1; white-space: nowrap; }
.logo__mark { width: 48px; height: 48px; border-radius: 16px 16px 16px 5px; background: linear-gradient(145deg, var(--brand), #39bca8); color: #fff; display: grid; place-items: center; box-shadow: 0 9px 24px color-mix(in srgb, var(--brand) 28%, transparent); transform: rotate(-2deg); }
.logo__mark svg { width: 34px; height: 34px; transform: rotate(2deg); }
.logo small { display: block; font-size: .62rem; color: var(--muted); margin-top: 5px; font-weight: 600; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px; border-radius: 999px; font-weight: 750; font-size: .92rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.header__actions { display: flex; gap: 8px; }
.menu-toggle { display: none; }

.drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: .25s ease; }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 390px); background: var(--surface); padding: 24px; transform: translateX(110%); transition: .25s ease; overflow-y: auto; }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__nav { list-style: none; padding: 24px 0; margin: 0; display: grid; gap: 6px; }
.drawer__nav a { display: block; padding: 11px 14px; border-radius: 12px; font-weight: 800; }
.drawer__nav a:hover { background: var(--brand-soft); color: var(--brand); }

.search-modal { position: fixed; inset: 0; z-index: 110; background: rgba(10,11,14,.72); backdrop-filter: blur(10px); display: none; padding: 8vh 16px 24px; }
.search-modal.is-open { display: block; }
.search-modal__panel { width: min(100%, 760px); margin: auto; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-md); overflow: hidden; }
.search-modal__head { padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; border-bottom: 1px solid var(--line); }
.search-modal input { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); color: var(--text); padding: 10px 16px; }
.search-results { padding: 10px 18px 20px; max-height: 55vh; overflow-y: auto; }
.search-result { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-result img { width: 76px; height: 58px; object-fit: cover; border-radius: 10px; }

main { min-height: 60vh; }
.section { padding-block: 54px; }
.section--tight { padding-block: 34px; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.4; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.text-link { color: var(--brand); font-weight: 850; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

.hero { padding-block: 22px 52px; background: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 34%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 22px; }
.feature-card { position: relative; min-height: 520px; border-radius: var(--radius-lg); overflow: hidden; background: #222; box-shadow: var(--shadow-md); }
.feature-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.feature-card:hover img { transform: scale(1.035); }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,30,27,.96), rgba(5,30,27,.1) 72%); }
.feature-card__content { position: absolute; z-index: 2; inset: auto 0 0; padding: clamp(22px, 5vw, 42px); color: #fff; }
.feature-card h1 { margin: 10px 0 12px; max-width: 780px; font-size: clamp(1.8rem, 4.4vw, 3.35rem); line-height: 1.38; letter-spacing: -.025em; text-wrap: balance; }
.feature-card p { max-width: 680px; color: #e7e8ea; margin: 0 0 18px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: .84rem; }
.feature-card .meta { color: #d9dce2; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; }
.hero-side { display: grid; gap: 16px; }
.side-story { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; background: var(--surface); padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.side-story img { width: 130px; height: 104px; object-fit: cover; border-radius: 13px; }
.side-story h2 { font-size: 1rem; line-height: 1.65; margin: 5px 0 10px; }
.side-story:hover h2 { color: var(--brand); }

.category-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; }
.category-strip::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 750; font-size: .9rem; }
.chip:hover, .chip.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }

.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 34%, var(--line)); }
.news-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-soft); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; right: 12px; z-index: 1; border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 850; background: rgba(16,18,23,.82); color: #fff; backdrop-filter: blur(8px); }
.news-card__body { padding: 18px; }
.news-card h3 { margin: 6px 0 10px; font-size: 1.05rem; line-height: 1.7; }
.news-card p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

.editorial-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.news-list { display: grid; gap: 0; }
.news-list__item { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.news-list__item:first-child { padding-top: 0; }
.news-list__item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-list__item img { width: 170px; aspect-ratio: 16/10; object-fit: cover; border-radius: 13px; }
.news-list__item h3 { margin: 4px 0 8px; font-size: 1.05rem; line-height: 1.65; }
.rank-list { counter-reset: rank; display: grid; }
.rank-item { counter-increment: rank; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.rank-item::before { content: counter(rank, decimal-leading-zero); color: var(--brand); font-size: 1.4rem; font-weight: 950; }
.rank-item:last-child { border-bottom: 0; }
.rank-item h3 { margin: 0; font-size: .98rem; line-height: 1.75; }

.video-panel { position: relative; overflow: hidden; min-height: 420px; border-radius: var(--radius-lg); background: #111; color: #fff; }
.video-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.video-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.15)); }
.video-panel__content { position: relative; z-index: 1; max-width: 650px; padding: clamp(28px, 6vw, 64px); }
.video-panel h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.45; margin: 10px 0 14px; }
.play-btn { width: 68px; height: 68px; border: 0; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; cursor: pointer; }
.play-btn svg { width: 26px; height: 26px; margin-left: -3px; }

.ad-slot { min-height: 120px; border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent); background: var(--surface-soft); border-radius: var(--radius-md); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; overflow: hidden; }
.ad-slot small { display: block; }
.ad-slot--leaderboard { min-height: 110px; }
.ad-slot--rectangle { min-height: 270px; }

.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: clamp(28px, 5vw, 52px); background: linear-gradient(135deg, #151820, #2a1015); color: #fff; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.newsletter::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(213,30,47,.32); left: -130px; top: -180px; filter: blur(2px); }
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 8px; }
.newsletter p { margin: 0; color: #d6d8dd; }
.newsletter form { display: flex; gap: 8px; background: rgba(255,255,255,.08); padding: 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); }
.newsletter input { width: min(320px, 48vw); border: 0; background: transparent; color: #fff; padding: 0 15px; outline: 0; }
.newsletter input::placeholder { color: #c7c9cf; }
.form-status { font-size: .84rem; margin-top: 8px; min-height: 1.4em; }

.page-hero { padding-block: 44px 28px; }
.breadcrumbs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .84rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 8px; color: var(--line); }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.35; }
.page-hero p { max-width: 760px; margin: 0; color: var(--muted); }

.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; align-items: start; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.select { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; color: var(--text); background: var(--surface); }
.sidebar { position: sticky; top: calc(var(--header-height) + 20px); display: grid; gap: 18px; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.widget h2 { margin: 0 0 14px; font-size: 1.15rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 10px; background: var(--surface-soft); border-radius: 999px; color: var(--muted); font-size: .82rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pagination [aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }

.reading-progress { position: fixed; top: 0; right: 0; z-index: 200; height: 3px; width: 0; background: var(--brand); }
.article-header { padding-block: 46px 26px; }
.article-header__inner { max-width: 980px; }
.article-header h1 { font-size: clamp(1.85rem, 3.8vw, 3rem); line-height: 1.48; letter-spacing: -.018em; margin: 12px 0 18px; max-width: 900px; }
.article-deck { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 850px; }
.author-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.author-box { display: flex; align-items: center; gap: 12px; }
.author-box img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.author-box strong, .author-box small { display: block; }
.article-tools { display: flex; gap: 7px; }
.article-cover { width: min(calc(100% - 32px), 1120px); margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-soft); }
.article-cover img { width: 100%; aspect-ratio: 16/8.7; object-fit: cover; }
.article-cover figcaption { padding: 10px 14px; color: var(--muted); font-size: .78rem; background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; justify-content: center; gap: 34px; align-items: start; }
.article-body { font-size: 1.05rem; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-size: clamp(1.55rem, 3.2vw, 2.1rem); line-height: 1.55; margin: 52px 0 16px; scroll-margin-top: 100px; }
.article-body h3 { font-size: 1.3rem; margin: 34px 0 10px; scroll-margin-top: 100px; }
.article-body p { margin: 0 0 20px; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.article-body blockquote { margin: 30px 0; padding: 20px 24px; border-right: 4px solid var(--brand); background: var(--brand-soft); border-radius: 14px 0 0 14px; font-size: 1.08rem; }
.article-body ul, .article-body ol { padding-right: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .94rem; }
.article-body th, .article-body td { padding: 12px; border: 1px solid var(--line); text-align: right; }
.article-body th { background: var(--surface-soft); }
.ai-overview { padding: 24px; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-radius: var(--radius-md); margin-bottom: 28px; }
.ai-overview__head { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 900; }
.ai-overview p { margin: 10px 0 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.toc h2 { font-size: 1.05rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding-right: 20px; }
.toc a { color: var(--muted); font-size: .9rem; }
.toc a:hover, .toc a.is-active { color: var(--brand); }
.article-aside { position: sticky; top: calc(var(--header-height) + 22px); display: grid; gap: 18px; }
.fact-box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-md); padding: 20px; }
.fact-box h2 { margin: 0 0 12px; font-size: 1.05rem; }
.fact-box dl { margin: 0; display: grid; gap: 10px; }
.fact-box div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.fact-box div:last-child { border-bottom: 0; }
.fact-box dt { color: var(--muted); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.author-bio { position: relative; display: flex; align-items: center; gap: 22px; min-width: 0; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 5%, var(--surface)), var(--surface) 56%); border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line)); border-radius: 24px; padding: 26px; margin-top: 36px; box-shadow: var(--shadow-sm); }
.author-bio::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: linear-gradient(180deg, var(--brand), var(--accent)); }
.author-bio::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; inset-inline-end: -90px; inset-block-end: -110px; background: color-mix(in srgb, var(--brand) 7%, transparent); pointer-events: none; }
.author-bio__avatar { position: relative; z-index: 1; flex: 0 0 96px; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 24px; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 68%, #14161c)); box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 20%, transparent); font-size: 2rem; font-weight: 900; }
.author-bio__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.author-bio__content { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; }
.author-bio__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--brand); font-size: .78rem; font-weight: 900; }
.author-bio__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.author-bio__title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; }
.author-bio h2 { margin: 0; font-size: 1.28rem; line-height: 1.55; }
.author-bio p { max-width: 610px; margin: 9px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.9; }
.author-bio__link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 13px; border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line)); border-radius: 999px; color: var(--brand) !important; background: var(--surface); font-size: .8rem; font-weight: 850; text-decoration: none !important; white-space: nowrap; transition: .2s ease; }
.author-bio__link:hover { transform: translateY(-1px); background: var(--brand); border-color: var(--brand); color: #fff !important; }
.author-bio__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.author-bio__meta span { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .76rem; }

.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 52px); box-shadow: var(--shadow-sm); }
.prose h2 { margin: 34px 0 10px; font-size: 1.5rem; }
.prose p { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 22px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-soft); }
.value-card h3 { margin: 8px 0; }
.value-card svg { width: 28px; height: 28px; color: var(--brand); }
.contact-grid { display: grid; grid-template-columns: 1fr .75fr; gap: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--text); padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.contact-info { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 16px; background: var(--surface-soft); border-radius: 14px; }
.contact-item svg { width: 22px; height: 22px; color: var(--brand); }

.site-footer { margin-top: 60px; background: #12141a; color: #eef0f3; }
.footer__top { padding-block: 52px; display: grid; grid-template-columns: 1.2fr repeat(3, .7fr); gap: 34px; }
.footer__brand p { color: #aeb3bd; max-width: 420px; }
.footer__title { font-size: 1rem; margin: 0 0 14px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: #b9bec7; font-size: .9rem; }
.footer__links a:hover { color: #fff; }
.footer__bottom { min-height: 64px; border-top: 1px solid #2c3038; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #9ea4ae; font-size: .82rem; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #343944; border-radius: 50%; }
.socials svg { width: 18px; height: 18px; }
.back-to-top { position: fixed; left: 20px; bottom: 20px; z-index: 50; opacity: 0; visibility: hidden; transform: translateY(10px); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

.toast { position: fixed; inset: auto 50% 24px auto; transform: translateX(50%) translateY(20px); background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: 999px; z-index: 160; opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: var(--shadow-md); }
.toast.is-visible { opacity: 1; transform: translateX(50%) translateY(0); }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(3, 1fr); }
  .side-story { grid-template-columns: 1fr; align-content: start; }
  .side-story img { width: 100%; height: 150px; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --header-height: 66px; }
  .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }
  .breaking__inner { grid-template-columns: auto 1fr; }
  .breaking__inner > button { display: none; }
  .logo small { display: none; }
  .header__actions .desktop-only { display: none; }
  .feature-card { min-height: 480px; }
  .hero-side { grid-template-columns: 1fr; }
  .side-story { grid-template-columns: 125px 1fr; }
  .side-story img { height: 100px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid, .archive-layout, .contact-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter form { width: 100%; }
  .newsletter input { width: 100%; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1/-1; }
  .article-aside { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container, .narrow, .article-cover { width: min(calc(100% - 22px), var(--container)); }
  .section { padding-block: 38px; }
  .header__inner { gap: 8px; }
  .logo { font-size: 1.05rem; }
  .logo__mark { width: 38px; height: 38px; border-radius: 12px; }
  .header__actions { gap: 4px; }
  .feature-card { min-height: 470px; border-radius: 20px; }
  .feature-card p { display: none; }
  .feature-card__content { padding: 24px 20px; }
  .side-story { grid-template-columns: 105px 1fr; }
  .side-story img { width: 105px; height: 88px; }
  .side-story .meta { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .news-list__item { grid-template-columns: 110px 1fr; }
  .news-list__item img { width: 110px; height: 88px; }
  .news-list__item p { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .archive-toolbar { align-items: stretch; flex-direction: column; }
  .article-header { padding-top: 30px; }
  .article-header h1 { font-size: clamp(1.7rem, 7.2vw, 2.15rem); line-height: 1.55; }
  .article-body { font-size: 1rem; }
  .author-row { align-items: flex-start; }
  .article-tools { width: 100%; }
  .article-tools .icon-btn { flex: 1; }
  .author-bio { flex-direction: column; align-items: stretch; text-align: right; padding: 22px; }
  .author-bio__avatar { width: 82px; height: 82px; flex-basis: 82px; border-radius: 20px; }
  .author-bio__title-row { align-items: flex-start; }
  .author-bio__link { width: max-content; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { padding-block: 18px; flex-direction: column; text-align: center; }
  .newsletter form { border-radius: 18px; flex-direction: column; }
  .newsletter input, .newsletter .btn { width: 100%; }
}

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


/* WordPress compatibility layer — visual design remains identical to the supplied HTML. */
.admin-bar .site-header { top: 32px; }
.admin-bar .reading-progress { top: 32px; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.drawer__nav .current-menu-item > a,
.drawer__nav .current_page_item > a { background: var(--brand-soft); color: var(--brand); }
.site-logo-image img { width: 42px; height: 42px; object-fit: contain; border-radius: 14px; }
.post-thumbnail-placeholder { width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center; background: linear-gradient(135deg, #123f39, var(--brand)); color: #fff; font-weight: 900; }
.feature-card .post-thumbnail-placeholder { position: absolute; inset: 0; min-height: 520px; }
.mi-ad { min-height: 120px; border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent); background: var(--surface-soft); border-radius: var(--radius-md); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; overflow: hidden; margin-block: 22px; }
.mi-ad img, .ad-slot img { margin-inline: auto; }
.article-body > .mi-ad { margin-block: 28px; }
.nav-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.nav-links .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.nav-links .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.wp-caption, .article-body figure { max-width: 100%; }
.article-body img { height: auto; border-radius: var(--radius-md); }
.article-body .alignwide { width: min(1100px, calc(100vw - 32px)); max-width: none; margin-inline: 50%; transform: translateX(50%); }
.article-body .alignfull { width: 100vw; max-width: none; margin-inline: 50%; transform: translateX(50%); }
.comments-area { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 18px; margin-bottom: 14px; background: var(--surface-soft); border-radius: var(--radius-md); }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 11px 13px; }
.comment-form .submit { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.widget a:hover, .footer-widget a:hover { color: var(--brand); }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); color: var(--text); padding: 10px 14px; }
.search-submit { border: 0; border-radius: 999px; padding: 8px 18px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
.footer-custom-html { margin-top: 16px; }
.article-body .inas-toc { margin-block: 24px; }
.inas-contact-alert { margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .reading-progress { top: 46px; }
}
.search-result__placeholder { width: 76px; height: 58px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-soft), var(--surface-strong)); }
.archive-description > :first-child { margin-top: 0; }
.archive-description > :last-child { margin-bottom: 0; }

/* Archive: one H1, concise overview, posts first, long category copy last. */
.archive-page { overflow: clip; }
.archive-header { position: relative; padding-block: clamp(34px, 6vw, 72px) 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--bg)), var(--bg)); border-bottom: 1px solid var(--line); }
.archive-header::before { content: ""; position: absolute; width: 360px; height: 360px; inset: -210px -80px auto auto; border-radius: 50%; background: color-mix(in srgb, var(--brand) 9%, transparent); pointer-events: none; }
.archive-header__inner { position: relative; display: grid; gap: 12px; }
.archive-header h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.28; letter-spacing: -.035em; }
.archive-aio { width: min(100%, 860px); display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 13px; margin-top: 8px; padding: 17px 18px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line)); border-radius: 18px; box-shadow: var(--shadow-sm); }
.archive-aio__icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 13px; }
.archive-aio p { margin: 1px 0 0; color: var(--muted); line-height: 1.9; }
.archive-posts-section { padding-block: clamp(30px, 5vw, 62px); }
.archive-toolbar { min-height: 58px; padding: 8px 10px 8px 14px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.archive-sort { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; color: var(--muted); font-size: .88rem; }
.archive-sort .select { min-height: 42px; }
.archive-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.archive-news-grid .news-card h2 { margin: 6px 0 10px; font-size: 1.08rem; line-height: 1.75; }
.load-more-wrap { display: flex; justify-content: center; padding-top: 34px; }
.load-more { min-width: 210px; }
.load-more:disabled { cursor: wait; opacity: .72; transform: none; }
.load-more.is-loading span:last-child { animation: load-more-bounce .75s ease-in-out infinite alternate; }
@keyframes load-more-bounce { to { transform: translateY(5px); } }
.news-card.is-new { animation: archive-card-in .35s ease-out both; }
@keyframes archive-card-in { from { opacity: 0; transform: translateY(14px); } }
.archive-seo-section { padding-block: clamp(42px, 7vw, 78px); background: var(--surface); border-top: 1px solid var(--line); }
.archive-description { width: min(100%, 980px); margin-inline: auto; padding: clamp(24px, 5vw, 48px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.archive-description__head { padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.archive-description__head h2 { margin: 4px 0 0; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.archive-description__content { color: var(--text); line-height: 2.05; }
.archive-description__content h2, .archive-description__content h3 { margin: 1.8em 0 .65em; line-height: 1.55; }
.archive-description__content h2 { font-size: 1.4rem; }
.archive-description__content h3 { font-size: 1.16rem; }
.archive-description__content p { margin: 0 0 1em; }
.archive-empty { text-align: center; padding: 48px 24px; }

@media (max-width: 1024px) {
  .archive-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .archive-header { padding-block: 28px 22px; }
  .archive-header h1 { font-size: clamp(1.8rem, 10vw, 2.45rem); }
  .archive-aio { grid-template-columns: 34px 1fr; padding: 14px; }
  .archive-aio__icon { width: 34px; height: 34px; border-radius: 10px; }
  .archive-toolbar { align-items: stretch; padding: 10px; }
  .archive-sort { justify-content: space-between; }
  .archive-news-grid { grid-template-columns: 1fr; gap: 16px; }
  .archive-description { padding: 22px 18px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-card.is-new, .load-more.is-loading span:last-child { animation: none; }
}
.video-panel .play-btn { text-decoration: none; }
