:root {
  --atlas-ink: #111827;
  --atlas-muted: #6b7280;
  --atlas-paper: #ffffff;
  --atlas-canvas: #f8fafc;
  --atlas-line: #e5e7eb;
  --atlas-accent: #2563eb;
  --atlas-accent-dark: #1d4ed8;
  --atlas-highlight: #eff6ff;
  --atlas-serif: "Manrope", system-ui, sans-serif;
  --atlas-sans: "Inter", system-ui, sans-serif;
  --atlas-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--atlas-ink); background: var(--atlas-paper); font: 17px/1.72 var(--atlas-sans); }
a { color: var(--atlas-accent); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--atlas-accent-dark); }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto !important; width: auto; height: auto; padding: 12px 18px; margin: 8px; background: #fff; color: #000; z-index: 100000; }
.section-shell, .header-inner, .footer-inner { width: min(100% - 40px, 1440px); margin-inline: auto; }
.eyebrow { margin: 0 0 8px; color: var(--atlas-accent); font: 700 .78rem/1.3 var(--atlas-sans); letter-spacing: .11em; text-transform: uppercase; }
.button, button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 11px 18px; color: #fff; background: var(--atlas-accent); font: 700 .92rem/1.2 var(--atlas-sans); text-decoration: none; cursor: pointer; }
.button:hover, button:hover { color: #fff; background: var(--atlas-accent-dark); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--atlas-line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); }
.header-inner { min-height: 92px; display: flex; align-items: center; gap: 24px; }
.site-branding { flex: none; margin-right: 0; }
.site-title { display: inline-flex; align-items: center; gap: 10px; color: var(--atlas-ink); font: 600 1.22rem/1.1 var(--atlas-serif); text-decoration: none; }
.site-title span { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; color: #fff; background: var(--atlas-accent); font-size: 1.25rem; }
.site-description { margin: 3px 0 0 52px; color: var(--atlas-muted); font: .78rem/1.2 var(--atlas-sans); }
.custom-logo { display: block; max-height: 58px; width: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { color: var(--atlas-ink); font: 600 .93rem/1.2 var(--atlas-sans); text-decoration: none; }
.primary-navigation .current-menu-item > a { color: var(--atlas-accent); }
.wiki-access-link { padding: 9px 14px; border: 1px solid #bfdbfe; border-radius: 10px; font: 700 .85rem/1.2 var(--atlas-sans); text-decoration: none; }
.menu-toggle { display: none; }
.header-search { flex: 1 1 560px; min-width: 220px; max-width: 680px; margin-left: auto; }
.header-search .search-form { max-width: none; }
.search-form { display: flex; width: 100%; max-width: 760px; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 48px; border: 1px solid #d1d5db; border-right: 0; border-radius: 12px 0 0 12px; padding: 0 18px; color: var(--atlas-ink); background: #fff; font: 1rem/1.2 var(--atlas-sans); }
.search-submit { min-width: 100px; border-radius: 0 12px 12px 0; }

.hero { border-bottom: 1px solid var(--atlas-line); background: linear-gradient(125deg, #edf1e8, #f7f1e3 68%, #efe7d8); }
.hero-inner { width: min(100% - 40px, 1040px); margin-inline: auto; padding: 92px 0 98px; text-align: center; }
.hero h1 { max-width: 900px; margin: 0 auto 20px; font: 600 clamp(2.3rem, 6vw, 4.8rem)/1.08 var(--atlas-serif); letter-spacing: -.035em; }
.hero p:not(.eyebrow) { max-width: 720px; margin: 0 auto; color: #4e5853; font-size: 1.15rem; }
.hero-search { display: flex; justify-content: center; margin-top: 34px; }
.hero-search .search-form { max-width: 820px; box-shadow: var(--atlas-shadow); }
.hero-search .search-field { height: 58px; }

.topic-section, .latest-section { padding-top: 72px; padding-bottom: 80px; }
.topic-section { border-bottom: 1px solid var(--atlas-line); }
.section-heading { margin-bottom: 30px; }
.section-heading h2, .related-articles > h2 { margin: 0; font: 600 clamp(1.7rem, 3vw, 2.5rem)/1.15 var(--atlas-serif); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-card { min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--atlas-line); color: var(--atlas-ink); background: var(--atlas-paper); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.topic-card:hover { transform: translateY(-3px); color: var(--atlas-accent); box-shadow: var(--atlas-shadow); }
.topic-card span { font: 600 1.1rem/1.2 var(--atlas-serif); }
.topic-card small { color: var(--atlas-muted); font: .82rem/1.2 var(--atlas-sans); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.article-card { min-width: 0; overflow: hidden; border: 1px solid var(--atlas-line); border-radius: 2px; background: #fff; }
.card-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #dfe4de; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .card-image img { transform: scale(1.025); }
.card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #dfe9e4, #eee8d8); }
.card-body { padding: 22px; }
.card-topic, .result-type { color: var(--atlas-accent); font: 700 .75rem/1.2 var(--atlas-sans); letter-spacing: .08em; text-transform: uppercase; }
.card-body h2 { margin: 10px 0 12px; font: 600 1.3rem/1.25 var(--atlas-serif); }
.card-body h2 a { color: var(--atlas-ink); text-decoration: none; }
.card-body p { margin: 0 0 18px; color: #515b56; font-size: .94rem; }
.card-body time { color: var(--atlas-muted); font: .82rem/1.2 var(--atlas-sans); }
.section-action { margin: 34px 0 0; text-align: center; }

.listing-page, .singular-page { padding-top: 30px; padding-bottom: 80px; }
.archive-header { max-width: 920px; margin: 34px 0 44px; }
.archive-header h1, .entry-header h1 { margin: 0; font: 600 clamp(2.25rem, 5vw, 4.2rem)/1.08 var(--atlas-serif); letter-spacing: -.025em; }
.archive-description { max-width: 760px; color: var(--atlas-muted); }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 52px; }
.content-with-sidebar .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-sidebar { font-family: var(--atlas-sans); }
.widget { padding: 22px; border: 1px solid var(--atlas-line); background: var(--atlas-canvas); }
.widget + .widget { margin-top: 20px; }
.widget-title { margin: 0 0 14px; font: 600 1.05rem/1.2 var(--atlas-serif); }
.widget ul { margin: 0; padding-left: 20px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; font-family: var(--atlas-sans); }
.page-numbers { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 7px; border: 1px solid var(--atlas-line); text-decoration: none; }
.page-numbers.current { color: #fff; border-color: var(--atlas-accent); background: var(--atlas-accent); }
.breadcrumbs { overflow-x: auto; color: var(--atlas-muted); font: .82rem/1.3 var(--atlas-sans); }
.breadcrumbs ol { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #aaa; }

.entry-header { max-width: 1000px; margin: 42px 0 38px; padding-bottom: 30px; border-bottom: 1px solid var(--atlas-line); }
.entry-subtitle { max-width: 820px; margin: 16px 0 0; color: #56605b; font-size: 1.25rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; color: var(--atlas-muted); font: .86rem/1.3 var(--atlas-sans); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px) minmax(250px, 320px); align-items: start; gap: 36px; }
.article-rail, .infobox-column { position: sticky; top: 20px; }
.table-of-contents { border-left: 2px solid var(--atlas-line); padding-left: 18px; font-family: var(--atlas-sans); }
.toc-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.table-of-contents h2 { margin: 0; font: 700 .92rem/1.2 var(--atlas-sans); }
.toc-toggle { padding: 3px 6px; color: var(--atlas-accent); background: transparent; font-size: .76rem; }
.toc-toggle:hover { color: var(--atlas-accent-dark); background: var(--atlas-highlight); }
.table-of-contents ol { margin: 14px 0 0; padding: 0; list-style: none; }
.table-of-contents li { margin: 8px 0; font-size: .83rem; line-height: 1.35; }
.table-of-contents .toc-level-3 { padding-left: 14px; }
.table-of-contents a { color: var(--atlas-muted); text-decoration: none; }
.table-of-contents a:hover, .table-of-contents a.is-active { color: var(--atlas-accent); }
.table-of-contents.is-collapsed ol { display: none; }
.entry-content { min-width: 0; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { scroll-margin-top: 24px; margin: 2.2em 0 .65em; padding-bottom: .3em; border-bottom: 1px solid var(--atlas-line); font: 600 1.85rem/1.2 var(--atlas-serif); }
.entry-content h3 { scroll-margin-top: 24px; margin: 1.8em 0 .55em; font: 600 1.35rem/1.25 var(--atlas-serif); }
.entry-content blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--atlas-accent); color: #4c5752; font-size: 1.1rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--atlas-sans); font-size: .9rem; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--atlas-line); text-align: left; }
.entry-content th { background: var(--atlas-canvas); }
.featured-note { margin-bottom: 30px; padding: 22px 24px; border-left: 4px solid var(--atlas-accent); background: var(--atlas-highlight); }
.featured-note > :first-child { margin-top: 0; }
.featured-note > :last-child { margin-bottom: 0; }
.infobox { overflow: hidden; border: 1px solid #b9bdb8; background: #fafaf6; font: .86rem/1.45 var(--atlas-sans); }
.infobox h2 { margin: 0; padding: 14px 16px; color: #fff; background: var(--atlas-accent-dark); font: 600 1.1rem/1.25 var(--atlas-serif); text-align: center; }
.infobox-image { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.infobox-summary { margin: 0; padding: 16px; border-bottom: 1px solid var(--atlas-line); }
.infobox dl { display: grid; grid-template-columns: 42% 58%; margin: 0; }
.infobox dt, .infobox dd { margin: 0; padding: 9px 11px; border-bottom: 1px solid var(--atlas-line); }
.infobox dt { font-weight: 700; background: #eeeee8; }
.infobox-source { display: block; padding: 13px 16px; }
.entry-footer { max-width: 760px; margin: 44px 0 0 256px; padding-top: 22px; border-top: 1px solid var(--atlas-line); font: .9rem/1.6 var(--atlas-sans); }
.term-list + .term-list { margin-top: 6px; }
.related-articles { margin-top: 72px; padding-top: 38px; border-top: 1px solid var(--atlas-line); }
.related-articles > h2 { margin-bottom: 26px; }
.page-article { max-width: 900px; margin: 0 auto; }

.search-results-list { max-width: 900px; }
.search-result { padding: 26px 0; border-bottom: 1px solid var(--atlas-line); }
.search-result h2 { margin: 5px 0 7px; font: 600 1.55rem/1.25 var(--atlas-serif); }
.search-result h2 a { color: var(--atlas-ink); }
.search-result p:last-child { margin: 0; color: var(--atlas-muted); }
.no-results { max-width: 680px; padding: 34px; border: 1px solid var(--atlas-line); background: var(--atlas-canvas); }
.error-page { min-height: 65vh; display: grid; place-items: center; padding: 70px 20px; text-align: center; background: var(--atlas-canvas); }
.error-inner { max-width: 680px; }
.error-code { margin: 0; color: var(--atlas-accent); font: 700 clamp(5rem, 18vw, 10rem)/.8 var(--atlas-sans); opacity: .14; }
.error-page h1 { margin: 12px 0; font: 600 clamp(2rem, 5vw, 3.5rem)/1.1 var(--atlas-serif); }
.error-page .search-form { margin: 28px auto 20px; }
.comments-area { max-width: 760px; margin: 60px auto 0; padding-top: 30px; border-top: 1px solid var(--atlas-line); }
.comment-list { padding-left: 24px; }
.comment-body { margin-bottom: 24px; }

.site-footer { border-top: 1px solid var(--atlas-line); background: #26332f; color: #e8ece9; }
.footer-inner { min-height: 210px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px 50px; padding-block: 40px; font: .9rem/1.5 var(--atlas-sans); }
.footer-inner p { margin: 5px 0 0; color: #bfc8c4; }
.footer-inner ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-inner a { color: #fff; }
.copyright { grid-column: 1 / -1; }

.alignwide { width: min(1100px, 100vw - 40px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

@media (max-width: 1180px) {
  .article-layout { grid-template-columns: 190px minmax(0, 1fr) 270px; gap: 26px; }
  .entry-footer { margin-left: 216px; }
}

@media (max-width: 960px) {
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .infobox-column { position: static; grid-column: 2; grid-row: 1; margin-bottom: 28px; }
  .entry-content { grid-column: 2; }
  .entry-footer { margin-left: 216px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .section-shell, .header-inner, .footer-inner { width: min(100% - 28px, 1440px); }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
  .site-description { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { display: none; flex-basis: 100%; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; padding: 8px 0; }
  .primary-navigation a { display: block; padding: 10px 0; }
  .wiki-access-link { margin-left: auto; }
  .header-search { order: 5; flex: 1 0 100%; min-width: 0; max-width: none; margin-left: 0; padding-top: 6px; }
  .search-submit { min-width: 82px; padding-inline: 12px; }
  .hero-inner { padding: 64px 0 68px; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.6rem); }
  .topic-section, .latest-section { padding-top: 52px; padding-bottom: 58px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .site-sidebar { margin-top: 20px; }
  .article-layout { display: flex; flex-direction: column; }
  .article-rail, .infobox-column { position: static; width: 100%; }
  .article-rail { order: 2; }
  .infobox-column { order: 1; }
  .entry-content { order: 3; }
  .entry-footer { margin-left: 0; }
  .table-of-contents { border: 1px solid var(--atlas-line); padding: 16px; background: var(--atlas-canvas); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner ul { flex-wrap: wrap; }
  .copyright { grid-column: auto; }
}

@media (max-width: 520px) {
  .topic-grid, .card-grid, .content-with-sidebar .card-grid { grid-template-columns: 1fr; }
  .entry-header { margin-top: 30px; }
  .search-field { padding-inline: 11px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Modern knowledge interface. */
.modern-hero { border-bottom: 1px solid #e8eef8; background: radial-gradient(circle at 50% 0%, #eff6ff 0, #f8fbff 38%, #fff 74%); }
.modern-hero .hero-inner { max-width: 920px; padding: 86px 0 92px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; padding: 7px 12px; border: 1px solid #dbeafe; border-radius: 999px; color: var(--atlas-accent); background: rgba(255, 255, 255, .8); font: 700 .78rem/1.2 var(--atlas-sans); letter-spacing: .03em; }
.modern-hero h1 { max-width: 820px; font-weight: 800; font-size: clamp(2.6rem, 6.5vw, 5.2rem); letter-spacing: -.055em; }
.modern-hero p:not(.eyebrow) { max-width: 690px; color: #64748b; font-size: 1.12rem; line-height: 1.7; }
.modern-hero .hero-search { margin-top: 32px; }
.modern-hero .search-form { max-width: 740px; border-radius: 15px; box-shadow: 0 16px 40px rgba(37, 99, 235, .12); }
.modern-hero .search-field { height: 60px; border-color: #dbe3ef; }
.modern-hero .search-submit { min-width: 112px; }
.hero-actions { display: flex; justify-content: center; gap: 24px; margin-top: 22px; font: 600 .9rem/1.2 var(--atlas-sans); }
.hero-actions a { text-decoration: none; }
.hero-actions a:last-child { color: var(--atlas-muted); }

.front-dashboard { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(310px, .8fr); align-items: start; gap: clamp(34px, 5vw, 76px); padding-top: 76px; padding-bottom: 90px; }
.modern-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.heading-with-icon { display: flex; align-items: center; gap: 11px; }
.heading-with-icon h2, .modern-side-panel h2 { margin: 0; color: var(--atlas-ink); font: 800 clamp(1.55rem, 2.6vw, 2.15rem)/1.15 var(--atlas-serif); letter-spacing: -.035em; }
.heading-icon { color: var(--atlas-accent); font: 800 1.75rem/1 var(--atlas-sans); transform: rotate(-4deg); }
.modern-section-heading > a { flex: none; font: 600 .92rem/1.2 var(--atlas-sans); text-decoration: none; }
.modern-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.modern-article-card { min-width: 0; max-width: 100%; min-height: 300px; display: flex; flex-direction: column; overflow: hidden; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--atlas-line); border-radius: 18px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.modern-article-card:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: var(--atlas-shadow); }
.modern-topic-chip { max-width: 100%; align-self: flex-start; overflow-wrap: anywhere; padding: 6px 12px; border-radius: 999px; color: var(--topic-color); background: var(--topic-bg); font: 600 .8rem/1.2 var(--atlas-sans); text-decoration: none; }
.modern-topic-chip:hover { color: var(--topic-color); filter: saturate(1.2); }
.modern-article-card h3 { min-width: 0; margin: 26px 0 14px; overflow-wrap: anywhere; word-break: break-word; font: 800 clamp(1.35rem, 2vw, 1.75rem)/1.25 var(--atlas-serif); letter-spacing: -.025em; }
.modern-article-card h3 a { color: var(--atlas-ink); text-decoration: none; }
.modern-article-card p { display: -webkit-box; margin: 0 0 28px; overflow: hidden; overflow-wrap: anywhere; word-break: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 3; color: #5f6b7a; font-size: .98rem; line-height: 1.65; }
.modern-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; color: #9aa4b2; font-size: .82rem; }
.modern-card-meta span { color: var(--atlas-accent); font-size: 1.2rem; opacity: 0; transform: translateX(-5px); transition: opacity .2s ease, transform .2s ease; }
.modern-article-card:hover .modern-card-meta span { opacity: 1; transform: none; }
.related-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-articles .modern-article-card { min-height: 270px; }
.topic-color-1 { --topic-color: #7c3aed; --topic-bg: #f3e8ff; }
.topic-color-2 { --topic-color: #db2777; --topic-bg: #fce7f3; }
.topic-color-3 { --topic-color: #0891b2; --topic-bg: #e6f7fb; }
.topic-color-4 { --topic-color: #c25a0a; --topic-bg: #fff2e8; }
.topic-color-5 { --topic-color: #059669; --topic-bg: #e8f7f1; }
.front-info-column { position: sticky; top: 124px; display: grid; gap: 28px; }
.modern-side-panel { overflow: hidden; border: 1px solid var(--atlas-line); border-radius: 18px; background: #fff; }
.modern-side-panel > header { min-height: 74px; display: flex; align-items: center; gap: 10px; padding: 20px 24px; border-bottom: 1px solid var(--atlas-line); background: #fbfcfe; }
.modern-side-panel h2 { font-size: 1.35rem; }
.category-list > a, .recent-list > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; min-height: 88px; padding: 16px 22px; border-bottom: 1px solid #eef0f3; color: var(--atlas-ink); text-decoration: none; transition: background .18s ease; }
.category-list > a:last-child, .recent-list > a:last-child { border-bottom: 0; }
.category-list > a:hover, .recent-list > a:hover { background: #f8fafc; }
.category-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--topic-color); box-shadow: 0 0 0 5px var(--topic-bg); }
.category-list strong, .recent-list strong { display: block; font-size: .96rem; line-height: 1.35; }
.category-list small, .recent-list time { display: block; margin-top: 3px; color: #8a94a3; font-size: .78rem; line-height: 1.4; }
.category-arrow, .recent-list > a > span:last-child { color: #b4bdc9; font-size: 1.3rem; }
.panel-icon { color: #718096; font-size: 1.45rem; }
.recent-list > a { min-height: 76px; grid-template-columns: minmax(0, 1fr) auto; }
.panel-empty { margin: 0; padding: 24px; color: var(--atlas-muted); font-size: .9rem; }
.front-collaboration { border-top: 1px solid #dbeafe; background: linear-gradient(120deg, #eff6ff, #f8fbff); }
.collaboration-inner { min-height: 270px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 52px; }
.collaboration-inner h2 { max-width: 700px; margin: 14px 0 10px; font: 800 clamp(2rem, 4vw, 3.2rem)/1.15 var(--atlas-serif); letter-spacing: -.045em; }
.collaboration-inner p { margin: 0; color: var(--atlas-muted); }
.collaboration-inner .button { gap: 10px; flex: none; }

.article-card, .widget, .no-results { border-radius: 16px; }
.article-card { transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--atlas-shadow); }
.card-topic { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--atlas-highlight); letter-spacing: 0; text-transform: none; text-decoration: none; }
.archive-header h1, .entry-header h1 { font-weight: 800; letter-spacing: -.045em; }
.table-of-contents { padding: 18px; border: 1px solid var(--atlas-line); border-radius: 14px; background: #fbfcfe; }
.infobox { border-color: var(--atlas-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(15, 23, 42, .06); }
.infobox h2 { padding: 17px 18px; background: #172554; font-weight: 800; }
.infobox dt { background: #f8fafc; }
.featured-note { border: 1px solid #bfdbfe; border-left: 4px solid var(--atlas-accent); border-radius: 10px; background: #eff6ff; }
.entry-content { color: #374151; }
.entry-content h2, .entry-content h3 { color: var(--atlas-ink); font-weight: 800; letter-spacing: -.025em; }
.site-footer { background: #0f172a; color: #f8fafc; }
.footer-inner p { color: #94a3b8; }

@media (max-width: 1080px) {
  .front-dashboard { grid-template-columns: 1fr; }
  .front-info-column { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .modern-hero .hero-inner { padding: 62px 0 68px; }
  .modern-hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .front-dashboard { padding-top: 56px; padding-bottom: 64px; }
  .modern-card-grid, .front-info-column, .related-card-grid { grid-template-columns: 1fr; }
  .modern-section-heading { align-items: flex-start; }
  .modern-article-card { min-height: 260px; }
  .collaboration-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions { align-items: center; flex-direction: column; gap: 13px; }
  .modern-section-heading { flex-direction: column; }
  .modern-side-panel > header { min-height: 66px; }
}
