/*
Theme: 2222
Light mobile-first custom theme
*/

:root {
  --bg: #f4f8ff;
  --bg-soft: #edf4ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-alt: #e8f0ff;
  --text: #0f172a;
  --muted: #52607a;
  --line: rgba(37, 99, 235, 0.14);
  --line-strong: rgba(15, 23, 42, 0.12);
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --accent: #0f172a;
  --accent-soft: #1e293b;
  --success: #0f766e;
  --shadow: 0 22px 60px rgba(37, 99, 235, 0.12);
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
  --radius-xs: 14px;
  --radius-sm: 22px;
  --radius-md: 32px;
  --radius-lg: 42px;
  --radius-xl: 56px;
  --container: 1180px;
  --reading: 760px;
  --body-font: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.09), transparent 26%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.05), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

.section {
  padding: 34px 0;
}

.soft-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

h1, h2, h3, h4 {
  margin: 0 0 14px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--accent);
}

h1 { font-size: clamp(2rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 4vw, 1.45rem); }
h4 { font-size: 1rem; }
p, ul, ol, blockquote, table, figure, pre { margin: 0 0 16px; }

.button,
.btn,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.btn:hover,
.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button-primary,
.button,
.btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.button-secondary {
  background: rgba(255,255,255,0.72);
  color: var(--accent);
  border-color: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-soft);
}

.button-full { width: 100%; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-deep);
}
.text-link::after {
  content: '→';
  font-size: 1rem;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--primary-deep);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-intro { margin-bottom: 20px; }
.section-intro p:last-child { color: var(--muted); }
.section-intro-center { text-align: center; }
.split-intro {
  display: grid;
  gap: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 800;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7dd3fc);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.brand-text { font-size: 1rem; }
.nav-toggle { display: none; }
.nav-burger {
  width: 50px;
  height: 50px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.nav-burger span {
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: min(88vw, 360px);
  height: 100vh;
  padding: 22px 18px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow: 30px 0 80px rgba(15, 23, 42, 0.18);
  transform: translateX(-105%);
  transition: transform .28s ease;
  z-index: 70;
  overflow-y: auto;
}

.nav-toggle:checked ~ .main-navigation {
  transform: translateX(0);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 60;
}

.nav-toggle:checked ~ .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 1.6rem;
  cursor: pointer;
}

.nav-panel-head {
  margin: 18px 0 20px;
}

.nav-panel-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
}

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

.nav-list > li > a,
.nav-item-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: var(--accent);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  list-style: none;
}

.nav-item-dropdown summary::-webkit-details-marker { display: none; }
.dropdown-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 26px;
  background: rgba(255,255,255,0.65);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}
.dropdown-panel a,
.dropdown-empty {
  display: block;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(232, 240, 255, 0.8);
  color: var(--accent-soft);
}
.header-phone {
  margin-top: 18px;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.hero-band {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 38px 38px;
}
.hero-media,
.hero-media img,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.15) 0%, rgba(15,23,42,0.78) 78%),
    radial-gradient(circle at 20% 10%, rgba(37,99,235,0.32), transparent 35%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 34px;
}
.hero-copy {
  max-width: 720px;
  color: #fff;
}
.hero-chip {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.hero-title span,
.hero-title em {
  display: block;
  color: #fff;
  font-style: normal;
}
.hero-title em {
  color: #bfdbfe;
}
.hero-description {
  max-width: 620px;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.pill-grid,
.card-ribbon,
.flow-list,
.subcat-arc-grid,
.post-stream,
.faq-list {
  display: grid;
  gap: 16px;
}

.pill-card,
.ribbon-card,
.flow-card,
.subcat-arc-card,
.stream-card,
.not-found-card,
.editorial-panel,
.faq-shell,
.author-box,
.sidebar-cta,
.category-hero-wrap,
.page-reading-panel {
  border-radius: var(--radius-md);
}

.pill-card {
  position: relative;
  display: block;
  padding: 22px 22px;
  color: var(--accent);
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(232,240,255,0.92));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.pill-card::after {
  content: '';
  position: absolute;
  right: -18px;
  top: -18px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(37,99,235,0.1);
}
.pill-card-title {
  display: block;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}
.pill-card-text {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: .96rem;
}

.ribbon-card,
.flow-card,
.stream-card,
.subcat-arc-card {
  overflow: hidden;
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-soft);
}

.post-card-image,
.flow-image,
.category-image {
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.post-card-image {
  height: 190px;
  border-radius: 28px 28px 0 0;
}

.ribbon-body,
.flow-content,
.stream-body,
.subcat-arc-body {
  padding: 18px;
}

.ribbon-body p,
.flow-content p,
.stream-body p,
.subcat-arc-body p {
  color: var(--muted);
}

.category-hero-wrap {
  display: grid;
  gap: 18px;
  padding: 18px;
}
.category-description,
.category-description p {
  color: var(--muted);
}
.category-image {
  height: 220px;
  border-radius: 30px;
}
.subcat-arc-card .category-image {
  height: 220px;
  border-radius: 30px 30px 0 0;
}

.stream-excerpt,
.stream-excerpt p,
.stream-excerpt li,
.stream-excerpt a {
  color: var(--muted);
}
.stream-excerpt .article-toc {
  margin-top: 0;
  margin-bottom: 16px;
}

.pagination-wrap {
  margin-top: 24px;
  justify-content: center;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.pagination .is-disabled {
  opacity: .55;
}

.post-shell {
  display: grid;
  gap: 24px;
}
.article-stage {
  min-width: 0;
}
.post-header {
  margin-bottom: 18px;
}
.post-title {
  max-width: 14ch;
}
.post-image {
  width: 100%;
  max-width: 760px;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 34px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.post-sidebar {
  min-width: 0;
}
.sticky-stack {
  display: grid;
  gap: 16px;
}
.author-box,
.sidebar-cta,
.inline-editorial-note {
  padding: 20px;
}
.sidebar-title {
  font-size: 1.25rem;
}

.page-shell {
  max-width: 920px;
}
.page-header-block {
  margin-bottom: 18px;
}
.page-image-wrap {
  margin-bottom: 18px;
}
.page-image {
  width: 100%;
  max-width: 760px;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.page-reading-panel {
  padding: 20px;
}
.related-flow .flow-image {
  height: 190px;
  border-radius: 28px 28px 0 0;
}

.cta-wave {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(125,211,252,0.45), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(226,236,255,0.95));
  box-shadow: var(--shadow);
}
.compact-cta {
  padding: 22px;
}
.cta-phone-button {
  justify-self: start;
}

.faq-shell {
  padding: 22px;
}
.faq-item {
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.8);
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent);
}
.faq-item p {
  margin-top: 12px;
  color: var(--muted);
}

.not-found-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px;
  text-align: center;
}

.site-footer {
  padding: 18px 0 110px;
}
.footer-shell {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 36px;
}
.footer-title {
  font-size: 1.4rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.86);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  color: var(--muted);
  text-align: center;
}
.kp-credit,
.footer-copy {
  margin: 0;
}

.mobile-call-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #1e3a8a 100%);
  color: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.3);
}
.mobile-call-bar span {
  font-size: .88rem;
  opacity: .9;
}
.mobile-call-bar strong {
  font-size: 1rem;
  letter-spacing: .02em;
}

.article-content {
  max-width: var(--reading);
  color: var(--text);
}
.article-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 4.8vw, 2.5rem);
  color: var(--accent);
}
.article-content h3 {
  margin-top: 30px;
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  color: var(--primary-deep);
}
.article-content h4 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: var(--accent-soft);
}
.article-content p,
.article-content li,
.article-content td,
.article-content th,
.article-content figcaption {
  font-size: 1rem;
  color: #20304d;
}
.article-content ul,
.article-content ol {
  padding-left: 22px;
}
.article-content ul ul,
.article-content ul ol,
.article-content ol ul,
.article-content ol ol {
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
}
.article-content a {
  color: var(--primary-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-content blockquote {
  padding: 18px 20px;
  border-radius: 0 28px 28px 28px;
  background: linear-gradient(145deg, rgba(37,99,235,0.08), rgba(125,211,252,0.14));
  border-left: 4px solid var(--primary);
  color: var(--accent-soft);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  background: rgba(255,255,255,0.88);
}
.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  text-align: left;
}
.article-content figure {
  margin: 24px 0;
}
.article-content figcaption {
  margin-top: 10px;
  color: var(--muted);
}
.article-content code,
.article-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.article-content code {
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(37,99,235,0.1);
  color: var(--primary-deep);
}
.article-content pre {
  padding: 18px;
  overflow: auto;
  border-radius: 24px;
  background: #0f172a;
  color: #dbeafe;
  box-shadow: var(--shadow-soft);
}
.article-content hr {
  border: 0;
  border-top: 1px solid rgba(15,23,42,0.1);
  margin: 28px 0;
}

.article-toc {
  margin: 24px 0 32px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(232,240,255,0.94));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(37,99,235,0.12);
}
.article-toc-title {
  margin-bottom: 12px;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-deep);
}
.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.article-toc li {
  margin: 0;
}
.article-toc li ul {
  margin-top: 10px;
  padding-left: 12px;
}
.article-toc a {
  display: block;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.08);
}
.article-toc a:hover {
  background: rgba(37,99,235,0.08);
}

.empty-state {
  padding: 22px;
  border-radius: 30px;
  color: var(--muted);
}

@media (min-width: 768px) {
  .section { padding: 56px 0; }
  .split-intro {
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
  }
  .pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-ribbon,
  .flow-list,
  .subcat-arc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-stream {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-hero-wrap {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    padding: 24px;
  }
  .post-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
  .sticky-stack {
    position: sticky;
    top: 92px;
  }
  .cta-wave {
    grid-template-columns: 1fr auto;
  }
  .footer-shell {
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .main-navigation {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .nav-backdrop,
  .nav-close,
  .nav-panel-head,
  .nav-burger {
    display: none;
  }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-list > li > a,
  .nav-item-dropdown summary {
    padding: 12px 16px;
    background: rgba(255,255,255,0.82);
  }
  .nav-item-dropdown {
    position: relative;
  }
  .nav-item-dropdown details {
    position: relative;
  }
  .nav-item-dropdown .dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 280px;
    max-height: 60vh;
    overflow: auto;
    z-index: 20;
  }
  .header-phone {
    display: inline-flex;
    width: auto;
    margin-top: 0;
    margin-left: 10px;
    padding: 12px 18px;
  }
}

@media (min-width: 1024px) {
  .card-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flow-list.related-flow,
  .subcat-arc-grid,
  .post-stream {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-shell {
    max-width: 980px;
  }
  .post-image {
    height: 420px;
  }
  .page-image {
    height: 360px;
  }
  .category-hero-wrap .category-image {
    height: 280px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 88px;
  }
}
