:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --soft-2: #f1f5f9;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --slate: #111827;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--teal); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(13, 148, 136, .35);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--slate);
  color: white;
  border-radius: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.top-strip {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 11px;
  letter-spacing: .08em;
}

.top-strip__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 7px;
  text-transform: uppercase;
}

.status-dot {
  color: #34d399;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 99px;
  background: #34d399;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0 18px;
  border-bottom: 1px solid #f1f5f9;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, var(--teal));
  color: white;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(13, 148, 136, .22);
}

.custom-logo {
  width: auto;
  max-height: 38px;
}

.brand-text strong {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  gap: 2px;
  padding: 2px 0 4px;
  border-bottom: 4px solid rgba(13, 148, 136, .22);
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: lowercase;
}

.brand-text strong em {
  color: var(--teal-dark);
  font-style: normal;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  width: min(280px, 42vw);
  border: 1px solid var(--soft);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.search-field:focus {
  border-color: var(--teal);
  background: white;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, .12);
}

.search-form button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 10px 15px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}

.search-form button,
.button--primary {
  background: var(--teal);
  color: white;
}

.button--primary:hover,
.search-form button:hover {
  background: var(--teal-dark);
  color: white;
  transform: translateY(-1px);
}

.button--dark {
  background: #0f172a;
  color: white;
}

.button--dark:hover {
  background: var(--teal-dark);
  color: white;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-block: 10px 12px;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.primary-menu a:hover {
  border-color: #ccfbf1;
  background: #f0fdfa;
  color: var(--teal-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  min-height: 44px;
  padding: 10px 14px;
  color: #475569;
  font-weight: 800;
}

.front-hero {
  padding: 28px 0 18px;
}

.front-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 18px;
  align-items: start;
}

.front-hero__main {
  min-width: 0;
}

.news-card {
  overflow: hidden;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.news-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.news-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
}

.news-card__media img {
  aspect-ratio: 16 / 9;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.news-card:hover .post-image { transform: scale(1.035); }

.placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: linear-gradient(135deg, #e2e8f0, #ccfbf1);
  color: var(--teal-dark);
  font-weight: 900;
}

.community-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.community-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--teal);
}

.community-pill--floating {
  position: absolute;
  top: 14px;
  left: 14px;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(15, 23, 42, .86);
  color: white;
  backdrop-filter: blur(8px);
}

.community-pill--horodotska {
  border-color: #99f6e4;
  background:
    radial-gradient(circle at 10px 10px, rgba(13, 148, 136, .12) 0 2px, transparent 2px 12px),
    #f0fdfa;
  color: #0f766e;
}

.community-pill--horodotska::before {
  background: #0d9488;
}

.community-pill--velykoliubinska {
  border-color: #bfdbfe;
  background:
    radial-gradient(circle at 10px 10px, rgba(37, 99, 235, .12) 0 2px, transparent 2px 12px),
    #eff6ff;
  color: #1d4ed8;
}

.community-pill--velykoliubinska::before {
  background: #2563eb;
}

.community-pill--komarnivska {
  border-color: #fed7aa;
  background:
    radial-gradient(circle at 10px 10px, rgba(217, 119, 6, .14) 0 2px, transparent 2px 12px),
    #fff7ed;
  color: #b45309;
}

.community-pill--komarnivska::before {
  background: #d97706;
}

.community-pill--zahalne {
  border-color: #cbd5e1;
  background:
    radial-gradient(circle at 10px 10px, rgba(71, 85, 105, .12) 0 2px, transparent 2px 12px),
    #f8fafc;
  color: #475569;
}

.community-pill--zahalne::before {
  background: #64748b;
}

.community-pill--floating.community-pill--horodotska,
.community-pill--floating.community-pill--velykoliubinska,
.community-pill--floating.community-pill--komarnivska,
.community-pill--floating.community-pill--zahalne {
  color: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
}

.community-pill--floating.community-pill--horodotska {
  border-color: rgba(153, 246, 228, .62);
  background:
    radial-gradient(circle at 11px 11px, rgba(255, 255, 255, .22) 0 2px, transparent 2px 13px),
    rgba(13, 148, 136, .92);
}

.community-pill--floating.community-pill--velykoliubinska {
  border-color: rgba(191, 219, 254, .68);
  background:
    radial-gradient(circle at 11px 11px, rgba(255, 255, 255, .22) 0 2px, transparent 2px 13px),
    rgba(37, 99, 235, .92);
}

.community-pill--floating.community-pill--komarnivska {
  border-color: rgba(254, 215, 170, .72);
  background:
    radial-gradient(circle at 11px 11px, rgba(255, 255, 255, .24) 0 2px, transparent 2px 13px),
    rgba(217, 119, 6, .94);
}

.community-pill--floating.community-pill--zahalne {
  border-color: rgba(226, 232, 240, .62);
  background:
    radial-gradient(circle at 11px 11px, rgba(255, 255, 255, .2) 0 2px, transparent 2px 13px),
    rgba(71, 85, 105, .92);
}

.category-pill {
  display: inline-flex;
  border: 1px solid #ccfbf1;
  border-radius: 7px;
  background: #f0fdfa;
  color: #0f766e;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card__body {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.news-card__title {
  margin: 0;
  font-family: Lora, Georgia, serif;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: 0;
}

.news-card__title a { color: var(--text); }
.news-card__title a:hover { color: var(--teal); }

.news-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.read-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #f1f5f9;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.read-row__views {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.news-card--hero {
  display: block;
}

.news-card--hero .news-card__media {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.news-card--hero .news-card__body {
  min-height: 0;
  padding: clamp(18px, 2.4vw, 24px);
}

.news-card--hero .news-card__title {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.12;
}

.news-card--hero .news-card__body p {
  font-size: 14px;
  line-height: 1.65;
}

.top-stories {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(240px, .66fr);
  gap: 14px;
}

.top-stories__lead {
  min-width: 0;
}

.top-stories__side {
  display: grid;
  gap: 14px;
}

.top-stories__side .news-card {
  position: relative;
  display: block;
  min-height: 0;
}

.top-stories__side .news-card__media {
  height: auto;
  aspect-ratio: 1 / 1;
}

.top-stories__side .news-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 0;
  gap: 0;
  padding: 42px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .84));
  color: white;
}

.top-stories__side .news-card__title {
  font-size: 16px;
  line-height: 1.15;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .32);
}

.top-stories__side .news-card__title a {
  color: white;
}

.top-stories__side .meta-line {
  display: none;
}

.top-stories__side .news-card__body p {
  display: none;
  font-size: 13px;
}

.top-stories__side .read-row {
  display: none;
}

.recommend-panel {
  border: 1px solid #bff4ea;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(240, 253, 250, .92), rgba(255, 251, 235, .76)),
    white;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
  padding: 16px;
}

.recommend-panel .section-head--compact,
.sidebar-panel .section-head--compact {
  display: block;
  margin-bottom: 12px;
}

.recommend-panel .section-head--compact strong,
.sidebar-panel .section-head--compact strong {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.15;
}

.recommend-list {
  display: grid;
  gap: 7px;
}

.recommend-item a {
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
}

.recommend-item a:hover {
  border-color: #99f6e4;
  background: white;
  color: inherit;
}

.recommend-item span,
.recommend-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.recommend-item strong {
  color: var(--text);
  font-family: Lora, Georgia, serif;
  font-size: 15px;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card--compact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  border-radius: 18px;
}

.news-card--compact .news-card__media {
  height: 100%;
  min-height: 112px;
  aspect-ratio: 1 / 1;
}

.news-card--compact .community-pill--floating,
.news-card--compact .read-row,
.news-card--compact .news-card__body p {
  display: none;
}

.news-card--compact .news-card__body {
  min-height: auto;
  gap: 8px;
  padding: 14px;
}

.news-card--compact .news-card__title {
  font-size: 15px;
}

.hot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.hot-card,
.community-column,
.sidebar-panel,
.weather-panel,
.brief-box,
.empty-panel,
.announcement-card {
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.hot-card {
  padding: 20px;
}

.hot-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hot-card h2 {
  margin: 10px 0 8px;
  font-family: Lora, Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
}

.hot-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.front-section {
  padding: 28px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head span,
.eyebrow,
.archive-head span,
.brief-box > span,
.empty-panel span {
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-head h2,
.archive-head h1,
.empty-panel h1 {
  margin: 3px 0 0;
  font-family: Lora, Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.section-head a,
.text-link {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topic-panel {
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  padding: 18px;
}

.topic-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.topic-panel__head h3 {
  margin: 0;
  font-family: Lora, Georgia, serif;
  font-size: 21px;
}

.topic-panel__head a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.topic-list {
  display: grid;
  gap: 12px;
}

.weather-panel {
  padding: 20px;
}

.weather-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.weather-summary strong {
  display: block;
  margin-top: 2px;
  font-family: Lora, Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
}

.weather-summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.weather-now {
  min-width: 190px;
  padding: 12px 14px;
  border: 1px solid #ccfbf1;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdfa, #ffffff);
  text-align: right;
}

.weather-now strong {
  margin: 0;
  color: #0f172a;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 31px;
  line-height: 1;
}

.weather-now span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.weather-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 13px;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  background: #f0fdfa;
  color: var(--teal-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.weather-toggle:hover {
  background: #ccfbf1;
}

.section-head--compact {
  align-items: start;
  margin-bottom: 14px;
}

.section-head--compact strong {
  display: block;
  margin-top: 2px;
  font-family: Lora, Georgia, serif;
  font-size: 19px;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.weather-grid[hidden],
.news-modal[hidden] {
  display: none !important;
}

.weather-card {
  padding: 15px;
  border: 1px solid #ccfbf1;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0fdfa, #ffffff);
}

.weather-card span,
.weather-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.weather-card strong {
  display: block;
  margin: 5px 0;
  color: #0f172a;
  font-size: 27px;
  font-weight: 900;
}

.community-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.community-column {
  padding: 18px;
}

.community-column h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.compact-list {
  display: grid;
  gap: 2px;
}

.compact-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.compact-item time {
  width: 46px;
  border: 1px solid #ccfbf1;
  border-radius: 8px;
  background: #f0fdfa;
  color: var(--teal-dark);
  padding: 4px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.compact-item a {
  color: #1e293b;
  font-family: Lora, Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.announcement-list {
  display: grid;
  gap: 14px;
}

.announcement-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.announcement-card time {
  display: grid;
  min-height: 76px;
  place-items: center;
  align-content: center;
  border-radius: 16px;
  background: #0f172a;
  color: white;
  border-bottom: 5px solid var(--teal);
}

.announcement-card time strong {
  font-size: 28px;
  line-height: 1;
}

.announcement-card time span {
  color: #5eead4;
  font-size: 12px;
  font-weight: 900;
}

.announcement-card div > span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-card h3 {
  margin: 4px 0 6px;
  font-family: Lora, Georgia, serif;
  font-size: 19px;
  line-height: 1.25;
}

.announcement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.popular-list {
  display: grid;
  gap: 10px;
}

.popular-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--soft);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  padding: 16px;
}

.popular-row__number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #0f172a;
  color: white;
  font-weight: 900;
}

.popular-row span:not(.popular-row__number),
.popular-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.popular-row h3 {
  margin: 4px 0 0;
  font-family: Lora, Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
}

.site-sidebar {
  position: sticky;
  top: 156px;
  display: grid;
  gap: 14px;
}

.sidebar-panel {
  padding: 16px;
}

.sidebar-panel h2 {
  margin: 5px 0 8px;
  font-family: Lora, Georgia, serif;
  font-size: 20px;
}

.sidebar-panel p {
  color: var(--muted);
  font-size: 14px;
}

.ad-panel {
  background: linear-gradient(150deg, #0f172a, #134e4a);
  color: white;
}

.ad-panel .eyebrow,
.ad-panel p {
  color: #99f6e4;
}

.sidebar-list {
  display: grid;
  gap: 8px;
}

.sidebar-list article {
  padding-bottom: 9px;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-list a {
  display: block;
  font-family: Lora, Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sidebar-list small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.submit-panel {
  background: linear-gradient(150deg, #ffffff, #f0fdfa);
}

.archive-layout,
.page-wrap {
  padding: 34px 0 56px;
}

.archive-head {
  margin-bottom: 22px;
}

.archive-head p {
  max-width: 720px;
  color: var(--muted);
}

.single-wrap {
  padding: 28px 0 56px;
}

.single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}

.single-main {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.single-header {
  padding: 24px 0;
}

.single-header h1 {
  max-width: 920px;
  margin: 14px 0 0;
  font-family: Lora, Georgia, serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 850px;
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--teal);
  color: #475569;
  font-size: 18px;
  font-weight: 600;
}

.single-media {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.single-media .post-image {
  aspect-ratio: 16 / 9;
}

.single-media figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
}

.brief-box {
  margin: 24px 0;
  padding: 22px;
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
}

.brief-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #334155;
  font-weight: 600;
}

.entry-content {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.86;
}

.entry-content > * {
  max-width: 850px;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 34px;
  color: var(--text);
  font-family: Lora, Georgia, serif;
  line-height: 1.2;
}

.entry-content a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--teal);
  border-radius: 0 16px 16px 0;
  background: #f8fafc;
  color: #334155;
  font-family: Lora, Georgia, serif;
  font-size: 20px;
}

.single-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tag-list a {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 5px 9px;
  color: #475569;
  font-weight: 800;
}

.related-section {
  margin-top: 34px;
}

.page-content {
  max-width: 900px;
  padding: 28px;
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.empty-panel {
  padding: clamp(28px, 5vw, 56px);
}

.empty-panel p,
.empty-note {
  color: var(--muted);
}

.navigation.pagination {
  margin-top: 28px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--soft);
  border-radius: 10px;
  background: white;
  color: #475569;
  font-weight: 800;
}

.page-numbers.current {
  background: var(--teal);
  color: white;
}

.site-footer {
  margin-top: 36px;
  background: linear-gradient(180deg, #0f172a, #111827);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(320px, 1.2fr) minmax(220px, .8fr);
  gap: 34px;
  padding: 34px 0 28px;
  align-items: start;
}

.brand--footer .brand-text strong {
  color: white;
  border-bottom-color: rgba(45, 212, 191, .34);
}

.brand--footer .brand-text strong em {
  color: #5eead4;
}

.site-footer p,
.site-footer a {
  color: #cbd5e1;
}

.site-footer p {
  max-width: 340px;
  margin-bottom: 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: white;
  font-size: 15px;
  text-transform: uppercase;
}

.footer-menu-wrap {
  max-width: 520px;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  font-weight: 800;
}

.footer-menu a:hover,
.footer-contact a:hover {
  color: white;
  border-color: rgba(45, 212, 191, .42);
}

.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  font-weight: 800;
}

.footer-bottom {
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #94a3b8;
  font-size: 13px;
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.news-modal.is-open {
  display: flex;
}

.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .68);
  backdrop-filter: blur(6px);
}

.news-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 26px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.news-modal__dialog h2 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: clamp(28px, 5vw, 42px);
}

.news-modal__dialog p {
  margin-bottom: 18px;
  color: var(--muted);
}

.news-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--soft);
  border-radius: 50%;
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.news-submit-form {
  display: grid;
  gap: 13px;
}

.news-submit-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 850;
}

.news-submit-form input,
.news-submit-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--soft);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text);
  font: inherit;
}

.news-submit-form textarea {
  resize: vertical;
}

.news-submit-form .button {
  width: 100%;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.news-modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .front-hero__layout,
  .layout-with-sidebar,
  .single-grid {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: static;
    grid-template-columns: repeat(3, 1fr);
  }

  .community-columns,
  .topic-grid,
  .news-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-stories {
    grid-template-columns: 1fr;
  }

  .top-stories__side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 860px) {
  .top-strip__inner,
  .header-main,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-row {
    align-items: stretch;
  }

  .search-form {
    width: 100%;
  }

  .search-form label,
  .search-field {
    width: 100%;
  }

  .primary-nav {
    display: none;
    width: 100%;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--soft);
    border-radius: 16px;
    background: white;
  }

  .menu-toggle {
    display: inline-flex;
    align-self: flex-end;
    justify-content: center;
    align-items: center;
  }

  .news-card--hero {
    grid-template-columns: 1fr;
  }

  .news-card--hero .news-card__media,
  .news-card--hero .news-card__body {
    min-height: 0;
  }

  .news-card--hero .news-card__media {
    aspect-ratio: 16 / 9;
  }

  .hot-strip,
  .news-grid,
  .topic-grid,
  .site-sidebar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .weather-grid {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .recommend-panel {
    order: 2;
  }

  .front-hero__main {
    order: 1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1240px);
  }

  .brand-text strong {
    font-size: 23px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .community-columns {
    grid-template-columns: 1fr;
  }

  .section-head,
  .single-footer {
    align-items: start;
    flex-direction: column;
  }

  .entry-content {
    font-size: 16px;
  }

  .announcement-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .top-strip {
    display: none;
  }

  .header-main {
    gap: 14px;
    padding: 14px 0;
  }

  .nav-row {
    gap: 10px;
    padding-block: 10px;
  }

  .weather-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .weather-now {
    text-align: left;
  }

  .weather-toggle {
    width: 100%;
  }

  .news-card,
  .recommend-panel,
  .topic-panel,
  .community-column,
  .sidebar-panel,
  .weather-panel,
  .brief-box,
  .empty-panel,
  .announcement-card {
    border-radius: 18px;
  }

  .news-card__body {
    min-height: 0;
    padding: 16px;
  }

  .news-card--hero .news-card__body {
    padding: 18px;
  }

  .news-card--hero .news-card__title {
    font-size: 25px;
  }

  .top-stories__side {
    grid-template-columns: 1fr;
  }

  .top-stories__side .news-card__media {
    aspect-ratio: 16 / 9;
  }

  .news-card--compact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .popular-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .popular-row small {
    grid-column: 2;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 20px, 1240px);
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-text strong {
    font-size: 21px;
  }

  .brand-text small {
    max-width: 230px;
    line-height: 1.25;
  }

  .news-card--compact {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

@media (max-width: 340px) {
  .container {
    width: min(100% - 16px, 1240px);
  }

  .search-form {
    gap: 6px;
  }

  .search-form button {
    padding-inline: 10px;
  }

  .news-card--compact {
    grid-template-columns: 1fr;
  }

  .news-card--compact .news-card__media {
    aspect-ratio: 16 / 9;
  }
}
