/* ── January Help Center — style.css ── */

/* ── Nav (header.hbs) ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid rgba(13, 20, 60, 0.08);
}

.site-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.07px;
  color: #0d143c;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-item:hover { background: rgba(236, 238, 248, 0.7); }

.nav-item--active {
  background: #eceef8;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.14px;
}

.btn-make-payment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: #2c3da0;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28px;
  border-radius: 24px;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-make-payment:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #f4f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 12px;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0d143c;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 16px 24px 32px;
  box-shadow: 0 8px 32px rgba(13, 16, 48, 0.10);
  z-index: 199;
}

.nav-mobile-menu.is-open {
  display: flex;
}

.nav-mobile-item {
  padding: 16px 0;
  font-size: 17px;
  font-weight: 400;
  color: #0d143c;
}

.nav-mobile-item--active {
  font-weight: 600;
}

.nav-mobile-cta {
  margin-top: 20px;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #2c3da0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28px;
  border-radius: 24px;
}

@media (max-width: 900px) {
  .site-nav { position: relative; }
  .site-nav-inner { padding: 16px 24px; }
  .nav-links { display: none; }
  .btn-make-payment { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .hero {
    padding: 52px 20px 48px;
  }
  .hero-title {
    font-size: 24px !important;
    line-height: 40px !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 24px;
  }
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #fcfcff 0%, #eceef8 20%, #d5d9f0 45%, #f8f7ff 70%);
  color: #0d1030;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
img { display: block; max-width: 100%; }

/* ── Design Tokens ── */
:root {
  --acc:       #2c3da0;
  --acc-hi:    #5f70d3;
  --acc-glow:  rgba(44, 61, 160, 0.22);
  --acc-dim:   rgba(44, 61, 160, 0.10);
  --navy:      #050618;
  --navy-mid:  #111440;
  --bg:        #f8f7ff;
  --bg-2:      #f0efff;
  --bg-surf:   #ffffff;
  --txt:       #0d1030;
  --muted:     rgba(13, 16, 48, 0.62);
  --dim:       rgba(13, 16, 48, 0.38);
  --bdr:       rgba(44, 61, 160, 0.12);
  --bdr-2:     rgba(44, 61, 160, 0.22);
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 8px rgba(13, 16, 48, 0.03);
  --shadow-md: 0 2px 12px rgba(13, 16, 48, 0.05);
}

/* ── Layout ── */
.page-wrapper { min-height: 100vh; }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ── */
.hero {
  padding: 88px 24px 72px;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* Pre Title — 500 Medium, 8% tracking, uppercase */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2c3da0;
  margin-bottom: 20px;
}

.hero-tag::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: #2c3da0;
  flex-shrink: 0;
}

.hero-tag::after {
  content: '';
  width: 18px;
  height: 1.5px;
  background: #2c3da0;
  flex-shrink: 0;
}

/* Display M — Bold 700, 42px, 64px line-height, -1.8% tracking */
.hero-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 64px;
  color: #0d143c;
  margin-bottom: 32px;
}

/* Body 2 — Regular 400, 16px, 26px line-height */
.hero-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: 0;
  color: rgba(13, 20, 60, 0.62);
  margin-bottom: 40px;
}

/* ── Search ── */
.search-form {
  max-width: 540px;
  margin: 0 auto;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(44, 61, 160, 0.14);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.search-wrap:focus-within {
  border-color: rgba(44, 61, 160, 0.38);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(44, 61, 160, 0.10);
}

.search-input {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #0d143c;
  outline: none;
}

.search-input::placeholder { color: rgba(13, 20, 60, 0.38); }

.btn-search {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: #2c3da0;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 5px rgba(44, 61, 160, 0.15);
}

.btn-search:hover {
  opacity: 0.88;
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(44, 61, 160, 0.22);
}

.btn-search svg { display: block; pointer-events: none; }

/* ── Section Headings — H7: 20px SemiBold 600, 28px line-height ── */
.section-heading {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
  color: var(--txt);
  margin-bottom: 28px;
}

/* ── Categories ── */
.categories-section {
  padding: 72px 0 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--bg-surf);
  border: 1px solid var(--bdr);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(44, 61, 160, 0.04);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--bdr-2);
  box-shadow: 0 2px 10px rgba(44, 61, 160, 0.07);
  transform: translateY(-2px);
}

.category-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--acc-dim);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}

.category-card:hover .category-icon-wrap {
  background: rgba(44, 61, 160, 0.16);
}

.category-body {
  flex: 1;
  min-width: 0;
}

/* H8 — 17px SemiBold 600, 24px line-height */
.category-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--txt);
  margin-bottom: 4px;
}

/* Body 3 — 14px Regular 400, 22px line-height, 0.5% tracking */
.category-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.005em;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Caption — 12px Medium 500, 2% tracking */
.category-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--acc);
}

.category-arrow {
  color: var(--dim);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.category-card:hover .category-arrow {
  color: var(--acc);
  transform: translateX(3px);
}

/* ── Topic Columns (home page) ── */
.topics-section {
  padding: 72px 0 80px;
}

.topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.topic-col-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--txt);
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .topics-grid { grid-template-columns: 1fr; }
}

/* ── Article Lists ── */
.articles-section {
  padding: 64px 0 0;
}

.articles-list {
  background: var(--bg-surf);
  border: 1px solid var(--bdr);
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(44, 61, 160, 0.04);
  overflow: hidden;
}

.article-item {
  border-bottom: 1px solid var(--bdr);
}

.article-item:last-child { border-bottom: none; }

.article-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  transition: background 0.14s;
}

.article-link:hover { background: #f9f8fa; }

.article-doc-icon {
  color: var(--acc);
  flex-shrink: 0;
}

/* Body 3 — 14px Medium 500, 22px line-height */
.article-link span {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--txt);
  transition: color 0.14s;
}

.article-link:hover span { color: var(--acc); font-weight: 600; }

.article-arrow {
  color: var(--dim);
  flex-shrink: 0;
  transition: color 0.14s, transform 0.14s;
}

.article-link:hover .article-arrow {
  color: var(--acc);
  transform: translateX(3px);
}

/* ── Footer ── */
.site-footer {
  background: #0e1018;
  padding: 88px 72px 144px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1296px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  min-width: 200px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-copyright {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.24px;
  color: #fefefe;
}

.footer-nav {
  display: flex;
  gap: 96px;
  padding-right: 72px;
  flex-shrink: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-heading {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: #ffffff;
  white-space: nowrap;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col-links a {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.07px;
  color: #ffffff;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.footer-col-links a:hover { opacity: 0.65; }

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s;
}

.footer-linkedin:hover { opacity: 0.85; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .site-footer { padding: 64px 24px 80px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-nav { gap: 48px; padding-right: 0; flex-wrap: wrap; }
  .footer-left { gap: 40px; }
}

@media (max-width: 680px) {
  .categories-grid { grid-template-columns: 1fr; }
}

/* ── Breadcrumb ── */
.breadcrumb-bar {
  padding: 24px 0 0;
  position: relative;
  z-index: 1;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--acc);
  transition: color 0.14s, text-decoration-color 0.14s;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb-sep { color: var(--dim); flex-shrink: 0; }

.breadcrumb-current {
  font-size: 13px;
  font-weight: 500;
  color: var(--txt);
}

/* ── Article Layout ── */
.article-layout {
  padding: 32px 0 0;
  position: relative;
  z-index: 1;
}

.article-layout-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* ── Article Card ── */
.article-card {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(44, 61, 160, 0.04);
  padding: 48px 56px;
}

.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(44, 61, 160, 0.08);
}

/* Display M */
.article-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 56px;
  color: #0d143c;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article-meta-text {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Body 3 Medium */
.article-author-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--txt);
}

.article-meta-sep {
  color: var(--dim);
  font-size: 14px;
}

/* Caption */
.article-meta-date {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

/* ── Article Body (rich text) ── */
.article-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--txt);
}

.article-body > * + * { margin-top: 20px; }

.article-body h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
  color: #0d143c;
  margin-top: 40px;
  margin-bottom: 12px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: #0d143c;
  margin-top: 32px;
  margin-bottom: 10px;
}

.article-body h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: #0d143c;
  margin-top: 28px;
  margin-bottom: 8px;
}

.article-body p { margin: 0; }

.article-body a {
  color: var(--acc);
  text-decoration: underline;
  text-decoration-color: rgba(44, 61, 160, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.14s;
}

.article-body a:hover { text-decoration-color: var(--acc); }

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li + li { margin-top: 8px; }

.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }

.article-body code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
  background: rgba(44, 61, 160, 0.07);
  color: #2c3da0;
  padding: 2px 6px;
  border-radius: 4px;
}

.article-body pre {
  background: #0d143c;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  overflow-x: auto;
}

.article-body pre code {
  font-size: 14px;
  background: none;
  color: #e2e6ff;
  padding: 0;
  border-radius: 0;
}

.article-body blockquote {
  border-left: 3px solid var(--acc);
  padding-left: 20px;
  color: var(--muted);
  font-style: italic;
}

.article-body hr {
  border: none;
  border-top: 1px solid rgba(44, 61, 160, 0.10);
  margin: 40px 0;
}

.article-body img {
  border-radius: var(--radius-sm);
  max-width: 100%;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-body th,
.article-body td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(44, 61, 160, 0.08);
}

.article-body th {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(44, 61, 160, 0.04);
}

/* ── Was This Helpful ── */
.article-vote {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(44, 61, 160, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* H7 */
.article-vote-label {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--txt);
}

.article-vote-buttons {
  display: flex;
  gap: 12px;
}

.btn-vote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid rgba(44, 61, 160, 0.18);
  background: rgba(255, 255, 255, 0.6);
  color: var(--txt);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-vote:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(44, 61, 160, 0.35);
  color: var(--acc);
}

.btn-vote--yes:hover { color: #1a7a4a; border-color: rgba(26, 122, 74, 0.35); }
.btn-vote--no:hover  { color: #b03a2e; border-color: rgba(176, 58, 46, 0.35); }

.btn-vote.voted-yes { background: rgba(26, 122, 74, 0.08); border-color: rgba(26, 122, 74, 0.35); color: #1a7a4a; }
.btn-vote.voted-no  { background: rgba(176, 58, 46, 0.08); border-color: rgba(176, 58, 46, 0.35); color: #b03a2e; }

.btn-vote--active.btn-vote--yes { background: rgba(26, 122, 74, 0.10); border-color: rgba(26, 122, 74, 0.4); color: #1a7a4a; }
.btn-vote--active.btn-vote--no  { background: rgba(176, 58, 46, 0.10); border-color: rgba(176, 58, 46, 0.4); color: #b03a2e; }
.btn-vote:disabled { cursor: default; opacity: 0.7; }
.btn-vote--active  { opacity: 1 !important; }

/* Caption */
.article-vote-count {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

/* ── Sidebar ── */
.article-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(44, 61, 160, 0.04);
  padding: 24px;
}

/* H8 */
.sidebar-heading {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-articles { list-style: none; }

.sidebar-article-item + .sidebar-article-item {
  border-top: 1px solid rgba(44, 61, 160, 0.07);
}

.sidebar-article-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--txt);
  transition: color 0.14s;
}

.sidebar-article-link:hover { color: var(--acc); }

.sidebar-doc-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--dim);
  transition: color 0.14s;
}

.sidebar-article-link:hover .sidebar-doc-icon { color: var(--acc); }

/* ── Article page responsive ── */
@media (max-width: 900px) {
  .article-layout-inner { flex-direction: column; }
  .article-sidebar { width: 100%; position: static; }
  .article-card { padding: 32px 24px; }
  .article-title { font-size: 32px; line-height: 44px; }
}

/* ── Topic Header (category & section pages) ── */
.topic-header {
  padding: 40px 0 0;
  position: relative;
  z-index: 1;
}

/* Display M */
.topic-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 56px;
  color: #0d143c;
  margin-bottom: 12px;
}

/* Body 2 */
.topic-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--muted);
  max-width: 600px;
}

/* ── Sections Grid (category page) ── */
.topic-sections {
  padding: 48px 0 0;
  position: relative;
  z-index: 1;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.section-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(44, 61, 160, 0.04);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
}

.section-card:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(44, 61, 160, 0.07);
  transform: translateY(-2px);
}

.section-card-body { flex: 1; min-width: 0; }

/* H8 */
.section-card-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--txt);
  margin-bottom: 4px;
}

/* Body 3 */
.section-card-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.005em;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Caption */
.section-card-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--acc);
}

.section-card-arrow {
  color: var(--dim);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.section-card:hover .section-card-arrow {
  color: var(--acc);
  transform: translateX(3px);
}

/* ── Topic Layout (section page) ── */
.topic-layout {
  padding: 32px 0 0;
  position: relative;
  z-index: 1;
}

.topic-layout-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.topic-main {
  flex: 1;
  min-width: 0;
}

.topic-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
}

/* Article list on section page — override link layout for snippet support */
.topic-main .article-link {
  align-items: flex-start;
  padding: 18px 20px;
}

.topic-main .article-doc-icon { margin-top: 3px; }

.article-link-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.article-link-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--txt);
  transition: color 0.14s;
}

.article-link-snippet {
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--muted);
}

.topic-main .article-link:hover .article-link-title { color: var(--acc); }

/* Active section in sidebar */
.sidebar-article-link--active {
  color: var(--acc);
  font-weight: 500;
}

.sidebar-article-link--active .sidebar-doc-icon { color: var(--acc); }

/* ── Topic page responsive ── */
@media (max-width: 900px) {
  .topic-layout-inner { flex-direction: column; }
  .topic-sidebar { width: 100%; position: static; }
  .topic-title { font-size: 32px; line-height: 44px; }
  .sections-grid { grid-template-columns: 1fr; }
}

/* ── Search no-results ── */
.search-no-results {
  padding: 64px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-no-results-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--txt);
}
.search-no-results-hint {
  font-size: 14px;
  color: var(--muted);
}
.search-no-results-hint a {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── All Articles (home page) ── */
.all-articles-group + .all-articles-group {
  margin-top: 48px;
}

.all-articles-category-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--txt);
  margin-bottom: 16px;
}

.all-articles-section-group + .all-articles-section-group {
  margin-top: 24px;
}

.all-articles-section-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0 4px;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  padding: 40px 0 16px;
  gap: 8px;
}

