:root {
  --ac-ink: #111827;
  --ac-muted: #64748b;
  --ac-line: #dbe3ee;
  --ac-paper: #f2f5f8;
  --ac-white: #ffffff;
  --ac-green: #0a7f45;
  --ac-green-dark: #073f2c;
  --ac-yellow: #ffc857;
  --ac-navy: #0b1220;
  --ac-radius: 8px;
  --ac-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ac-ink);
  background: var(--ac-paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body.admin-bar .ac-sidebar {
  top: 48px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.ac-site {
  min-height: 100vh;
}

.ac-container {
  width: min(var(--ac-max), calc(100% - 32px));
  margin: 0 auto;
}

.ac-topline {
  background: var(--ac-navy);
  color: #dbeafe;
  font-size: 12px;
}

.ac-topline-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 18px;
}

.ac-language-strip {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  scrollbar-width: none;
}

.ac-language-strip::-webkit-scrollbar {
  display: none;
}

.ac-lang {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 8px;
  border-radius: 999px;
  color: #f8fafc;
  line-height: 1;
}

.ac-lang.is-active {
  background: rgba(255, 255, 255, 0.14);
}

.ac-market-note {
  flex: 0 0 auto;
  color: #a7f3d0;
  font-weight: 700;
}

.ac-header {
  background: var(--ac-white);
  border-bottom: 1px solid var(--ac-line);
}

.ac-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}

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

.ac-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ac-green);
  color: var(--ac-white);
  font-weight: 900;
}

.ac-logo-image,
.ac-logo-image .custom-logo-link {
  display: block;
  flex: 0 0 auto;
}

.ac-logo-image img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ac-brand-copy {
  min-width: 0;
}

.ac-brand-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ac-ink);
  font-size: 22px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-brand-copy small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ac-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-main-menu,
.ac-footer-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-main-menu {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.ac-main-menu a:hover,
.ac-footer-menu a:hover {
  color: var(--ac-green);
}

.ac-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: var(--ac-radius);
  background: #eef2f7;
}

.ac-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ac-ink);
}

.ac-mobile-panel {
  border-bottom: 1px solid var(--ac-line);
  background: var(--ac-white);
}

.ac-mobile-panel .ac-main-menu {
  display: grid;
  gap: 0;
  padding: 8px 0;
}

.ac-mobile-panel .ac-main-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--ac-line);
}

.ac-main {
  padding-bottom: 44px;
}

.ac-ad,
.ac-ad-wrap {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--ac-radius);
  background:
    linear-gradient(135deg, rgba(10, 127, 69, 0.9), rgba(16, 24, 40, 0.95)),
    url("../images/ad-bg.svg");
  background-size: cover;
  background-position: center;
  color: var(--ac-white);
  text-align: center;
}

.ac-ad-wrap {
  background: transparent;
}

.ac-banner-link {
  display: block;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--ac-radius);
}

.ac-banner-link img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--ac-radius);
}

.ac-ad-wrap-wide {
  margin: 18px auto;
}

.ac-ad-wrap-square,
.ac-ad-wrap-tower {
  justify-content: center;
  background: var(--ac-white);
}

.ac-ad-wrap-mobile {
  display: none;
  justify-content: center;
  margin: 14px 0;
}

.ac-ad span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.ac-ad strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1;
}

.ac-ad small {
  display: block;
  margin-top: 8px;
  opacity: 0.9;
}

.ac-ad-wide {
  min-height: 168px;
  margin: 18px auto;
}

.ac-ad-square {
  min-height: 0;
}

.ac-ad-tower {
  min-height: 0;
}

.ac-ad-mobile,
.ac-ad-wrap-mobile {
  display: none;
  margin: 14px 0;
}

.ac-layout,
.ac-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.ac-content {
  min-width: 0;
}

.ac-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.ac-lead-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--ac-radius);
  background: var(--ac-navy);
  color: var(--ac-white);
}

.ac-lead-bg {
  position: absolute;
  inset: 0;
}

.ac-lead-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.08), rgba(16, 24, 40, 0.92));
}

.ac-lead-bg img,
.ac-post-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-post-visual {
  display: block;
  min-height: 142px;
  overflow: hidden;
  background: #dbe3ee;
}

.ac-post-visual-fallback {
  display: grid;
  place-items: center;
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(10, 127, 69, 0.86), rgba(11, 18, 32, 0.92)),
    url("../images/card-bg.svg");
  background-size: cover;
  color: var(--ac-white);
  font-weight: 900;
}

.ac-lead-card .ac-post-visual-fallback {
  min-height: 100%;
}

.ac-lead-content {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 28px;
}

.ac-lead-content h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

.ac-lead-content p {
  max-width: 620px;
  margin: 0;
  color: #dbeafe;
  line-height: 1.48;
}

.ac-mini-stack {
  display: grid;
  gap: 18px;
}

.ac-mini-card,
.ac-card,
.ac-widget {
  overflow: hidden;
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: var(--ac-white);
}

.ac-mini-card .ac-post-visual {
  min-height: 108px;
}

.ac-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.ac-card-body h2,
.ac-card-body h3 {
  margin: 0;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.ac-card-body h2 {
  font-size: 24px;
}

.ac-card-body h3 {
  font-size: 21px;
}

.ac-mini-card .ac-card-body h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ac-news-grid .ac-card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ac-card-body p {
  margin: 0;
  color: #475569;
  line-height: 1.45;
}

.ac-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f7ef;
  color: var(--ac-green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

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

.ac-news-grid .ac-post-visual {
  aspect-ratio: 1.55;
  min-height: 0;
}

.ac-briefing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--ac-radius);
  background: var(--ac-navy);
  color: var(--ac-white);
}

.ac-briefing strong {
  display: block;
  font-size: 20px;
}

.ac-briefing span {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
}

.ac-briefing a,
.ac-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ac-yellow);
  color: #111827;
  font-weight: 900;
}

.ac-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 16px;
}

.ac-widget {
  padding: 18px;
}

.ac-widget-title {
  margin: 0 0 14px;
  font-size: 16px;
}

.ac-most-read-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-most-read-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ac-line);
  counter-increment: item;
}

.ac-most-read-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ac-most-read-list a {
  font-weight: 800;
  line-height: 1.22;
}

.ac-most-read-list span {
  color: var(--ac-muted);
  font-size: 12px;
}

.ac-archive-header,
.ac-empty,
.ac-page,
.ac-article {
  border: 1px solid var(--ac-line);
  border-radius: var(--ac-radius);
  background: var(--ac-white);
}

.ac-archive-header,
.ac-empty {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 24px;
}

.ac-archive-header h1,
.ac-empty h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
}

.ac-article,
.ac-page {
  overflow: hidden;
}

.ac-article-header {
  display: grid;
  gap: 14px;
  padding: 32px;
}

.ac-article-header h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 0.96;
}

.ac-article-image img {
  width: 100%;
}

.ac-entry {
  padding: 0 32px 32px;
  color: #263241;
  font-size: 18px;
  line-height: 1.68;
}

.ac-entry > *:first-child {
  margin-top: 0;
}

.ac-entry a {
  color: var(--ac-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ac-post-footer {
  padding: 0 32px 32px;
}

.ac-page-wrap {
  max-width: 900px;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ac-line);
  border-radius: 999px;
  background: var(--ac-white);
  font-weight: 800;
}

.page-numbers.current {
  background: var(--ac-green);
  color: var(--ac-white);
  border-color: var(--ac-green);
}

.ac-footer {
  margin-top: 42px;
  padding: 28px 0;
  border-top: 1px solid var(--ac-line);
  color: var(--ac-muted);
  font-size: 13px;
}

.ac-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ac-footer-brand {
  display: block;
  color: var(--ac-ink);
  font-size: 18px;
  font-weight: 900;
}

.ac-footer p {
  margin: 6px 0 0;
}

.ac-footer-menu {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ac-footer-language-wrap {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--ac-line);
}

.ac-footer-language-wrap h2 {
  margin: 0 0 12px;
  color: var(--ac-ink);
  font-size: 15px;
}

.ac-footer-languages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.ac-footer-languages .ac-lang {
  display: block;
  border-color: var(--ac-line);
  background: var(--ac-white);
  color: #334155;
  text-align: center;
}

@media (max-width: 1080px) {
  .ac-layout,
  .ac-article-layout {
    grid-template-columns: 1fr;
  }

  .ac-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ac-ad-tower {
    min-height: 280px;
  }
}

@media (max-width: 900px) {
  .ac-main-nav {
    display: none;
  }

  .ac-menu-toggle {
    display: block;
  }

  .ac-lead-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .ac-container {
    width: min(100% - 24px, var(--ac-max));
  }

  .ac-topline-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
  }

  .ac-header-inner {
    min-height: 66px;
  }

  .ac-brand-copy strong {
    font-size: 18px;
  }

  .ac-brand-copy small {
    display: none;
  }

  .ac-ad-wide {
    min-height: 112px;
    margin: 12px auto;
  }

  .ac-ad-wide strong {
    font-size: 22px;
  }

  .ac-ad-mobile,
  .ac-ad-wrap-mobile {
    display: grid;
  }

  .ac-sidebar {
    display: none;
  }

  .ac-lead-card {
    min-height: 440px;
  }

  .ac-lead-content {
    padding: 20px;
  }

  .ac-lead-content h1 {
    font-size: 42px;
  }

  .ac-mini-stack,
  .ac-news-grid {
    grid-template-columns: 1fr;
  }

  .ac-briefing {
    align-items: flex-start;
    flex-direction: column;
  }

  .ac-article-header,
  .ac-entry,
  .ac-post-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ac-entry {
    font-size: 17px;
  }

  .ac-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .ac-footer-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .ac-brand-mark,
  .ac-logo-image img {
    width: 38px;
    height: 38px;
  }

  .ac-lead-content h1,
  .ac-article-header h1 {
    font-size: 34px;
  }

  .ac-card-body {
    padding: 14px;
  }
}
