/* Shared reading layout for preview-service articles. */
.preview-article {
  --article-text: #243044;
  --article-muted: #626c7a;
  --article-line: #e1e5eb;
  --article-blue: #1a73e8;
  --article-green: #137333;
  --article-header-height: 124px;
  margin: 0;
  background: #fff;
  color: var(--article-text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.preview-article *,
.preview-article *::before,
.preview-article *::after {
  box-sizing: border-box;
}

.preview-article a {
  color: var(--article-blue);
  text-underline-offset: 4px;
}

.preview-article a:hover {
  text-decoration: underline;
}

.preview-article :focus-visible {
  outline: 3px solid var(--article-blue);
  outline-offset: 5px;
}

.article-skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 10;
  padding: 8px 16px;
  transform: translateY(-160%);
  background: #fff;
  border: 1px solid var(--article-line);
}

.article-skip-link:focus {
  transform: translateY(0);
}

.article-site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--article-line);
}

.article-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px 40px;
}

.article-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--article-text) !important;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.04em;
  text-decoration: none;
}

.article-brand img {
  display: block;
}

.article-publication {
  padding-left: 24px;
  border-left: 1px solid var(--article-line);
  color: var(--article-muted);
  font-size: 16px;
}

.article-signin {
  margin-left: auto;
  padding: 7px 21px;
  border: 1px solid var(--article-line);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.article-site-nav {
  display: flex;
  gap: 36px;
  padding: 0 40px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.article-site-nav a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 48px;
  padding: 8px 0 11px;
  border-bottom: 3px solid transparent;
  color: var(--article-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.article-site-nav a[aria-current="page"] {
  border-color: var(--article-blue);
  color: var(--article-blue);
}

.article-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  max-width: 1600px;
  min-height: calc(100vh - var(--article-header-height));
  margin: 0 auto;
}

.article-sidebar {
  position: sticky;
  top: var(--article-header-height);
  align-self: start;
  height: calc(100dvh - var(--article-header-height));
  max-height: calc(100dvh - var(--article-header-height));
  padding: 36px 20px 36px 24px;
  overflow-y: auto;
  border-right: 1px solid var(--article-line);
  scrollbar-width: thin;
}

.article-contents > summary {
  margin: 0 16px 16px;
  color: var(--article-muted);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}

.article-contents > summary::-webkit-details-marker {
  display: none;
}

.article-contents nav {
  display: grid;
  gap: 6px;
}

.article-contents nav a {
  padding: 11px 16px;
  border-left: 2px solid transparent;
  color: var(--article-text);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.article-contents nav a:hover {
  background: #f5f8fc;
  color: var(--article-blue);
}

.article-contents nav a[aria-current="location"] {
  border-left-color: var(--article-blue);
  background: #eff5fe;
  color: #1557b0;
}

.article-sidebar-action {
  display: block;
  margin: 30px 16px 0;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}

.article-main {
  width: 100%;
  max-width: 912px;
  margin: 0 auto;
  padding: 44px 64px 84px;
  outline: none;
  scroll-margin-top: calc(var(--article-header-height) + 24px);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  color: var(--article-muted);
  font-size: 13px;
}

.article-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.article-template-label {
  margin: 0 0 14px;
  color: var(--article-muted);
  font-size: 13px;
}

.article-heading h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 3.3vw, 48px);
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.article-lead {
  margin: 0 0 24px;
  color: #526074;
  font-size: 20px;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--article-line);
  color: var(--article-muted);
  font-size: 13px;
}

.article-answer {
  margin: 32px 0 52px;
  padding: 22px 26px;
  border-left: 3px solid #56a66e;
  background: #f0f8f2;
  color: #245539;
  font-size: 16px;
  line-height: 1.75;
}

.article-content section + section {
  margin-top: 64px;
}

.article-content h2 {
  margin: 0 0 24px;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.025em;
  scroll-margin-top: calc(var(--article-header-height) + 40px);
}

.article-content h3 {
  margin: 36px 0 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.article-content p {
  margin-top: 0;
  margin-bottom: 24px;
}

.article-content strong {
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin: 24px 0;
}

.article-content li + li {
  margin-top: 10px;
}

.article-answer p,
.article-note p {
  margin: 0;
}

.article-figure {
  margin: 32px 0;
}

.article-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-image-pair > div {
  position: relative;
}

.article-image-pair img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.article-image-pair span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #fff;
  color: var(--article-text);
  font-size: 13px;
}

.article-figure figcaption {
  margin-top: 12px;
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.65;
}

.article-text-action {
  font-size: 15px;
}

.article-table-scroll {
  max-width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.article-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  line-height: 1.65;
}

.article-table-scroll caption {
  margin-bottom: 16px;
  color: var(--article-muted);
  font-size: 14px;
  text-align: left;
}

.article-table-scroll th,
.article-table-scroll td {
  min-width: 160px;
  padding: 16px;
  border-bottom: 1px solid var(--article-line);
  vertical-align: top;
}

.article-table-scroll th {
  font-weight: 500;
}

.article-table-scroll thead {
  background: #f5f7fa;
}

.article-note {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 3px solid #a8c7fa;
  background: #f4f7fc;
  font-size: 16px;
}

.article-faq {
  border-top: 1px solid var(--article-line);
}

.article-faq details {
  padding: 22px 0;
  border-bottom: 1px solid var(--article-line);
}

.article-faq summary {
  padding-right: 12px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}

.article-faq summary::marker {
  color: var(--article-blue);
}

.article-faq p {
  margin: 16px 0 0;
  color: var(--article-muted);
  font-size: 16px;
}

.article-end-action {
  margin-top: 64px;
  padding: 32px;
  border-radius: 12px;
  background: #e6f4ea;
  color: #1c5230;
}

.article-end-action h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.article-end-action p {
  margin-bottom: 24px;
  font-size: 16px;
}

.article-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 30px;
  background: var(--article-blue);
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.article-button:hover {
  background: #1557b0;
  text-decoration: none !important;
}

.article-end-links,
.article-site-footer,
.article-site-footer nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
}

.article-end-links {
  margin-top: 36px;
}

.article-end-links a {
  text-decoration: none;
}

.article-site-footer {
  padding: 24px 40px;
  border-top: 1px solid var(--article-line);
  color: var(--article-muted);
}

.article-site-footer a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .article-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .article-main {
    padding-inline: 40px;
  }

  .article-sidebar {
    padding-inline: 12px;
  }
}

@media (max-width: 980px) {
  .article-layout {
    display: block;
  }

  .article-sidebar {
    z-index: 4;
    height: auto;
    max-height: calc(100dvh - var(--article-header-height));
    padding: 0 32px;
    border-right: 0;
    border-bottom: 1px solid var(--article-line);
    background: #fff;
  }

  .article-contents > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    margin: 0;
    color: var(--article-text);
    cursor: pointer;
  }

  .article-contents-chevron {
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }

  .article-contents[open] .article-contents-chevron {
    transform: rotate(225deg);
  }

  .article-contents nav {
    padding: 0 0 16px;
  }

  .article-sidebar-action {
    display: none;
  }

  .article-main {
    max-width: 840px;
    padding: 40px 32px 64px;
    scroll-margin-top: calc(var(--article-header-height) + 76px);
  }

  .article-content h2 {
    scroll-margin-top: calc(var(--article-header-height) + 76px);
  }
}

@media (max-width: 600px) {
  .article-header-inner {
    min-height: 64px;
    padding: 12px 20px;
  }

  .article-publication {
    display: none;
  }

  .article-brand {
    gap: 8px;
    font-size: 19px;
  }

  .article-brand img {
    width: 28px;
    height: 28px;
  }

  .article-signin {
    padding: 5px 16px;
  }

  .article-site-nav {
    gap: 28px;
    padding-inline: 20px;
  }

  .article-sidebar {
    padding-inline: 20px;
  }

  .article-main {
    padding: 28px 20px 48px;
  }

  .article-breadcrumbs {
    margin-bottom: 28px;
  }

  .article-heading h1 {
    font-size: 34px;
  }

  .article-lead {
    font-size: 18px;
  }

  .article-meta {
    display: grid;
    gap: 6px;
  }

  .article-answer {
    margin: 28px 0 40px;
    padding: 18px 20px;
  }

  .article-content h2 {
    font-size: 26px;
  }

  .article-content section + section {
    margin-top: 48px;
  }

  .article-image-pair {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-end-action {
    padding: 24px;
  }

  .article-site-footer {
    align-items: start;
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.preview-article) {
    scroll-behavior: smooth;
  }
}

@media print {
  .article-site-header,
  .article-top-bar,
  .article-sidebar,
  .article-breadcrumbs,
  .article-end-action,
  .article-end-links,
  .article-site-footer {
    display: none;
  }

  .article-layout,
  .article-shell {
    display: block;
  }

  .article-main,
  .article-stage {
    max-width: none;
    padding: 0;
  }

  .article-faq details:not([open]) > p {
    display: block;
  }
}

/* ─────────────────────────────────────────────────────────────
   Shared classes support for .article-page & .article-shell
   ───────────────────────────────────────────────────────────── */
.article-page {
  --article-text: #243044;
  --article-muted: #626c7a;
  --article-line: #e1e5eb;
  --article-blue: #1a73e8;
  --article-green: #137333;
  --article-header-height: 76px;
  margin: 0;
  background: #fff;
  color: var(--article-text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.article-page *,
.article-page *::before,
.article-page *::after {
  box-sizing: border-box;
}

.article-page a {
  color: var(--article-blue);
  text-underline-offset: 4px;
}

.article-page a:hover {
  text-decoration: underline;
}

/* Top bar */
.article-top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--article-line);
}

.article-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  min-height: 64px;
  margin: 0 auto;
  padding: 12px 32px;
}

.article-top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-site-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #18252b !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none !important;
}

.article-action-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #18252b;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.article-action-link:hover {
  opacity: 0.88;
}

/* Shell & Layout */
.article-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1560px;
  min-height: calc(100vh - 64px);
  margin: 0 auto;
}

.article-sidebar-sticky {
  position: sticky;
  top: 80px;
}

.article-toc-title {
  margin: 0 0 12px;
  color: var(--article-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-toc {
  display: grid;
  gap: 4px;
}

.article-toc-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--article-text) !important;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.article-toc-link:hover {
  background: #f0f4f9;
  color: var(--article-blue) !important;
}

.article-toc-link[aria-current="location"],
.article-toc-link.is-active {
  background: #e8f0fe;
  color: #1967d2 !important;
  font-weight: 600;
}

.article-sidebar-cta {
  margin-top: 28px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--article-line);
  background: #f8fafc;
}

.article-sidebar-cta-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--article-text);
}

.article-sidebar-cta-text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--article-muted);
}

/* Stage & Sheet */
.article-stage {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 48px 80px;
}

.article-category-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #e8f0fe;
  color: #1967d2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.article-h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #18252b;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--article-muted);
  font-size: 13px;
}

.article-dot {
  opacity: 0.5;
}

.article-deck {
  margin: 0 0 32px;
  color: #3c4858;
  font-size: 19px;
  line-height: 1.7;
}

.article-sheet section {
  margin-top: 48px;
}

.article-sheet h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: #18252b;
}

.article-sheet h3 {
  margin: 28px 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #18252b;
}

.article-sheet p {
  margin: 0 0 20px;
  color: var(--article-text);
  font-size: 17px;
  line-height: 1.8;
}

.article-geo-answer {
  margin: 32px 0;
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid var(--article-blue);
  background: #f4f8fe;
}

.article-geo-title {
  margin: 0 0 12px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1557b0 !important;
}

.article-table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--article-line);
}

.article-table-caption {
  margin: 10px 0 0 !important;
  font-size: 13px !important;
  color: var(--article-muted) !important;
  font-style: italic;
}

.article-callout-panel {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 10px;
  border: 1px solid #d2e3fc;
  background: #f8fbff;
}

.article-callout-panel h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #174ea6;
}

.article-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.article-figure {
  margin: 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--article-line);
}

.article-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--article-muted);
}

.article-steps-list,
.article-numbered-list {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-steps-list li,
.article-numbered-list li {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   Guides Catalog Hub Styles (.guides-hub)
   ───────────────────────────────────────────────────────────── */
.guides-hub-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--article-line);
  margin-bottom: 40px;
}

.guides-hub-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #18252b;
}

.guides-hub-header p {
  margin: 0;
  font-size: 19px;
  color: var(--article-muted);
  max-width: 800px;
  line-height: 1.6;
}

.guides-category-section {
  margin-bottom: 56px;
}

.guides-category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8f0fe;
}

.guides-category-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #18252b;
}

.guides-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f0fe;
  color: #1967d2;
  font-size: 18px;
}

.guides-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.guide-catalog-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--article-line);
  background: #fff;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.2s ease;
}

.guide-catalog-card:hover {
  border-color: #a8c7fa;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.guide-catalog-card-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 16px;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 12px;
  font-weight: 600;
}

.guide-catalog-card-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #18252b;
}

.guide-catalog-card:hover .guide-catalog-card-title {
  color: var(--article-blue);
}

.guide-catalog-card-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--article-muted);
  flex-grow: 1;
}

.guide-catalog-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  color: #80868b;
  border-top: 1px solid #f1f3f4;
  padding-top: 12px;
}

.guide-catalog-card-arrow {
  color: var(--article-blue);
  font-weight: 700;
  transition: transform 0.15s ease;
}

.guide-catalog-card:hover .guide-catalog-card-arrow {
  transform: translateX(4px);
}

@media (max-width: 980px) {
  .article-shell {
    display: block;
  }
  .article-stage {
    padding: 24px 20px 60px;
  }
  .article-gallery-grid {
    grid-template-columns: 1fr;
  }
  .guides-cards-grid {
    grid-template-columns: 1fr;
  }
}
