
:root {
  --accent: #4ccba0;
  --ink: #182037;
  --muted: #6e7688;
  --canvas: #f4f6f8;
  --card: #fff;
  --border: #e7e9ee;
  --card-radius: 1rem;
  --card-shadow: 0 5px 18px rgb(14 23 49 / 4%);
}
html[data-theme="dark"] {
  --ink: #e8ecf4;
  --muted: #a7afc1;
  --canvas: #0f172a;
  --card: #172036;
  --border: #26324a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}
body.body-font-humanist { font-family: "Trebuchet MS", "Segoe UI", ui-sans-serif, system-ui, sans-serif; }
body.body-font-serif { font-family: ui-serif, Georgia, "Times New Roman", serif; }
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 4rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(12px);
}
.site-header-static { position: relative; }
.header-inner {
  display: flex;
  max-width: 75rem;
  height: 100%;
  margin: auto;
  align-items: center;
  gap: 2rem;
  padding: 0 1.2rem;
}
.site-brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.site-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-image { display: block; width: auto; max-width: 11rem; height: 2.35rem; object-fit: contain; }
.brand-symbol {
  display: grid;
  flex: 0 0 auto;
  min-width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .55rem;
  background: #0e1731;
  color: var(--accent);
  font-weight: 800;
  padding: 0 .4rem;
}
.main-nav { display: flex; align-items: center; gap: 1.4rem; font-size: .9rem; }
.main-nav a:hover, .menu-children summary:hover { color: var(--accent); }
.menu-children { position: relative; }
.menu-children summary { cursor: pointer; list-style: none; }
.menu-children > div {
  position: absolute;
  top: 100%;
  display: flex;
  min-width: 10rem;
  flex-direction: column;
  gap: .25rem;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: var(--card);
  box-shadow: var(--card-shadow);
  padding: .55rem;
}
.menu-children > div a { padding: .3rem .45rem; }
.header-actions { display: flex; margin-left: auto; align-items: center; gap: .6rem; }
.icon-action, .locale-picker summary {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
}
.mobile-nav { position: relative; display: none; }
.mobile-nav > summary { list-style: none; }
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav > nav {
  position: absolute;
  top: calc(100% + .8rem);
  right: 0;
  display: grid;
  width: min(18rem, calc(100vw - 2rem));
  max-height: calc(100vh - 5.5rem);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--card);
  box-shadow: var(--card-shadow);
  padding: .65rem;
  gap: .2rem;
}
.mobile-nav > nav > a, .mobile-nav .menu-children > summary, .mobile-nav .menu-children a { display: block; padding: .55rem .65rem; }
.mobile-nav .menu-children > div { position: static; border: 0; background: transparent; box-shadow: none; padding: 0 0 0 .7rem; }
.locale-picker { position: relative; }
.locale-picker div {
  position: absolute;
  right: 0;
  display: flex;
  min-width: 8rem;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--card);
  box-shadow: var(--card-shadow);
  padding: .45rem;
}
.locale-picker div a { padding: .35rem .5rem; }
.hero {
  display: grid;
  min-height: 22rem;
  place-items: center;
  background: radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 35%), linear-gradient(145deg, #0e1731, #202d52);
  padding: 3rem 1.2rem;
  text-align: center;
  color: #fff;
}
.hero-compact { min-height: 15rem; }
.hero-standard { min-height: 22rem; }
.hero-tall { min-height: min(34rem, 70vh); }
.hero-kicker { color: var(--accent); font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: .4rem 0; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.05; }
.hero p { max-width: 40rem; margin: .8rem auto; color: #d8deeb; }
.hero-latest { display: grid; width: min(66rem, 100%); align-items: center; grid-template-columns: minmax(15rem, 1fr) minmax(0, 1.25fr); gap: clamp(1.2rem, 4vw, 3rem); text-align: left; }
.hero-latest img { width: 100%; max-height: 22rem; border-radius: var(--card-radius); box-shadow: 0 20px 55px rgb(0 0 0 / 30%); object-fit: cover; }
.hero-latest p { margin-left: 0; }
.hero-post-grid { display: grid; width: min(72rem, 100%); grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.hero-post-grid a { display: flex; min-height: 10rem; align-items: flex-end; grid-column: span 2; border: 1px solid rgb(255 255 255 / 20%); border-radius: var(--card-radius); background: rgb(255 255 255 / 9%) center / cover; box-shadow: 0 10px 30px rgb(0 0 0 / 20%); padding: 1rem; text-align: left; }
.hero-post-grid a:first-child, .hero-post-grid a:nth-child(2) { grid-column: span 3; }
.hero-post-grid strong { text-shadow: 0 1px 5px rgb(0 0 0 / 55%); }
.taxonomy-hero { min-height: 13rem; }
.earth-layout {
  display: grid;
  max-width: 75rem;
  margin: 2rem auto;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.5rem;
  padding: 0 1.2rem;
}
.earth-layout.sidebar-left { grid-template-columns: 18rem minmax(0, 1fr); }
.earth-layout.sidebar-left > .post-grid, .earth-layout.sidebar-left > .article-shell, .earth-layout.sidebar-left > .list-content { order: 2; }
.earth-layout.sidebar-left > .sidebar-card { order: 1; }
.earth-layout-no-sidebar { grid-template-columns: minmax(0, 1fr); }
.list-content { display: grid; min-width: 0; align-content: start; gap: 1.2rem; }
.list-heading { display: flex; align-items: center; gap: 1rem; border-radius: var(--card-radius); background: var(--card); box-shadow: var(--card-shadow); padding: 1.1rem 1.25rem; }
.list-heading h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.list-heading p { margin: .35rem 0 0; color: var(--muted); }
.taxonomy-heading > img { width: 5rem; height: 5rem; flex: 0 0 auto; border-radius: min(var(--card-radius), .8rem); object-fit: cover; }
.taxonomy-filter { min-width: 0; }
.taxonomy-filter > ul { display: flex; min-width: 0; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.taxonomy-filter li { list-style: none; }
.taxonomy-filter li > div { display: flex; align-items: stretch; }
.taxonomy-filter a { display: inline-flex; min-height: 2.25rem; align-items: center; gap: .25rem; border-radius: .5rem; color: var(--muted); padding: .4rem .75rem; font-weight: 650; }
.taxonomy-filter a:hover, .taxonomy-filter a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 13%, var(--card)); color: var(--ink); box-shadow: 0 2px 8px rgb(14 23 49 / 6%); }
.taxonomy-filter details { position: relative; }
.taxonomy-filter summary { display: grid; min-width: 2rem; height: 100%; place-items: center; border-radius: .45rem; color: var(--muted); cursor: pointer; list-style: none; }
.taxonomy-filter summary::-webkit-details-marker { display: none; }
.taxonomy-filter summary:hover, .taxonomy-filter details[open] > summary { background: color-mix(in srgb, var(--accent) 13%, var(--card)); color: var(--ink); }
.taxonomy-filter details > ul { position: absolute; top: calc(100% + .35rem); left: 0; z-index: 12; display: grid; width: max-content; min-width: 12rem; max-width: min(22rem, calc(100vw - 2rem)); gap: .25rem; margin: 0; border: 1px solid var(--border); border-radius: .65rem; background: var(--card); box-shadow: 0 14px 35px rgb(14 23 49 / 16%); padding: .45rem; }
.taxonomy-filter details > ul .taxonomy-filter-branch details > ul { top: 0; left: calc(100% + .35rem); }
.taxonomy-filter-tags { display: flex; flex-wrap: wrap; gap: .45rem; border-radius: var(--card-radius); background: var(--card); box-shadow: var(--card-shadow); padding: .8rem; }
.taxonomy-filter-tags a { border: 1px solid var(--border); border-radius: 999px; }
.taxonomy-filter sup { color: var(--muted); font-size: .62rem; }
.empty-list { margin: 1.5rem 0; color: var(--muted); text-align: center; }
.more-posts { display: inline-flex; margin-left: auto; align-items: center; gap: .4rem; color: var(--muted); font-size: .86rem; }
.more-posts:hover { color: var(--ink); }
.post-grid { display: grid; gap: 1.2rem; }
.post-grid-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-grid-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-grid-single { grid-template-columns: minmax(0, 1fr); }
.post-card, .sidebar-card, .article-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.cards-borderless .post-card, .cards-borderless .sidebar-card, .cards-borderless .article-card { border-color: transparent; }
.post-card { transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgb(14 23 49 / 9%); }
.post-cover { display: block; overflow: hidden; }
.post-cover-wide { aspect-ratio: 21 / 9; }
.post-cover-landscape { aspect-ratio: 16 / 9; }
.post-cover-square { aspect-ratio: 1; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-cover img { transform: scale(1.03); }
.post-card-body { padding: 1.2rem; }
.post-taxonomy { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; color: var(--accent); font-size: .72rem; font-weight: 650; }
.post-card .post-taxonomy { justify-content: flex-start; }
.post-card h2 { margin: .5rem 0; font-size: 1.3rem; line-height: 1.35; }
.post-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: .5rem 0;
  color: var(--muted);
  font-size: .9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.post-meta { display: flex; justify-content: space-between; margin-top: 1rem; color: var(--muted); font-size: .75rem; }
.sidebar-card { align-self: start; padding: 1.2rem; }
.sidebar-card section + section { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.sidebar-card h3 { margin: .3rem 0; }
.sidebar-card p { color: var(--muted); font-size: .85rem; }
.sidebar-card a { display: block; padding: .25rem 0; color: var(--muted); }
.sidebar-sticky { position: sticky; top: 5.25rem; }
.table-of-contents h3 { display: flex; align-items: center; gap: .4rem; }
.table-of-contents h3::before { content: "☷"; color: var(--accent); }
.table-of-contents ol { display: grid; gap: .18rem; max-height: 16rem; margin: .65rem 0 0; overflow: auto; padding: 0; list-style: none; }
.table-of-contents li { min-width: 0; }
.table-of-contents li.toc-level-2 { padding-left: .7rem; }
.table-of-contents li.toc-level-3 { padding-left: 1.4rem; }
.table-of-contents li.toc-level-4 { padding-left: 2.1rem; }
.table-of-contents a { overflow: hidden; border-radius: .45rem; color: var(--muted); font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.table-of-contents a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
.sidebar-profile-plain { border-color: transparent; background: transparent; box-shadow: none; }
.sidebar-profile > img { display: block; width: 4rem; height: 4rem; margin-bottom: .7rem; border-radius: 50%; object-fit: cover; }
.profile-stats { display: grid; margin: .85rem 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
.profile-stats > div { min-width: 0; text-align: center; }
.profile-stats dt { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-stats dd { margin: .1rem 0 0; color: var(--ink); font-size: .9rem; font-variant-numeric: tabular-nums; font-weight: 750; }
.sidebar-post-list > div { display: grid; }
.sidebar-post-list a { display: flex; min-width: 0; justify-content: space-between; gap: .65rem; }
.sidebar-post-list a > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-post-list a > small { flex: 0 0 auto; color: var(--muted); font-size: .68rem; font-variant-numeric: tabular-nums; }
.statistics-loading, .statistics-unavailable { color: var(--muted); font-size: .8rem; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.sidebar-tags a { display: inline-flex; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .18rem .5rem; }
.pagination { display: grid; min-width: 0; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; }
.pagination > a, .pagination > span, .pagination-pages > a, .pagination-pages > strong { display: inline-flex; min-width: 2.25rem; min-height: 2.25rem; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: .5rem; background: var(--card); color: var(--ink); padding: .35rem .65rem; font-size: .82rem; }
.pagination > span[aria-disabled="true"] { color: var(--muted); opacity: .55; }
.pagination-pages { display: flex; min-width: 0; justify-content: center; gap: .35rem; overflow-x: auto; padding: .15rem; }
.pagination-pages > strong { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent); }
.article-shell { max-width: 62rem; margin: 2rem auto; padding: 0 1.2rem; }
.earth-layout > .article-shell { width: 100%; margin: 0; padding: 0; }
.earth-layout-no-sidebar > .article-shell { margin-inline: auto; }
.article-width-narrow { max-width: 49rem; }
.article-width-standard { max-width: 62rem; }
.article-width-wide { max-width: 76rem; }
.article-card { padding: clamp(1.2rem, 5vw, 3.5rem); }
.article-card > header { text-align: center; }
.article-card h1 { margin: .7rem 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; }
.article-card header p, .article-card time { color: var(--muted); }
.article-cover { width: 100%; margin: 2rem 0; border-radius: min(var(--card-radius), .8rem); }
.content-cover { display: grid; place-items: center; background-position: center; background-size: cover; color: #fff; padding: 2rem 1.2rem; text-align: center; }
.content-cover-compact { min-height: 16rem; }
.content-cover-standard { min-height: 24rem; }
.content-cover-tall { min-height: min(34rem, 72vh); }
.content-cover header { width: min(58rem, 100%); text-shadow: 0 2px 14px rgb(0 0 0 / 55%); }
.content-cover h1 { margin: .6rem 0; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.12; }
.content-cover p { max-width: 42rem; margin: .6rem auto; }
.content-cover .post-taxonomy { color: #fff; }
.markdown-body { min-width: 0; font-size: 1.03rem; }
.markdown-font-serif { font-family: ui-serif, Georgia, "Times New Roman", serif; }
.markdown-font-sans { font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
.markdown-body a { color: color-mix(in srgb, var(--accent) 82%, var(--ink)); text-decoration: underline; text-underline-offset: .16em; }
.markdown-body img { max-width: 100%; height: auto; border-radius: .6rem; }
.markdown-body pre { overflow: auto; border-radius: .6rem; background: #0e1731; color: #e9eef8; padding: 1rem; }
.markdown-body :not(pre) > code { border-radius: .3rem; background: color-mix(in srgb, var(--accent) 12%, var(--card)); padding: .12em .32em; }
.markdown-body blockquote { margin-left: 0; border-left: 4px solid var(--accent); padding-left: 1rem; color: var(--muted); }
.markdown-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: .45rem .65rem; }
.markdown-body hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { scroll-margin-top: 5.5rem; }
.markdown-style-typography, .markdown-style-tailwind { font-size: 1.08rem; line-height: 1.82; }
.markdown-style-typography h2, .markdown-style-typography h3, .markdown-style-tailwind h2, .markdown-style-tailwind h3 { margin-top: 2.2em; letter-spacing: -.02em; }
.post-cursor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-top: 2.4rem; border-top: 1px solid var(--border); padding-top: 1.35rem; }
.post-cursor > a { display: flex; min-width: 0; align-items: center; gap: .65rem; color: var(--muted); }
.post-cursor > a:hover { color: var(--accent); }
.post-cursor > a > span:first-child, .post-cursor-next > span:last-child { flex: 0 0 auto; font-size: 1.2rem; }
.post-cursor-previous > span:last-child, .post-cursor-next > span:first-child { display: grid; min-width: 0; }
.post-cursor small { color: var(--muted); font-size: .7rem; font-weight: 650; text-transform: uppercase; }
.post-cursor-previous { text-align: left; }
.post-cursor-next { justify-content: flex-end; text-align: right; }
.post-cursor-previous > span:last-child, .post-cursor-next > span:first-child { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.article-tags a { border-radius: 999px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); padding: .25rem .65rem; font-size: .8rem; }
.upvote-action { display: flex; min-height: 2.4rem; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.upvote-action button { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; padding: .42rem .85rem; }
.upvote-action button:hover, .upvote-action button[data-state="active"] { border-color: var(--accent); color: var(--accent); }
.upvote-action button:disabled { cursor: wait; opacity: .65; }
.upvote-action output { min-width: 1ch; font-variant-numeric: tabular-nums; }
.upvote-icon { transition: transform .16s ease; }
.upvote-action button[data-state="active"] .upvote-icon { transform: scale(1.15); }
.upvote-status { color: var(--muted); font-size: .8rem; }
.share-entry { margin-top: 1.25rem; }
.share-trigger { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; padding: .42rem .85rem; }
.share-trigger:hover { border-color: var(--accent); color: var(--accent); }
.share-dialog { width: min(34rem, calc(100vw - 2rem)); border: 0; border-radius: var(--card-radius); background: var(--card); box-shadow: 0 24px 80px rgb(0 0 0 / 38%); color: var(--ink); padding: 1.1rem; }
.share-dialog::backdrop { background: rgb(5 10 22 / 70%); backdrop-filter: blur(4px); }
.share-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.share-dialog > header > button { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.45rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.share-actions a, .share-actions button { border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; padding: .35rem .75rem; }
.share-actions a:hover, .share-actions button:hover { border-color: var(--accent); color: var(--accent); }
.share-copy-row { display: flex; margin-top: 1rem; gap: .45rem; }
.share-copy-row input { min-width: 0; flex: 1; border: 1px solid var(--border); border-radius: .55rem; background: var(--surface); color: var(--ink); padding: .55rem .65rem; }
.share-copy-row button { flex: 0 0 auto; border: 0; border-radius: .55rem; background: var(--accent); color: #06120f; cursor: pointer; font: inherit; font-weight: 750; padding: .55rem .8rem; }
.share-qr { display: grid; margin-top: 1rem; place-items: center; gap: .6rem; }
.share-qr[hidden] { display: none; }
.share-qr img { width: 15rem; max-width: 100%; aspect-ratio: 1; border-radius: .5rem; background: #fff; object-fit: contain; }
.share-qr output { color: var(--muted); font-size: .8rem; text-align: center; }
.comments { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 1.75rem; }
.comments > h2 { margin: 0 0 1rem; font-size: 1.45rem; }
.comments-loading, .comments-closed { color: var(--muted); font-size: .9rem; }
.comments[data-state="loading"] .comments-loading { min-height: 1.5rem; animation: comments-pulse 1.2s ease-in-out infinite alternate; }
.comments[data-state="empty"] .comments-loading { border: 1px dashed var(--border); border-radius: .7rem; padding: .85rem; text-align: center; }
.comments[data-state="unavailable"] .comments-loading { border: 1px solid color-mix(in srgb, #e34b4b 34%, var(--border)); border-radius: .7rem; background: color-mix(in srgb, #e34b4b 7%, var(--card)); color: color-mix(in srgb, #e34b4b 78%, var(--ink)); padding: .85rem; }
.comment-list { display: grid; gap: .85rem; }
.comment-list article { border: 1px solid var(--border); border-radius: min(var(--card-radius), .8rem); background: color-mix(in srgb, var(--card) 96%, var(--canvas)); padding: 1rem; }
.comment-list article > header { display: flex; align-items: center; gap: .7rem; text-align: left; }
.comment-list article > header > div { display: flex; min-width: 0; flex-direction: column; }
.comment-author { overflow: hidden; color: var(--ink); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
a.comment-author:hover { color: var(--accent); }
.comment-list time { color: var(--muted); font-size: .72rem; }
.comment-list article > p { margin: .7rem 0 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-avatar { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, var(--card)); color: var(--accent); font-weight: 800; }
.comments-more { display: block; margin: 1rem auto 0; border: 1px solid var(--border); border-radius: .65rem; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; padding: .55rem 1rem; }
.comments-more[hidden] { display: none; }
.comments-more:disabled { cursor: wait; opacity: .65; }
.comment-form { display: grid; gap: .75rem; margin-top: 1.25rem; }
.comment-form-two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comment-form input, .comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .65rem;
  outline: none;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  padding: .72rem .82rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.comment-form textarea, .comment-form-actions { grid-column: 1 / -1; }
.comment-form textarea { min-height: 8rem; resize: vertical; }
.comment-form-actions { display: flex; align-items: center; gap: .85rem; }
.comment-form button {
  border: 0;
  border-radius: .65rem;
  background: var(--accent);
  color: #081a17;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: .65rem 1rem;
}
.comment-form button:disabled { cursor: wait; opacity: .65; }
.comment-form[data-state="submitting"] input, .comment-form[data-state="submitting"] textarea { opacity: .7; }
.comment-form output { color: var(--muted); font-size: .85rem; }
.search-card input[type="search"] { width: 100%; border: 1px solid var(--border); border-radius: .7rem; background: var(--card); color: var(--ink); font: inherit; padding: .8rem 1rem; }
.search-card [data-search-results] { display: grid; margin-top: .8rem; }
.search-card [data-search-results] a { border-bottom: 1px solid var(--border); padding: .65rem 0; }
.archive-list > h1 { margin-top: 0; }
.archive-group { display: grid; grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr); gap: 1rem; }
.archive-group + .archive-group { margin-top: 1.4rem; }
.archive-group > h2 { position: sticky; top: 5.25rem; align-self: start; margin: .45rem 0 0; font-size: 1rem; }
.archive-group > div { display: grid; gap: .65rem; }
.archive-group article { border: 1px solid var(--border); border-radius: min(var(--card-radius), .8rem); background: color-mix(in srgb, var(--card) 96%, var(--canvas)); padding: .9rem 1rem; }
.archive-post-heading { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 1rem; }
.archive-post-heading h3 { min-width: 0; margin: 0; font-size: 1.05rem; }
.archive-post-heading h3 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-post-heading time { flex: 0 0 auto; font-size: .72rem; }
.archive-taxonomy { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .35rem; }
.archive-taxonomy a { color: var(--muted); font-size: .74rem; }
.archive-group article > p { display: -webkit-box; overflow: hidden; margin: .45rem 0 0; color: var(--muted); font-size: .82rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.link-groups { display: grid; gap: 1.2rem; }
.link-card img { width: 2.25rem; height: 2.25rem; object-fit: cover; border-radius: .45rem; }
.not-found { text-align: center; }
.not-found > strong { color: var(--accent); font-size: clamp(4rem, 15vw, 9rem); line-height: 1; }
.site-footer {
  display: flex;
  max-width: 75rem;
  margin: 3rem auto 0;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding: 2rem 1.2rem;
  color: var(--muted);
  font-size: .8rem;
}
.site-footer-borderless { border-top-color: transparent; }
.site-footer > div { display: flex; flex-direction: column; }
.site-footer p { margin: 0; }
.site-footer-centered { flex-direction: column; align-items: center; text-align: center; }
.footer-logo { width: auto; max-width: 10rem; height: 2.8rem; margin-bottom: .55rem; object-fit: contain; }
.footer-slogan { max-width: 30rem; margin: .2rem 0; color: var(--ink); font-size: .9rem; white-space: pre-line; }
.footer-menus { display: flex; flex: 1; justify-content: center; gap: clamp(1rem, 4vw, 3rem); }
.footer-menus nav { display: flex; min-width: 7rem; flex-direction: column; gap: .25rem; }
.footer-menus nav > strong { color: var(--ink); }
.footer-menus .menu-children > summary { display: none; }
.footer-menus .menu-children > div { position: static; border: 0; background: transparent; box-shadow: none; padding: 0; }
.footer-meta { align-items: flex-end; }
.site-footer-centered .footer-meta { align-items: center; }
.social-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.social-links a { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); }
.social-links a > span { display: inline-grid; min-width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: .65rem; font-weight: 800; }
.social-image-dialog { position: relative; width: min(42rem, calc(100vw - 2rem)); border: 0; border-radius: var(--card-radius); background: var(--card); box-shadow: 0 24px 80px rgb(0 0 0 / 35%); padding: 2.4rem 1rem 1rem; }
.social-image-dialog::backdrop { background: rgb(5 10 22 / 70%); backdrop-filter: blur(4px); }
.social-image-dialog img { display: block; width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; }
.social-image-dialog button { position: absolute; top: .45rem; right: .55rem; width: 1.8rem; height: 1.8rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.45rem; line-height: 1; }
.footer-copyright { margin-top: .25rem; }
.scroll-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 15; display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--card); box-shadow: var(--card-shadow); color: var(--ink); }
@keyframes comments-pulse { from { opacity: .5; } to { opacity: 1; } }
@media (max-width: 1100px) {
  .post-grid-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .earth-layout, .earth-layout.sidebar-left { grid-template-columns: 1fr; }
  .earth-layout.sidebar-left > .post-grid, .earth-layout.sidebar-left > .article-shell, .earth-layout.sidebar-left > .list-content, .earth-layout.sidebar-left > .sidebar-card { order: initial; }
  .sidebar-card { display: none; }
  .sidebar-card.sidebar-has-toc { display: block; }
  .sidebar-card.sidebar-has-toc > :not(.table-of-contents) { display: none; }
  .post-grid-grid-3, .post-grid-grid-2 { grid-template-columns: 1fr; }
  .hero-latest { grid-template-columns: 1fr; text-align: center; }
  .hero-latest p { margin-left: auto; }
  .hero-post-grid { grid-template-columns: 1fr; }
  .hero-post-grid a, .hero-post-grid a:first-child, .hero-post-grid a:nth-child(2) { grid-column: auto; }
  .footer-menus { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
	.taxonomy-filter details > ul .taxonomy-filter-branch details > ul { top: calc(100% + .35rem); left: 0; }
}
@media (max-width: 560px) {
  .header-inner { gap: .75rem; }
  .comment-form-two-column { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .footer-meta { align-items: flex-start; }
  .scroll-top { right: .75rem; bottom: .75rem; }
	.archive-group { grid-template-columns: 1fr; }
	.archive-group > h2 { position: static; }
	.archive-post-heading { align-items: flex-start; flex-direction: column; gap: .2rem; }
	.pagination > a span, .pagination > span span { display: none; }
	.taxonomy-heading { align-items: flex-start; }
	.post-cursor { grid-template-columns: 1fr; gap: .8rem; }
	.post-cursor-next { justify-content: flex-start; text-align: left; }
	.post-cursor-next > span:first-child { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
mjx-container.MathJax {
  max-width: 100%;
}
mjx-container.MathJax[display="true"] {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1.5rem 0;
  padding: .15rem 0;
  text-align: center;
}
mjx-container.MathJax > svg {
  max-width: none;
}
