@charset "UTF-8";
/* =====================================================
   Tech Topics -- Learn article layout
   All styles scoped under .tech-topics
   ===================================================== */
/* -- Reading progress bar -------------------------- */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0941c6, #1a6fd4);
  z-index: 9999;
  transition: width 0.08s linear;
}

/* -- Hero ------------------------------------------ */
.tech-topics .hero {
  background: linear-gradient(135deg, #0a1f5c 0%, #0941c6 60%, #1a6fd4 100%);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.tech-topics .hero h1 {
  font-size: 45px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0 auto 32px;
  max-width: 820px;
  letter-spacing: -0.36px;
}
.tech-topics .hero .byline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tech-topics .hero .byline span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}
.tech-topics .hero .byline .sep {
  color: rgba(255, 255, 255, 0.35);
}
.tech-topics .hero .byline a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}
.tech-topics .hero .byline a:hover {
  text-decoration-color: #fff;
}
.tech-topics .hero .last-updated-hero {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.tech-topics .hero .last-updated-hero .updated-label {
  color: rgba(255, 255, 255, 0.85);
}
.tech-topics .hero .last-updated-hero .updated-date {
  color: #fff;
}

/* -- Body ------------------------------------------ */
.tech-topics .body {
  background: #fff;
  padding: 52px 0 80px;
}

/* -- TOC ------------------------------------------- */
.tech-topics .toc {
  position: sticky;
  top: 88px;
  background: #fff;
  padding: 22px 18px;
}
.tech-topics .toc .toc-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.tech-topics .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tech-topics .toc li {
  margin: 0;
}
.tech-topics .toc a {
  display: block;
  padding: 8px 10px;
  font-size: 15px;
  color: #4b5675;
  text-decoration: none;
  border-radius: 0 5px 5px 0;
  line-height: 1.45;
  transition: background 0.12s, color 0.12s;
  border-left: 2px solid transparent;
}
.tech-topics .toc a.active, .tech-topics .toc a:hover {
  background: #eff4ff;
  color: #0941c6;
  border-left-color: #0941c6;
}
.tech-topics .toc li.sub a {
  padding-left: 22px;
  font-size: 0.76rem;
  color: #7c8aab;
}

/* -- Article --------------------------------------- */
.tech-topics article {
  background: #fff;
  border-left: 1px solid #d7dfe7;
  padding: 0px 52px;
}
.tech-topics article a {
  color: #0941c6;
  text-decoration: underline;
  text-decoration-color: rgba(9, 65, 198, 0.25);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.tech-topics article a:hover {
  text-decoration-color: #0941c6;
}
.tech-topics article p {
  color: #2d3748;
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.tech-topics article ul:not(.check-list),
.tech-topics article ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0 1.25rem;
}
.tech-topics article ul:not(.check-list) li,
.tech-topics article ol li {
  color: #2d3748;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 6px;
}
.tech-topics article h2 {
  font-size: 1.45rem;
  font-weight: 600;
  color: #0d1117;
  margin-top: 52px;
  margin-bottom: 16px;
  padding-top: 32px;
  position: relative;
  scroll-margin-top: 100px;
  letter-spacing: -0.01em;
}
.tech-topics article h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #e2e8f0 0%, transparent 55%);
}
.tech-topics article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
}
.tech-topics article h2:first-of-type::before {
  display: none;
}
.tech-topics article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a2742;
  margin-top: 32px;
  margin-bottom: 12px;
  scroll-margin-top: 100px;
}
.tech-topics article h4 {
  font-size: 0.975rem;
  font-weight: 600;
  color: #374151;
  margin-top: 20px;
  margin-bottom: 8px;
  scroll-margin-top: 100px;
}
.tech-topics article [id] {
  scroll-margin-top: 100px;
}
.tech-topics article {
  /* Inline code */
}
.tech-topics article code {
  background: #f1f5f9;
  color: #c7254e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.84em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  border: 1px solid #e2e8f0;
}
.tech-topics article {
  /* Table */
}
.tech-topics article .table-responsive {
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.tech-topics article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0;
}
.tech-topics article table th {
  padding: 12px 16px;
  font-weight: 600;
  text-align: left;
  background: #0941c6;
  color: #fff;
  white-space: nowrap;
}
.tech-topics article table td {
  padding: 11px 16px;
  color: #374151;
  border-bottom: 1px solid #e8edf5;
  vertical-align: top;
}
.tech-topics article table tbody tr:nth-child(even) {
  background: #f8faff;
}
.tech-topics article table tbody tr:last-child td {
  border-bottom: none;
}
.tech-topics article table tbody tr:hover {
  background: #eff4ff;
}

/* -- Intro callout --------------------------------- */
.tech-topics .intro {
  border-left: 4px solid #0941c6;
  padding: 18px 22px;
  background: #f0f5ff;
  border-radius: 0 10px 10px 0;
  margin-bottom: 40px;
  color: #1a3269;
  font-size: 1rem;
  line-height: 1.8;
}

/* -- Code blocks ----------------------------------- */
.tech-topics .code-block {
  margin: 1.75rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1e293b;
}
.tech-topics .code-block .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  padding: 8px 16px;
  border-bottom: 1px solid #1e293b;
}
.tech-topics .code-block .code-header::before {
  content: attr(data-lang);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.tech-topics .code-block .code-header .copy-btn {
  background: transparent;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tech-topics .code-block .code-header .copy-btn:hover {
  background: #334155;
  color: #cbd5e1;
}
.tech-topics .code-block .code-header .copy-btn.copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.tech-topics .code-block pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.72;
  margin: 0;
  border-radius: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Output blocks -- warm dark vs shell's cool dark */
.tech-topics .code-block:has([data-lang=output]) {
  border-color: #2c2420;
}

.tech-topics .code-header[data-lang=output] {
  background: #1a1512;
  border-bottom-color: #2c2420;
}
.tech-topics .code-header[data-lang=output]::before {
  color: #8a7060;
}
.tech-topics .code-header[data-lang=output] + pre {
  background: #1f1b17;
  color: #cfc9be;
}

/* -- Callout boxes --------------------------------- */
.tech-topics .callout {
  display: flex;
  gap: 14px;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 1.75rem 0;
}
.tech-topics .callout::before {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
  margin-top: 2px;
}
.tech-topics .callout p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.7;
}
.tech-topics .callout.warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
}
.tech-topics .callout.warning::before {
  content: "!";
  background: #f59e0b;
}
.tech-topics .callout.warning p {
  color: #6b4c00;
}
.tech-topics .callout.tip {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
}
.tech-topics .callout.tip::before {
  content: "✓";
  background: #22c55e;
}
.tech-topics .callout.tip p {
  color: #14532d;
}
.tech-topics .callout.info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
}
.tech-topics .callout.info::before {
  content: "i";
  background: #3b82f6;
}
.tech-topics .callout.info p {
  color: #1e3a6e;
}

/* -- Check list ------------------------------------ */
.tech-topics .check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.tech-topics .check-list li {
  position: relative;
  padding: 1rem 0 1rem 2.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #2d3748;
  font-size: 1rem;
  line-height: 1.75;
}
.tech-topics .check-list li:last-child {
  border-bottom: none;
}
.tech-topics .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 20px;
  height: 20px;
  background: #0941c6;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.tech-topics .check-list li strong {
  color: #0d1117;
}

/* -- Takeaways list -------------------------------- */
.tech-topics .takeaways {
  list-style: none;
  padding: 0 !important;
  margin: 2.5rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8faff;
  overflow: hidden;
}
.tech-topics .takeaways li {
  padding: 0.8rem 1.1rem;
  color: #2d3748;
  font-size: 0.975rem;
  line-height: 1.7;
  border-bottom: 1px solid #e2e8f0;
}
.tech-topics .takeaways li:last-child {
  border-bottom: none;
}

/* -- FAQ (scoped override of global .faq-section-wrapper) -- */
.tech-topics article .faq-section-wrapper {
  background: transparent;
  padding: 0;
  margin-top: 3rem;
}
.tech-topics article .faq-section-wrapper h2 {
  text-align: left;
  margin-bottom: 1rem;
}

/* -- Author bio ------------------------------------ */
.tech-topics .author-bio {
  padding: 24px 28px;
  margin-top: 48px;
  background: #f6f9ff;
  border-radius: 10px;
  border: 1px solid #dce8fc;
  border-left: 4px solid #2563eb;
}
.tech-topics .author-bio:has(.bio-avatar) {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.tech-topics .author-bio .bio-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8effe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1rem;
  color: #0941c6;
  flex-shrink: 0;
  border: 2px solid #c7d8f8;
  overflow: hidden;
}
.tech-topics .author-bio .bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tech-topics .author-bio .bio-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 6px;
}
.tech-topics .author-bio .bio-name {
  font-weight: 700;
  font-size: 1rem;
  color: #0d1117;
  margin-bottom: 3px;
}
.tech-topics .author-bio .bio-role {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 10px;
}
.tech-topics .author-bio .bio-desc {
  font-size: 0.875rem;
  color: #4b5675;
  line-height: 1.7;
  margin: 0;
}

/* -- Mobile ---------------------------------------- */
@media (max-width: 767.98px) {
  .tech-topics .hero {
    padding: 40px 0 36px;
  }
  .tech-topics article {
    padding: 28px 22px;
  }
  .tech-topics .body {
    padding: 28px 0 56px;
  }
  .tech-topics .author-bio {
    padding: 20px 20px 20px 18px;
  }
  .tech-topics .author-bio:has(.bio-avatar) {
    flex-direction: column;
    gap: 14px;
  }
}