/* ============================================================
   বাংলা কণ্ঠ ২৪ — Modern Bengali Newspaper Design System
   ============================================================ */

:root {
  --red: #c8102e;
  --red-dark: #9c0b23;
  --ink: #17120f;
  --ink-soft: #433c38;
  --muted: #7d716b;
  --line: #e7e0d8;
  --paper: #ffffff;
  --bg: #f7f4ee;
  --bg-alt: #efe9df;
  --serif: 'Noto Serif Bengali', 'Hind Siliguri', serif;
  --sans: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  --shadow-sm: 0 1px 3px rgba(23, 18, 15, .07);
  --shadow-md: 0 6px 24px -8px rgba(23, 18, 15, .18);
  --shadow-lg: 0 18px 50px -12px rgba(23, 18, 15, .32);
  --radius: 14px;
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==================== TOP BAR ==================== */
.topbar { background: var(--ink); color: #d9cfc7; font-size: 13.5px; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px; gap: 16px; flex-wrap: wrap;
}
.topbar__date { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar__sep { color: #584e48; }
.topbar__bng { color: #f3b321; font-weight: 600; }
.topbar__links { display: flex; align-items: center; gap: 18px; }
.topbar__link { color: #d9cfc7; transition: color .2s; }
.topbar__link:hover { color: #fff; }
.topbar__wx { color: #9fb8c9; }

/* ==================== MASTHEAD ==================== */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.masthead::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 25%, var(--ink) 25% 50%, var(--red) 50% 75%, var(--ink) 75% 100%);
}
.masthead__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding-block: 22px;
}
.masthead__brand {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center;
}
.masthead__logo-text {
  font-family: var(--serif); font-weight: 900; font-size: 64px; line-height: 1.05;
  letter-spacing: -0.5px; color: var(--ink); white-space: nowrap;
}
.masthead__logo-accent { color: var(--red); }
.masthead__logo-24 {
  font-family: var(--serif); font-weight: 800; font-size: 26px; color: #fff;
  background: var(--red); padding: 0 12px; border-radius: 6px; margin-top: 2px;
  letter-spacing: 2px;
}
.masthead__tagline {
  font-size: 14px; color: var(--muted); letter-spacing: 2.5px; margin-top: 6px;
}
.masthead__side { display: flex; flex-direction: column; gap: 12px; }
.masthead__side--right { align-items: flex-end; }
.masthead__badge {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 1.5px solid var(--ink); border-radius: 8px; padding: 4px 12px; width: fit-content;
}
.masthead__badge-no { font-family: var(--serif); font-weight: 800; font-size: 22px; color: var(--red); }
.masthead__badge-year { font-size: 13px; color: var(--ink-soft); }
.masthead__since { font-size: 12px; color: var(--muted); line-height: 1.5; }
.masthead__socials { display: flex; gap: 8px; }
.social {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg-alt); color: var(--ink-soft); font-size: 15px; font-weight: 700;
  transition: all .2s;
}
.social:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.masthead__search {
  display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.masthead__search input {
  border: none; outline: none; padding: 8px 16px; width: 190px; font-size: 14px;
}
.masthead__search button { padding: 8px 14px; font-size: 14px; }

/* ==================== NAV ==================== */
.mainnav {
  background: var(--paper); position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.mainnav.is-scrolled { box-shadow: var(--shadow-md); }
.mainnav__inner { display: flex; align-items: center; gap: 20px; }
.mainnav__burger { display: none; font-size: 22px; }
.mainnav__list {
  display: flex; align-items: stretch; gap: 2px; overflow-x: auto;
  scrollbar-width: none; flex: 1;
}
.mainnav__list::-webkit-scrollbar { display: none; }
.mainnav__list a {
  display: block; padding: 15px 15px; font-weight: 600; font-size: 16.5px;
  color: var(--ink-soft); position: relative; white-space: nowrap;
  transition: color .2s;
}
.mainnav__list a::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px;
  background: var(--red); border-radius: 3px 3px 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.mainnav__list a:hover { color: var(--red); }
.mainnav__list a:hover::after,
.mainnav__list a.is-active::after { transform: scaleX(1); }
.mainnav__list a.is-active { color: var(--red); }
.mainnav__live {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px;
  color: var(--red); border: 1.5px solid var(--red); border-radius: 999px;
  padding: 6px 16px; white-space: nowrap; transition: all .2s;
}
.mainnav__live:hover { background: var(--red); color: #fff; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
  animation: pulse 1.4s infinite;
}
.mainnav__live:hover .live-dot { background: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .5); }
  70% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

/* ==================== TICKER ==================== */
.ticker { background: var(--ink); color: #fff; }
.ticker__inner { display: flex; align-items: center; gap: 0; min-height: 46px; }
.ticker__label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); font-weight: 700; font-size: 14px; letter-spacing: 1px;
  padding: 6px 18px; border-radius: 0 10px 10px 0; margin-left: -24px;
  position: relative; z-index: 2; white-space: nowrap;
}
.ticker__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s infinite;
}
.ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__track {
  display: flex; align-items: center; gap: 48px; white-space: nowrap;
  animation: ticker 46s linear infinite; padding-left: 24px;
}
.ticker__viewport:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-62%); }
}
.ticker__item { font-size: 15px; color: #e6ddd6; transition: color .2s; display: inline-flex; gap: 10px; align-items: center; }
.ticker__item:hover { color: #fff; }
.ticker__cat {
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--c, var(--red)); padding: 1px 10px; border-radius: 4px;
}

/* ==================== LAYOUT ==================== */
.site-main { padding-block: 32px 56px; }
.layout-main {
  display: grid; grid-template-columns: 1fr 340px; gap: 36px;
  align-items: start; margin-top: 40px;
}
.layout-main--article { margin-top: 28px; }
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }

/* ==================== HERO ==================== */
.hero {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  align-items: stretch;
}
.hero__lead {
  grid-row: span 2; display: flex; flex-direction: column; position: relative;
  border-radius: var(--radius); overflow: hidden; min-height: 560px;
  box-shadow: var(--shadow-md); background: var(--ink);
}
.hero__lead-media { flex: 1; position: relative; overflow: hidden; }
.hero__lead-media img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform .8s cubic-bezier(.2, .6, .2, 1);
}
.hero__lead:hover .hero__lead-media img { transform: scale(1.045); }
.hero__lead-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,18,15,0) 26%, rgba(23,18,15,.35) 52%, rgba(23,18,15,.88) 88%);
}
.hero__lead-body { position: relative; margin-top: auto; padding: 26px 28px 28px; color: #fff; }
.hero__lead-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hero__time { font-size: 13.5px; color: #d8cfc9; }
.hero__title {
  font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.32; margin-bottom: 12px; text-wrap: balance;
}
.hero__lead:hover .hero__title { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero__excerpt { font-size: 15.5px; color: #e5dcd6; line-height: 1.7; margin-bottom: 10px; }
.hero__byline { font-size: 13px; color: #b9aca4; }

.hero__side { display: flex; flex-direction: column; gap: 24px; grid-row: span 1; }
.hero__card {
  flex: 1; display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.hero__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hero__card-media { position: relative; padding-top: 56%; overflow: hidden; }
.hero__card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.hero__card:hover .hero__card-media img { transform: scale(1.06); }
.hero__card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.hero__card-title {
  font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.45;
}
.hero__card:hover .hero__card-title { color: var(--red); }
.hero__card-meta { font-size: 12.5px; color: var(--muted); }

.hero__briefs {
  grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.hero__brief {
  display: flex; gap: 14px; align-items: flex-start; background: var(--paper);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s; height: 100%;
}
.hero__brief:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hero__brief-thumb {
  width: 88px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.hero__brief-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__brief-title {
  font-family: var(--serif); font-weight: 700; font-size: 15.5px; line-height: 1.45;
  margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__brief:hover .hero__brief-title { color: var(--red); }
.hero__brief-meta { font-size: 12.5px; color: var(--muted); }
.hero__brief-ad { display: flex; }

/* ==================== CHIPS & AD ==================== */
.chip {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--c, var(--red)); border-radius: 6px;
  padding: 3px 12px; width: fit-content; letter-spacing: .3px;
}
.chip--sm { font-size: 12px; padding: 2px 10px; border-radius: 5px; }
.chip--xs { font-size: 11px; padding: 1px 8px; border-radius: 4px; }

.ad-box {
  border: 1.5px dashed #cfc5ba; border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, #faf7f2 0 14px, #f3eee6 14px 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 240px; text-align: center; padding: 20px; width: 100%;
}
.ad-box span {
  font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase;
  border: 1px solid #d8cfc5; padding: 2px 10px; border-radius: 99px; background: #fff;
}
.ad-box p { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink-soft); }
.ad-box a { color: var(--red); font-weight: 600; font-size: 14px; }
.ad-box--wide { min-height: 0; flex: 1; }

/* ==================== SECTION HEADS ==================== */
.newsblock { margin-bottom: 44px; }
.newsblock__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.newsblock__title {
  font-family: var(--serif); font-weight: 800; font-size: 26px; color: var(--ink);
  position: relative; padding-left: 14px;
}
.newsblock__title::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px;
  background: var(--c, var(--red)); border-radius: 3px;
}
.newsblock__title--red { --c: var(--red); }
.newsblock__rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.newsblock__more { font-weight: 700; font-size: 14.5px; color: var(--red); white-space: nowrap; }
.newsblock__more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==================== GRID + CARDS ==================== */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
  display: flex;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__link { display: flex; flex-direction: column; flex: 1; }
.card__media { position: relative; padding-top: 62%; overflow: hidden; }
.card__media--16x9 { padding-top: 56.25%; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title {
  font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1.45;
}
.card:hover .card__title { color: var(--red); }
.card__title--sm { font-size: 16.5px; }
.card__excerpt { font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta {
  display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: auto;
  padding-top: 8px; border-top: 1px solid var(--line);
}

/* ==================== CATEGORY ROWS ==================== */
.catrow { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.featurecard {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.featurecard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.featurecard__media { position: relative; padding-top: 58%; overflow: hidden; }
.featurecard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.featurecard:hover .featurecard__media img { transform: scale(1.06); }
.featurecard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.featurecard__title { font-family: var(--serif); font-weight: 800; font-size: 23px; line-height: 1.4; }
.featurecard:hover .featurecard__title { color: var(--red); }
.featurecard__excerpt { font-size: 15px; color: var(--ink-soft); }

.catrow__list { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border-radius: var(--radius); padding: 10px 18px; box-shadow: var(--shadow-sm); }
.lineitem { display: flex; gap: 14px; padding: 14px 6px; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.lineitem:last-child { border-bottom: none; }
.lineitem__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--red));
  margin-top: 10px; flex-shrink: 0;
}
.lineitem__title { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.5; margin-bottom: 2px; }
.lineitem:hover .lineitem__title { color: var(--red); }
.lineitem__meta { font-size: 12.5px; color: var(--muted); }

/* ==================== SIDEBAR PANELS ==================== */
.panel {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel__head { padding: 16px 20px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; }
.panel__head h3 { font-family: var(--serif); font-weight: 800; font-size: 19px; }
.panel--popular .panel__head { background: var(--ink); border-bottom-color: var(--red); }
.panel--popular .panel__head h3 { color: #fff; }
.panel--popular .panel__head h3::before { content: '🔥 '; }

.popular { padding: 8px 20px 14px; }
.popular__item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.popular li:last-child .popular__item { border-bottom: none; }
.popular__no {
  font-family: var(--serif); font-weight: 900; font-size: 30px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.6px var(--red); flex-shrink: 0; width: 34px;
  transition: all .2s;
}
.popular__item:hover .popular__no { color: var(--red); -webkit-text-stroke: 1.6px var(--red); }
.popular__title { font-family: var(--serif); font-weight: 700; font-size: 15.5px; line-height: 1.5; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.popular__item:hover .popular__title { color: var(--red); }
.popular__meta { font-size: 12px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }

.weather { padding: 18px 20px; display: flex; align-items: center; gap: 18px; }
.weather__now { display: flex; align-items: center; gap: 10px; }
.weather__icon { font-size: 38px; }
.weather__temp { font-family: var(--serif); font-weight: 800; font-size: 40px; color: var(--red); }
.weather__meta p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

.newsletter { padding: 18px 20px 22px; }
.newsletter p { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.newsletter input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px;
  font-size: 14px; outline: none; transition: border-color .2s; margin-bottom: 10px;
}
.newsletter input:focus { border-color: var(--red); }
.newsletter button {
  width: 100%; background: var(--red); color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px; border-radius: 10px; transition: background .2s;
}
.newsletter button:hover { background: var(--red-dark); }

.tagcloud { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 13.5px; font-weight: 600; padding: 5px 14px; border-radius: 999px;
  background: var(--bg-alt); color: var(--ink-soft); transition: all .2s;
  border: 1px solid transparent;
}
.tag:hover { background: var(--c, var(--red)); color: #fff; }

/* ==================== CATEGORY PAGE ==================== */
.cat-hero {
  background: linear-gradient(135deg, var(--cat, var(--red)) 0%, var(--ink) 160%);
  color: #fff; padding: 40px 0 44px; position: relative; overflow: hidden;
}
.cat-hero::after {
  content: attr(data-word);
  position: absolute; right: -10px; bottom: -34px;
  font-family: var(--serif); font-weight: 900; font-size: 170px; line-height: 1;
  color: rgba(255,255,255,.07); pointer-events: none; white-space: nowrap;
}
.breadcrumb { font-size: 13.5px; color: #cfc4bd; margin-bottom: 14px; display: flex; gap: 8px; }
.breadcrumb a { color: #fff; opacity: .8; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.cat-hero .breadcrumb { color: rgba(255,255,255,.75); }
.cat-hero__title { font-family: var(--serif); font-weight: 900; font-size: 52px; line-height: 1.15; }
.cat-hero__desc { margin-top: 10px; font-size: 15.5px; color: #e2d9d3; max-width: 640px; }

.catfeature {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 28px;
}
.catfeature__link { display: grid; grid-template-columns: 1.2fr 1fr; }
.catfeature__media { position: relative; min-height: 320px; overflow: hidden; }
.catfeature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.catfeature:hover .catfeature__media img { transform: scale(1.05); }
.catfeature__body { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.catfeature__title { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; }
.catfeature:hover .catfeature__title { color: var(--red); }
.catfeature__excerpt { font-size: 15.5px; color: var(--ink-soft); line-height: 1.75; }

.pagination { margin-top: 30px; display: flex; justify-content: center; }
.pagination nav { display: inline-flex; align-items: center; gap: 8px; }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 10px; background: var(--paper); color: var(--ink-soft);
  font-weight: 600; font-size: 15px; box-shadow: var(--shadow-sm); transition: all .2s;
}
.pagination a:hover { background: var(--ink); color: #fff; }
.pagination .current span, .pagination span[aria-current] {
  background: var(--red); color: #fff;
}
.empty { background: var(--paper); border-radius: var(--radius); padding: 60px; text-align: center; color: var(--muted); }

/* ==================== ARTICLE ==================== */
.article { background: transparent; }
.article__head { background: var(--paper); border-radius: var(--radius); padding: 32px 36px 26px; box-shadow: var(--shadow-sm); border-top: 5px solid var(--cat, var(--red)); }
.article .breadcrumb { margin-bottom: 20px; color: var(--muted); }
.article .breadcrumb a { color: var(--ink-soft); }
.article__title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.3; letter-spacing: -.3px; margin: 14px 0 16px; text-wrap: balance;
}
.article__lead { font-size: 18.5px; line-height: 1.8; color: var(--ink-soft); border-left: 4px solid var(--cat, var(--red)); padding-left: 18px; }
.article__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.article__author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #f3b321;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 20px;
}
.article__author-name { font-weight: 700; font-size: 15.5px; }
.article__author-role { font-size: 12.5px; color: var(--muted); }
.article__stamp p { font-size: 13px; color: var(--ink-soft); }
.article__share { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.share {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--ink-soft); font-weight: 700; font-size: 14px;
  transition: all .2s;
}
.share.fb:hover { background: #1877f2; color: #fff; }
.share.tw:hover { background: #111; color: #fff; }
.share.wa:hover { background: #25d366; color: #fff; }
.share.cp:hover { background: var(--red); color: #fff; }

.article__media { margin: 24px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.article__media img { width: 100%; max-height: 560px; object-fit: cover; }
.article__media figcaption {
  background: var(--ink); color: #cfc4bd; font-size: 13px; padding: 10px 18px;
}

.article__body {
  background: var(--paper); border-radius: var(--radius); padding: 36px 42px;
  box-shadow: var(--shadow-sm); font-size: 17.5px; line-height: 2.02;
}
.article__body p { margin-bottom: 22px; text-align: justify; }
.article__body p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 900; font-size: 64px; float: left;
  line-height: .9; padding: 6px 12px 0 0; color: var(--red);
}
.article__body p::marker { color: var(--red); }

.article__tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; color: var(--muted); }
.article__viewcount {
  margin-top: 22px; background: var(--bg-alt); border-radius: 12px; padding: 14px 20px;
  display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft);
}

.related { margin-top: 44px; }

/* ==================== FOOTER ==================== */
.footer { background: var(--ink); color: #b9aca4; margin-top: 20px; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 52px 24px 40px;
}
.footer__logo { font-family: var(--serif); font-weight: 900; font-size: 34px; color: #fff; margin-bottom: 14px; }
.footer__logo span { color: var(--red); }
.footer__about { font-size: 14.5px; line-height: 1.85; }
.footer__col h4 {
  color: #fff; font-family: var(--serif); font-size: 17px; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 10px; position: relative;
}
.footer__col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--red); border-radius: 2px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14.5px; color: #b9aca4; transition: color .2s, padding-left .2s; }
.footer__col a:hover { color: #fff; padding-left: 5px; }
.footer__contact li { font-size: 14px; line-height: 1.7; }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__socials a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #fff; font-weight: 700; transition: all .2s;
}
.footer__socials a:hover { background: var(--red); transform: translateY(-3px); }
.footer__bottom {
  border-top: 1px solid #2c2622; padding: 20px 24px 26px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .layout-main { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero__briefs { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .catrow { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .masthead__inner { grid-template-columns: 1fr; text-align: center; }
  .masthead__side, .masthead__side--right { align-items: center; }
  .masthead__logo-text { font-size: 46px; }
  .mainnav__burger { display: block; }
  .mainnav__list { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; box-shadow: var(--shadow-md); padding: 8px 0; display: none; }
  .mainnav.is-open .mainnav__list { display: flex; }
  .mainnav__inner { position: relative; }
  .hero { grid-template-columns: 1fr; }
  .hero__lead { min-height: 420px; grid-row: auto; }
  .hero__briefs { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .catfeature__link { grid-template-columns: 1fr; }
  .catfeature__media { min-height: 220px; }
  .article__head, .article__body { padding: 22px 20px; }
  .article__body p:first-of-type::first-letter { font-size: 46px; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; }
  .topbar__links { display: none; }
  .cat-hero__title { font-size: 36px; }
}

@media print {
  .topbar, .mainnav, .ticker, .sidebar, .footer, .ad-box, .related { display: none; }
}
