:root {
  --ch-ink: #132338;
  --ch-muted: #5d6876;
  --ch-paper: #fffdf8;
  --ch-bg: #f2f4f2;
  --ch-line: #dbe1dc;
  --ch-navy: #10263d;
  --ch-navy-2: #183b55;
  --ch-teal: #0d6b5f;
  --ch-teal-2: #0f8272;
  --ch-gold: #e0ad4f;
  --ch-shadow: 0 18px 48px rgba(16, 38, 61, .10);
  --ch-radius: 22px;
}

html { scroll-behavior: smooth; }
body.ch-unified {
  margin: 0 !important;
  color: var(--ch-ink) !important;
  background: var(--ch-bg) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
  text-rendering: optimizeLegibility;
}
body.ch-unified *, body.ch-unified *::before, body.ch-unified *::after { box-sizing: border-box; }
body.ch-unified img { max-width: 100%; height: auto; }
body.ch-unified a { color: var(--ch-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.ch-unified a:hover { color: #084f47; }

.ch-skip {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 9px;
  color: white !important;
  background: var(--ch-navy);
  transform: translateY(-160%);
}
.ch-skip:focus { transform: none; }

.ch-site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  background: linear-gradient(120deg, var(--ch-navy), var(--ch-navy-2));
  box-shadow: 0 10px 28px rgba(16, 38, 61, .16);
}
.ch-header-inner {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ch-brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  text-decoration: none !important;
}
.ch-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 13px;
  color: var(--ch-navy);
  background: linear-gradient(145deg, #ffe2a0, var(--ch-gold));
  font-size: 27px;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255,255,255,.55);
}
.ch-brand strong { display: block; font-size: 1.18rem; line-height: 1.1; letter-spacing: .01em; }
.ch-brand small { display: block; margin-top: 4px; color: #d8e4ec; font-size: .69rem; line-height: 1; letter-spacing: .04em; }
.ch-main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ch-main-nav a {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 12px;
  align-items: center;
  border-radius: 10px;
  color: #f4f8fb !important;
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none !important;
}
.ch-main-nav a:hover, .ch-main-nav a:focus-visible { color: #fff !important; background: rgba(255,255,255,.12); }
.ch-menu-toggle {
  display: none;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font: inherit;
  font-weight: 700;
}

/* Hide obsolete template chrome while preserving article content. */
body.ch-standard > #navigation,
body.ch-standard > nav.navbar,
body.ch-standard > footer:not(.ch-site-footer),
body.ch-standard .page > .site-header,
body.ch-standard .page > .site-footer,
body.ch-standard .page > .layout > aside,
body.ch-standard .page .side-card,
body.ch-standard .sidebar,
body.ch-standard .questions_category,
body.ch-standard img[src*="q-bg_4.png"],
body.ch-standard #ok_group_widget_2,
body.ch-standard #fb-root { display: none !important; }

body.ch-standard > .container,
body.ch-standard > .page,
body.ch-standard .page > .layout {
  width: min(1120px, calc(100% - 32px)) !important;
  max-width: 1120px !important;
  margin: 34px auto !important;
  padding: 0 !important;
}
body.ch-standard > .container > .row,
body.ch-standard .page > .layout { display: block !important; margin: 0 !important; }
body.ch-standard > .container > .row > .col-md-7,
body.ch-standard .page > .layout > main {
  float: none !important;
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
body.ch-standard .mainContent,
body.ch-standard .article-card,
body.ch-standard .ch-runtime-card {
  margin: 0 !important;
  padding: clamp(24px, 4.5vw, 54px) !important;
  border: 1px solid var(--ch-line) !important;
  border-radius: var(--ch-radius) !important;
  background: var(--ch-paper) !important;
  box-shadow: var(--ch-shadow) !important;
}
body.ch-standard .post,
body.ch-standard .mainContent .row,
body.ch-standard .mainContent [class*="col-"] { width: 100% !important; margin: 0 !important; padding: 0 !important; float: none !important; }
body.ch-standard .breadcrumb,
body.ch-standard .breadcrumbs {
  display: flex !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  flex-wrap: wrap;
  gap: 6px;
  border: 0 !important;
  color: var(--ch-muted) !important;
  background: transparent !important;
  font-size: .84rem !important;
  list-style: none !important;
}
body.ch-standard .breadcrumb li { display: inline !important; }
body.ch-standard .breadcrumb > li + li::before { content: "/" !important; padding: 0 6px !important; color: #9aa4ad !important; }

body.ch-unified h1,
body.ch-unified h2,
body.ch-unified h3,
body.ch-unified h4 {
  max-width: 100%;
  color: var(--ch-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 750 !important;
  overflow-wrap: anywhere;
}
body.ch-unified h1 {
  margin: 0 0 24px !important;
  font-size: clamp(2.15rem, 5vw, 3.65rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}
body.ch-unified h2 {
  margin: 48px 0 18px !important;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -.02em !important;
}
body.ch-unified h3 { margin: 32px 0 14px !important; font-size: clamp(1.28rem, 2.3vw, 1.7rem) !important; line-height: 1.28 !important; }
body.ch-unified h4 { margin: 26px 0 12px !important; font-size: 1.16rem !important; }
body.ch-unified p,
body.ch-unified li { color: #28384a !important; font-size: clamp(1rem, 1.4vw, 1.08rem) !important; line-height: 1.74 !important; }
body.ch-unified p { margin: 0 0 1.15em !important; }
body.ch-unified ul,
body.ch-unified ol { padding-left: 1.4em !important; }
body.ch-unified li + li { margin-top: .45em; }
body.ch-unified blockquote {
  margin: 30px 0 !important;
  padding: 22px 26px !important;
  border: 0 !important;
  border-left: 5px solid var(--ch-gold) !important;
  border-radius: 0 14px 14px 0 !important;
  color: #334356 !important;
  background: #f7f0df !important;
}

.ch-article-cover,
body.ch-standard .entry-content img:not([src=""]),
body.ch-standard .hero-img,
body.ch-standard .quality-hero-img {
  display: block !important;
  width: min(100%, 720px) !important;
  max-width: 720px !important;
  height: auto !important;
  margin: 28px auto 36px !important;
  border-radius: 18px !important;
  object-fit: cover !important;
  box-shadow: 0 16px 36px rgba(16, 38, 61, .13) !important;
}
.ch-article-cover { overflow: hidden; background: #e8ece8; }
.ch-article-cover img { display: block; width: 100% !important; height: auto !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.ch-standard .entry-content img[src=""],
body.ch-standard img:not([src]) { display: none !important; }

body.ch-unified table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 30px 0 !important;
  border: 1px solid var(--ch-line) !important;
  border-collapse: collapse !important;
  border-radius: 14px;
  overflow-x: auto;
  background: #fff;
}
body.ch-unified th,
body.ch-unified td { min-width: 130px; padding: 12px 14px !important; border: 1px solid var(--ch-line) !important; text-align: left; vertical-align: top; }
body.ch-unified th { color: #fff !important; background: var(--ch-navy-2) !important; }
body.ch-unified pre,
body.ch-unified code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
body.ch-unified iframe,
body.ch-unified video { max-width: 100% !important; }

/* Modern home and category hubs. */
.ch-home,
.ch-hub,
.ch-map-main,
.ch-legal-main,
.ch-error-main { width: min(1120px, calc(100% - 32px)); margin: 34px auto 56px; }
.ch-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--ch-navy), #164e5a);
  box-shadow: var(--ch-shadow);
}
body.ch-unified .ch-home-hero h1 {
  color: #fff !important;
  font-size: clamp(2.1rem, 3.6vw, 3.05rem) !important;
  line-height: 1.06 !important;
}
body.ch-unified .ch-home-hero p { color: #e4edf2 !important; }
.ch-eyebrow { display: inline-flex; margin-bottom: 15px; color: #ffe0a0; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ch-home-hero-image {
  display: block;
  width: min(100%, 520px);
  max-height: 270px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 22px 45px rgba(0,0,0,.24);
}
.ch-actions { display: flex; margin-top: 24px; flex-wrap: wrap; gap: 12px; }
.ch-button {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 17px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff !important;
  background: var(--ch-teal);
  font-weight: 750;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(13,107,95,.22);
}
.ch-button:hover { color: #fff !important; background: #09594f; }
.ch-button-light { color: var(--ch-navy) !important; background: #fff; }
.ch-button-light:hover { color: var(--ch-navy) !important; background: #f6efe0; }
.ch-section { margin-top: 56px; }
.ch-section-intro { max-width: 720px; color: var(--ch-muted) !important; }
.ch-topic-grid,
.ch-link-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ch-topic-card,
.ch-link-card {
  overflow: hidden;
  border: 1px solid var(--ch-line);
  border-radius: 18px;
  background: var(--ch-paper);
  box-shadow: 0 12px 30px rgba(16,38,61,.07);
}
.ch-link-card {
  display: flex;
  min-height: 236px;
  flex-direction: column;
}
.ch-topic-card img { display: block; width: 100%; height: 176px; object-fit: cover; }
.ch-topic-card div,
.ch-link-card { padding: 22px; }
body.ch-unified .ch-topic-card h2,
body.ch-unified .ch-link-card h2,
body.ch-unified .ch-link-card h3 {
  margin: 0 0 12px !important;
  color: var(--ch-ink) !important;
  font-family: var(--ch-sans) !important;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem) !important;
  font-weight: 780 !important;
  line-height: 1.34 !important;
  letter-spacing: -.012em !important;
}
body.ch-unified .ch-link-card h2 a,
body.ch-unified .ch-link-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow-wrap: anywhere;
}
body.ch-unified .ch-topic-card p,
body.ch-unified .ch-link-card p {
  margin: auto 0 0 !important;
  color: var(--ch-muted) !important;
  font-size: .96rem !important;
  line-height: 1.62 !important;
}
.ch-topic-card a,
.ch-link-card a { font-weight: 750; }
.ch-map-list {
  columns: 2 320px;
  column-gap: 34px;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}
.ch-map-list li {
  margin: 0 0 9px !important;
  break-inside: avoid;
  padding: 9px 12px;
  border-left: 3px solid #dce5df;
  background: #fff;
}
.ch-feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 0; padding: 0 !important; list-style: none; }
.ch-feature-list li { margin: 0 !important; padding: 20px; border: 1px solid var(--ch-line); border-radius: 16px; background: #fff; }

.ch-legal-main article,
.ch-error-main section {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background: var(--ch-paper);
  box-shadow: var(--ch-shadow);
}
.ch-legal-main .ch-updated { color: var(--ch-muted); font-size: .88rem; }

.ch-site-footer { margin-top: 70px; color: #dce7ec !important; background: var(--ch-navy); }
.ch-footer-grid {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 38px;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 60px;
}
.ch-brand-footer { margin-bottom: 20px; }
body.ch-unified .ch-site-footer .ch-brand,
body.ch-unified .ch-site-footer .ch-brand strong { color: #fff !important; }
body.ch-unified .ch-site-footer .ch-brand small { color: #d8e4ec !important; }
body.ch-unified .ch-site-footer p {
  max-width: 670px;
  color: #d4e0e7 !important;
  font-size: .94rem !important;
  line-height: 1.7 !important;
}
body.ch-unified .ch-site-footer a { color: #f4dca9 !important; }
.ch-footer-nav { display: grid; align-content: start; gap: 11px; }
.ch-footer-nav a { min-height: 34px; font-weight: 650; }
.ch-footer-bottom {
  display: flex;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: #b6c5ce;
  font-size: .82rem;
}

.ch-cookie {
  position: fixed;
  z-index: 1200;
  right: 18px;
  bottom: 18px;
  display: flex;
  width: min(520px, calc(100% - 36px));
  padding: 16px 18px;
  align-items: center;
  gap: 16px;
  border: 1px solid #cbd7d3;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16,38,61,.2);
}
.ch-cookie[hidden] { display: none !important; }
.ch-cookie p { margin: 0 !important; font-size: .84rem !important; line-height: 1.45 !important; }
.ch-cookie button { min-height: 40px; padding: 8px 13px; border: 0; border-radius: 9px; color: #fff; background: var(--ch-teal); font: inherit; font-weight: 750; cursor: pointer; }

@media (max-width: 960px) {
  .ch-header-inner { flex-wrap: wrap; padding: 13px 0; }
  .ch-main-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .ch-home-hero { grid-template-columns: 1fr; }
  .ch-home-hero-image { width: min(100%, 620px); margin: 0 auto; }
  .ch-topic-grid, .ch-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body.ch-unified { font-size: 16px !important; }
  .ch-site-header { position: relative; }
  .ch-header-inner { width: min(100% - 24px, 1180px); min-height: 70px; }
  .ch-brand small { display: none; }
  .ch-brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .ch-menu-toggle { display: inline-flex; }
  .ch-main-nav { display: none; width: 100%; padding: 8px 0 3px; align-items: stretch; }
  .ch-main-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .ch-main-nav a { justify-content: center; border: 1px solid rgba(255,255,255,.12); }
  body.ch-standard > .container,
  body.ch-standard > .page,
  body.ch-standard .page > .layout,
  .ch-home, .ch-hub, .ch-map-main, .ch-legal-main, .ch-error-main { width: calc(100% - 24px) !important; margin-top: 20px !important; }
  body.ch-standard .mainContent,
  body.ch-standard .article-card,
  body.ch-standard .ch-runtime-card { padding: 22px !important; border-radius: 16px !important; }
  body.ch-unified h1 { font-size: clamp(1.95rem, 9vw, 2.75rem) !important; }
  body.ch-unified h2 { margin-top: 38px !important; font-size: clamp(1.5rem, 7vw, 2rem) !important; }
  .ch-article-cover,
  body.ch-standard .entry-content img:not([src=""]),
  body.ch-standard .hero-img,
  body.ch-standard .quality-hero-img { margin: 22px auto 28px !important; border-radius: 13px !important; }
  .ch-home-hero { padding: 26px 20px; border-radius: 18px; }
  .ch-home-hero-image { max-height: 240px; border-radius: 14px; }
  .ch-topic-grid, .ch-link-grid, .ch-feature-list, .ch-footer-grid { grid-template-columns: 1fr; }
  .ch-topic-card img { height: 190px; }
  .ch-footer-grid { gap: 32px; padding-top: 40px; }
  .ch-footer-bottom { flex-direction: column; gap: 5px; }
  .ch-cookie { right: 12px; bottom: 12px; width: calc(100% - 24px); flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
