@charset "UTF-8";
/* =========================================================
   Post View : Default skin  (GEO dark theme)
   ========================================================= */
main:has(.post-view) {
  display: block;
  padding-top: var(--topbar-h);
}

.post-view {
  /* ── Header ─────────────────────────────────────────── */
}
.post-view__header {
  position: relative;
  text-align: center;
  margin-top: -60px;
  margin-bottom: 40px;
  padding: 60px clamp(20px, 5vw, 80px) 48px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.post-view__header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% -10%, oklch(52.5% 0.19 266deg / 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.post-view__category {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: oklch(52.5% 0.19 266deg / 0.13);
  border: 1px solid oklch(52.5% 0.19 266deg / 0.3);
  border-radius: 999px;
}
.post-view__title {
  position: relative;
  max-width: 820px;
  margin: 0 auto 24px;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text);
  word-break: keep-all;
}
.post-view__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.post-view__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--faint);
}
.post-view__meta-item i {
  font-size: 15px;
}
.post-view {
  /* ── Body (2-col when TOC) ──────────────────────────── */
}
.post-view__body {
  display: flex;
  align-items: stretch;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 1080px) {
  .post-view__body {
    flex-direction: column;
    max-width: 1280px;
  }
}
.post-view {
  /* ── Main column ────────────────────────────────────── */
}
.post-view__main {
  flex: 1;
  min-width: 0;
}
.post-view {
  /* ── Files ──────────────────────────────────────────── */
}
.post-view__files + .post-view__files {
  margin-top: 12px;
}
.post-view__files-container {
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  background: var(--surface);
}
.post-view__files-container + .post-view__files-container {
  margin-top: 12px;
  margin-bottom: 0;
}
.post-view__files-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.post-view__files-title i {
  color: var(--accent);
  font-size: 16px;
}
.post-view__files-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 1px;
}
.post-view__files-item + .post-view__files-item {
  margin-top: 8px;
}
.post-view__files-link {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 1px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.15s;
}
.post-view__files-link svg path {
  fill: var(--faint);
}
.post-view__files-link:hover {
  color: var(--text);
}
.post-view__files-icon {
  flex-shrink: 0;
  color: var(--faint);
}
.post-view__files-name {
  word-break: break-all;
}
.post-view__files-size {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--faint);
}
.post-view__attachment {
  padding: 20px 24px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  background: var(--surface);
}
.post-view__attachment-item {
  min-width: 1px;
}
.post-view__attachment-item + .post-view__attachment-item {
  margin-top: 12px;
}
.post-view__attachment-inner {
  font-size: 0;
  line-height: 1;
}
.post-view__attachment-img {
  max-width: 100%;
  border-radius: 8px;
}
.post-view {
  /* ── Contents ───────────────────────────────────────── */
}
.post-view__contents {
  min-height: 240px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.post-view__contents .editor-contents {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  overflow-x: auto;
}
.post-view__contents .editor-contents > * {
  max-width: 100%;
}
.post-view__contents .editor-contents h1,
.post-view__contents .editor-contents h2,
.post-view__contents .editor-contents h3,
.post-view__contents .editor-contents h4,
.post-view__contents .editor-contents h5,
.post-view__contents .editor-contents h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2em 0 0.6em;
  line-height: 1.3;
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}
.post-view__contents .editor-contents h2 {
  font-size: 1.45em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
}
.post-view__contents .editor-contents h3 {
  font-size: 1.2em;
}
.post-view__contents .editor-contents h4 {
  font-size: 1.05em;
}
.post-view__contents .editor-contents p {
  margin: 0 0 1.2em;
}
.post-view__contents .editor-contents img {
  max-width: 100%;
  border-radius: 10px;
}
.post-view__contents .editor-contents a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-view__contents .editor-contents ul,
.post-view__contents .editor-contents ol {
  margin: 0 0 1.2em 1.4em;
}
.post-view__contents .editor-contents ul li,
.post-view__contents .editor-contents ol li {
  margin-bottom: 0.4em;
}
.post-view__contents .editor-contents blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-style: italic;
}
.post-view__contents .editor-contents pre,
.post-view__contents .editor-contents code {
  font-family: "Fira Code", "Cascadia Code", monospace;
  background: var(--bg-2, oklch(17.5% 0.022 288deg));
  border-radius: 8px;
}
.post-view__contents .editor-contents code {
  font-size: 0.88em;
  padding: 2px 6px;
}
.post-view__contents .editor-contents pre {
  padding: 18px 20px;
  margin: 1.2em 0;
  overflow-x: auto;
}
.post-view__contents .editor-contents pre code {
  background: none;
  padding: 0;
}
.post-view__contents .editor-contents table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.93em;
}
.post-view__contents .editor-contents table th,
.post-view__contents .editor-contents table td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.post-view__contents .editor-contents table th {
  font-weight: 600;
  background: var(--surface);
  color: var(--text);
}
.post-view__contents .editor-contents table tr:hover td {
  background: var(--surface);
}
.post-view {
  /* ── TOC Sidebar (desktop) ──────────────────────────── */
}
.post-view__toc-sidebar {
  flex-shrink: 0;
  width: 248px;
}
@media (max-width: 1080px) {
  .post-view__toc-sidebar {
    display: none;
  }
}
.post-view__toc-sticky {
  position: sticky;
  top: calc(var(--topbar-h) + 28px);
  max-height: calc(100vh - var(--topbar-h) - 56px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.post-view__toc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.post-view__toc-title i {
  font-size: 14px;
}
.post-view__toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-view__toc li {
  margin: 0;
  padding: 0;
}
.post-view__toc a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  word-break: keep-all;
}
.post-view__toc a:hover {
  color: var(--text);
  background: oklch(98% 0.01 286deg / 0.04);
}
.post-view__toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: oklch(52.5% 0.19 266deg / 0.08);
  font-weight: 600;
}
.post-view {
  /* ── TOC Mobile (collapsible) ───────────────────────── */
}
.post-view__toc-mobile {
  display: none;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  overflow: hidden;
}
@media (max-width: 1080px) {
  .post-view__toc-mobile {
    display: block;
  }
}
.post-view__toc-mobile-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 0;
  cursor: pointer;
  text-align: left;
}
.post-view__toc-mobile-toggle > span {
  flex: 1;
}
.post-view__toc-mobile-toggle i:first-child {
  color: var(--accent);
  font-size: 17px;
}
.post-view__toc-mobile-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--faint);
  transition: transform 0.25s ease;
}
[aria-expanded=true] .post-view__toc-mobile-arrow {
  transform: rotate(180deg);
}
.post-view__toc-mobile-body {
  border-top: 1px solid var(--line);
  background: var(--bg-2, oklch(17.5% 0.022 288deg));
  padding: 4px 0 8px;
}
.post-view__toc-mobile-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-view__toc-mobile-body a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.post-view__toc-mobile-body a:hover {
  color: var(--text);
}
.post-view__toc-mobile-body a.is-active {
  color: var(--accent);
  font-weight: 600;
}
.post-view {
  /* ── Footer ─────────────────────────────────────────── */
}
.post-view__footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 1080px) {
  .post-view__footer {
    max-width: 1280px;
  }
}
.post-view__footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.post-view__footer-btn i {
  font-size: 18px;
}
.post-view__footer-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.post-view {
  /* ── Related prev/next ──────────────────────────────── */
}
.post-view__related {
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  overflow: hidden;
  margin-top: 48px;
}
.post-view__related-wrap {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 20px;
  gap: 14px;
  transition: background 0.15s;
}
.post-view__related-wrap:not(:first-child) {
  border-top: 1px solid var(--line);
}
.post-view__related-wrap.disabled {
  opacity: 0.35;
}
.post-view__related-wrap:not(.disabled):hover {
  background: var(--surface);
}
.post-view__related-title {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.post-view__related-title i {
  font-size: 16px;
  color: var(--accent);
}
.post-view__related-text {
  display: block;
  flex: 1;
  min-width: 1px;
  overflow: hidden;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 0.15s;
}
.post-view__related-text[href]:hover {
  color: var(--text);
}