@charset "UTF-8";
/***************/
/* MEYER RESET */
/***************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

:root,
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #eff3f8;
  --bg-header: rgba(248, 250, 252, 0.9);
  --text: #29364a;
  --text-muted: #596a80;
  --heading: #152033;
  --border: #d6dfeb;
  --accent: #245bcd;
  --accent-2: #1945a0;
  --accent-bg: rgba(36, 91, 205, 0.07);
  --accent-border: rgba(36, 91, 205, 0.24);
  --link: var(--accent);
  --link-hover: #1945a0;
  --code-bg: #eaf0f7;
  --code-border: #c3cfe0;
  --toggle-bg: var(--bg-alt);
  --toggle-border: var(--border);
  --selection-bg: rgba(36, 91, 205, 0.18);
  --selection-text: var(--heading);
  --pulse-color: rgba(36, 91, 205, 0.45);
  --roadmap-road: #596a80;
  --roadmap-pin: var(--accent);
  --roadmap-pin-ring: transparent;
  --card-thumb-bg: #29364a;
  --toggle-accent: var(--accent);
  --toggle-accent-bg: var(--accent-bg);
  --card-bg: var(--bg-alt);
  --card-text: var(--text);
  --card-text-muted: var(--text-muted);
  --card-border: var(--border);
  --color-success: #4e7f2f;
  --color-success-bg: rgba(78, 127, 47, 0.09);
  --color-success-border: rgba(78, 127, 47, 0.28);
  --header-shadow: 0 1px 8px rgba(21, 32, 51, 0.06);
  --surface-wash: #e3ebf8;
  --llmtl-rail: var(--border);
  --llmtl-open: #4e7f2f;
  --llmtl-open-bg: rgba(78, 127, 47, 0.10);
  --llmtl-api: var(--text-muted);
  --llmtl-api-bg: rgba(89, 106, 128, 0.10);
  --llmtl-org-openai: #10a37f;
  --llmtl-org-anthropic: #c2653a;
  --llmtl-org-google: #4285f4;
  --llmtl-org-meta: #0668e1;
  --llmtl-org-mistral-ai: #d97706;
  --llmtl-org-deepseek: #4f5fe0;
  --llmtl-org-alibaba: #de6a1f;
  --llmtl-org-moonshot-ai: #6b7fd7;
  --llmtl-org-z-ai: #1c8c6e;
  --llmtl-org-xai: #52525b;
  --llmtl-org-nvidia: #76b900;
  --llmtl-org-microsoft: #d63384;
  --llmtl-org-cohere: #b83280;
  --llmtl-org-ai2: #0d9488;
  --llmtl-org-tencent: #1e88c7;
  --llmtl-org-baidu: #2b6cb0;
  --llmtl-org-bytedance: #1f2937;
  --llmtl-org-amazon: #b45309;
  --llmtl-org-liquid-ai: #0891b2;
  --llmtl-org-lg-ai-research: #a6192e;
  --llmtl-org-tii: #7c9070;
  --llmtl-org-stepfun-ai: #9333ea;
  --llmtl-org-inclusionai: #0e7490;
  --llmtl-org-arcee-ai: #ca8a04;
  --llmtl-org-minimax-ai: #dc2626;
  --llmtl-org-sensetime: #6d28d9;
  --llmtl-org-huawei: #c53030;
  --llmtl-org-xiaomi: #f97316;
}

[data-theme="dark"] {
  --bg: #10151d;
  --bg-alt: #19212d;
  --bg-header: rgba(16, 21, 29, 0.9);
  --text: #cdd6e3;
  --text-muted: #99a8bc;
  --heading: #edf2f8;
  --border: #303d50;
  --accent: #82aeff;
  --accent-2: #b0ccff;
  --accent-bg: rgba(130, 174, 255, 0.10);
  --accent-border: rgba(130, 174, 255, 0.28);
  --link: var(--accent);
  --link-hover: #b0ccff;
  --code-bg: #0c1119;
  --code-border: #303d50;
  --toggle-bg: var(--bg-alt);
  --toggle-border: var(--border);
  --selection-bg: rgba(130, 174, 255, 0.24);
  --selection-text: var(--heading);
  --pulse-color: rgba(130, 174, 255, 0.45);
  --roadmap-road: #40536d;
  --roadmap-pin: var(--accent);
  --roadmap-pin-ring: #40536d;
  --card-thumb-bg: #141c27;
  --toggle-accent: var(--accent);
  --toggle-accent-bg: var(--accent-bg);
  --card-bg: var(--bg-alt);
  --card-text: var(--text);
  --card-text-muted: var(--text-muted);
  --card-border: var(--border);
  --color-success: #7db84e;
  --color-success-bg: rgba(125, 184, 78, 0.11);
  --color-success-border: rgba(125, 184, 78, 0.25);
  --header-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
  --surface-wash: #202f47;
  --llmtl-rail: var(--border);
  --llmtl-open: #7db84e;
  --llmtl-open-bg: rgba(125, 184, 78, 0.13);
  --llmtl-api: var(--text-muted);
  --llmtl-api-bg: rgba(153, 168, 188, 0.13);
  --llmtl-org-openai: #3ddba7;
  --llmtl-org-anthropic: #e08a5e;
  --llmtl-org-google: #7aa8ff;
  --llmtl-org-meta: #5b9dff;
  --llmtl-org-mistral-ai: #f0a942;
  --llmtl-org-deepseek: #8b98ff;
  --llmtl-org-alibaba: #ff9a52;
  --llmtl-org-moonshot-ai: #9baaff;
  --llmtl-org-z-ai: #4fc79c;
  --llmtl-org-xai: #b0b0ba;
  --llmtl-org-nvidia: #9adf3a;
  --llmtl-org-microsoft: #f076b3;
  --llmtl-org-cohere: #e07ab5;
  --llmtl-org-ai2: #4dd8cd;
  --llmtl-org-tencent: #5fb2eb;
  --llmtl-org-baidu: #6fa8e0;
  --llmtl-org-bytedance: #b8c0cc;
  --llmtl-org-amazon: #eaa444;
  --llmtl-org-liquid-ai: #4fd3ec;
  --llmtl-org-lg-ai-research: #ea6b7e;
  --llmtl-org-tii: #a9c19b;
  --llmtl-org-stepfun-ai: #c084fc;
  --llmtl-org-inclusionai: #4dd0e6;
  --llmtl-org-arcee-ai: #f0c14b;
  --llmtl-org-minimax-ai: #ff7a7a;
  --llmtl-org-sensetime: #ac8bf0;
  --llmtl-org-huawei: #f07575;
  --llmtl-org-xiaomi: #ffab6b;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
  scroll-padding-top: var(--scroll-offset, 24px);
}

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-kerning: normal;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main {
  flex: 1;
}

.container {
  margin: 0 auto;
  max-width: 860px;
  padding: 0 20px;
  width: 100%;
}

h1, h2, h3 {
  color: var(--heading);
  font-family: 'Bitter', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 1.2em 0 0.45em;
  padding: 0;
  text-wrap: balance;
}
@media screen and (max-width: 640px) {
  h1, h2, h3 {
    line-height: 1.2;
  }
}

h4, h5, h6 {
  color: var(--text-muted);
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 1.2em 0 0.45em;
  padding: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 14px 0;
}

a {
  color: var(--link);
  text-decoration: none;
  cursor: pointer;
}
a:hover, a:active {
  color: var(--link-hover);
}

ul, ol {
  margin: 14px 0;
  padding-left: 28px;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

ol ul, ul ol, ul ul, ol ol {
  margin: 0;
}

ul ul, ol ul {
  list-style-type: circle;
}

em, i {
  font-style: italic;
}

strong, b {
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

::-moz-selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  background: var(--code-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--text);
}

pre,
.highlight > pre,
.highlighter-rouge pre {
  position: relative;
  background: var(--code-bg);
  border: 1.5px solid var(--code-border);
  border-radius: 10px;
  padding: 20px 22px;
  overflow-x: auto;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07), 0 0 0 0.5px var(--code-border);
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
pre::-webkit-scrollbar,
.highlight > pre::-webkit-scrollbar,
.highlighter-rouge pre::-webkit-scrollbar {
  height: 8px;
}
pre::-webkit-scrollbar-track,
.highlight > pre::-webkit-scrollbar-track,
.highlighter-rouge pre::-webkit-scrollbar-track {
  background: transparent;
}
pre::-webkit-scrollbar-thumb,
.highlight > pre::-webkit-scrollbar-thumb,
.highlighter-rouge pre::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
pre::-webkit-scrollbar-thumb:hover,
.highlight > pre::-webkit-scrollbar-thumb:hover,
.highlighter-rouge pre::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
pre code,
.highlight > pre code,
.highlighter-rouge pre code {
  background: none;
  border: none;
  padding: 0;
  line-height: 1.6;
}
pre .copy-code-btn,
.highlight > pre .copy-code-btn,
.highlighter-rouge pre .copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--code-border);
  background: var(--code-bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  padding: 0;
}
pre .copy-code-btn svg,
.highlight > pre .copy-code-btn svg,
.highlighter-rouge pre .copy-code-btn svg {
  display: block;
  pointer-events: none;
}
pre .copy-code-btn:hover,
.highlight > pre .copy-code-btn:hover,
.highlighter-rouge pre .copy-code-btn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-bg);
}
pre .copy-code-btn.copied,
.highlight > pre .copy-code-btn.copied,
.highlighter-rouge pre .copy-code-btn.copied {
  color: var(--color-success);
  border-color: var(--color-success-border);
  background: var(--color-success-bg);
}
pre:hover .copy-code-btn,
.highlight > pre:hover .copy-code-btn,
.highlighter-rouge pre:hover .copy-code-btn {
  opacity: 1;
}

.wrapper-masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--header-shadow);
}

.masthead {
  display: flex;
  align-items: center;
  padding: 13px 0;
  gap: 13px;
}
@media screen and (max-width: 640px) {
  .masthead {
    gap: 10px;
    padding: 12px 0;
  }
}

.site-avatar {
  flex-shrink: 0;
}
.site-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  display: block;
}
@media screen and (max-width: 640px) {
  .site-avatar img {
    width: 36px;
    height: 36px;
  }
}

.site-info {
  flex: 1;
  min-width: 0;
}
@media screen and (max-width: 640px) {
  .site-info {
    display: none;
  }
}

.site-name {
  font-family: 'Bitter', Georgia, serif;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.site-name a {
  color: var(--heading);
  transition: color 0.15s;
}
.site-name a:hover {
  color: var(--accent);
}

.site-description {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  flex-shrink: 0;
}
@media screen and (max-width: 640px) {
  nav {
    flex: 1;
    margin-left: 0;
  }
  nav a:first-child {
    margin-left: auto;
  }
  nav .theme-toggle {
    margin-left: auto;
  }
}
nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 11px 11px;
  border-radius: 7px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}
@media screen and (max-width: 640px) {
  nav a {
    font-size: 13px;
    padding: 10px 5px;
  }
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown .nav-dropdown-trigger::after {
  content: "▾";
  display: inline-block;
  margin-left: 3px;
  font-size: 10px;
  vertical-align: 1px;
}
.nav-dropdown .nav-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: nav-live-pulse 2s ease-in-out infinite;
  vertical-align: 1px;
}
.nav-dropdown .nav-dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 150px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--toggle-border);
  border-radius: 9px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  z-index: 30;
}
.nav-dropdown .nav-dropdown-menu a {
  padding: 8px 10px;
  border-radius: 6px;
}
.nav-dropdown .nav-dropdown-menu .nav-dropdown-icon {
  display: inline-block;
  width: 1.1em;
  text-align: center;
  vertical-align: middle;
  margin-right: 2px;
}
.nav-dropdown .nav-dropdown-menu .nav-dropdown-icon img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
@media screen and (max-width: 640px) {
  .nav-dropdown .nav-dropdown-menu {
    left: auto;
    right: 0;
  }
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

@keyframes nav-live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--toggle-border);
  border-radius: 8px;
  background: var(--toggle-bg);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
@media screen and (max-width: 640px) {
  .theme-toggle {
    width: 38px;
    height: 38px;
  }
}

[data-theme="dark"] .theme-toggle .icon-sun,
[data-theme="dark"] #theme-toggle-floating .icon-sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .icon-moon,
[data-theme="dark"] #theme-toggle-floating .icon-moon {
  display: none;
}

#theme-toggle-floating .icon-sun {
  display: none;
}
#theme-toggle-floating .icon-moon {
  display: block;
}

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 0 2px 2px 0;
  z-index: 9999;
  transition: transform 0.08s linear;
  pointer-events: none;
}

#back-to-top,
#theme-toggle-floating {
  position: fixed;
  right: calc(50% - 400px - 96px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  z-index: 900;
}
#back-to-top.is-visible,
#theme-toggle-floating.is-visible {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover,
#theme-toggle-floating:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
#back-to-top svg,
#theme-toggle-floating svg {
  display: block;
}

#back-to-top {
  bottom: 50%;
  transform: translateY(50%);
}
#back-to-top:hover {
  transform: translateY(calc(50% - 2px));
}
#back-to-top .btt-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  opacity: 0.7;
}
@media screen and (max-width: 640px) {
  #back-to-top {
    right: 20px;
    bottom: 24px;
    top: auto;
    transform: none;
  }
  #back-to-top:hover {
    transform: translateY(-2px);
  }
}

#theme-toggle-floating {
  bottom: 50%;
  transform: translateY(calc(50% + 56px));
}
#theme-toggle-floating:hover {
  transform: translateY(calc(50% + 54px));
}
@media screen and (max-width: 640px) {
  #theme-toggle-floating {
    right: 20px;
    bottom: 80px;
    top: auto;
    transform: none;
  }
  #theme-toggle-floating:hover {
    transform: translateY(-2px);
  }
}

.post-search {
  position: relative;
  max-width: 400px;
  flex: 1;
}
@media (max-width: 599px) {
  .post-search {
    max-width: 100%;
  }
}
.post-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.post-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 14px 9px 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.post-search input:focus {
  border-color: var(--accent-border);
  outline: none;
}
.post-search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}
.post-search input::placeholder {
  color: var(--text-muted);
}

.post blockquote {
  margin: 1.5em 0;
  border: 1px solid var(--border);
  padding: 0.75em 1.25em;
  color: var(--text);
  font-size: 17px;
  font-style: italic;
  background: var(--bg-alt);
  border-radius: 8px;
}

.single-post {
  padding: 52px 0;
  /* ── Audio narration widget ────────────────────────────────────────── */
}
.single-post > .post-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}
@media screen and (max-width: 640px) {
  .single-post > .post-header {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
}
.single-post .post-hero-thumb {
  display: block;
  width: 176px;
  height: 176px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}
@media screen and (max-width: 640px) {
  .single-post .post-hero-thumb {
    width: 80px;
    height: 80px;
    border-radius: 14px;
  }
}
.single-post .post-header-text {
  flex: 1;
  min-width: 0;
}
.single-post .post-header-text h1 {
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
}
@media screen and (max-width: 640px) {
  .single-post .post-header-text h1 {
    font-size: 22px;
    margin: 0 0 6px;
  }
}
.single-post .post-header-text .post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.single-post .post-header-text .post-meta-row .date {
  display: inline;
  margin-bottom: 0;
}
.single-post .post-header-text .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.single-post .post-header-text .post-tags .post-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  line-height: 1.6;
}
@keyframes pa-pulse {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.2);
  }
}
.single-post .entry {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.single-post .entry h2, .single-post .entry h3, .single-post .entry h4 {
  margin-top: 2em;
}
.single-post .entry p + p {
  margin-top: 1em;
}
.single-post .entry p {
  text-wrap: pretty;
}
.single-post .entry img {
  border-radius: 6px;
  margin: 12px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text);
}

.til-page {
  padding: 48px 0 72px;
  max-width: 780px;
}

.til-count {
  font-size: 13px;
  color: var(--text-muted);
}

.til-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.til-search {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.til-search:focus {
  border-color: var(--accent);
}
.til-search::placeholder {
  color: var(--text-muted);
}

.til-tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.til-tag-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.til-tag-filter:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-bg);
}
.til-tag-filter.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.til-filter-count {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.65;
}

.til-list {
  display: flex;
  flex-direction: column;
}

.til-month-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.til-month-header:first-child {
  padding-top: 0;
}

.til-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.til-entry:last-child {
  border-bottom: none;
}
.til-entry:hover {
  background: var(--accent-bg);
  border-radius: 6px;
}
@media screen and (max-width: 640px) {
  .til-entry {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 14px 4px;
  }
}

.til-date {
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  grid-column: 1;
  grid-row: 1;
  padding-top: 2px;
}
@media screen and (max-width: 640px) {
  .til-date {
    grid-column: 1;
    grid-row: 1;
  }
}

.til-tag-pill {
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  grid-column: 1;
  grid-row: 2;
}
@media screen and (max-width: 640px) {
  .til-tag-pill {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 4px;
  }
}

.til-text {
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.6;
  grid-column: 2;
  grid-row: 1 / 3;
}
.til-text p {
  margin: 0;
}
@media screen and (max-width: 640px) {
  .til-text {
    grid-column: 1;
    grid-row: 3;
  }
}

.til-empty {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 32px;
}

.page {
  padding: 52px 0;
}
.page > h1 {
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--heading);
}
.page .entry > p:first-child {
  font-size: 16.5px;
  line-height: 1.75;
}
.page .entry h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin: 44px 0 18px;
}
.page .entry h3 {
  font-size: 17px;
  margin-top: 1.4em;
}
.page .entry ul {
  padding-left: 20px;
}
.page .entry ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.page .entry hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}
.page .entry strong {
  color: var(--heading);
}
.page .entry p {
  font-size: 15px;
  line-height: 1.7;
}
.page .entry img {
  border-radius: 6px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 44px;
}
@media (max-width: 699px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 16px 14px;
  text-align: center;
}

.about-stat-num {
  display: block;
  font-family: 'Bitter', Georgia, serif;
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.about-stat-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}
@media (max-width: 899px) {
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 479px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.about-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--header-shadow);
}
.about-card .about-card-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.about-card h3 {
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 7px;
  letter-spacing: 0;
}
.about-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--card-text-muted);
  margin: 0;
}

.about-skills {
  margin-bottom: 44px;
}

.skill-group {
  margin-bottom: 20px;
}

.skill-group-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 9px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1;
}

[data-theme="dark"] .about-stat-num {
  color: rgba(255, 255, 255, 0.92);
}
[data-theme="dark"] .about-card-icon {
  color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .skill-pill {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(2.8);
    opacity: 0;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}
.career-roadmap {
  margin: 36px 0 48px;
}
.career-roadmap svg {
  display: block;
  width: 100%;
  height: auto;
}
.career-roadmap text {
  font-family: inherit;
}
.career-roadmap .rm-org {
  fill: var(--heading);
  font-weight: 600;
}
.career-roadmap .rm-years {
  fill: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.career-roadmap .rm-role {
  fill: var(--text-muted);
  font-style: italic;
}

.roadmap-pulse {
  fill: var(--pulse-color);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse-ring 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .roadmap-pulse {
    animation: none;
  }
}
@media screen and (max-width: 640px) {
  .career-roadmap .roadmap-desktop {
    display: none;
  }
}
mjx-container {
  font-size: 1.06em !important;
}

mjx-container[display="false"] {
  overflow-x: visible;
  vertical-align: baseline;
}

mjx-container[display="true"],
mjx-container[jax="CHTML"][display="true"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 26px 0 !important;
  padding: 4px 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
mjx-container[display="true"]::-webkit-scrollbar,
mjx-container[jax="CHTML"][display="true"]::-webkit-scrollbar {
  height: 6px;
}
mjx-container[display="true"]::-webkit-scrollbar-thumb,
mjx-container[jax="CHTML"][display="true"]::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
mjx-container[display="true"]::-webkit-scrollbar-track,
mjx-container[jax="CHTML"][display="true"]::-webkit-scrollbar-track {
  background: transparent;
}
@media screen and (max-width: 640px) {
  mjx-container[display="true"],
  mjx-container[jax="CHTML"][display="true"] {
    margin: 20px 0 !important;
    font-size: 1em !important;
  }
}

mjx-container:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table th, table td {
  padding: 11px 16px;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
  white-space: nowrap;
}
table th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--heading);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent-border);
}
table tr:last-child td {
  border-bottom: none;
}
table tr:nth-child(even) td {
  background: var(--bg-alt);
}
table tr:hover td {
  background: var(--accent-bg);
  transition: background 0.12s ease;
}
table td:first-child {
  font-weight: 600;
  color: var(--heading);
}

@media (min-width: 641px) {
  table {
    display: table;
    overflow-x: visible;
  }
  table th, table td {
    white-space: normal;
  }
}
.svg-dark {
  display: none;
}

[data-theme="dark"] .svg-light {
  display: none;
}

[data-theme="dark"] .svg-dark {
  display: inline;
}

.single-post .entry img,
.page .entry img {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.15s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}

.lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.lightbox-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media screen and (max-width: 640px) {
  .lightbox-overlay img {
    max-width: 98vw;
    max-height: 85vh;
  }
}
.laws-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 24px 0 40px;
}

.law-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  min-height: 320px;
}

.law-row:nth-child(even) .law-row__media {
  order: 2;
}

.law-row:nth-child(even) .law-row__body {
  order: 1;
}

.law-row__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .law-row__media img {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.law-row__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.law-row__numeral {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1;
}

.law-row__name {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0;
  line-height: 1.25;
}

.law-row__attribution {
  font-family: 'Nunito Sans', sans-serif;
  font-style: italic;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.law-row__desc {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 4px 0 0;
}

@media screen and (max-width: 640px) {
  .law-row {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 16px;
  }

  .law-row:nth-child(even) .law-row__media {
    order: 0;
  }

  .law-row:nth-child(even) .law-row__body {
    order: 0;
  }

  .law-row__name {
    font-size: 20px;
  }

  .law-row__numeral {
    font-size: 22px;
  }
}
.post-share {
  margin: 16px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text-muted);
}
.post-share a, .post-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
  position: relative;
}
.post-share a svg, .post-share button svg {
  display: block;
}
.post-share a:hover, .post-share button:hover {
  color: var(--accent);
  transform: translateY(-1px);
}
.post-share #share-x:hover {
  color: #000000;
}
.post-share #share-linkedin:hover {
  color: #0A66C2;
}
.post-share #share-hn:hover {
  color: #FF6600;
}
.post-share #share-copy:hover {
  color: var(--color-success);
}
[data-theme="dark"] .post-share #share-x:hover {
  color: #ffffff;
}
.post-share .post-share-toast {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.18s, transform 0.18s;
}
.post-share #share-copy.is-copied .post-share-toast {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes ai-gradient-shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-gradient-bg--animated {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
.meta-sep {
  color: var(--text-muted);
  font-weight: 600;
  opacity: 0.6;
}

.ai-gradient-bg {
  background: linear-gradient(90deg, #f59e0b 0%, #ec4899 20%, #d946ef 40%, #8b5cf6 50%, #d946ef 60%, #ec4899 80%, #f59e0b 100%);
  background-size: 200% 100%;
}

.ai-gradient-bg--animated {
  animation: ai-gradient-shimmer 6s linear infinite;
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'Bitter', Georgia, serif;
  font-style: italic;
  font-variant: normal;
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.ai-pill__emoji {
  font-style: normal;
  font-size: 11px;
}

.llmtl {
  margin-top: 8px;
}

.llmtl-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0;
  background: var(--bg-header);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.llmtl-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  min-width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  gap: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.llmtl-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.llmtl-search svg {
  color: var(--text-muted);
  flex: none;
}
.llmtl-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font: 14px/1.4 'Nunito Sans', sans-serif;
  outline: none;
  min-width: 0;
}
.llmtl-search input::placeholder {
  color: var(--text-muted);
}

.llmtl-clear {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  flex: none;
}
.llmtl-clear:hover {
  color: var(--text);
}

.llmtl-hint-toggle {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font: 600 12px/1.4 'Nunito Sans', sans-serif;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}
.llmtl-hint-toggle:hover, .llmtl-hint-toggle[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--accent-border);
}

.llmtl-count {
  font: 600 12px/1.4 'Nunito Sans', sans-serif;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}

.llmtl-hints {
  padding: 10px 2px 4px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 2;
}
.llmtl-hints code {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11.5px;
  margin-right: 4px;
  color: var(--text);
}

.llmtl-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0 4px;
}

.llmtl-chip {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--card-text-muted);
  font: 600 12.5px/1.4 'Nunito Sans', sans-serif;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 150ms ease;
}
.llmtl-chip:hover {
  border-color: var(--accent-border);
  color: var(--text);
}
.llmtl-chip.is-active {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
}

.llmtl-eras-rail {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.llmtl-era-jump {
  border: none;
  background: none;
  color: var(--text-muted);
  font: 700 11px/1.4 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.llmtl-era-jump:hover {
  color: var(--text);
  background: var(--accent-bg);
}
.llmtl-era-jump.is-active {
  color: var(--accent);
  background: var(--accent-bg);
}

.llmtl-era {
  margin: 40px 0;
  scroll-margin-top: 130px;
  transition: opacity 200ms ease;
}
.llmtl-era--empty {
  display: none;
}

.llmtl-era-header {
  margin-bottom: 16px;
}

.llmtl-era-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.llmtl-era-heading h2 {
  margin: 0;
  font: 700 20px/1.3 'Bitter', Georgia, serif;
  color: var(--heading);
}

.llmtl-era-range {
  font: 600 12px/1.4 'SFMono-Regular', Consolas, monospace;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 2px 8px;
}

.llmtl-era-blurb {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 60ch;
}

.llmtl-era-count {
  display: inline-block;
  margin-top: 6px;
  font: 600 11.5px/1.4 'Nunito Sans', sans-serif;
  color: var(--text-muted);
}

.llmtl-card {
  flex: none;
  scroll-snap-align: start;
  width: 208px;
  text-align: left;
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--org-hue, var(--accent));
  background: var(--card-bg);
  border-radius: 12px;
  padding: 14px 14px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--card-text);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.llmtl-card:hover, .llmtl-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--org-hue, var(--accent));
}
.llmtl-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.llmtl-card[hidden] {
  display: none;
}
@media (max-width: 640px) {
  .llmtl-card {
    width: 168px;
    scroll-snap-align: center;
  }
}

.llmtl-card-org {
  font: 800 10.5px/1.2 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--org-hue, var(--accent));
}

.llmtl-card-name {
  font: 700 14.5px/1.3 'Bitter', Georgia, serif;
  color: var(--card-text);
}

.llmtl-card-date {
  font: 600 11px/1.4 'SFMono-Regular', Consolas, monospace;
  color: var(--card-text-muted);
}

.llmtl-card-spec {
  font-size: 12px;
  color: var(--card-text-muted);
}

.llmtl-card-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.llmtl-pill {
  font: 700 9.5px/1.4 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
}
.llmtl-pill--open-weights, .llmtl-pill--open-source {
  color: var(--llmtl-open);
  background: var(--llmtl-open-bg);
}
.llmtl-pill--api-only {
  color: var(--llmtl-api);
  background: var(--llmtl-api-bg);
}

.llmtl-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 520px;
  width: calc(100vw - 32px);
  max-height: 82vh;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.llmtl-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.llmtl-modal[open] {
  animation: llmtl-modal-in 180ms ease;
}
@media (max-width: 640px) {
  .llmtl-modal {
    max-width: 100vw;
    width: 100vw;
    max-height: 86vh;
    margin: auto auto 0;
    border-radius: 16px 16px 0 0;
  }
}

@keyframes llmtl-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.llmtl-modal-inner {
  position: relative;
  max-height: 82vh;
  overflow-y: auto;
  padding: 22px 24px 26px;
}
@media (max-width: 640px) {
  .llmtl-modal-inner {
    max-height: 86vh;
  }
}

.llmtl-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: var(--card-bg);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.llmtl-modal-close:hover {
  color: var(--text);
}

.llmtl-modal-nav {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
}

.llmtl-modal-navbtn {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.llmtl-modal-navbtn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
}

.llmtl-modal-org {
  display: block;
  font: 800 11px/1.2 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 30px;
}

.llmtl-modal-title {
  margin: 6px 0 2px;
  font: 700 22px/1.3 'Bitter', Georgia, serif;
  color: var(--heading);
}

.llmtl-modal-date {
  font: 600 12px/1.4 'SFMono-Regular', Consolas, monospace;
  color: var(--text-muted);
}

.llmtl-modal-why {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  padding: 12px 14px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
}

.llmtl-modal-section {
  margin-top: 18px;
}
.llmtl-modal-section h4 {
  margin: 0 0 8px;
  font: 700 11px/1.4 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.llmtl-modal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13.5px;
}
.llmtl-modal-row:empty {
  display: none;
}

.llmtl-modal-label {
  color: var(--text-muted);
  flex: none;
}

.llmtl-modal-value {
  color: var(--text);
  text-align: right;
  font-weight: 600;
}
.llmtl-modal-value code {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12px;
}
.llmtl-modal-value a {
  color: var(--link);
}

.llmtl-modal-source {
  display: inline-block;
  margin-top: 20px;
  font: 700 12.5px/1.4 'Nunito Sans', sans-serif;
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .llmtl-card {
    transition: none;
  }

  .llmtl-modal[open] {
    animation: none;
  }
}
.llmtl-post > .post-header {
  width: 100%;
  max-width: 82ch;
  margin-left: auto;
  margin-right: auto;
}
.llmtl-post > .entry {
  max-width: 82ch;
  margin: 0 auto;
}
.llmtl-post > .entry > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.llmtl-post > .entry > ul li {
  margin: 0;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.llmtl {
  --llmtl-surface: color-mix(in srgb, var(--card-bg) 76%, var(--bg));
  --llmtl-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  margin: 38px 0 72px;
}

.llmtl-explorer {
  position: relative;
  isolation: isolate;
  padding: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 5% 0%, var(--accent-bg), transparent 34%), var(--llmtl-surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--llmtl-shadow);
}
.llmtl-explorer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(105deg, black, transparent 45%);
  pointer-events: none;
}

.llmtl-toolbar {
  position: static;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  padding: 0;
  background: none;
  border: 0;
  backdrop-filter: none;
}

.llmtl-search {
  position: relative;
  min-width: 0;
  padding: 0 12px 0 15px;
  gap: 11px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}
.llmtl-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.llmtl-search svg {
  color: var(--accent);
}
.llmtl-search input {
  height: 46px;
  padding: 0;
  appearance: none;
  font-size: 15px;
}
.llmtl-search input::-webkit-search-cancel-button {
  display: none;
}
.llmtl-search kbd {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--text-muted);
  background: var(--llmtl-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: 600 12px/1 'SFMono-Regular', Consolas, monospace;
}

.llmtl-clear {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: var(--llmtl-surface);
}
.llmtl-clear[hidden] {
  display: none;
}

.llmtl-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.llmtl-count {
  margin: 0;
  padding: 7px 11px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
}

.llmtl-hint-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: transparent;
  border-color: transparent;
}
.llmtl-hint-toggle svg {
  transition: transform 180ms ease;
}
.llmtl-hint-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.llmtl-hints {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  font-size: 12px;
  line-height: 2.1;
}
.llmtl-hints[hidden] {
  display: none;
}
.llmtl-hints > span:first-child {
  margin-right: 6px;
}
.llmtl-hints code {
  white-space: nowrap;
}

.llmtl-chips {
  flex-wrap: nowrap;
  gap: 7px;
  margin: 14px -4px 0;
  padding: 0 4px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.llmtl-chips::-webkit-scrollbar {
  display: none;
}

.llmtl-chip {
  flex: none;
  padding: 7px 13px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-color: var(--border);
  font-size: 12px;
}
.llmtl-chip:hover {
  transform: translateY(-1px);
}
.llmtl-chip.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 22%, transparent);
}

.llmtl-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.llmtl-overview-head > span:first-child {
  color: var(--heading);
  font: 800 10px/1.3 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.llmtl-overview-head > span:last-child {
  color: var(--text-muted);
  font: 600 9.5px/1.3 'SFMono-Regular', Consolas, monospace;
}

.llmtl-eras-rail {
  display: block;
  margin: 9px 0 0;
  padding: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  border: 1px solid var(--border);
  border-radius: 15px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.llmtl-eras-rail::-webkit-scrollbar {
  display: none;
}

.llmtl-era-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  min-width: 660px;
  padding: 13px 12px 12px;
}
.llmtl-era-track::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 48px;
  left: calc(12.5% + 9px);
  right: calc(12.5% + 9px);
  height: 2px;
  background: linear-gradient(90deg, #21a675, #7c62d9 36%, #e56e45 68%, #3984e6);
  border-radius: 999px;
  opacity: 0.66;
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 12%, transparent);
}

.llmtl-era-jump {
  --era-color: var(--accent);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 22px 28px auto;
  justify-items: center;
  min-width: 0;
  padding: 0 8px 5px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 11px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.llmtl-era-jump:nth-child(1) {
  --era-color: #21a675;
}
.llmtl-era-jump:nth-child(2) {
  --era-color: #7c62d9;
}
.llmtl-era-jump:nth-child(3) {
  --era-color: #e56e45;
}
.llmtl-era-jump:nth-child(4) {
  --era-color: #3984e6;
}
.llmtl-era-jump:hover {
  color: var(--text);
  background: transparent;
}
.llmtl-era-jump:focus-visible {
  outline: 2px solid var(--era-color);
  outline-offset: -2px;
}
.llmtl-era-jump:disabled {
  opacity: 0.34;
  cursor: default;
}

.llmtl-era-jump-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font: 600 8px/1 'SFMono-Regular', Consolas, monospace;
  letter-spacing: 0.01em;
}
.llmtl-era-jump-meta span:last-child {
  padding: 2px 5px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-family: 'Nunito Sans', sans-serif;
}

.llmtl-era-jump-node {
  display: grid;
  place-items: center;
  align-self: center;
  width: 17px;
  height: 17px;
  color: var(--era-color);
  background: var(--bg);
  border: 2px solid var(--era-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.llmtl-era-jump-node span {
  opacity: 0;
  font: 800 7px/1 'SFMono-Regular', Consolas, monospace;
  transition: opacity 180ms ease;
}

.llmtl-era-jump-name {
  margin-top: 5px;
  padding: 4px 8px;
  overflow: hidden;
  color: var(--text-muted);
  border-radius: 999px;
  text-overflow: ellipsis;
  font: 700 10.5px/1.25 'Nunito Sans', sans-serif;
  transition: color 180ms ease, background 180ms ease;
}

.llmtl-era-jump:hover .llmtl-era-jump-node {
  transform: scale(1.18);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px color-mix(in srgb, var(--era-color) 12%, transparent);
}

.llmtl-era-jump.is-active .llmtl-era-jump-node {
  color: var(--bg);
  background: var(--era-color);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px color-mix(in srgb, var(--era-color) 14%, transparent);
  transform: scale(1.2);
}
.llmtl-era-jump.is-active .llmtl-era-jump-node span {
  opacity: 1;
}
.llmtl-era-jump.is-active .llmtl-era-jump-name {
  color: var(--era-color);
  background: color-mix(in srgb, var(--era-color) 10%, transparent);
}

.llmtl-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  margin: 54px 0;
  padding: 44px 18px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 18px;
  text-align: center;
}
.llmtl-empty[hidden] {
  display: none;
}
.llmtl-empty strong {
  color: var(--heading);
  font: 700 18px/1.3 'Bitter', Georgia, serif;
}
.llmtl-empty button {
  margin-top: 8px;
  padding: 8px 14px;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  cursor: pointer;
  font: 700 12px/1.3 'Nunito Sans', sans-serif;
}

.llmtl-empty-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 50%;
  font: 700 18px/1 'SFMono-Regular', Consolas, monospace;
}

.llmtl-era {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 34px;
  margin: 78px 0 96px;
  scroll-margin-top: 20px;
}
.llmtl-era--empty {
  display: none;
}

.llmtl-era-header {
  position: sticky;
  top: 24px;
  align-self: start;
  margin: 0;
  padding: 4px 0 0 20px;
  border-left: 1px solid var(--border);
}
.llmtl-era-header::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-sizing: content-box;
}

.llmtl-era-number {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font: 700 11px/1 'SFMono-Regular', Consolas, monospace;
  letter-spacing: 0.12em;
}

.llmtl-era-heading {
  display: block;
}
.llmtl-era-heading h2 {
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.16;
  text-wrap: balance;
}

.llmtl-era-range {
  display: inline-block;
  margin-top: 12px;
  padding: 0;
  color: var(--text-muted);
  background: none;
  border: 0;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.llmtl-era-blurb {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.llmtl-era-count {
  margin-top: 15px;
  color: var(--accent);
}

.llmtl-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.llmtl-card {
  position: relative;
  width: auto;
  min-width: 0;
  min-height: 236px;
  padding: 18px;
  gap: 0;
  overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--org-hue) 7%, transparent), transparent 45%), var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035);
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.llmtl-card:hover, .llmtl-card:focus-visible {
  z-index: 1;
  border-color: color-mix(in srgb, var(--org-hue) 42%, var(--card-border));
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14), inset 0 0 0 1px color-mix(in srgb, var(--org-hue) 10%, transparent);
  transform: translateY(-4px);
}
.llmtl-card[hidden] {
  display: none;
}

.is-reveal-ready .llmtl-card {
  opacity: 0;
  transform: translateY(14px);
}
.is-reveal-ready .llmtl-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.llmtl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.llmtl-card-org {
  position: relative;
  min-width: 0;
  padding-left: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.09em;
}
.llmtl-card-org::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 6px;
  height: 6px;
  background: var(--org-hue, var(--accent));
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--org-hue, var(--accent)) 12%, transparent);
  transform: translateY(-50%);
}

.llmtl-card-date {
  flex: none;
  font-size: 9.5px;
  letter-spacing: 0.01em;
}

.llmtl-card-name {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.22;
}

.llmtl-card-why {
  display: -webkit-box;
  overflow: hidden;
  color: var(--card-text-muted);
  font-size: 12.5px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.llmtl-card-foot {
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.llmtl-card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.llmtl-pill,
.llmtl-card-spec {
  padding: 3px 7px;
  border-radius: 999px;
  font: 700 8.5px/1.35 'Nunito Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.llmtl-card-spec {
  color: var(--card-text-muted);
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  border: 1px solid var(--card-border);
}

.llmtl-card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: var(--org-hue, var(--accent));
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
  font: 700 10px/1 'Nunito Sans', sans-serif;
}

.llmtl-card:hover .llmtl-card-more,
.llmtl-card:focus-visible .llmtl-card-more {
  opacity: 1;
  transform: translateX(0);
}

.llmtl-modal {
  width: min(560px, 100vw);
  height: 100dvh;
  max-width: none;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  border-radius: 24px 0 0 24px;
  background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--org-hue, var(--accent)) 10%, transparent), transparent 30%), var(--bg);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.28);
}
.llmtl-modal::backdrop {
  background: rgba(8, 12, 20, 0.62);
  backdrop-filter: blur(5px);
}
.llmtl-modal[open] {
  animation: llmtl-sheet-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes llmtl-sheet-in {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.llmtl-modal-inner {
  max-height: 100dvh;
  height: 100%;
  padding: 76px 42px 44px;
  scrollbar-width: thin;
  scrollbar-color: var(--llmtl-rail) transparent;
}

.llmtl-modal-close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 34px;
  height: 34px;
  z-index: 2;
  border: 1px solid var(--border);
}

.llmtl-modal-nav {
  position: fixed;
  top: 20px;
  left: auto;
  right: min(418px, calc(100vw - 142px));
  z-index: 2;
  align-items: center;
}

.llmtl-modal-navbtn {
  width: 34px;
  height: 34px;
}
.llmtl-modal-navbtn:disabled {
  opacity: 0.3;
  cursor: default;
}

.llmtl-modal-position {
  min-width: 48px;
  margin-left: 5px;
  color: var(--text-muted);
  font: 700 10px/1 'SFMono-Regular', Consolas, monospace;
}

.llmtl-modal-org {
  margin-top: 0;
  color: var(--org-hue, var(--accent));
  letter-spacing: 0.1em;
}

.llmtl-modal-title {
  margin-top: 10px;
  font-size: clamp(26px, 4vw, 34px);
}

.llmtl-modal-why {
  margin-top: 24px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--org-hue, var(--accent)) 7%, var(--card-bg));
  border-color: color-mix(in srgb, var(--org-hue, var(--accent)) 24%, var(--border));
  border-left: 3px solid var(--org-hue, var(--accent));
  border-radius: 4px 12px 12px 4px;
  font-size: 15px;
}

.llmtl-modal-section {
  margin-top: 26px;
}

.llmtl-modal-section h4 {
  margin-bottom: 9px;
  padding-bottom: 8px;
  color: var(--org-hue, var(--accent));
}

.llmtl-modal-row {
  padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
}

.llmtl-modal-source {
  margin-top: 28px;
  padding: 10px 15px;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
}
.llmtl-modal-source:hover {
  color: var(--bg);
  filter: brightness(1.08);
}

@media (max-width: 1040px) {
  .llmtl-era {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
  }

  .llmtl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .llmtl {
    margin-top: 28px;
  }

  .llmtl-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .llmtl-toolbar-meta {
    justify-content: space-between;
  }

  .llmtl-eras-rail {
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .llmtl-era-track {
    min-width: 620px;
  }

  .llmtl-era-jump {
    scroll-snap-align: center;
  }

  .llmtl-era {
    display: block;
    margin: 60px 0 76px;
  }

  .llmtl-era-header {
    position: relative;
    top: auto;
    margin-bottom: 24px;
    padding-left: 18px;
  }

  .llmtl-era-heading {
    display: flex;
  }

  .llmtl-era-range {
    margin-top: 0;
  }

  .llmtl-era-number {
    margin-bottom: 12px;
  }
}
@media (max-width: 580px) {
  .llmtl-post > .entry > ul {
    grid-template-columns: 1fr;
  }

  .llmtl {
    margin-left: -2px;
    margin-right: -2px;
  }

  .llmtl-explorer {
    padding: 13px;
    border-radius: 17px;
  }

  .llmtl-search kbd {
    display: none;
  }

  .llmtl-count {
    background: transparent;
    border: 0;
    padding-left: 2px;
  }

  .llmtl-hint-toggle {
    padding-right: 2px;
  }

  .llmtl-hints {
    margin-left: -2px;
    margin-right: -2px;
    line-height: 2.25;
  }

  .llmtl-eras-rail {
    margin: 9px 0 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    scroll-snap-type: none;
  }

  .llmtl-era-track {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 7px 9px;
  }
  .llmtl-era-track::before {
    top: 26px;
    right: auto;
    bottom: 26px;
    left: 30px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #21a675, #7c62d9 36%, #e56e45 68%, #3984e6);
  }

  .llmtl-era-jump {
    grid-template-rows: auto auto;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-items: start;
    min-height: 50px;
    padding: 7px 6px;
    text-align: left;
    white-space: normal;
    scroll-snap-align: none;
  }

  .llmtl-era-jump-node {
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: center;
    justify-self: center;
  }

  .llmtl-era-jump-name {
    grid-row: 1;
    grid-column: 2;
    align-self: end;
    margin: 0;
    padding: 3px 7px;
    font-size: 11px;
  }

  .llmtl-era-jump-meta {
    grid-row: 2;
    grid-column: 2;
    align-self: start;
    padding: 2px 7px 0;
    font-size: 7.5px;
    white-space: nowrap;
  }

  .llmtl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    padding-left: 22px;
  }
  .llmtl-grid::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 5px;
    width: 1px;
    background: linear-gradient(var(--accent), var(--border) 14%, var(--border) 86%, transparent);
  }

  .llmtl-card {
    min-height: 0;
    padding: 16px;
    border-radius: 14px;
  }
  .llmtl-card::after {
    content: "";
    position: absolute;
    top: 21px;
    left: -23px;
    width: 7px;
    height: 7px;
    background: var(--org-hue, var(--accent));
    border: 3px solid var(--bg);
    border-radius: 50%;
    box-sizing: content-box;
  }

  .llmtl-card-top {
    margin-bottom: 10px;
  }

  .llmtl-card-name {
    font-size: 16px;
  }

  .llmtl-card-why {
    -webkit-line-clamp: 2;
  }

  .llmtl-card-foot {
    padding-top: 14px;
  }

  .llmtl-card-more {
    display: none;
  }

  .llmtl-modal {
    width: 100vw;
    height: min(90dvh, 780px);
    max-height: 90dvh;
    margin: auto auto 0;
    border-radius: 22px 22px 0 0;
  }
  .llmtl-modal[open] {
    animation-name: llmtl-sheet-up;
  }

  @keyframes llmtl-sheet-up {
    from {
      opacity: 0;
      transform: translateY(35px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .llmtl-modal-inner {
    max-height: 90dvh;
    padding: 70px 20px 34px;
  }

  .llmtl-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
  }

  .llmtl-modal-nav {
    position: absolute;
    top: 18px;
    left: 18px;
    right: auto;
  }

  .llmtl-modal-title {
    font-size: 26px;
  }

  .llmtl-modal-row {
    display: block;
  }

  .llmtl-modal-value {
    display: block;
    margin-top: 3px;
    text-align: left;
    overflow-wrap: anywhere;
  }
}
@media (hover: none), (pointer: coarse) {
  .llmtl-card:active {
    transform: scale(0.99);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-reveal-ready .llmtl-card {
    opacity: 1;
    transform: none;
  }

  .llmtl-card,
  .llmtl-card-more,
  .llmtl-era-jump-node,
  .llmtl-era-jump-name,
  .llmtl-hint-toggle svg {
    transition: none;
  }

  .llmtl-modal[open] {
    animation: none;
  }
}
.tch {
  --tch-count: #b45309;
  --tch-neural: #0f766e;
  --tch-attn: #6d28d9;
  --tch-llm: #be185d;
  --tch-jev: #1d4ed8;
  --tch-grid: rgba(29, 78, 216, 0.035);
  --tch-paper: var(--bg);
  --tch-card: #ffffff;
  --tch-shadow: rgba(24, 32, 49, 0.08);
  --tch-ink: var(--text);
  --tch-muted: var(--text-muted);
  --tch-line: var(--card-border);
  --tch-chip: var(--card-bg);
  --tch-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --tch-hand: 'Caveat', 'Bradley Hand', cursive;
  --era: var(--accent);
  position: relative;
  margin-top: 40px;
  margin-bottom: 48px;
  color: var(--tch-ink);
  font-size: 16px;
  line-height: 1.7;
}

[data-theme="dark"] .tch {
  --tch-count: #f59e0b;
  --tch-neural: #2dd4bf;
  --tch-attn: #a78bfa;
  --tch-llm: #f472b6;
  --tch-jev: #60a5fa;
  --tch-grid: rgba(96, 165, 250, 0.04);
  --tch-card: #2a2a28;
  --tch-shadow: rgba(0, 0, 0, 0.25);
}

.tch .era-count {
  --era: var(--tch-count);
}

.tch .era-neural {
  --era: var(--tch-neural);
}

.tch .era-attn {
  --era: var(--tch-attn);
}

.tch .era-llm {
  --era: var(--tch-llm);
}

.tch .era-jev {
  --era: var(--tch-jev);
}

.tch [hidden] {
  display: none !important;
}

.tch nav {
  margin-left: 0;
  align-items: stretch;
}

.tch nav a {
  white-space: normal;
  margin-left: 0;
  letter-spacing: normal;
}

.tch-era-map {
  gap: 0;
}

.tch-era-card {
  border-radius: 0;
}

.tch a:focus-visible, .tch button:focus-visible, .tch summary:focus-visible {
  outline: 3px solid var(--era);
  outline-offset: 5px;
}

.tch-intro {
  margin: 48px auto;
}

.tch-atlas {
  padding: 24px 24px 36px;
  background: var(--tch-paper);
  border: 1px solid var(--tch-line);
  border-radius: 16px;
  box-shadow: 0 12px 36px var(--tch-shadow);
}

.tch-era-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tch-era-card {
  position: relative;
  padding: 18px 16px 28px;
  border: 1px solid var(--tch-line);
  border-right: 0;
  color: var(--tch-ink);
  text-decoration: none;
  transition: background 0.2s;
}
.tch-era-card:first-child {
  border-radius: 8px 0 0 8px;
}
.tch-era-card:last-child {
  border-right: 1px solid var(--tch-line);
  border-radius: 0 8px 8px 0;
}
.tch-era-card:hover {
  color: var(--tch-ink);
  background: color-mix(in srgb, var(--era) 10%, transparent);
  text-decoration: none;
}
.tch-era-card strong {
  display: block;
  font: 600 14px/1.4 'Bitter', Georgia, serif;
  color: var(--era);
}
.tch-era-card svg {
  display: block;
  width: 100%;
  height: 90px;
  margin: 8px 0 12px;
}
.tch-era-card .glyph-fill {
  fill: var(--era);
}
.tch-era-card .glyph-line {
  stroke: var(--era);
  stroke-width: 2;
}
.tch-era-card .glyph-guide {
  stroke: var(--tch-muted);
  stroke-width: 1;
  opacity: 0.28;
}
.tch-era-card .glyph-faint {
  opacity: 0.4;
}

.tch-era-date {
  display: flex;
  justify-content: space-between;
  font: 10px/1.5 var(--tch-mono);
  color: var(--tch-muted);
}

.tch-era-idea {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: var(--tch-muted);
}

.tch-era-node {
  position: absolute;
  bottom: -12px;
  left: 16px;
  background: var(--tch-paper);
  border: 1px solid var(--era);
  color: var(--era);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  font: 10px/22px var(--tch-mono);
}

.tch-history-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.tch-history-head > p {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--tch-muted);
  margin: 0;
}

.tch-index {
  border-top: 1px solid var(--tch-line);
  border-bottom: 1px solid var(--tch-line);
  margin-bottom: 12px;
}
.tch-index summary {
  cursor: pointer;
  padding: 16px 0;
  font: 600 13px/1.5 var(--tch-mono);
}
.tch-index summary > span {
  float: right;
  font-size: 11px;
  color: var(--tch-muted);
}
.tch-index nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
  padding-bottom: 20px;
}
.tch-index a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px;
  font-size: 14px;
  color: var(--tch-ink);
  border-radius: 4px;
}
.tch-index a:hover {
  background: var(--tch-chip);
}
.tch-index a span {
  color: var(--era);
  font: 12px var(--tch-mono);
}

.tch-step-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.tch-step-number {
  font: 400 48px/1 'Bitter', Georgia, serif;
  color: var(--era);
  letter-spacing: -0.06em;
}

.tch-step-year {
  font: 11px/1.7 var(--tch-mono);
  color: var(--tch-muted);
}

.tch-permalink {
  margin-left: auto;
  color: var(--tch-muted);
  padding: 8px;
  font: 20px var(--tch-mono);
}

.tch-panel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--tch-line);
  padding-top: 12px;
  margin-top: 12px;
  font: 11px var(--tch-mono);
  color: var(--tch-muted);
}
.tch-panel-nav button {
  cursor: pointer;
  background: var(--tch-chip);
  border: 1px solid var(--tch-line);
  border-radius: 6px;
  color: var(--tch-ink);
  font: inherit;
  padding: 10px;
}
.tch-panel-nav button:hover {
  border-color: var(--era);
}
.tch-panel-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

.tch-axis {
  display: flex;
  justify-content: space-between;
  margin: 12px 62px 4px;
  font: 9px var(--tch-mono);
  color: var(--tch-muted);
}

.tch-ladder-note {
  font-size: 11px;
  line-height: 1.5;
  color: var(--tch-muted);
  margin: 12px 0 0;
}

.tch-references {
  font-size: 14px;
  color: var(--text-muted);
}

.tch-references li {
  padding-bottom: 8px;
}

@media (max-width: 1000px) and (min-width: 821px) {
  .tch-era-card {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 820px) {
  .tch-atlas {
    padding: 8px 20px;
  }

  .tch-era-map {
    grid-template-columns: 1fr;
  }

  .tch-era-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0 14px;
    align-items: center;
    padding: 14px 0;
    border: 0;
    border-top: 1px solid var(--tch-line);
    border-radius: 0;
  }
  .tch-era-card:first-child, .tch-era-card:last-child {
    border-radius: 0;
    border-right: 0;
  }
  .tch-era-card:first-child {
    border-top: 0;
  }
  .tch-era-card svg {
    grid-column: 1;
    grid-row: 1 / 4;
    height: 48px;
    margin: 0;
  }
  .tch-era-card strong {
    grid-column: 2;
    grid-row: 2;
  }
  .tch-era-card .tch-era-idea {
    grid-column: 2;
    grid-row: 3;
  }

  .tch-era-date {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  .tch-era-node {
    display: none;
  }

  .tch-intro {
    margin: 36px auto;
  }

  .tch-history-head {
    display: block;
  }

  .tch-history-head > p {
    margin-top: 12px;
  }

  .tch-history-head > p br {
    display: none;
  }

  .tch-index nav {
    grid-template-columns: 1fr;
  }

  .tch-index summary > span {
    display: none;
  }

  .tch-step-number {
    font-size: 40px;
  }
}
.tch-spec {
  font: 600 11.5px/1.4 var(--tch-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--era);
}

.tch-hand {
  font: 700 23px/1.15 var(--tch-hand);
  color: var(--era);
  transform: rotate(-2deg);
  transform-origin: left center;
  margin: 18px 0 6px;
}

.tch-replay {
  font: 600 14px/1 var(--tch-mono);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--tch-line);
  background: var(--tch-card);
  color: var(--tch-muted);
  cursor: pointer;
}
.tch-replay:hover {
  color: var(--era);
  border-color: var(--era);
}

.tch-toks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tch-tok {
  font: 500 13px/1.3 var(--tch-mono);
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--tch-chip);
  border: 1px solid var(--tch-line);
  color: var(--tch-ink);
  transition: background 0.25s, border-color 0.25s;
}
.tch-tok.is-hot {
  background: color-mix(in srgb, var(--era) 20%, transparent);
  border-color: var(--era);
}
.tch-tok.is-gram {
  border-style: dashed;
}

.tch-arrow {
  text-align: center;
  color: var(--tch-muted);
  line-height: 1;
  margin: 6px 0;
}

.tch-cap {
  font: 12px/1.5 var(--tch-mono);
  color: var(--tch-muted);
  margin: 8px 0 0;
}
.tch-cap b {
  color: var(--era);
}

.single-post .entry .tch .tch-h {
  margin: 4px 0 6px;
}
.single-post .entry .tch .tch-name {
  margin: 6px 0 4px;
}

.tch-h {
  font: 700 28px/1.2 'Bitter', Georgia, serif;
  margin: 4px 0 6px;
}
@media (max-width: 820px) {
  .tch-h {
    font-size: 23px;
  }
}

.tch-fine {
  font-size: 12.5px;
  color: var(--tch-muted);
  margin: 14px 0 0;
}

.tch-scrolly {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  position: relative;
  padding: 8px 0;
}
.tch-scrolly::before {
  content: "";
  position: absolute;
  inset: 0 -14px;
  background-image: linear-gradient(var(--tch-grid) 1px, transparent 1px), linear-gradient(90deg, var(--tch-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 14px;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(transparent, #000 60px, #000 calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 60px, #000 calc(100% - 60px), transparent);
}
@media (max-width: 820px) {
  .tch-scrolly {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .tch-scrolly::before {
    inset: 0 -8px;
  }
}

.tch-step {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vh 0;
  border-left: 2px dashed color-mix(in srgb, var(--era) 45%, transparent);
  padding-left: 22px;
  position: relative;
  scroll-margin-top: 72px;
  border-left-style: solid;
  transition: border-color 0.35s ease;
}
.tch-step.is-active {
  border-left-color: var(--era);
}
@media (max-width: 820px) {
  .tch-step {
    min-height: 0;
    padding: 36px 0 36px 14px;
    opacity: 1;
  }
}

.tch-name {
  font: 700 30px/1.2 'Bitter', Georgia, serif;
}
@media (max-width: 820px) {
  .tch-name {
    font-size: 22px;
  }
}

.tch-tag {
  font-style: italic;
  color: var(--tch-muted);
  margin: 0 0 12px;
}

.tch-kv {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
}
.tch-kv dt {
  font: 600 11px/1.5 var(--tch-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tch-muted);
  padding-top: 4px;
}
.tch-kv dd {
  margin: 0 0 14px;
}
.tch-kv dd p {
  margin: 0;
}
.tch-kv dd p + p {
  margin-top: 0.6em;
}
.tch-kv code {
  font-size: 12.5px;
}
@media (max-width: 520px) {
  .tch-kv {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .tch-kv dd {
    margin-bottom: 12px;
  }
}

.tch-stamp {
  display: inline-block;
  font: 700 15px/1 var(--tch-mono);
  color: var(--era);
  border: 2px solid var(--era);
  padding: 5px 9px 4px;
  transform: rotate(-2.5deg);
  margin-right: 8px;
}
.tch-stamp--na {
  opacity: 0.6;
  border-style: dashed;
}

.tch-acc-note {
  font-size: 13.5px;
  color: var(--tch-muted);
}

.tch-fix {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  border-left: 4px solid var(--era);
  background: color-mix(in srgb, var(--era) 8%, transparent);
  font-size: 15px;
}
.tch-fix p {
  margin: 2px 0 0;
}
.tch-fix--end {
  border-left-color: var(--tch-ink);
}

.tch-fix-label {
  display: block;
  font: 600 11px/1.4 var(--tch-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tch-muted);
}

.tch-fig, .tch-panel {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--era) 7%, transparent), transparent 180px), var(--tch-card);
  border: 1px solid color-mix(in srgb, var(--era) 50%, var(--tch-line));
  border-radius: 14px;
  box-shadow: inset 0 0 0 4px var(--tch-card), 0 0 0 4px color-mix(in srgb, var(--era) 6%, transparent), 0 10px 28px var(--tch-shadow);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.tch-fig .tch-replay, .tch-panel .tch-replay {
  color: var(--era);
  border-color: color-mix(in srgb, var(--era) 25%, var(--tch-line));
}
.tch-fig .tch-replay:hover, .tch-panel .tch-replay:hover {
  border-color: var(--era);
  background: var(--tch-paper);
}

.tch-fig {
  position: relative;
  margin: 6px 0 4px;
  padding: 14px;
  padding-top: 52px;
}
.tch-fig figcaption {
  font: 11.5px/1.5 var(--tch-mono);
  color: var(--tch-muted);
  margin-top: 10px;
}
.tch-fig .tch-replay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.tch-fig--inline {
  display: none;
}
@media (max-width: 820px) {
  .tch-fig--inline {
    display: block;
  }
}

.tch-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  align-self: start;
  margin-top: 7vh;
  padding: 22px;
}
@media (max-width: 820px) {
  .tch-panel {
    display: none;
  }
}

.tch-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tch-panel-name {
  display: block;
  font: 700 18px/1.3 'Bitter', serif;
  margin: 2px 0 12px;
}

.tch-stage {
  min-height: 210px;
}
.tch-stage > div {
  animation: tch-in 0.45s ease;
}

@keyframes tch-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.tch-ladder {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--tch-line);
}

.tch-ladder-head {
  display: flex;
  justify-content: space-between;
  font: 600 10.5px/1.4 var(--tch-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tch-muted);
  margin-bottom: 4px;
}

.tch-rung {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  font: 12px/1.3 var(--tch-mono);
  color: var(--tch-muted);
  padding: 5px 0;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}
.tch-rung:hover, .tch-rung.is-current {
  background: color-mix(in srgb, var(--era) 9%, transparent);
  color: var(--tch-ink);
}
.tch-rung.is-on {
  opacity: 1;
}
.tch-rung.is-current .tch-rung-name {
  color: var(--era);
  font-weight: 700;
}

.tch-rung-bar {
  height: 9px;
  border-radius: 5px;
  background: var(--tch-chip);
  border: 1px solid var(--tch-line);
  overflow: hidden;
}
.tch-rung-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  opacity: 0.3;
  background: var(--era);
  border-radius: 5px;
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is-on .tch-rung-bar i {
  opacity: 1;
}

.tch-rung-val {
  text-align: right;
}

@media (max-height: 760px) and (min-width: 821px) {
  .tch-stage {
    min-height: 170px;
  }

  .tch-rung {
    margin-top: 2px;
    padding: 3px 0;
    font-size: 11px;
  }

  .tch-rung-bar {
    height: 7px;
  }
}
.tch-strip {
  display: none;
}
@media (max-width: 820px) {
  .tch-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -20px;
    padding: 10px 20px 8px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--tch-line);
    font: 600 12px/1.3 var(--tch-mono);
  }
}

.tch-strip-num {
  color: var(--era);
}

.tch-strip-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13.5px;
}

.tch-strip-acc {
  color: var(--era);
}

.tch-strip-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--tch-line);
  border-radius: 2px;
  overflow: hidden;
}
.tch-strip-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--era);
  transition: width 0.4s ease;
}

.tch-vec {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.tch-cell {
  border: 1px solid var(--tch-line);
  border-radius: 6px;
  text-align: center;
  padding: 4px 2px;
  background: var(--tch-card);
  min-width: 0;
}
.tch-cell .w {
  display: block;
  font: 10.5px/1.3 var(--tch-mono);
  color: var(--tch-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tch-cell .c {
  display: block;
  font: 700 17px/1.3 var(--tch-mono);
  color: var(--era);
  transition: transform 0.2s;
}
.tch-cell.is-zero .c {
  color: var(--tch-muted);
  opacity: 0.45;
}
.tch-cell.is-bump .c {
  transform: scale(1.35);
}
.tch-cell.is-key {
  border-color: var(--era);
  background: color-mix(in srgb, var(--era) 10%, var(--tch-card));
}

.tch-eq {
  font: 600 12.5px/1.4 var(--tch-mono);
  color: var(--era);
  margin-top: 8px;
  transition: opacity 0.5s;
}

.tch-map {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 70px;
  margin-top: 26px;
}
.tch-map .f {
  flex: 1;
  position: relative;
  min-height: 4px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--era) 28%, transparent);
  transition: height 0.35s, background 0.35s;
}
.tch-map .f.is-max {
  background: var(--era);
}
.tch-map .f span {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  text-align: center;
  font: 10.5px var(--tch-mono);
  color: var(--tch-muted);
}

.tch-attn-scroll {
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: thin;
}

.tch-attn-scroll:focus-visible {
  outline: 2px solid var(--era);
  outline-offset: 2px;
}

.tch-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.tch-svg text {
  font: 12.5px var(--tch-mono);
  fill: var(--tch-ink);
}
.tch-svg .m {
  fill: var(--tch-muted);
}
.tch-svg .e {
  fill: var(--era);
  font-weight: 700;
}
.tch-svg .arc {
  fill: none;
  stroke: var(--era);
  stroke-linecap: round;
}
.tch-svg .dot {
  fill: var(--era);
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s;
}
.tch-svg .dot-alt {
  fill: var(--tch-muted);
}
.tch-svg .link {
  stroke: var(--era);
  stroke-dasharray: 4 4;
  fill: none;
  transition: opacity 0.5s;
}
.tch-svg .ring {
  fill: none;
  stroke: var(--era);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
  opacity: 0.6;
}

.tch-rnn-state {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1.5px dashed var(--era);
  border-radius: 10px;
}
.tch-rnn-state .lbl {
  font: 600 11px var(--tch-mono);
  color: var(--tch-muted);
  margin-right: 6px;
  white-space: nowrap;
}
.tch-rnn-state .h {
  flex: 1;
  height: 30px;
  border-radius: 4px;
  background: var(--era);
  transition: opacity 0.35s;
}

.tch-stages {
  display: grid;
  gap: 8px;
}

.tch-stage-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--tch-line);
  border-radius: 10px;
  background: var(--tch-card);
  opacity: 0.35;
  transition: opacity 0.4s, border-color 0.4s;
}
.tch-stage-card.is-on {
  opacity: 1;
  border-color: var(--era);
}
.tch-stage-card .n {
  font: 700 14px var(--tch-mono);
  color: var(--era);
  grid-row: span 2;
}
.tch-stage-card b {
  font-size: 14px;
}
.tch-stage-card small {
  font: 11.5px var(--tch-mono);
  color: var(--tch-muted);
}
.tch-stage-card .p {
  grid-column: 2;
  height: 4px;
  border-radius: 2px;
  background: var(--tch-chip);
  overflow: hidden;
}
.tch-stage-card .p i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--era);
  transition: width 0.8s ease;
}
.tch-stage-card.is-on .p i {
  width: 100%;
}

.tch-bars {
  display: grid;
  gap: 9px;
}

.tch-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 4px 10px;
  align-items: center;
  font-size: 13.5px;
}
.tch-bar .lbl {
  grid-column: 1 / -1;
  font: 12px/1.4 var(--tch-mono);
  color: var(--tch-muted);
}
.tch-bar .lbl b {
  color: var(--tch-ink);
}
.tch-bar .track {
  height: 14px;
  border-radius: 4px;
  background: var(--tch-chip);
  border: 1px solid var(--tch-line);
  overflow: hidden;
}
.tch-bar .track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--era);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tch-bar .val {
  font: 600 12.5px var(--tch-mono);
  text-align: right;
}
.tch-bar.is-dim .track i {
  background: color-mix(in srgb, var(--era) 35%, transparent);
}

.tch-box {
  border: 1px solid var(--tch-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--tch-chip);
  font: 12.5px/1.6 var(--tch-mono);
  word-break: break-word;
}
.tch-box + .tch-box {
  margin-top: 8px;
}
.tch-box .who {
  display: block;
  font: 600 10.5px var(--tch-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tch-muted);
  margin-bottom: 2px;
}
.tch-box .hl {
  color: var(--era);
  font-weight: 700;
}
.tch-box.is-out {
  background: var(--tch-card);
  border-color: var(--era);
}

.tch-caret::after {
  content: "▍";
  color: var(--era);
  animation: tch-blink 1s steps(2) infinite;
}

@keyframes tch-blink {
  50% {
    opacity: 0;
  }
}
.tch-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 30px;
}

.tch-stream span {
  font: 600 12.5px/1.3 var(--tch-mono);
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid var(--era);
  background: color-mix(in srgb, var(--era) 10%, transparent);
  animation: tch-in 0.25s ease;
}

.tch-meter {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font: 600 12px var(--tch-mono);
  color: var(--tch-muted);
}
.tch-meter b {
  color: var(--era);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .tch *,
  .tch *::before,
  .tch *::after {
    animation: none !important;
    transition: none !important;
  }

  .tch-step {
    opacity: 1;
  }
}
.tch:not(.is-enhanced) .tch-panel, .tch:not(.is-enhanced) .tch-strip, .tch:not(.is-enhanced) .tch-fig--inline {
  display: none;
}
.tch:not(.is-enhanced) .tch-scrolly {
  grid-template-columns: 1fr;
}
.tch:not(.is-enhanced) .tch-step {
  min-height: 0;
  padding-top: 32px;
  padding-bottom: 32px;
}

@media print {
  .tch-atlas {
    background: white;
    color: black;
    box-shadow: none;
  }

  .tch-wide {
    width: auto;
    margin-left: 0;
  }

  .tch-atlas a, .tch-atlas strong, .tch-atlas span {
    color: black !important;
  }

  .tch-panel, .tch-strip, .tch-replay, .tch-index {
    display: none !important;
  }

  .tch-scrolly {
    display: block;
  }

  .tch-step {
    min-height: 0;
    padding: 24px;
    break-inside: avoid;
  }

  .tch-fig--inline {
    display: block;
    box-shadow: none;
  }
}
@media (min-width: 821px) and (max-width: 1000px) {
  .tch-scrolly {
    gap: 28px;
  }

  .tch-panel {
    padding: 16px;
  }
}
.highlight {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
}
.highlight pre {
  background: none;
  border: 0;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}
.highlight code {
  background: none;
  border: 0;
  padding: 0;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.highlighter-rouge {
  margin: 20px 0;
}

.highlight .c {
  color: #596A80;
  font-style: italic;
}

/* Comment */
.highlight .err {
  color: #B73835;
}

/* Error */
.highlight .g {
  color: #29364A;
}

/* Generic */
.highlight .k {
  color: #A626A4;
}

/* Keyword */
.highlight .l {
  color: #875C00;
}

/* Literal */
.highlight .n {
  color: #29364A;
}

/* Name */
.highlight .o {
  color: #29364A;
}

/* Operator */
.highlight .x {
  color: #29364A;
}

/* Other */
.highlight .p {
  color: #29364A;
}

/* Punctuation */
.highlight .cm {
  color: #596A80;
  font-style: italic;
}

/* Comment.Multiline */
.highlight .cp {
  color: #596A80;
}

/* Comment.Preproc */
.highlight .c1 {
  color: #596A80;
  font-style: italic;
}

/* Comment.Single */
.highlight .cs {
  color: #596A80;
}

/* Comment.Special */
.highlight .gd {
  color: #B73835;
}

/* Generic.Deleted */
.highlight .ge {
  color: #29364A;
  font-style: italic;
}

/* Generic.Emph */
.highlight .gr {
  color: #B73835;
}

/* Generic.Error */
.highlight .gh {
  color: #875C00;
  font-weight: bold;
}

/* Generic.Heading */
.highlight .gi {
  color: #35703A;
}

/* Generic.Inserted */
.highlight .go {
  color: #596A80;
}

/* Generic.Output */
.highlight .gp {
  color: #596A80;
}

/* Generic.Prompt */
.highlight .gs {
  color: #29364A;
  font-weight: bold;
}

/* Generic.Strong */
.highlight .gu {
  color: #875C00;
}

/* Generic.Subheading */
.highlight .gt {
  color: #596A80;
}

/* Generic.Traceback */
.highlight .kc {
  color: #875C00;
}

/* Keyword.Constant */
.highlight .kd {
  color: #A626A4;
}

/* Keyword.Declaration */
.highlight .kn {
  color: #A626A4;
}

/* Keyword.Namespace */
.highlight .kp {
  color: #A626A4;
}

/* Keyword.Pseudo */
.highlight .kr {
  color: #A626A4;
}

/* Keyword.Reserved */
.highlight .kt {
  color: #805800;
}

/* Keyword.Type */
.highlight .ld {
  color: #35703A;
}

/* Literal.Date */
.highlight .m {
  color: #875C00;
}

/* Literal.Number */
.highlight .s {
  color: #35703A;
}

/* Literal.String */
.highlight .na {
  color: #875C00;
}

/* Name.Attribute */
.highlight .nb {
  color: #006B99;
}

/* Name.Builtin */
.highlight .nc {
  color: #805800;
}

/* Name.Class */
.highlight .no {
  color: #875C00;
}

/* Name.Constant */
.highlight .nd {
  color: #245BCD;
}

/* Name.Decorator */
.highlight .ni {
  color: #B73835;
}

/* Name.Entity */
.highlight .ne {
  color: #B73835;
}

/* Name.Exception */
.highlight .nf {
  color: #245BCD;
}

/* Name.Function */
.highlight .nl {
  color: #29364A;
}

/* Name.Label */
.highlight .nn {
  color: #805800;
}

/* Name.Namespace */
.highlight .nx {
  color: #29364A;
}

/* Name.Other */
.highlight .py {
  color: #29364A;
}

/* Name.Property */
.highlight .nt {
  color: #B73835;
}

/* Name.Tag */
.highlight .nv {
  color: #B73835;
}

/* Name.Variable */
.highlight .ow {
  color: #A626A4;
}

/* Operator.Word */
.highlight .w {
  color: transparent;
}

/* Text.Whitespace */
.highlight .mf {
  color: #875C00;
}

/* Literal.Number.Float */
.highlight .mh {
  color: #875C00;
}

/* Literal.Number.Hex */
.highlight .mi {
  color: #875C00;
}

/* Literal.Number.Integer */
.highlight .mo {
  color: #875C00;
}

/* Literal.Number.Oct */
.highlight .sb {
  color: #35703A;
}

/* Literal.String.Backtick */
.highlight .sc {
  color: #35703A;
}

/* Literal.String.Char */
.highlight .sd {
  color: #596A80;
  font-style: italic;
}

/* Literal.String.Doc */
.highlight .s2 {
  color: #35703A;
}

/* Literal.String.Double */
.highlight .se {
  color: #006B99;
}

/* Literal.String.Escape */
.highlight .sh {
  color: #35703A;
}

/* Literal.String.Heredoc */
.highlight .si {
  color: #006B99;
}

/* Literal.String.Interpol */
.highlight .sx {
  color: #35703A;
}

/* Literal.String.Other */
.highlight .sr {
  color: #006B99;
}

/* Literal.String.Regex */
.highlight .s1 {
  color: #35703A;
}

/* Literal.String.Single */
.highlight .ss {
  color: #35703A;
}

/* Literal.String.Symbol */
.highlight .bp {
  color: #006B99;
}

/* Name.Builtin.Pseudo */
.highlight .vc {
  color: #B73835;
}

/* Name.Variable.Class */
.highlight .vg {
  color: #B73835;
}

/* Name.Variable.Global */
.highlight .vi {
  color: #B73835;
}

/* Name.Variable.Instance */
.highlight .il {
  color: #875C00;
}

/* Literal.Number.Integer.Long */
[data-theme="dark"] {
  /* Comment */
  /* Error */
  /* Generic */
  /* Keyword */
  /* Literal */
  /* Name */
  /* Operator */
  /* Other */
  /* Punctuation */
  /* Comment.Multiline */
  /* Comment.Preproc */
  /* Comment.Single */
  /* Comment.Special */
  /* Generic.Deleted */
  /* Generic.Emph */
  /* Generic.Error */
  /* Generic.Heading */
  /* Generic.Inserted */
  /* Generic.Output */
  /* Generic.Prompt */
  /* Generic.Strong */
  /* Generic.Subheading */
  /* Generic.Traceback */
  /* Keyword.Constant */
  /* Keyword.Declaration */
  /* Keyword.Namespace */
  /* Keyword.Pseudo */
  /* Keyword.Reserved */
  /* Keyword.Type */
  /* Literal.Date */
  /* Literal.Number */
  /* Literal.String */
  /* Name.Attribute */
  /* Name.Builtin */
  /* Name.Class */
  /* Name.Constant */
  /* Name.Decorator */
  /* Name.Entity */
  /* Name.Exception */
  /* Name.Function */
  /* Name.Label */
  /* Name.Namespace */
  /* Name.Other */
  /* Name.Property */
  /* Name.Tag */
  /* Name.Variable */
  /* Operator.Word */
  /* Text.Whitespace */
  /* Literal.Number.Float */
  /* Literal.Number.Hex */
  /* Literal.Number.Integer */
  /* Literal.Number.Oct */
  /* Literal.String.Backtick */
  /* Literal.String.Char */
  /* Literal.String.Doc */
  /* Literal.String.Double */
  /* Literal.String.Escape */
  /* Literal.String.Heredoc */
  /* Literal.String.Interpol */
  /* Literal.String.Other */
  /* Literal.String.Regex */
  /* Literal.String.Single */
  /* Literal.String.Symbol */
  /* Name.Builtin.Pseudo */
  /* Name.Variable.Class */
  /* Name.Variable.Global */
  /* Name.Variable.Instance */
  /* Literal.Number.Integer.Long */
}
[data-theme="dark"] .highlight .c {
  color: #99A8BC;
  font-style: italic;
}
[data-theme="dark"] .highlight .err {
  color: #E06C75;
}
[data-theme="dark"] .highlight .g {
  color: #CDD6E3;
}
[data-theme="dark"] .highlight .k {
  color: #C678DD;
}
[data-theme="dark"] .highlight .l {
  color: #D19A66;
}
[data-theme="dark"] .highlight .n {
  color: #CDD6E3;
}
[data-theme="dark"] .highlight .o {
  color: #56B6C2;
}
[data-theme="dark"] .highlight .x {
  color: #CDD6E3;
}
[data-theme="dark"] .highlight .p {
  color: #CDD6E3;
}
[data-theme="dark"] .highlight .cm {
  color: #99A8BC;
  font-style: italic;
}
[data-theme="dark"] .highlight .cp {
  color: #99A8BC;
}
[data-theme="dark"] .highlight .c1 {
  color: #99A8BC;
  font-style: italic;
}
[data-theme="dark"] .highlight .cs {
  color: #99A8BC;
}
[data-theme="dark"] .highlight .gd {
  color: #E06C75;
}
[data-theme="dark"] .highlight .ge {
  color: #CDD6E3;
  font-style: italic;
}
[data-theme="dark"] .highlight .gr {
  color: #E06C75;
}
[data-theme="dark"] .highlight .gh {
  color: #D19A66;
  font-weight: bold;
}
[data-theme="dark"] .highlight .gi {
  color: #98C379;
}
[data-theme="dark"] .highlight .go {
  color: #99A8BC;
}
[data-theme="dark"] .highlight .gp {
  color: #99A8BC;
}
[data-theme="dark"] .highlight .gs {
  color: #CDD6E3;
  font-weight: bold;
}
[data-theme="dark"] .highlight .gu {
  color: #D19A66;
}
[data-theme="dark"] .highlight .gt {
  color: #99A8BC;
}
[data-theme="dark"] .highlight .kc {
  color: #D19A66;
}
[data-theme="dark"] .highlight .kd {
  color: #C678DD;
}
[data-theme="dark"] .highlight .kn {
  color: #C678DD;
}
[data-theme="dark"] .highlight .kp {
  color: #C678DD;
}
[data-theme="dark"] .highlight .kr {
  color: #C678DD;
}
[data-theme="dark"] .highlight .kt {
  color: #E5C07B;
}
[data-theme="dark"] .highlight .ld {
  color: #98C379;
}
[data-theme="dark"] .highlight .m {
  color: #D19A66;
}
[data-theme="dark"] .highlight .s {
  color: #98C379;
}
[data-theme="dark"] .highlight .na {
  color: #D19A66;
}
[data-theme="dark"] .highlight .nb {
  color: #61AFEF;
}
[data-theme="dark"] .highlight .nc {
  color: #E5C07B;
}
[data-theme="dark"] .highlight .no {
  color: #D19A66;
}
[data-theme="dark"] .highlight .nd {
  color: #61AFEF;
}
[data-theme="dark"] .highlight .ni {
  color: #E06C75;
}
[data-theme="dark"] .highlight .ne {
  color: #E06C75;
}
[data-theme="dark"] .highlight .nf {
  color: #61AFEF;
}
[data-theme="dark"] .highlight .nl {
  color: #CDD6E3;
}
[data-theme="dark"] .highlight .nn {
  color: #E5C07B;
}
[data-theme="dark"] .highlight .nx {
  color: #CDD6E3;
}
[data-theme="dark"] .highlight .py {
  color: #CDD6E3;
}
[data-theme="dark"] .highlight .nt {
  color: #E06C75;
}
[data-theme="dark"] .highlight .nv {
  color: #E06C75;
}
[data-theme="dark"] .highlight .ow {
  color: #C678DD;
}
[data-theme="dark"] .highlight .w {
  color: transparent;
}
[data-theme="dark"] .highlight .mf {
  color: #D19A66;
}
[data-theme="dark"] .highlight .mh {
  color: #D19A66;
}
[data-theme="dark"] .highlight .mi {
  color: #D19A66;
}
[data-theme="dark"] .highlight .mo {
  color: #D19A66;
}
[data-theme="dark"] .highlight .sb {
  color: #98C379;
}
[data-theme="dark"] .highlight .sc {
  color: #98C379;
}
[data-theme="dark"] .highlight .sd {
  color: #99A8BC;
  font-style: italic;
}
[data-theme="dark"] .highlight .s2 {
  color: #98C379;
}
[data-theme="dark"] .highlight .se {
  color: #56B6C2;
}
[data-theme="dark"] .highlight .sh {
  color: #98C379;
}
[data-theme="dark"] .highlight .si {
  color: #56B6C2;
}
[data-theme="dark"] .highlight .sx {
  color: #98C379;
}
[data-theme="dark"] .highlight .sr {
  color: #56B6C2;
}
[data-theme="dark"] .highlight .s1 {
  color: #98C379;
}
[data-theme="dark"] .highlight .ss {
  color: #98C379;
}
[data-theme="dark"] .highlight .bp {
  color: #61AFEF;
}
[data-theme="dark"] .highlight .vc {
  color: #E06C75;
}
[data-theme="dark"] .highlight .vg {
  color: #E06C75;
}
[data-theme="dark"] .highlight .vi {
  color: #E06C75;
}
[data-theme="dark"] .highlight .il {
  color: #D19A66;
}

.editorial-page, .editorial-shell, .editorial-header {
  --editorial-accent: var(--accent);
  --editorial-muted: var(--text-muted);
  --editorial-surface: var(--bg-alt);
  --editorial-line: var(--border);
  --editorial-wash: var(--surface-wash);
}

.editorial-shell #main.container {
  max-width: 1160px;
}

.editorial-shell #reading-progress {
  background: var(--editorial-accent);
}

.editorial-page {
  padding: 40px 0 12px;
}
.editorial-page h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 24px;
}
.editorial-page h2, .editorial-page .entry h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--heading);
  border: 0;
  padding: 0;
  margin: 12px 0 0;
}
.editorial-page em {
  color: var(--editorial-accent);
  font-weight: inherit;
}
.editorial-page .editorial-eyebrow, .editorial-page .entry .editorial-eyebrow {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--editorial-accent);
  margin: 0;
}
.editorial-page .editorial-description, .editorial-page .entry .editorial-description {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--editorial-muted);
  margin: 0;
}
.editorial-page .editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--editorial-line);
  text-underline-offset: 6px;
  transition: color 180ms ease;
}
.editorial-page .editorial-link:hover {
  color: var(--editorial-accent);
  text-decoration-color: currentColor;
}
.editorial-page :focus-visible {
  outline: 2px solid var(--editorial-accent);
  outline-offset: 4px;
}
@media (max-width: 900px) {
  .editorial-page {
    padding-top: 32px;
  }
}
@media (max-width: 480px) {
  .editorial-page {
    padding-top: 28px;
  }
  .editorial-page h1 {
    font-size: 28px;
    margin: 0 0 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-page *, .editorial-page *::before, .editorial-page *::after {
    transition: none !important;
  }
}

.editorial-shell .wrapper-masthead, .editorial-header .wrapper-masthead {
  background: var(--bg);
  border: 0;
  box-shadow: none;
}
.editorial-shell .wrapper-masthead > .container, .editorial-header .wrapper-masthead > .container {
  max-width: 1160px;
}
.editorial-shell .masthead, .editorial-header .masthead {
  padding: 16px 0;
  gap: 12px;
  border-bottom: 1px solid var(--editorial-line);
}
.editorial-shell .site-avatar img, .editorial-header .site-avatar img {
  width: 36px;
  height: 36px;
  border: 1px solid var(--editorial-line);
}
.editorial-shell .site-info, .editorial-header .site-info {
  display: block;
}
.editorial-shell .site-name, .editorial-header .site-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.editorial-shell .masthead > nav, .editorial-header .masthead > nav {
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}
.editorial-shell .masthead > nav a, .editorial-header .masthead > nav a {
  font-size: 13px;
  padding: 10px 10px;
  color: var(--editorial-muted);
  border-radius: 4px;
}
.editorial-shell .masthead > nav a:hover, .editorial-header .masthead > nav a:hover {
  color: var(--heading);
  background: transparent;
}
.editorial-shell .masthead > nav > a[aria-current="page"], .editorial-header .masthead > nav > a[aria-current="page"] {
  color: var(--heading);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--editorial-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}
.editorial-shell .masthead > nav > a:first-child, .editorial-header .masthead > nav > a:first-child {
  margin-left: 0;
}
.editorial-shell .nav-live::before, .editorial-header .nav-live::before {
  width: 4px;
  height: 4px;
  animation: none;
}
.editorial-shell .nav-dropdown-menu, .editorial-header .nav-dropdown-menu {
  border-color: var(--editorial-line);
  background: var(--editorial-surface);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.editorial-shell .masthead .nav-dropdown-menu a, .editorial-header .masthead .nav-dropdown-menu a {
  padding: 10px 12px;
}
.editorial-shell .masthead .nav-dropdown-menu a:hover, .editorial-header .masthead .nav-dropdown-menu a:hover {
  background: var(--bg);
}
.editorial-shell .theme-toggle, .editorial-header .theme-toggle {
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border: 1px solid var(--editorial-line);
  border-radius: 50%;
  color: var(--editorial-muted);
  background: transparent;
}
.editorial-shell .theme-toggle:hover, .editorial-header .theme-toggle:hover {
  border-color: var(--editorial-accent);
  color: var(--editorial-accent);
  background: var(--editorial-surface);
}
.editorial-shell .theme-toggle svg, .editorial-header .theme-toggle svg {
  stroke-width: 1.6;
}
.editorial-shell .masthead :focus-visible, .editorial-header .masthead :focus-visible {
  outline: 2px solid var(--editorial-accent);
  outline-offset: 3px;
}
.editorial-shell .masthead.clearfix::before, .editorial-shell .masthead.clearfix::after, .editorial-header .masthead.clearfix::before, .editorial-header .masthead.clearfix::after {
  display: none;
}
@media (max-width: 760px) {
  .editorial-shell .masthead, .editorial-header .masthead {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 12px 0;
  }
  .editorial-shell .site-info, .editorial-header .site-info {
    display: none;
  }
  .editorial-shell .site-avatar, .editorial-header .site-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    line-height: 0;
  }
  .editorial-shell .site-avatar img, .editorial-header .site-avatar img {
    width: 28px;
    height: 28px;
  }
  .editorial-shell .masthead > nav, .editorial-header .masthead > nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: space-between;
    gap: 0;
    margin: 0;
  }
  .editorial-shell .masthead > nav, .editorial-header .masthead > nav {
    align-items: center;
    height: 36px;
  }
  .editorial-shell .masthead > nav > a, .editorial-shell .masthead > nav .nav-dropdown-trigger, .editorial-header .masthead > nav > a, .editorial-header .masthead > nav .nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 2px;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
  }
  .editorial-shell .masthead > nav .nav-dropdown, .editorial-header .masthead > nav .nav-dropdown {
    display: flex;
    align-items: center;
    height: 36px;
  }
  .editorial-shell .nav-live::before, .editorial-header .nav-live::before {
    margin: 0;
    vertical-align: baseline;
  }
  .editorial-shell .nav-dropdown-trigger::after, .editorial-header .nav-dropdown-trigger::after {
    margin: 0;
    font-size: 9px;
    line-height: 1;
    vertical-align: baseline;
  }
  .editorial-shell .masthead > nav > a[aria-current="page"], .editorial-header .masthead > nav > a[aria-current="page"] {
    position: relative;
    color: var(--editorial-accent);
    font-weight: 600;
    text-decoration: none;
  }
  .editorial-shell .masthead > nav > a[aria-current="page"]::after, .editorial-header .masthead > nav > a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: calc(50% - 8px);
    width: 16px;
    height: 1px;
    background: var(--editorial-accent);
  }
  .editorial-shell .masthead > nav .theme-toggle, .editorial-header .masthead > nav .theme-toggle {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-left: 2px;
  }
}
@media (max-width: 360px) {
  .editorial-shell .wrapper-masthead > .container, .editorial-header .wrapper-masthead > .container {
    padding-inline: 12px;
  }
  .editorial-shell .masthead > nav > a, .editorial-shell .masthead > nav .nav-dropdown-trigger, .editorial-header .masthead > nav > a, .editorial-header .masthead > nav .nav-dropdown-trigger {
    font-size: 11.5px;
    padding-inline: 1px;
    gap: 3px;
  }
}

.about-page {
  --roadmap-road: #c3cfe0;
  --roadmap-pin: var(--editorial-surface);
  --pulse-color: rgba(36, 91, 205, 0.24);
}
.about-page .about-hero {
  position: relative;
}
.about-page .about-hero-bottom {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-page .about-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--editorial-muted);
  margin: 0 0 18px;
}
.about-page .about-intro .about-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--heading);
  letter-spacing: -0.015em;
}
.about-page .about-current {
  border-left: 1px solid var(--editorial-line);
  padding: 7px 0 7px 24px;
  margin-top: 5px;
}
.about-page .about-status {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--editorial-muted);
}
.about-page .about-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--editorial-accent);
  box-shadow: 0 0 0 4px var(--editorial-wash);
}
.about-page .about-current p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 16px 0 5px;
  color: var(--heading);
}
.about-page .about-current-org, .about-page .about-current-note {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--editorial-muted);
}
.about-page .about-current-note {
  margin-top: 12px;
  font-style: italic;
}
.about-page .about-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 42px 0 0;
  border-block: 1px solid var(--editorial-line);
  padding: 26px 0;
}
.about-page .about-stat {
  background: none;
  border: 0;
  border-right: 1px solid var(--editorial-line);
  border-radius: 0;
  padding: 0 20px;
  text-align: left;
}
.about-page .about-stat:first-child {
  padding-left: 0;
}
.about-page .about-stat:last-child {
  border-right: 0;
}
.about-page .about-stat-num {
  color: var(--heading);
  font-weight: 500;
  font-size: clamp(28px, 3.9vw, 38px);
  margin-bottom: 10px;
  white-space: nowrap;
}
.about-page .about-stat-num > span {
  font-size: 0.55em;
  margin-left: 2px;
}
.about-page .about-stat-label {
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--editorial-muted);
  max-width: 150px;
}
.about-page .about-section {
  margin-top: 76px;
}
.about-page .about-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.about-page .about-section-heading > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--editorial-muted);
  margin: 0 0 2px;
  flex-shrink: 0;
}
.about-page .career-roadmap {
  --bg: var(--editorial-surface);
  margin: 0;
  padding: 24px 24px 12px;
  border: 1px solid var(--editorial-line);
  border-radius: 18px;
  background: radial-gradient(ellipse at 80% 0, var(--editorial-wash), transparent 55%), var(--editorial-surface);
}
.about-page .career-map-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--editorial-muted);
  margin-bottom: 12px;
}
.about-page .career-map-caption > span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.about-page .career-map-caption i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--editorial-accent);
}
.about-page .career-roadmap .rm-years {
  fill: var(--editorial-accent);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.about-page .career-roadmap .rm-role {
  fill: var(--editorial-muted);
  font-style: normal;
}
.about-page .career-roadmap .rm-org {
  font-weight: 500;
}
.about-page .career-mobile {
  display: none;
}
.about-page .about-cards {
  counter-reset: expertise;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  border-top: 1px solid var(--editorial-line);
}
.about-page .about-card {
  position: relative;
  counter-increment: expertise;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--editorial-line);
  border-radius: 0;
  padding: 28px 0;
  transition: none;
}
.about-page .about-card:hover {
  transform: none;
  box-shadow: none;
}
.about-page .about-card::after {
  content: "0" counter(expertise);
  position: absolute;
  right: 0;
  top: 28px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--editorial-muted);
}
.about-page .about-card .about-card-icon {
  width: 26px;
  height: 26px;
  color: var(--editorial-accent);
  margin-bottom: 18px;
}
.about-page .about-card h3 {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.about-page .about-card p {
  font-size: 14px;
  color: var(--editorial-muted);
  line-height: 1.8;
  margin: 0;
}
.about-page .about-card svg [fill="var(--card-bg)"] {
  fill: var(--bg);
}
.about-page .about-skills {
  margin: 0;
  border-top: 1px solid var(--editorial-line);
}
.about-page .skill-group {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--editorial-line);
  padding: 24px 0;
  margin: 0;
}
.about-page .skill-group-label {
  font-size: 12px;
  color: var(--heading);
  text-transform: none;
  letter-spacing: 0;
  margin: 6px 0 0;
}
.about-page .skill-pills {
  gap: 8px;
}
.about-page .skill-pill {
  color: var(--editorial-muted);
  background: var(--editorial-surface);
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.about-page .about-credentials {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}
.about-page .about-certificates {
  display: flex;
  flex-direction: column;
}
.about-page .about-certificate {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--editorial-line);
  color: var(--heading);
  min-height: 100px;
}
.about-page .about-certificate:first-child {
  padding-top: 0;
}
.about-page .about-certificate img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.about-page .about-certificate > span > span, .about-page .about-certificate strong {
  display: block;
}
.about-page .about-certificate strong {
  font-size: 14px;
  font-weight: 700;
}
.about-page .about-certificate > span > span {
  font-size: 12px;
  color: var(--editorial-muted);
  margin-top: 3px;
}
.about-page .certificate-arrow {
  margin-left: auto;
  color: var(--editorial-accent);
}
.about-page .about-certificate:hover strong {
  color: var(--editorial-accent);
}
.about-page .about-outro {
  margin-top: 76px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--editorial-line);
}
.about-page .about-outro h2 {
  font-size: 30px;
  line-height: 1.2;
}
.about-page .about-outro-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 26px;
}
.about-page .about-contact-link {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 6px;
  background: var(--heading);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease;
}
.about-page .about-contact-link:hover {
  background: var(--editorial-accent);
  color: var(--bg);
}
@media (max-width: 900px) {
  .about-page .about-hero-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-page .about-intro {
    max-width: 560px;
  }
  .about-page .about-current {
    margin: 0;
    padding: 4px 0 4px 18px;
  }
  .about-page .about-current p {
    margin-top: 10px;
  }
  .about-page .about-current-note {
    margin-top: 5px;
  }
  .about-page .about-section-heading > p {
    display: none;
  }
  .about-page .career-roadmap {
    padding: 22px 20px 12px;
  }
  .about-page .career-roadmap .roadmap-desktop {
    display: none;
  }
  .about-page .career-mobile {
    display: block;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
  }
  .about-page .career-step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 20px;
    position: relative;
    padding-bottom: 36px;
    min-height: 118px;
  }
  .about-page .career-step:last-child {
    padding-bottom: 20px;
    min-height: 0;
  }
  .about-page .career-connector {
    position: absolute;
    top: 28px;
    left: 0;
    width: 64px;
    height: 100%;
    overflow: visible;
  }
  .about-page .career-connector path {
    fill: none;
    stroke: var(--roadmap-road);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
  }
  .about-page .career-step:last-child .career-connector {
    display: none;
  }
  .about-page .career-logo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-left: 4px;
    border: 1px solid var(--editorial-line);
    border-radius: 50%;
    background: #fff;
  }
  .about-page .career-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 0;
  }
  .about-page .career-step--current .career-logo {
    border-color: var(--editorial-accent);
    box-shadow: 0 0 0 5px var(--editorial-wash);
  }
  .about-page .career-years {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--editorial-accent);
    letter-spacing: 0.03em;
  }
  .about-page .career-now {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border: 1px solid var(--editorial-line);
    border-radius: 4px;
  }
  .about-page .career-step h3 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    margin: 6px 0 5px;
    text-wrap: pretty;
  }
  .about-page .career-step p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--editorial-muted);
    margin: 0;
  }
  .about-page .about-credentials {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .about-page .about-intro .about-lead {
    font-size: 18px;
  }
  .about-page .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
    margin-top: 32px;
    padding: 24px 0;
  }
  .about-page .about-stat {
    padding: 0 16px;
  }
  .about-page .about-stat:nth-child(odd) {
    padding-left: 0;
  }
  .about-page .about-stat:nth-child(even) {
    border: 0;
  }
  .about-page .about-stat-num {
    font-size: 32px;
  }
  .about-page .about-section {
    margin-top: 52px;
  }
  .about-page .about-section-heading {
    margin-bottom: 24px;
  }
  .about-page .career-roadmap {
    border-radius: 12px;
    padding: 20px 14px 8px;
  }
  .about-page .career-step {
    column-gap: 12px;
  }
  .about-page .career-map-caption {
    font-size: 9px;
    letter-spacing: 0.05em;
  }
  .about-page .about-cards {
    grid-template-columns: 1fr;
  }
  .about-page .about-card {
    padding: 24px 0;
  }
  .about-page .about-card::after {
    top: 24px;
  }
  .about-page .skill-group {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0;
  }
  .about-page .skill-group-label {
    margin: 0;
  }
  .about-page .about-outro {
    margin-top: 52px;
    padding: 32px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .about-page a {
    transition: none;
  }
}

[data-theme="dark"] .about-page {
  --roadmap-road: #40536d;
  --roadmap-pin: var(--editorial-surface);
  --pulse-color: rgba(130, 174, 255, 0.24);
}

.til-page.editorial-page {
  max-width: none;
  padding-bottom: 64px;
}
.til-page.editorial-page .til-controls {
  display: flex;
  gap: 18px;
  margin: 24px 0 36px;
  padding: 24px;
  border: 1px solid var(--editorial-line);
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0, var(--editorial-wash), transparent 65%), var(--editorial-surface);
}
.til-page.editorial-page .til-controls-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.til-page.editorial-page .til-count {
  font-size: 12px;
  color: var(--editorial-muted);
  font-variant-numeric: tabular-nums;
}
.til-page.editorial-page .til-search {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  background: var(--bg);
  font-size: 15px;
}
.til-page.editorial-page .til-search::placeholder {
  color: var(--editorial-muted);
}
.til-page.editorial-page .til-search:focus {
  border-color: var(--editorial-accent);
  outline: 2px solid var(--editorial-accent);
  outline-offset: 3px;
}
.til-page.editorial-page .til-tag-filters {
  gap: 8px;
}
.til-page.editorial-page .til-tag-filter {
  min-height: 36px;
  border-radius: 6px;
  padding: 7px 10px;
  border-color: var(--editorial-line);
  color: var(--editorial-muted);
  background: var(--bg);
  font-size: 12px;
  line-height: 1.4;
}
.til-page.editorial-page .til-tag-filter:hover, .til-page.editorial-page .til-tag-filter.is-active {
  color: var(--editorial-accent);
  border-color: var(--editorial-accent);
  background: var(--editorial-surface);
}
.til-page.editorial-page .til-tag-filter.is-active {
  font-weight: 700;
}
.til-page.editorial-page .til-filter-count {
  opacity: 1;
  font-size: 10px;
  margin-left: 3px;
}
.til-page.editorial-page .til-month-header {
  font-size: 26px;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -0.035em;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--editorial-line);
  margin: 44px 0 0;
}
.til-page.editorial-page .til-month-header:first-child {
  margin-top: 0;
}
.til-page.editorial-page .til-entry {
  grid-template-columns: 125px minmax(0, 1fr);
  grid-template-rows: min-content 1fr;
  gap: 6px 28px;
  padding: 26px 0;
  border-color: var(--editorial-line);
  transition: none;
}
.til-page.editorial-page .til-entry:hover {
  background: transparent;
  border-radius: 0;
}
.til-page.editorial-page .til-date {
  font-size: 12px;
  color: var(--editorial-muted);
}
.til-page.editorial-page .til-tag-pill {
  color: var(--editorial-accent);
  line-height: 1.5;
  letter-spacing: 0.05em;
  align-self: start;
}
.til-page.editorial-page .til-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  overflow-wrap: anywhere;
}
.til-page.editorial-page .til-text code {
  background: var(--editorial-surface);
  border: 1px solid var(--editorial-line);
  color: var(--heading);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.85em;
}
.til-page.editorial-page .til-empty {
  padding: 24px;
  margin: 0;
  border: 1px solid var(--editorial-line);
  border-radius: 12px;
  color: var(--editorial-muted);
  background: var(--editorial-surface);
}
@media (max-width: 640px) {
  .til-page.editorial-page .til-entry {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
  }
  .til-page.editorial-page .til-date {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }
  .til-page.editorial-page .til-tag-pill {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    text-align: right;
  }
  .til-page.editorial-page .til-text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 480px) {
  .til-page.editorial-page .til-controls {
    margin: 20px 0 28px;
    padding: 18px;
    border-radius: 12px;
  }
  .til-page.editorial-page .til-tag-filter {
    min-height: 40px;
  }
  .til-page.editorial-page .til-month-header {
    font-size: 24px;
    margin-top: 36px;
  }
  .til-page.editorial-page .til-entry {
    padding: 22px 0;
  }
}

.contact-page {
  padding-bottom: 64px;
}
.contact-page .contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--editorial-line);
}
.contact-page .contact-intro h2 {
  font-size: 28px;
}
.contact-page .contact-intro > p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--editorial-muted);
  margin: 20px 0 0;
}
.contact-page .contact-elsewhere {
  margin-top: 32px;
}
.contact-page .contact-social {
  margin-top: 10px;
}
.contact-page .contact-social-link {
  gap: 10px;
}
.contact-page .contact-social-link svg {
  flex-shrink: 0;
  color: var(--editorial-accent);
}
.contact-page .contact-form {
  padding: 28px;
  border: 1px solid var(--editorial-line);
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0, var(--editorial-wash), transparent 65%), var(--editorial-surface);
}
.contact-page .contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-page .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.contact-page .form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--heading);
}
.contact-page .form-group input, .contact-page .form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 180ms ease;
}
.contact-page .form-group input::placeholder, .contact-page .form-group textarea::placeholder {
  color: var(--editorial-muted);
  opacity: 1;
}
.contact-page .form-group input:focus, .contact-page .form-group textarea:focus {
  border-color: var(--editorial-accent);
  outline: 2px solid var(--editorial-accent);
  outline-offset: 3px;
}
.contact-page .form-group textarea {
  resize: vertical;
  min-height: 176px;
}
.contact-page .btn-submit {
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 6px;
  background: var(--heading);
  color: var(--bg);
  font: 700 13px/1.5 'Nunito Sans', sans-serif;
  cursor: pointer;
  transition: background 180ms ease;
}
.contact-page .btn-submit:hover:not(:disabled) {
  background: var(--editorial-accent);
}
.contact-page .btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.contact-page .status-msg {
  display: none;
  font-size: 14px;
  line-height: 1.65;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 6px;
}
.contact-page .status-msg.success {
  display: block;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
}
.contact-page .status-msg.error {
  display: block;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fca5a5;
}
@media (max-width: 760px) {
  .contact-page .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-page .contact-intro > p {
    max-width: 480px;
  }
  .contact-page .contact-elsewhere {
    margin-top: 20px;
  }
}
@media (max-width: 480px) {
  .contact-page .contact-layout {
    margin-top: 20px;
    padding-top: 24px;
  }
  .contact-page .contact-form {
    padding: 20px;
    border-radius: 12px;
  }
  .contact-page .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-page .btn-submit {
    width: 100%;
  }
}

[data-theme="dark"] .contact-page .status-msg.success {
  color: #6ee7b7;
  background: #052e16;
  border-color: #166534;
}
[data-theme="dark"] .contact-page .status-msg.error {
  color: #fca5a5;
  background: #2d0a0a;
  border-color: #7f1d1d;
}

.projects-page {
  padding-bottom: 64px;
}
.projects-page .projects-controls {
  margin: 24px 0 36px;
  padding: 24px;
  border: 1px solid var(--editorial-line);
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0, var(--editorial-wash), transparent 65%), var(--editorial-surface);
}
.projects-page .projects-controls-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.projects-page .projects-count {
  font-size: 12px;
  color: var(--editorial-muted);
  font-variant-numeric: tabular-nums;
}
.projects-page .projects-search {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 'Nunito Sans', sans-serif;
}
.projects-page .projects-search::placeholder {
  color: var(--editorial-muted);
  opacity: 1;
}
.projects-page .projects-search:focus {
  border-color: var(--editorial-accent);
  outline: 2px solid var(--editorial-accent);
  outline-offset: 3px;
}
.projects-page .projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.projects-page .projects-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--editorial-muted);
  font: 600 12px/1.4 'Nunito Sans', sans-serif;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}
.projects-page .projects-filter > span {
  font-size: 10px;
}
.projects-page .projects-filter:hover, .projects-page .projects-filter.is-active {
  color: var(--editorial-accent);
  border-color: var(--editorial-accent);
  background: var(--editorial-surface);
}
.projects-page .projects-filter.is-active {
  font-weight: 700;
}
.projects-page .projects-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.projects-page .projects-section-heading .editorial-link {
  flex-shrink: 0;
}
.projects-page .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.projects-page .project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--editorial-line);
  border-radius: 16px;
  background: var(--editorial-surface);
  color: var(--heading);
  transition: border-color 180ms ease;
}
.projects-page .project-card:hover {
  color: var(--heading);
  border-color: var(--editorial-accent);
}
.projects-page .project-card-marker {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
}
.projects-page .project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--editorial-line);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--bg), var(--editorial-surface));
  color: var(--editorial-accent);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.projects-page .project-status svg {
  flex-shrink: 0;
}
.projects-page .project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 22px;
}
.projects-page .project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--editorial-line);
  border-radius: 12px;
  background: var(--bg);
}
.projects-page .project-logo:has(img:not([hidden])) {
  background: #f8fafc;
}
.projects-page .project-logo img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0;
}
.projects-page .project-logo-fallback {
  color: var(--editorial-accent);
  font: 500 30px/1 Georgia, 'Times New Roman', serif;
}
.projects-page .project-index {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--editorial-muted);
}
.projects-page .project-card-body {
  flex: 1;
}
.projects-page .entry .project-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.projects-page .entry .project-card-description {
  font-size: 14px;
  line-height: 1.85;
  color: var(--editorial-muted);
  margin: 0;
}
.projects-page .entry .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.projects-page .entry .project-tags > li {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  padding: 4px 8px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  color: var(--editorial-muted);
  margin: 0;
}
.projects-page .project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  border-top: 1px solid var(--editorial-line);
  padding-top: 18px;
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.6;
}
.projects-page .project-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--editorial-muted);
}
.projects-page .project-destination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--editorial-accent);
  font-weight: 700;
}
.projects-page .projects-empty {
  padding: 28px;
  border: 1px solid var(--editorial-line);
  border-radius: 12px;
  background: var(--editorial-surface);
}
.projects-page .projects-empty p {
  font-size: 18px;
  color: var(--heading);
  margin: 0 0 8px;
}
.projects-page .projects-empty > span {
  display: block;
  font-size: 14px;
  color: var(--editorial-muted);
}
.projects-page .projects-reset {
  display: block;
  margin-top: 20px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--editorial-accent);
  font: 700 13px/1.5 'Nunito Sans', sans-serif;
  cursor: pointer;
}
.projects-page [hidden] {
  display: none;
}
@media (max-width: 900px) {
  .projects-page .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .projects-page .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .projects-page .project-card {
    padding: 24px;
  }
}
@media (max-width: 480px) {
  .projects-page .projects-controls {
    margin: 20px 0 28px;
    padding: 18px;
    border-radius: 12px;
  }
  .projects-page .projects-filter {
    min-height: 40px;
  }
  .projects-page .projects-section-heading {
    gap: 10px;
    margin-bottom: 24px;
  }
  .projects-page .project-card {
    padding: 22px;
    border-radius: 12px;
  }
  .projects-page .entry .project-card-title {
    font-size: 23px;
  }
}

.blog-page {
  padding-bottom: 64px;
}
.blog-page .blog-controls {
  margin: 24px 0 36px;
  padding: 24px;
  border: 1px solid var(--editorial-line);
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0, var(--editorial-wash), transparent 65%), var(--editorial-surface);
}
.blog-page .blog-controls-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.blog-page .blog-count {
  font-size: 12px;
  color: var(--editorial-muted);
  font-variant-numeric: tabular-nums;
}
.blog-page .blog-search-row {
  display: flex;
  gap: 12px;
}
.blog-page #post-search {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 'Nunito Sans', sans-serif;
}
.blog-page #post-search::placeholder {
  color: var(--editorial-muted);
  opacity: 1;
}
.blog-page #post-search:focus {
  border-color: var(--editorial-accent);
  outline: 2px solid var(--editorial-accent);
  outline-offset: 3px;
}
.blog-page .blog-view-controls {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  background: var(--bg);
  flex-shrink: 0;
}
.blog-page .blog-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 64px;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--editorial-muted);
  font: 600 12px/1.4 'Nunito Sans', sans-serif;
  cursor: pointer;
}
.blog-page .blog-view:hover, .blog-page .blog-view.is-active {
  color: var(--editorial-accent);
  background: var(--editorial-surface);
}
.blog-page .blog-view.is-active {
  font-weight: 700;
}
.blog-page .blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.blog-page .blog-topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--editorial-muted);
  font: 600 12px/1.4 'Nunito Sans', sans-serif;
  cursor: pointer;
  text-align: left;
}
.blog-page .blog-topic > span {
  font-size: 10px;
}
.blog-page .blog-topic:hover, .blog-page .blog-topic.is-active {
  color: var(--editorial-accent);
  border-color: var(--editorial-accent);
  background: var(--editorial-surface);
}
.blog-page .blog-topic.is-active {
  font-weight: 700;
}
.blog-page .blog-topic--extra {
  display: none;
}
.blog-page .blog-topics.is-expanded .blog-topic--extra, .blog-page .blog-topic--extra.is-active {
  display: inline-flex;
}
.blog-page .blog-more-topics {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--editorial-accent);
  font: 700 12px/1.5 'Nunito Sans', sans-serif;
  cursor: pointer;
}
.blog-page .blog-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.blog-page .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.blog-page .blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--editorial-line);
  border-radius: 16px;
  background: var(--editorial-surface);
  color: var(--heading);
  transition: border-color 180ms ease;
}
.blog-page .blog-card:hover {
  border-color: var(--editorial-accent);
  color: var(--heading);
}
.blog-page .blog-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--editorial-wash);
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}
.blog-page .blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-page .blog-image-fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 24px;
  background: radial-gradient(ellipse at 100% 0, var(--editorial-wash), transparent 65%), var(--editorial-surface);
}
.blog-page .blog-image-fallback > span:first-child {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--editorial-accent);
}
.blog-page .blog-image-fallback > span:last-child {
  font: 500 28px/1.25 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.04em;
}
.blog-page .blog-pinned {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border: 1px solid var(--editorial-line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--editorial-accent);
  font-size: 10px;
  font-weight: 700;
}
.blog-page .blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.blog-page .blog-card-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
  font-size: 11px;
  line-height: 1.5;
}
.blog-page .blog-card-topic {
  color: var(--editorial-accent);
  font-weight: 700;
}
.blog-page .blog-card-meta time {
  color: var(--editorial-muted);
}
.blog-page .blog-card h3 {
  font: 500 23px/1.4 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.blog-page .blog-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--editorial-line);
  font-size: 11px;
  line-height: 1.5;
  color: var(--editorial-muted);
}
.blog-page .blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--editorial-accent);
  font-weight: 700;
}
.blog-page .blog-grid--list {
  grid-template-columns: 1fr;
  gap: 16px;
}
.blog-page .blog-grid--list .blog-card {
  flex-direction: row;
}
.blog-page .blog-grid--list .blog-card-image {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: auto;
  border-radius: 15px 0 0 15px;
}
.blog-page .blog-grid--list .blog-card h3 {
  font-size: 22px;
}
.blog-page .blog-empty {
  padding: 28px;
  border: 1px solid var(--editorial-line);
  border-radius: 12px;
  background: var(--editorial-surface);
}
.blog-page .blog-empty p {
  font-size: 18px;
  color: var(--heading);
  margin: 0 0 8px;
}
.blog-page .blog-empty > span {
  display: block;
  font-size: 14px;
  color: var(--editorial-muted);
}
.blog-page #blog-reset {
  display: block;
  min-height: 44px;
  margin-top: 20px;
  padding: 10px 16px;
  border: 1px solid var(--editorial-line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--editorial-accent);
  font: 700 13px/1.5 'Nunito Sans', sans-serif;
  cursor: pointer;
}
.blog-page [hidden] {
  display: none;
}
@media (max-width: 900px) {
  .blog-page .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-page .blog-grid--list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .blog-page .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .blog-page .blog-search-row {
    flex-direction: column;
  }
  .blog-page .blog-view-controls {
    align-self: start;
  }
  .blog-page .blog-grid--list .blog-card-image {
    width: 144px;
  }
}
@media (max-width: 480px) {
  .blog-page .blog-controls {
    margin: 20px 0 28px;
    padding: 18px;
    border-radius: 12px;
  }
  .blog-page .blog-topic {
    min-height: 40px;
  }
  .blog-page .blog-section-heading {
    gap: 8px;
    margin-bottom: 24px;
  }
  .blog-page .blog-card {
    border-radius: 12px;
  }
  .blog-page .blog-card-image {
    border-radius: 11px 11px 0 0;
  }
  .blog-page .blog-card-body {
    padding: 20px;
  }
  .blog-page .blog-card h3 {
    font-size: 22px;
  }
  .blog-page .blog-grid--list .blog-card-image {
    display: none;
  }
  .blog-page .blog-grid--list .blog-card h3 {
    font-size: 21px;
  }
}

.home-page .home-intro {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--editorial-line);
}
.home-page .home-portrait {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--editorial-line);
  border-radius: 50%;
}
.home-page .home-intro h1 {
  margin: 0 0 8px;
}
.home-page .home-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--editorial-accent);
  margin: 0 0 14px;
}
.home-page .home-genai {
  color: var(--editorial-accent);
  font-weight: 600;
}
.home-page .home-description {
  max-width: 600px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}
.home-page .home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.home-page .home-writing, .home-page .home-project-section {
  margin-top: 36px;
}
.home-page .home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}
.home-page .home-section-heading h2 {
  margin: 0;
}
.home-page .home-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.home-page .home-project {
  display: flex;
  flex-direction: column;
  padding: 22px 0;
  border-block: 1px solid var(--editorial-line);
  color: var(--heading);
}
.home-page .home-project:hover {
  color: var(--heading);
  border-color: var(--editorial-accent);
}
.home-page .home-project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.home-page .home-project h3 {
  font: 400 22px/1.3 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  margin: 0;
}
.home-page .home-project-top > span {
  color: var(--editorial-accent);
}
.home-page .home-project p {
  color: var(--editorial-muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 14px 0 0;
}
.home-page .home-project-status {
  align-self: start;
  margin-top: 16px;
  padding: 4px 8px;
  border: 1px solid var(--editorial-line);
  border-radius: 20px;
  background: var(--editorial-surface);
  color: var(--editorial-accent);
  font-size: 11px;
  font-weight: 600;
}
@media (max-width: 900px) {
  .home-page .home-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .home-page .home-intro {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
  }
  .home-page .home-portrait {
    width: 64px;
    height: 64px;
  }
  .home-page .home-projects {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .home-page .home-intro {
    display: block;
    padding-top: 0;
  }
  .home-page .home-portrait {
    margin-bottom: 18px;
  }
  .home-page .home-description {
    font-size: 16px;
  }
  .home-page .home-writing, .home-page .home-project-section {
    margin-top: 28px;
  }
  .home-page .home-section-heading {
    margin-bottom: 20px;
  }
}

#reading-progress {
  transition: none;
}

#mc-messages, #rc-messages, .llmtl-modal-inner {
  overscroll-behavior: contain;
}

.nav-live::before,
.roadmap-pulse,
.ai-gradient-bg--animated {
  animation: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  a, button, input, textarea,
  .about-card,
  .lightbox-overlay, .lightbox-overlay img,
  #back-to-top, #theme-toggle-floating {
    transition-duration: 80ms !important;
    transition-delay: 0s !important;
  }
}
.post-audio {
  --wave-idle: #7387a6;
  color-scheme: light;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  margin-bottom: 28px;
  border: 1px solid var(--editorial-line, var(--border));
  border-radius: 12px;
  background: var(--editorial-surface, var(--bg-alt));
  color: var(--text);
  user-select: none;
}
.post-audio [hidden], .post-audio[hidden] {
  display: none;
}
.post-audio button, .post-audio select {
  font: inherit;
  cursor: pointer;
}
.post-audio button:disabled {
  cursor: default;
  opacity: 0.5;
}
.post-audio :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.post-audio .pa-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.post-audio .pa-play {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bg);
}
.post-audio .pa-play::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.post-audio .pa-play svg {
  position: relative;
  width: 18px;
  height: 18px;
}
.post-audio .pa-play:hover::before {
  box-shadow: 0 0 0 3px var(--editorial-wash, var(--accent-bg));
}
.post-audio .pa-main {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  min-width: 0;
}
.post-audio .pa-wave {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 3px;
  height: 30px;
  cursor: pointer;
  touch-action: none;
  border-radius: 4px;
}
.post-audio .pa-bar {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
  background: var(--wave-idle);
}
.post-audio .pa-bar.is-played {
  background: var(--accent);
}
.post-audio .pa-clock {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  font: 500 11px/1.4 'Nunito Sans', -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--editorial-muted, var(--text-muted));
}
.post-audio .pa-time {
  color: var(--accent);
}
.post-audio .pa-sep {
  opacity: 0.6;
}
.post-audio .pa-controls, .post-audio .pa-transport, .post-audio .pa-vol-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}
.post-audio .pa-controls {
  gap: 8px;
}
.post-audio .pa-skip, .post-audio .pa-vol-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--editorial-muted, var(--text-muted));
}
.post-audio .pa-skip:hover, .post-audio .pa-vol-btn:hover {
  color: var(--accent);
}
.post-audio .pa-speed {
  width: 52px;
  height: 40px;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  color: var(--accent);
  background: transparent;
  font-family: 'Nunito Sans', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.post-audio .pa-vol-slider {
  width: 56px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}
@media (max-width: 640px) {
  .post-audio {
    gap: 6px;
    padding: 6px;
    margin-bottom: 24px;
  }
  .post-audio .pa-main {
    display: grid;
    gap: 3px;
  }
  .post-audio .pa-wave {
    height: 24px;
    gap: 1px;
  }
  .post-audio .pa-bar:nth-child(even) {
    display: none;
  }
  .post-audio .pa-clock {
    justify-content: space-between;
    gap: 4px;
    font-size: 10px;
  }
  .post-audio .pa-sep, .post-audio .pa-skip, .post-audio .pa-vol-slider {
    display: none;
  }
  .post-audio .pa-controls, .post-audio .pa-transport, .post-audio .pa-vol-wrap {
    gap: 0;
  }
  .post-audio .pa-speed {
    width: 52px;
    height: 44px;
  }
  .post-audio .pa-vol-btn {
    width: 32px;
    height: 44px;
  }
}

[data-theme="dark"] .post-audio {
  --wave-idle: #778aa5;
  color-scheme: dark;
}

.mc-wrap {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

/* ── Hero ── */
.mc-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.mc-hero-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.mc-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.mc-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* ── Chips ── */
.mc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.mc-chip {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}

.mc-chip:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ── Message list ── */
#mc-messages {
  min-height: 260px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#mc-messages::-webkit-scrollbar {
  width: 6px;
}

#mc-messages::-webkit-scrollbar-track {
  background: transparent;
}

#mc-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── Individual messages ── */
.mc-msg {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  animation: mc-fadein 0.2s ease;
}

@keyframes mc-fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mc-msg-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
  border: 1px solid var(--border);
}

.mc-msg--user {
  flex-direction: row-reverse;
}

.mc-msg--user .mc-msg-avatar {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-border);
}

.mc-msg--assistant .mc-msg-avatar {
  background: var(--bg);
  color: var(--text-muted);
  border-color: var(--border);
}

.mc-msg-bubble {
  max-width: 80%;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  line-height: 1.65;
  font-size: 0.92rem;
}

.mc-msg--user .mc-msg-bubble {
  background: var(--accent-2);
  color: #fff;
  border-radius: 12px 4px 12px 12px;
}

[data-theme="dark"] .mc-msg--user .mc-msg-bubble {
  background: var(--accent-bg);
  color: var(--text);
  border: 1px solid var(--accent-border);
}

.mc-msg--assistant .mc-msg-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px 12px 12px 12px;
}

.mc-msg--error .mc-msg-bubble {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
  border-radius: 12px;
  max-width: 100%;
}

[data-theme="dark"] .mc-msg--error .mc-msg-bubble {
  color: #f87171;
}

/* Markdown inside bubbles */
.mc-msg-bubble strong {
  font-weight: 700;
}

.mc-msg-bubble em {
  font-style: italic;
}

.mc-msg-bubble ol {
  margin: 0.5rem 0 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mc-msg-bubble ol li {
  line-height: 1.55;
  display: list-item;
}

.mc-msg-bubble ol li > .mc-poster {
  float: left;
  width: 46px;
  height: auto;
  margin: 2px 10px 4px 0;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.mc-msg-bubble ol li::after {
  content: "";
  display: block;
  clear: both;
}

/* Streaming caret */
.mc-msg--streaming .mc-msg-bubble::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  color: var(--text-muted);
  animation: mc-caret 1s steps(2) infinite;
}

@keyframes mc-caret {
  50% {
    opacity: 0;
  }
}
/* ── Inline answer options ── */
.mc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.mc-option-btn {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.mc-option-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--bg);
}

.mc-option-btn--selected,
.mc-option-btn--selected:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.mc-option-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.mc-option-btn--selected:disabled {
  opacity: 0.85;
}

/* ── Typing indicator ── */
.mc-typing .mc-msg-bubble {
  padding: 0.7rem 1rem;
}

.mc-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 16px;
}

.mc-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: mc-bounce 1.2s infinite;
}

.mc-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.mc-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes mc-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}
/* ── Input form ── */
#mc-form {
  display: flex;
  gap: 0.5rem;
}

#mc-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

#mc-input:focus {
  border-color: var(--accent-2);
}

#mc-submit {
  padding: 0.7rem 1.4rem;
  background: var(--accent-2);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  transition: opacity 0.15s;
  white-space: nowrap;
}

[data-theme="dark"] #mc-submit {
  background: var(--accent-bg);
  color: var(--text);
  border: 1px solid var(--accent-border);
}

#mc-submit:hover:not(:disabled) {
  opacity: 0.82;
}

#mc-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Attribution ── */
.mc-attr {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .mc-hero h1 {
    font-size: 1.6rem;
  }

  .mc-msg-bubble {
    max-width: 90%;
    font-size: 0.88rem;
  }
}
.rc-wrap {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}

/* ── Hero ── */
.rc-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.rc-hero-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.rc-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.rc-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* ── Chips ── */
.rc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.rc-chip {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 99px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}

.rc-chip:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ── Message list ── */
#rc-messages {
  min-height: 260px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#rc-messages::-webkit-scrollbar {
  width: 6px;
}

#rc-messages::-webkit-scrollbar-track {
  background: transparent;
}

#rc-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── Individual messages ── */
.rc-msg {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  animation: rc-fadein 0.2s ease;
}

@keyframes rc-fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rc-msg-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
  border: 1px solid var(--border);
}

.rc-msg--user {
  flex-direction: row-reverse;
}

.rc-msg--user .rc-msg-avatar {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-border);
}

.rc-msg--assistant .rc-msg-avatar {
  background: var(--bg);
  color: var(--text-muted);
  border-color: var(--border);
}

.rc-msg-bubble {
  max-width: 80%;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  line-height: 1.65;
  font-size: 0.92rem;
}

.rc-msg--user .rc-msg-bubble {
  background: var(--accent-2);
  color: #fff;
  border-radius: 12px 4px 12px 12px;
}

[data-theme="dark"] .rc-msg--user .rc-msg-bubble {
  background: var(--accent-bg);
  color: var(--text);
  border: 1px solid var(--accent-border);
}

.rc-msg--assistant .rc-msg-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px 12px 12px 12px;
}

.rc-msg-bubble--card {
  max-width: 100%;
  flex: 1;
}

.rc-msg--error .rc-msg-bubble {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
  border-radius: 12px;
  max-width: 100%;
}

[data-theme="dark"] .rc-msg--error .rc-msg-bubble {
  color: #f87171;
}

/* Markdown inside bubbles */
.rc-msg-bubble strong {
  font-weight: 700;
}

.rc-msg-bubble em {
  font-style: italic;
}

.rc-msg-bubble ol {
  margin: 0.5rem 0 0;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rc-msg-bubble ol li {
  line-height: 1.55;
  display: list-item;
}

/* Streaming caret */
.rc-msg--streaming .rc-msg-bubble::after {
  content: "▍";
  display: inline-block;
  margin-left: 2px;
  color: var(--text-muted);
  animation: rc-caret 1s steps(2) infinite;
}

@keyframes rc-caret {
  50% {
    opacity: 0;
  }
}
/* Plating indicator (shown while the recipe block streams in) */
.rc-plating {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  animation: rc-plating-pulse 1.4s ease infinite;
}

@keyframes rc-plating-pulse {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
/* ── Recipe card ── */
.rc-recipe-card {
  margin-top: 0.65rem;
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card-bg);
  animation: rc-fadein 0.35s ease;
}

.rc-recipe-head {
  padding: 1.1rem 1.25rem 0.9rem;
  background: var(--accent-bg);
  border-bottom: 1px solid var(--accent-border);
}

.rc-recipe-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rc-recipe-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.rc-recipe-title h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.rc-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.rc-recipe-badge {
  background: var(--bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 99px;
  padding: 0.18rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.rc-recipe-body {
  padding: 1rem 1.25rem 1.2rem;
}

.rc-recipe-section {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rc-recipe-ingredients {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.25rem;
}

.rc-recipe-ingredients li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.rc-recipe-ingredients li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.rc-recipe-steps {
  list-style: none;
  counter-reset: rc-step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rc-recipe-steps li {
  counter-increment: rc-step;
  position: relative;
  padding-left: 2.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  min-height: 1.5rem;
}

.rc-recipe-steps li::before {
  content: counter(rc-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Inline answer options ── */
.rc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.rc-option-btn {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.rc-option-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--bg);
}

.rc-option-btn--selected,
.rc-option-btn--selected:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.rc-option-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.rc-option-btn--selected:disabled {
  opacity: 0.85;
}

/* ── Typing indicator ── */
.rc-typing .rc-msg-bubble {
  padding: 0.7rem 1rem;
}

.rc-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 16px;
}

.rc-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: rc-bounce 1.2s infinite;
}

.rc-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.rc-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes rc-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}
/* ── Input form ── */
#rc-form {
  display: flex;
  gap: 0.5rem;
}

#rc-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

#rc-input:focus {
  border-color: var(--accent-2);
}

#rc-submit {
  padding: 0.7rem 1.4rem;
  background: var(--accent-2);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  transition: opacity 0.15s;
  white-space: nowrap;
}

[data-theme="dark"] #rc-submit {
  background: var(--accent-bg);
  color: var(--text);
  border: 1px solid var(--accent-border);
}

#rc-submit:hover:not(:disabled) {
  opacity: 0.82;
}

#rc-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Attribution / cross-link ── */
.rc-attr {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .rc-hero h1 {
    font-size: 1.6rem;
  }

  .rc-msg-bubble {
    max-width: 90%;
    font-size: 0.88rem;
  }

  .rc-recipe-ingredients {
    grid-template-columns: 1fr;
  }
}
