/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .fixed {
    position: fixed;
  }
  .static {
    position: static;
  }
  .mx-auto {
    margin-inline: auto;
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .table {
    display: table;
  }
}
:root {
  --primary-color: #0284c7;
  --primary-dark: #0369a1;
  --secondary-color: #7dd3fc;
  --text-dark: #0c4a6e;
  --text-light: #64748b;
  --text-white: #f0f9ff;
  --bg-light: #f0f9ff;
  --bg-white: #ffffff;
  --shadow: rgba(12, 74, 110, 0.06);
  --shadow-md: rgba(12, 74, 110, 0.12);
  --border-color: #e0f2fe;
  --code-bg: #f0f9ff;
  --code-text: #0c4a6e;
}
@layer base {
  html {
    font-size: 16px;
    scroll-behavior: smooth;
  }
  body {
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica", "Arial", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient( 170deg, #ffffff 0%, #f0f9ff 40%, #e0f2fe 80%, #f0f9ff 100% ) fixed;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
}
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  flex: 1;
}
.articles-section-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2.5rem auto 1.25rem;
  max-width: 72ch;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}
.site-header {
  height: 70px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo .logo-full {
  height: 120px;
  width: auto;
  display: block;
}
.site-logo .logo-icon {
  height: 44px;
  width: auto;
  display: none;
}
@media (max-width: 768px) {
  .site-logo .logo-full {
    display: none;
  }
  .site-logo .logo-icon {
    display: block;
  }
}
.blog-title {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.blog-title:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(2, 132, 199, 0.05);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.article-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 1px 3px var(--shadow);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-md);
  border-color: var(--secondary-color);
}
.article-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.article-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  color: var(--text-dark);
  transition: color 0.2s ease;
}
.article-card:hover .article-card-title {
  color: var(--primary-color);
}
.article-card-authors {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}
.article-card-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}
.article-card-thumbnail {
  width: 112px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  align-self: flex-start;
}
@media (max-width: 600px) {
  .article-card-thumbnail {
    width: 80px;
    height: 60px;
  }
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.82rem;
}
.meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.18s ease;
}
.meta-badge:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.tag-badge {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: 0.22rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
  transition: background 0.18s ease;
}
.tag-badge:hover {
  background: var(--primary-dark);
}
.prose {
  max-width: 72ch;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.75;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  scroll-margin-top: 90px;
}
.prose h1 {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
  margin-top: 1.5rem;
}
.prose h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary-color);
}
.prose h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}
.prose h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose p {
  margin-bottom: 1.25rem;
}
.prose a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.18s ease;
}
.prose a:hover {
  color: var(--primary-dark);
}
.prose strong {
  font-weight: 700;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: var(--code-bg);
  color: var(--code-text);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.88em;
  border: 1px solid var(--border-color);
}
.prose pre {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.75rem 0;
  box-shadow: 0 4px 12px var(--shadow-md);
}
.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #f0f0f0;
  font-size: 0.9rem;
}
.prose blockquote {
  border-left: 4px solid var(--secondary-color);
  background: rgba(82, 174, 236, 0.06);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 8px 8px 0;
  color: var(--text-light);
  font-style: italic;
}
.prose blockquote p {
  margin: 0;
}
.prose ul, .prose ol {
  margin: 1.25rem 0;
  padding-left: 1.75rem;
}
.prose ul {
  list-style-type: disc;
}
.prose ol {
  list-style-type: decimal;
}
.prose li {
  margin-bottom: 0.6rem;
  display: list-item;
}
.prose ul li::marker {
  color: var(--primary-color);
}
.prose ol li::marker {
  color: var(--primary-color);
  font-weight: 700;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.5rem 0;
}
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.93rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow-md);
  border: 1px solid var(--border-color);
}
.prose thead {
  background: linear-gradient( 135deg, var(--primary-color), var(--primary-dark) );
}
.prose thead th {
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.1rem;
  text-align: left;
  white-space: nowrap;
}
.prose thead th:first-child {
  border-radius: 9px 0 0 0;
}
.prose thead th:last-child {
  border-radius: 0 9px 0 0;
}
.prose tbody tr {
  transition: background 0.15s ease;
}
.prose tbody tr:nth-child(even) {
  background: rgba(240, 249, 255, 0.55);
}
.prose tbody tr:hover {
  background: rgba(2, 132, 199, 0.07);
}
.prose tbody td {
  padding: 0.8rem 1.1rem;
  color: var(--text-dark);
  border-top: 1px solid var(--border-color);
  vertical-align: top;
  line-height: 1.55;
}
.prose tbody tr:last-child td:first-child {
  border-radius: 0 0 0 9px;
}
.prose tbody tr:last-child td:last-child {
  border-radius: 0 0 9px 0;
}
@media (max-width: 600px) {
  .prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
  }
}
.screenshot-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: flex-start;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.screenshot-figure {
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  margin: 0;
}
.screenshot-figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(12, 74, 110, 0.14);
  border: 1px solid var(--border-color);
  display: block;
}
@media (max-width: 600px) {
  .screenshot-row {
    gap: 0.75rem;
  }
  .screenshot-figure {
    max-width: 100px;
  }
}
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.article-header .article-meta {
  margin-top: 0.5rem;
}
.article-header .article-meta .meta-badge, .article-header .article-meta .tag-badge {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.83rem;
  color: var(--text-light);
  font-weight: 400;
  border-radius: 0;
}
.article-header .article-meta .tag-badge {
  font-weight: 600;
  color: var(--primary-color);
}
.article-with-toc {
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.article-content-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}
.article-content-wrapper .prose {
  max-width: 100%;
}
.toc-sidebar {
  display: none;
  overflow-y: auto;
  padding: 1.25rem;
  transition: all 0.3s ease;
}
@media (min-width: 1401px) {
  .article-with-toc {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .toc-sidebar {
    display: block;
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 110px);
    width: 240px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(12, 74, 110, 0.1);
    z-index: 10;
  }
  .article-content-wrapper {
    max-width: 860px;
    padding: 0;
    margin: 0;
  }
}
@media (max-width: 1400px) {
  .toc-drawer-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.toc-sidebar::-webkit-scrollbar {
  width: 4px;
}
.toc-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.toc-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}
.toc-nav {
  position: relative;
}
.toc-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-item {
  margin: 0;
  padding: 0;
}
.toc-link {
  display: block;
  padding: 0.35rem 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.83rem;
  line-height: 1.45;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.toc-link:hover {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  background: rgba(2, 132, 199, 0.05);
}
.toc-link.active {
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
  background: rgba(2, 132, 199, 0.07);
}
.toc-level-1 {
  margin-top: 0.25rem;
}
.toc-level-2 .toc-link {
  padding-left: 1rem;
  font-size: 0.78rem;
}
.toc-level-3 .toc-link {
  padding-left: 1.5rem;
  font-size: 0.74rem;
  opacity: 0.85;
}
.toc-drawer-trigger {
  display: none;
  position: fixed;
  top: 80px;
  left: 1rem;
  z-index: 200;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s ease, border-color 0.2s ease;
  align-items: center;
  justify-content: center;
}
.toc-drawer-trigger:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
}
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0;
  background: #0c4a6e;
  border-top: 1px solid rgba(240, 249, 255, 0.1);
  display: flex;
  justify-content: center;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  font-size: 0.85rem;
  color: rgba(240, 249, 255, 0.6);
}
.footer-copyright {
  color: rgba(240, 249, 255, 0.45);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: rgba(240, 249, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #f0f9ff;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-in {
  animation: fadeInUp 0.5s ease-out forwards;
}
.animate-delay-1 {
  animation-delay: 0.08s;
  opacity: 0;
}
.animate-delay-2 {
  animation-delay: 0.16s;
  opacity: 0;
}
.animate-delay-3 {
  animation-delay: 0.24s;
  opacity: 0;
}
.animate-delay-4 {
  animation-delay: 0.32s;
  opacity: 0;
}
@media (max-width: 768px) {
  .site-header {
    padding: 0 1rem;
  }
  .prose h1 {
    font-size: 1.85rem;
  }
  .prose h2 {
    font-size: 1.45rem;
  }
  .article-card {
    padding: 1.25rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  .article-with-toc {
    display: block;
    padding: 0;
  }
  .article-content-wrapper {
    padding: 1rem;
    max-width: 100%;
  }
  .article-content-wrapper .prose {
    max-width: 100%;
  }
  .toc-drawer-trigger {
    display: flex;
  }
  .toc-sidebar {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    max-height: 100vh;
    z-index: 300;
    border-radius: 0;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.25rem;
    overflow-y: auto;
    background: rgba(240, 249, 255, 0.96);
    backdrop-filter: blur(12px);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  }
  .toc-sidebar.open {
    left: 0;
  }
  .toc-sidebar.open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: -1;
  }
}
