/* =========================================================================
   cms studio Default Model Theme - Design Tokens, Layout & WYSIWYG Prose
   ========================================================================= */

:root {
  --theme-primary: #2563eb;
  --theme-primary-hover: #1d4ed8;
  --theme-primary-light: #eff6ff;
  --theme-bg: #f5f5f7;
  --theme-surface: #ffffff;
  --theme-text-main: #0f172a;
  --theme-text-body: #334155;
  --theme-text-muted: #64748b;
  --theme-border: #e2e8f0;
  --theme-radius-sm: 6px;
  --theme-radius-card: 12px;
  --theme-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --theme-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --theme-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
  --theme-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --theme-container-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--theme-font-sans);
  background-color: var(--theme-bg);
  color: var(--theme-text-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--theme-primary-hover);
}

.container {
  max-width: var(--theme-container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* =========================================================================
   Sticky Frosted Header & Responsive Navigation
   ========================================================================= */
header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--theme-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.nav-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 60px;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--theme-text-main);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 0.6rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.site-logo {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.site-title-text {
  line-height: 1.2;
}

.mobile-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-surface);
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--theme-text-main);
  border-radius: 2px;
}

.nav-links {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-menu-items {
  display: flex;
  align-items: flex-start;
  row-gap: 0.4rem;
  column-gap: 1.25rem;
  flex-wrap: wrap;
}

.nav-utilities {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--theme-text-body);
}

.nav-item-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-item-link.is-active {
  color: var(--theme-primary);
}

.nav-item-link.is-active {
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  box-shadow: var(--theme-shadow-md);
  padding: 0.35rem 0;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-menu a {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  color: var(--theme-text-body);
}

.nav-dropdown-menu a:hover {
  background: var(--theme-primary-light);
  color: var(--theme-primary);
}

.nav-search-form {
  display: inline-flex;
}

.nav-search-input {
  height: 36px;
  box-sizing: border-box;
  padding: 0 0.65rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  font-size: 0.85rem;
  outline: none;
  background: var(--theme-surface);
  color: var(--theme-text-main);
}

.nav-search-input:focus {
  border-color: var(--theme-primary);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 36px;
  box-sizing: border-box;
  padding-left: 0.6rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-surface);
  color: var(--theme-text-muted);
  transition: border-color 0.15s ease;
}

.lang-switch:focus-within {
  border-color: var(--theme-primary);
}

.lang-switch-icon {
  flex-shrink: 0;
  color: var(--theme-text-muted);
  pointer-events: none;
}

.lang-switch select {
  height: 100%;
  box-sizing: border-box;
  padding: 0 0.55rem 0 0;
  border: none;
  background: transparent;
  color: var(--theme-text-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-nav-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .nav-wrap {
    gap: 0.5rem;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 0.5rem;
    border-top: 1px solid var(--theme-border);
    gap: 0.85rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-menu-items,
  .nav-utilities {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    gap: 0.65rem;
  }

  .nav-dropdown-menu {
    position: static;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border: none;
    padding-left: 0.85rem;
    background: transparent;
  }

  .nav-search-form,
  .nav-search-input {
    width: 100%;
  }
}

/* =========================================================================
   Main Layout, Hero Showcase & Cards
   ========================================================================= */
main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

.layout-grid.with-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .layout-grid.with-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.card {
  background-color: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-card);
  box-shadow: var(--theme-shadow-sm);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.hero-showcase {
  padding: 2.75rem 2.25rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--theme-primary-light) 100%);
  border: 1px solid var(--theme-border);
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-primary);
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--theme-text-main);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--theme-text-body);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-primary);
  color: #ffffff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--theme-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--theme-primary-hover);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: var(--theme-text-main);
  border: 1px solid var(--theme-border);
  padding: 0.65rem 1.35rem;
  border-radius: var(--theme-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.section-heading-row {
  margin-bottom: 1.15rem;
}

.section-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--theme-text-main);
}

.section-subheading {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--theme-text-muted);
}

.article-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--theme-shadow-md);
}

.post-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--theme-text-main);
}

.post-title a {
  color: var(--theme-text-main);
}

.post-title a:hover {
  color: var(--theme-primary);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  margin-bottom: 0.85rem;
}

.meta-divider {
  margin: 0 0.4rem;
  color: var(--theme-border);
}

.post-excerpt {
  color: var(--theme-text-body);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.read-more-link {
  font-weight: 600;
  font-size: 0.9rem;
}

.hreflang-bar {
  background: var(--theme-primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--theme-radius-sm);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.toc-box {
  background: #f8fafc;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.toc-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-box li {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

/* =========================================================================
   WYSIWYG Prose Typography (Shared 1:1 with Post/Page Editor Iframe)
   ========================================================================= */
.prose {
  color: var(--theme-text-body);
  font-size: 1.025rem;
  line-height: 1.8;
  word-wrap: break-word;
}

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

.prose > *:last-child {
  margin-bottom: 0;
}

.prose p {
  margin: 0.85em 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--theme-text-main);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  scroll-margin-top: 5rem;
}

.prose h1 {
  font-size: 2rem;
  margin: 1.5em 0 0.65em;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 1.45em 0 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--theme-border);
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.25em 0 0.5em;
}

.prose h4 {
  font-size: 1.08rem;
  margin: 1.1em 0 0.45em;
}

.prose a {
  color: var(--theme-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong,
.prose b {
  color: var(--theme-text-main);
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin: 0.9em 0;
  padding-left: 1.65em;
}

.prose ul {
  list-style-type: disc;
}

.prose ul ul {
  list-style-type: circle;
  margin: 0.3em 0;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin: 0.35em 0;
}

.prose blockquote {
  margin: 1.25em 0;
  padding: 0.85rem 1.25rem;
  border-left: 4px solid var(--theme-primary);
  background-color: var(--theme-primary-light);
  border-radius: 0 var(--theme-radius-sm) var(--theme-radius-sm) 0;
  color: #1e293b;
}

.prose blockquote p {
  margin: 0.35em 0;
}

.prose code {
  font-family: var(--theme-font-mono);
  font-size: 0.88em;
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.prose pre {
  margin: 1.25em 0;
  padding: 1rem 1.2rem;
  background-color: #0f172a;
  color: #e2e8f0;
  border-radius: var(--theme-radius-sm);
  overflow-x: auto;
  line-height: 1.6;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.88rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--theme-border);
  margin: 2em 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--theme-radius-sm);
  display: block;
  margin: 1.15em auto;
}

.prose figure {
  margin: 1.35em 0;
  text-align: center;
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--theme-text-muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.35em 0;
  font-size: 0.92rem;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  .prose table {
    display: table;
  }
}

.prose th,
.prose td {
  border: 1px solid var(--theme-border);
  padding: 0.6rem 0.85rem;
  text-align: left;
}

.prose th {
  background-color: #f8fafc;
  color: var(--theme-text-main);
  font-weight: 600;
}

.prose .alert {
  padding: 0.95rem 1.15rem;
  background: var(--theme-primary-light);
  border-left: 4px solid var(--theme-primary);
  border-radius: 0 var(--theme-radius-sm) var(--theme-radius-sm) 0;
  color: #1e3a8a;
  margin: 1.15em 0;
}

.prose .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  background-color: var(--theme-primary);
  color: #ffffff;
  border-radius: var(--theme-radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.prose .btn:hover {
  background-color: var(--theme-primary-hover);
  color: #ffffff;
}

/* =========================================================================
   Sidebar, Tag Cloud, Post Nav, Related Posts, Downloads & Subpages
   ========================================================================= */
.sidebar-heading {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--theme-text-main);
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-list li {
  margin: 0.45rem 0;
}

.sidebar-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--theme-text-body);
}

.sidebar-cat-link.is-active {
  color: var(--theme-primary);
  font-weight: 700;
}

.sidebar-recent-link {
  font-size: 0.88rem;
  color: var(--theme-text-body);
  display: block;
  line-height: 1.45;
}

.sidebar-recent-link:hover {
  color: var(--theme-primary);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-pill {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: var(--theme-text-body);
  border: 1px solid var(--theme-border);
  transition: all 0.15s ease;
}

.tag-pill:hover {
  background-color: var(--theme-primary-light);
  color: var(--theme-primary);
  border-color: var(--theme-primary);
}

.post-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--theme-border);
}

@media (min-width: 640px) {
  .post-nav-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background-color: #f8fafc;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.post-nav-card:hover {
  border-color: var(--theme-primary);
  background-color: var(--theme-primary-light);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.78rem;
  color: var(--theme-text-muted);
}

.post-nav-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--theme-text-main);
}

.related-posts-section {
  margin-top: 1.5rem;
}

.related-posts-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-text-main);
  margin: 0 0 0.85rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .related-posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 1rem 1.15rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.related-post-card:hover {
  border-color: var(--theme-primary);
  transform: translateY(-2px);
}

.related-post-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--theme-text-main);
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.related-post-meta {
  font-size: 0.78rem;
  color: var(--theme-text-muted);
}

.downloads-showcase {
  margin-top: 2rem;
}

.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .downloads-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.download-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.download-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.download-ext-badge {
  background: var(--theme-primary-light);
  color: var(--theme-primary);
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.download-size {
  color: var(--theme-text-muted);
  font-family: var(--theme-font-mono);
}

.download-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-text-main);
  word-break: break-word;
}

.download-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--theme-text-muted);
}

.download-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--theme-border);
}

.download-count {
  font-size: 0.78rem;
  color: var(--theme-text-muted);
}

.subpages-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--theme-border);
}

.subpages-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-text-main);
}

.subpages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.subpage-pill {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--theme-text-main);
}

.subpage-pill:hover {
  border-color: var(--theme-primary);
  background: var(--theme-primary-light);
  color: var(--theme-primary);
}

/* =========================================================================
   Category, Search, Page, Full-Width Page & 404 Page Styles
   ========================================================================= */
.breadcrumb-nav {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--theme-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb-sep {
  color: var(--theme-border);
}

.breadcrumb-current {
  color: var(--theme-text-main);
  font-weight: 600;
}

.category-header-card {
  margin-bottom: 1.5rem;
  padding: 1.65rem 1.75rem;
  border-left: 4px solid var(--theme-primary);
}

.category-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--theme-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background-color: var(--theme-primary-light);
  color: var(--theme-primary);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-desc {
  color: var(--theme-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0.75rem 0 0;
}

.search-header-card {
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--theme-primary);
}

.search-title {
  font-size: 1.4rem;
  margin: 0 0 0.35rem;
  color: var(--theme-text-main);
}

.search-keyword {
  color: var(--theme-primary);
}

.search-summary {
  color: var(--theme-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.empty-state-card {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--theme-text-muted);
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-text-main);
  margin: 0 0 0.5rem;
}

.empty-state-desc {
  font-size: 0.9rem;
  color: var(--theme-text-muted);
  margin: 0 0 1.25rem;
}

.page-card {
  padding: 2.25rem 2rem;
}

.page-full-width {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.not-found-wrapper {
  max-width: 600px;
  margin: 3.5rem auto;
  text-align: center;
  padding: 1rem;
}

.not-found-card {
  padding: 3rem 2rem;
  box-shadow: var(--theme-shadow-md);
}

.not-found-code {
  font-size: 4.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--theme-primary);
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.not-found-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--theme-text-main);
  margin: 0 0 0.75rem;
}

.not-found-desc {
  font-size: 0.92rem;
  color: var(--theme-text-muted);
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.not-found-countdown {
  display: inline-block;
  background: #f1f5f9;
  color: var(--theme-text-body);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}

/* =========================================================================
   Multi-column Footer
   ========================================================================= */
footer,
.site-footer {
  background-color: var(--theme-surface);
  border-top: 1px solid var(--theme-border);
  padding: 2.5rem 0 1.75rem;
  color: var(--theme-text-muted);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--theme-border);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--theme-text-main);
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  margin: 0;
  max-width: 420px;
  color: var(--theme-text-muted);
  line-height: 1.65;
}

.footer-col-title {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-text-main);
}

.footer-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col-list a {
  color: var(--theme-text-muted);
}

.footer-col-list a:hover {
  color: var(--theme-primary);
}

.footer-muted {
  color: var(--theme-text-muted);
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-copy,
.icp-meta {
  margin: 0;
}

@media (max-width: 640px) {
  .card,
  .page-card {
    padding: 1.25rem 1.1rem;
  }

  .category-header-card {
    padding: 1.25rem 1.15rem;
  }

  .hero-showcase {
    padding: 1.75rem 1.25rem;
  }
}
