:root {
  --radius: 0.625rem;
  --outer-container-width: 780px;
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Monaco', 'Consolas', monospace;

  /* Light mode */
  --color-background: #FAFAFA;
  --color-foreground: #272727;
  --color-card: #F0F0F0;
  --color-primary: #272727;
  --color-primary-foreground: #ffffff;
  --color-muted: #a6a6a6;
  --color-border: #E3E3E3;
  color-scheme: light dark;
}

[data-theme='dark'] {
  --color-background: #0a0a0a;
  --color-foreground: #ededed;
  --color-card: #1a1a1a;
  --color-primary: #ededed;
  --color-primary-foreground: #0a0a0a;
  --color-muted: #a6a6a6;
  --color-border: #2a2a2a;
}

/* Admin shell */
.admin-shell {
  --admin-bg: #f8f8f8;
  --admin-surface: #ffffff;
  --admin-surface-muted: #f6f6f6;
  --admin-border: rgba(39, 39, 39, 0.1);
  --admin-border-strong: rgba(39, 39, 39, 0.18);
  --admin-shadow: none;
  --admin-accent-soft: rgba(39, 39, 39, 0.055);
  background: var(--admin-bg);
}

[data-theme='dark'] .admin-shell {
  --admin-bg: #0d0d0d;
  --admin-surface: #151515;
  --admin-surface-muted: #1b1b1b;
  --admin-border: rgba(255, 255, 255, 0.1);
  --admin-border-strong: rgba(255, 255, 255, 0.18);
  --admin-shadow: none;
  --admin-accent-soft: rgba(255, 255, 255, 0.05);
  background: var(--admin-bg);
}

/* Reset */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  min-height: 100%;
}

@media screen and (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sticky footer */
main { flex: 1; }

/* Links */
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }

/* Selection */
::selection {
  background-color: rgba(39, 39, 39, 0.15);
  color: var(--color-foreground);
}

[data-theme='dark'] ::selection {
  background-color: rgba(237, 237, 237, 0.15);
}

/* Section title */
.section-title {
  margin: 0.75rem 1.5rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Button */
.btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-background);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.8; }

/* Card */
.card {
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.card:hover { border-color: var(--color-primary); }

/* Animations */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.5s ease forwards;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-transition {
  animation: page-enter 260ms cubic-bezier(0.2, 0, 0, 1) both;
  will-change: opacity, transform;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* Logo text animation */
.logo-animate {
  background: linear-gradient(90deg, var(--color-foreground) 0%, var(--color-foreground) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logo-draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logo-draw {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* Max width */
.max-w-site {
  width: 100%;
  max-width: var(--outer-container-width);
}

/* View transition for theme switch */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }
[data-theme='dark']::view-transition-old(root) { z-index: 9999; }
[data-theme='dark']::view-transition-new(root) { z-index: 1; }

/* Sticky footer layout */
.site-shell {
  display: flex;
  flex-direction: column;
}

/* Vertical border lines */
.site-shell::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--outer-container-width);
  height: 100vh;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 780px) {
  .site-shell::before {
    width: calc(100vw - 2rem);
    min-width: 320px;
  }
}

/* Section divider */
.section-divider {
  position: relative;
  height: 1px;
  margin: 0;
  overflow: visible;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  right: 100%;
  width: calc((100vw - 100%) / 2);
  height: 1px;
  background: linear-gradient(to left, var(--color-border), transparent);
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: calc((100vw - 100%) / 2);
  height: 1px;
  background: linear-gradient(to right, var(--color-border), transparent);
}

.section-divider .divider-line {
  width: 100%;
  height: 1px;
  display: block;
}

.section-divider .divider-line line {
  stroke: var(--color-border);
  stroke-dasharray: 8 8;
}

.section-divider .divider-stars {
  position: relative;
  height: 0;
}

.section-divider .divider-stars::before,
.section-divider .divider-stars::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 4px;
  height: 4px;
  transform: rotate(-45deg);
  background-color: #c8c8c8;
  box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.16);
}

.section-divider .divider-stars::before {
  right: calc(100% - 1.5px);
  z-index: 1;
}

.section-divider .divider-stars::after {
  left: calc(100% - 1.5px);
  z-index: 1;
}

/* Corner decoration */
.corner {
  position: absolute;
  inset: -4px;
  --s: 6px;
  border: 1px solid var(--color-primary);
  border-radius: 2px;
  mask:
    conic-gradient(#000 0 0) content-box,
    conic-gradient(at var(--s) var(--s), #0000 75%, #000 0) 0 0 / calc(100% - var(--s)) calc(100% - var(--s));
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1) all;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.7);
}

.group:hover .corner {
  opacity: 1;
  transform: scale(1);
}

/* Post card cover hover */
.post-card-bg {
  position: relative;
  overflow: hidden;
}
.post-card-bg .post-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-card);
  transition: opacity 0.5s ease;
  z-index: 0;
}
.post-card-bg:hover .post-card-overlay {
  opacity: 0;
}

/* MDX / Article content — blog-v2 final rendered style (globals.css + Tailwind) */
.mdx-content {
  color: var(--color-foreground);
  line-height: 1.7;
}
.mdx-content > :first-child { margin-top: 0; }

/* Headings — blog-v2 MDXComponents + globals.css combined */
.mdx-content h1,
.mdx-content h2,
.mdx-content h3,
.mdx-content h4,
.mdx-content h5,
.mdx-content h6 {
  font-weight: 700;
  line-height: 1.3;
}
.mdx-content h1 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}
.mdx-content h2 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.mdx-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.mdx-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
}

/* Links — MDXComponents a */
.mdx-content a {
  color: var(--color-foreground);
  text-decoration: underline;
  text-decoration-color: var(--color-muted);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.mdx-content a:hover {
  text-decoration-color: var(--color-foreground);
  opacity: 0.7;
}

/* Paragraph — MDXComponents p */
.mdx-content p {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-foreground) 80%, transparent);
}

/* Lists — MDXComponents ul/ol/li + globals.css .mdx-list */
.mdx-content ul { list-style-type: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.mdx-content ol { list-style-type: decimal; padding-left: 1.25rem; margin-bottom: 1rem; }
.mdx-content ul, .mdx-content ol { font-size: 0.875rem; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); }
.mdx-content ul li::marker,
.mdx-content ol li::marker { color: var(--color-muted); }
.mdx-content li { padding-left: 0.25rem; line-height: 1.75rem; }
.mdx-content li + li { margin-top: 0.375rem; }

/* Strong / Em — MDXComponents */
.mdx-content strong { font-weight: 600; color: var(--color-foreground); }
.mdx-content em { font-style: italic; color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }

/* Inline code — MDXComponents code (non-pre) */
.mdx-content code:not(pre code) {
  padding: 0.125rem 0.375rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-foreground);
}

/* Fenced code blocks — Pygments */
.mdx-content .highlight {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  font-size: 0.875rem;
  margin: 1rem 0;
  background: var(--color-card);
  position: relative;
}
.mdx-content .highlight[data-language]::before {
  content: attr(data-language);
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}
.mdx-content .highlight pre {
  padding: 1.5rem 1rem 0.75rem;
  overflow-x: auto;
  margin: 0;
  background: transparent !important;
}
.mdx-content .highlight pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* Code block copy button */
.code-block-copy {
  position: absolute;
  top: 0.375rem;
  right: 0.5rem;
  z-index: 1;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.5;
}
.code-block-copy:hover {
  color: var(--color-foreground);
  border-color: var(--color-foreground);
}
.code-block-copy.copied {
  color: #34d399;
  border-color: #34d399;
}
.mdx-content .highlight:hover .code-block-copy {
  opacity: 1;
}

/* Pygments syntax highlighting — light theme (friendly) */
.highlight .hll { background-color: #ffffcc }
.highlight { background: var(--color-card); }
.highlight .c { color: #60A0B0; font-style: italic }
.highlight .err { border: 1px solid #F00 }
.highlight .k { color: #007020; font-weight: bold }
.highlight .o { color: #666 }
.highlight .ch { color: #60A0B0; font-style: italic }
.highlight .cm { color: #60A0B0; font-style: italic }
.highlight .cp { color: #007020 }
.highlight .cpf { color: #60A0B0; font-style: italic }
.highlight .c1 { color: #60A0B0; font-style: italic }
.highlight .cs { color: #60A0B0; background-color: #FFF0F0 }
.highlight .gd { color: #A00000 }
.highlight .ge { font-style: italic }
.highlight .ges { font-weight: bold; font-style: italic }
.highlight .gr { color: #F00 }
.highlight .gh { color: #000080; font-weight: bold }
.highlight .gi { color: #00A000 }
.highlight .go { color: #888 }
.highlight .gp { color: #C65D09; font-weight: bold }
.highlight .gs { font-weight: bold }
.highlight .gu { color: #800080; font-weight: bold }
.highlight .gt { color: #04D }
.highlight .kc { color: #007020; font-weight: bold }
.highlight .kd { color: #007020; font-weight: bold }
.highlight .kn { color: #007020; font-weight: bold }
.highlight .kp { color: #007020 }
.highlight .kr { color: #007020; font-weight: bold }
.highlight .kt { color: #902000 }
.highlight .m { color: #40A070 }
.highlight .s { color: #4070A0 }
.highlight .na { color: #4070A0 }
.highlight .nb { color: #007020 }
.highlight .nc { color: #0E84B5; font-weight: bold }
.highlight .no { color: #60ADD5 }
.highlight .nd { color: #555; font-weight: bold }
.highlight .ni { color: #D55537; font-weight: bold }
.highlight .ne { color: #007020 }
.highlight .nf { color: #06287E }
.highlight .nl { color: #002070; font-weight: bold }
.highlight .nn { color: #0E84B5; font-weight: bold }
.highlight .nt { color: #062873; font-weight: bold }
.highlight .nv { color: #BB60D5 }
.highlight .ow { color: #007020; font-weight: bold }
.highlight .w { color: #BBB }
.highlight .mb { color: #40A070 }
.highlight .mf { color: #40A070 }
.highlight .mh { color: #40A070 }
.highlight .mi { color: #40A070 }
.highlight .mo { color: #40A070 }
.highlight .sa { color: #4070A0 }
.highlight .sb { color: #4070A0 }
.highlight .sc { color: #4070A0 }
.highlight .dl { color: #4070A0 }
.highlight .sd { color: #4070A0; font-style: italic }
.highlight .s2 { color: #4070A0 }
.highlight .se { color: #4070A0; font-weight: bold }
.highlight .sh { color: #4070A0 }
.highlight .si { color: #70A0D0; font-style: italic }
.highlight .sx { color: #C65D09 }
.highlight .sr { color: #235388 }
.highlight .s1 { color: #4070A0 }
.highlight .ss { color: #517918 }
.highlight .bp { color: #007020 }
.highlight .fm { color: #06287E }
.highlight .vc { color: #BB60D5 }
.highlight .vg { color: #BB60D5 }
.highlight .vi { color: #BB60D5 }
.highlight .vm { color: #BB60D5 }
.highlight .il { color: #40A070 }

/* Dark theme Pygments (material) */
[data-theme='dark'] .highlight .hll { background-color: #2C3B41 }
[data-theme='dark'] .highlight { background: var(--color-card); color: #EFF }
[data-theme='dark'] .highlight .c { color: #546E7A; font-style: italic }
[data-theme='dark'] .highlight .err { color: #FF5370 }
[data-theme='dark'] .highlight .esc { color: #89DDFF }
[data-theme='dark'] .highlight .g { color: #EFF }
[data-theme='dark'] .highlight .k { color: #BB80B3 }
[data-theme='dark'] .highlight .l { color: #C3E88D }
[data-theme='dark'] .highlight .n { color: #EFF }
[data-theme='dark'] .highlight .o { color: #89DDFF }
[data-theme='dark'] .highlight .p { color: #89DDFF }
[data-theme='dark'] .highlight .ch { color: #546E7A; font-style: italic }
[data-theme='dark'] .highlight .cm { color: #546E7A; font-style: italic }
[data-theme='dark'] .highlight .cp { color: #546E7A; font-style: italic }
[data-theme='dark'] .highlight .cpf { color: #546E7A; font-style: italic }
[data-theme='dark'] .highlight .c1 { color: #546E7A; font-style: italic }
[data-theme='dark'] .highlight .cs { color: #546E7A; font-style: italic }
[data-theme='dark'] .highlight .gd { color: #FF5370 }
[data-theme='dark'] .highlight .ge { color: #89DDFF }
[data-theme='dark'] .highlight .ges { color: #FFCB6B }
[data-theme='dark'] .highlight .gr { color: #FF5370 }
[data-theme='dark'] .highlight .gh { color: #C3E88D }
[data-theme='dark'] .highlight .gi { color: #C3E88D }
[data-theme='dark'] .highlight .go { color: #546E7A }
[data-theme='dark'] .highlight .gp { color: #FFCB6B }
[data-theme='dark'] .highlight .gs { color: #FF5370 }
[data-theme='dark'] .highlight .gu { color: #89DDFF }
[data-theme='dark'] .highlight .gt { color: #FF5370 }
[data-theme='dark'] .highlight .kc { color: #89DDFF }
[data-theme='dark'] .highlight .kd { color: #BB80B3 }
[data-theme='dark'] .highlight .kn { color: #89DDFF; font-style: italic }
[data-theme='dark'] .highlight .kp { color: #89DDFF }
[data-theme='dark'] .highlight .kr { color: #BB80B3 }
[data-theme='dark'] .highlight .kt { color: #BB80B3 }
[data-theme='dark'] .highlight .ld { color: #C3E88D }
[data-theme='dark'] .highlight .m { color: #F78C6C }
[data-theme='dark'] .highlight .s { color: #C3E88D }
[data-theme='dark'] .highlight .na { color: #BB80B3 }
[data-theme='dark'] .highlight .nb { color: #82AAFF }
[data-theme='dark'] .highlight .nc { color: #FFCB6B }
[data-theme='dark'] .highlight .no { color: #EFF }
[data-theme='dark'] .highlight .nd { color: #82AAFF }
[data-theme='dark'] .highlight .ni { color: #89DDFF }
[data-theme='dark'] .highlight .ne { color: #FFCB6B }
[data-theme='dark'] .highlight .nf { color: #82AAFF }
[data-theme='dark'] .highlight .nl { color: #82AAFF }
[data-theme='dark'] .highlight .nn { color: #FFCB6B }
[data-theme='dark'] .highlight .nx { color: #EFF }
[data-theme='dark'] .highlight .py { color: #FFCB6B }
[data-theme='dark'] .highlight .nt { color: #FF5370 }
[data-theme='dark'] .highlight .nv { color: #89DDFF }
[data-theme='dark'] .highlight .ow { color: #89DDFF; font-style: italic }
[data-theme='dark'] .highlight .pm { color: #89DDFF }
[data-theme='dark'] .highlight .w { color: #EFF }
[data-theme='dark'] .highlight .mb { color: #F78C6C }
[data-theme='dark'] .highlight .mf { color: #F78C6C }
[data-theme='dark'] .highlight .mh { color: #F78C6C }
[data-theme='dark'] .highlight .mi { color: #F78C6C }
[data-theme='dark'] .highlight .mo { color: #F78C6C }
[data-theme='dark'] .highlight .sa { color: #BB80B3 }
[data-theme='dark'] .highlight .sb { color: #C3E88D }
[data-theme='dark'] .highlight .sc { color: #C3E88D }
[data-theme='dark'] .highlight .dl { color: #EFF }
[data-theme='dark'] .highlight .sd { color: #546E7A; font-style: italic }
[data-theme='dark'] .highlight .s2 { color: #C3E88D }
[data-theme='dark'] .highlight .se { color: #EFF }
[data-theme='dark'] .highlight .sh { color: #C3E88D }
[data-theme='dark'] .highlight .si { color: #89DDFF }
[data-theme='dark'] .highlight .sx { color: #C3E88D }
[data-theme='dark'] .highlight .sr { color: #89DDFF }
[data-theme='dark'] .highlight .s1 { color: #C3E88D }
[data-theme='dark'] .highlight .ss { color: #89DDFF }
[data-theme='dark'] .highlight .bp { color: #89DDFF }
[data-theme='dark'] .highlight .fm { color: #82AAFF }
[data-theme='dark'] .highlight .vc { color: #89DDFF }
[data-theme='dark'] .highlight .vg { color: #89DDFF }
[data-theme='dark'] .highlight .vi { color: #89DDFF }
[data-theme='dark'] .highlight .vm { color: #82AAFF }
[data-theme='dark'] .highlight .il { color: #F78C6C }

/* Blockquote — MDXComponents */
.mdx-content blockquote {
  border-left: 2px solid var(--color-muted);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-muted);
}

/* Image — MDXImage */
.mdx-content img { display: block; width: 100%; height: auto; margin: 1.5rem 0; }

/* Divider — MDXComponents hr (simplified) */
.mdx-content hr { border: none; border-top: 1px dashed var(--color-border); margin: 2rem 0; }

/* Tables — MDXComponents table/thead/th/td */
.mdx-content table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 1rem 0; overflow-x: auto; display: block; }
.mdx-content thead { border-bottom: 1px solid var(--color-border); }
.mdx-content tbody > tr + tr { border-top: 1px solid var(--color-border); }
.mdx-content th, .mdx-content td { padding: 0.5rem 0.75rem; text-align: left; }
.mdx-content th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}
.mdx-content td { color: color-mix(in srgb, var(--color-foreground) 90%, transparent); }
.mdx-content tbody tr { transition: background 0.2s; }
.mdx-content tbody tr:hover { background: color-mix(in srgb, var(--color-card) 50%, transparent); }

/* Category colors — blog-v2 style */
.cat-tech { color: #60a5fa; }
.cat-daily { color: #c084fc; }
.cat-thoughts { color: #f87171; }
.cat-tutorial { color: #34d399; }

.cat-tech-badge { color: #60a5fa; border-color: rgba(96, 165, 250, 0.3); }
.cat-daily-badge { color: #c084fc; border-color: rgba(192, 132, 252, 0.3); }
.cat-thoughts-badge { color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
.cat-tutorial-badge { color: #34d399; border-color: rgba(52, 211, 153, 0.3); }

/* Text badge */
.text-badge {
  font-size: .5rem;
  line-height: 1;
  font-weight: 700;
}

/* Article 2-column layout: content + reactions */
.article-content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-left: 1rem;
  margin-right: 1rem;
}
.article-reaction-rail {
  display: none;
}
.article-reading-column {
  min-width: 0;
}

@media (min-width: 1280px) {
  .article-content-shell {
    width: calc(780px + 18px + 48px);
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: minmax(0, 780px) 48px;
    column-gap: 18px;
    align-items: start;
  }
  .article-reaction-rail {
    display: block;
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    padding-top: 1.75rem;
    z-index: 2;
  }
}

/* Reactions */
.post-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.article-reaction-rail .post-reactions {
  width: 48px;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.2rem;
  align-items: center;
  padding: 0.35rem 0;
}
.post-reaction-button {
  position: relative;
  display: inline-flex;
  min-width: 2.75rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  transition: color 180ms ease;
  padding: 0 0.4rem;
}
.post-reaction-button:hover {
  background: transparent;
}
.post-reaction-button.is-reacted {
  background: transparent;
}
.post-reaction-button.is-pending {
  opacity: 0.76;
  pointer-events: none;
}
.article-reaction-rail .post-reaction-button {
  width: 2.35rem;
  min-width: 0;
  height: 3rem;
  flex-direction: column;
  gap: 0.2rem;
  border-radius: 0.45rem;
  background: transparent;
  padding: 0;
}
.article-reaction-rail .post-reaction-button:hover,
.article-reaction-rail .post-reaction-button.is-reacted {
  background: transparent;
}
.post-reaction-emoji {
  font-size: 1.05rem;
  line-height: 1;
  filter: grayscale(1);
  transform-origin: 50% 65%;
  transition: filter 180ms ease;
  user-select: none;
}
.post-reaction-button:hover .post-reaction-emoji,
.post-reaction-emoji.is-reacted,
.post-reaction-button.is-reacted .post-reaction-emoji {
  filter: grayscale(0);
}
.post-reaction-button:hover .post-reaction-emoji {
  animation: reaction-emoji-swing 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.post-reaction-count {
  min-width: 1ch;
  color: var(--color-muted);
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
@keyframes reaction-emoji-swing {
  0%   { transform: translateX(0) rotate(0deg) scale(1); }
  35%  { transform: translateX(-0.18rem) rotate(-15deg) scale(1.5); }
  70%  { transform: translateX(0.18rem) rotate(15deg) scale(1.5); }
  100% { transform: translateX(0) rotate(0deg) scale(1.5); }
}


