/* Public reading page only. The homepage and editor layouts are intentionally untouched. */
.article-page {
  --reading-width: 760px;
  --cover-width: 760px;
  max-width: 1080px;
  margin: 36px auto 64px;
  overflow-wrap: anywhere;
}
.reading-article { background: #fff; border-top: 3px solid #18181b; padding: 0 32px 44px; }
.article-heading { width: 100%; max-width: var(--reading-width); margin: 0 auto; padding: 44px 0 26px; }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.article-kicker > a:first-child { color: #b23c28; }
.article-kicker > a:first-child::before { content: ''; display: inline-block; width: 8px; height: 8px; background: tomato; margin-right: 10px; }
.article-title { --gg-heading-font: var(--gg-font-display); --gg-heading-weight: 700; --gg-heading-tracking: .015em; margin: 0; padding-block: .06em; color: #18181b; font-size: clamp(48px, 4.6vw, 68px); line-height: 1.02; letter-spacing: var(--gg-heading-tracking); word-spacing: .06em; text-wrap: balance; }
.article-deck { margin: 22px 0 0; max-width: 100%; color: #52525b; font-family: var(--gg-font-reading); font-size: 25px; font-weight: 400; line-height: 1.4; text-wrap: pretty; }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #e4e4e7; font-size: 12px; line-height: 1.6; color: #62626b; }
.article-byline > div { max-width: 100%; min-width: 0; }
.article-byline a { font-weight: 700; color: #27272a; }
.article-publication { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article-publication time, .article-publication > span:last-child { white-space: nowrap; }
.article-cover { width: 100%; max-width: var(--cover-width); margin: 0 auto; background: #f4f4f5; }
.article-cover > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.reading-column { width: 100%; max-width: var(--reading-width); margin-inline: auto; }
.article-body-wrap { padding-top: 38px; }
.article-guide-note { border-left: 3px solid tomato; background: #faf8f5; padding: 16px 20px; margin-bottom: 28px; }
.article-content { color: #303034; font-family: var(--gg-font-reading); font-size: 23px; line-height: 1.7; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content > * { max-width: 100%; }
.article-content p { margin: 0 0 1.3em; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5, .article-content h6 {
  font-family: var(--gg-font-heading);
  color: #18181b; font-weight: 400; line-height: 1.12; letter-spacing: 0;
  margin: 1.8em 0 .65em; scroll-margin-top: 120px;
}
.article-content h1, .article-content h2 { font-size: 38px; }
.article-content h3 { font-size: 32px; }
.article-content h4, .article-content h5, .article-content h6 { font-size: 28px; }
.article-content a { color: #993422; text-decoration: underline; text-decoration-color: #d89685; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.article-content a:hover { color: #18181b; text-decoration-color: #18181b; }
.article-content strong, .article-content b { color: #18181b; font-weight: 700; }
.article-content ul, .article-content ol { padding-left: 1.35em; margin: 0 0 1.3em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin: .45em 0; padding-left: .2em; }
.article-content li::marker { color: #9b432f; }
.article-content li > p { margin-bottom: .6em; }
.article-content blockquote { border-left: 3px solid tomato; padding: 4px 0 4px 24px; margin: 32px 0; color: #52525b; font-size: 24px; line-height: 1.55; font-style: italic; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content code { background: #f2f0ed; padding: .15em .3em; border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8em; }
.article-content pre { max-width: 100%; overflow-x: auto; white-space: pre; padding: 22px; margin: 28px 0; background: #232327; color: #f4f4f5; border-left: 3px solid tomato; font-size: 15px; line-height: 1.7; }
.article-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 28px 0; font-family: system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
.article-content th, .article-content td { min-width: 7rem; padding: 12px 14px; border: 1px solid #dedbd5; text-align: left; overflow-wrap: normal; }
.article-content th { background: #f7f5f1; font-weight: 700; }
.article-content img { display: block; max-width: 100%; width: auto; height: auto; margin: 28px auto; }
.article-content figure { margin: 32px 0; }
.article-content figure img { margin-bottom: 10px; }
.article-content figcaption { color: #71717a; font: 13px/1.6 system-ui, sans-serif; }
.article-content iframe, .article-content video { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 28px 0; }
.article-content hr { border: 0; border-top: 1px solid #dedbd5; margin: 36px 0; }
.article-tags { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e4e4e7; }
.article-footer { padding-top: 28px; margin-top: 28px; border-top: 1px solid #e4e4e7; }
.article-footer-inner { display: flex; flex-direction: column; gap: 24px; }
.article-author-bio { font-size: 14px; line-height: 1.7; }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.article-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid #27272a; font-size: 12px; font-weight: 700; transition: background-color .15s, color .15s; }
.article-action-primary { background: #27272a; color: #fff; }
.article-action-primary:hover { background: #923624; }
.article-action-secondary:hover { background: #f2f0ed; }
.article-contributors { margin: 36px auto; max-width: 920px; }
.article-discussion { max-width: 760px; margin: 40px auto; }
.article-discussion-panel { padding: 28px; background: #fff; border: 1px solid #dedbd5; }
.article-discussion h2 { font-size: 30px; line-height: 1.1; }
.article-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid #27272a; }
.article-related h2 { font-size: 34px; line-height: 1.1; }
.article-related .gg-home-card { border-color: #dedbd5; box-shadow: none; }
.article-related .gg-home-card:hover { border-color: #a3a3a3; box-shadow: 0 3px 0 #d6d3ce; }
.article-related .gg-home-card h3 { font-size: 30px; line-height: 1.08; letter-spacing: 0; }
.article-related .gg-home-card > div { padding: 18px; }
#readingProgress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: tomato; transform: scaleX(0); transform-origin: left; z-index: 10010; pointer-events: none; }
@media (max-width: 767px) {
  .article-page { margin-top: 20px; margin-bottom: 40px; }
  .reading-article { padding: 0 22px 30px; }
  .article-heading { padding-top: 28px; padding-bottom: 22px; }
  .article-title { font-size: clamp(44px, 8vw, 60px); line-height: 1.04; }
  .article-kicker { margin-bottom: 16px; font-size: 10px; gap: 8px; }
  .article-deck { margin-top: 18px; font-size: 22px; line-height: 1.4; }
  .article-byline { margin-top: 20px; padding-top: 16px; gap: 8px 10px; font-size: 11px; }
  .article-byline-author { flex-basis: 100%; }
  .article-body-wrap { padding-top: 28px; }
  .article-content { font-size: 21px; line-height: 1.7; }
  .article-content h1, .article-content h2 { font-size: 32px; }
  .article-content h3 { font-size: 28px; }
  .article-content blockquote { font-size: 21px; padding-left: 18px; }
  .article-content pre { padding: 18px; font-size: 13px; }
  .article-discussion-panel { padding: 22px; }
  .article-related h2 { font-size: 30px; }
}
@media (max-width: 380px) {
  .reading-article { padding-inline: 16px; }
  .article-page .article-title { font-size: 42px; }
  .article-deck { font-size: 21px; }
  .article-discussion-panel { padding: 16px; }
}
