/* A guide has one reading path. The contents rail stays out of that path. */
.guide-reading.article-layout {
  width: min(1120px, calc(100% - 64px));
  grid-template-columns: minmax(0, 760px) minmax(190px, 220px);
  gap: 64px;
  justify-content: center;
  align-items: start;
  padding-block: 34px 80px;
}
.guide-reading .article { min-width: 0; }
.guide-reading .article > .gr-header { max-width: none; padding-bottom: 28px; border-bottom: 1px solid #dce5e9; }
.guide-reading .gr-back { display: inline-flex; gap: 10px; align-items: center; min-height: 36px; margin: 0 0 25px; color: #526774; font-size: 14px; font-weight: 750; }
.guide-reading .gr-back:hover { color: #087fbd; }
.guide-reading .gr-header > .eyebrow { margin: 0 0 15px; color: #087fbd; font-size: 12px; line-height: 1.5; letter-spacing: .09em; }
.guide-reading.article-branded .article h1 { margin: 0; font-size: clamp(36px, 3.6vw, 49px); line-height: 1.16; letter-spacing: -.038em; text-wrap: balance; }
.guide-reading.article-branded .article-intro { margin: 20px 0 22px; max-width: 62ch; color: #445c69; font-size: 19px; line-height: 1.65; }
.guide-reading.article-branded .article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; border: 0; color: #647783; font-size: 12px; line-height: 1.65; }
.guide-reading .article-meta > span { display: inline-flex; align-items: center; }
.guide-reading .article-meta time { margin-left: 4px; }
.guide-reading .article-meta a { margin-left:4px; color:inherit; text-decoration:underline; text-underline-offset:3px; }
.guide-reading .article-meta > span + span::before { content: '·'; padding-inline: 12px; color: #97a7b0; }
.guide-reading .gg-article-jumps { padding: 0; margin-top: 20px; }
.guide-reading .gg-article-jumps > a { padding: 0; min-height: 32px; font-size: 15px; line-height: 1.5; }

/* Short, quiet navigation; the headline remains the first thing to read. */
.guide-reading .gr-contents {
  position: sticky;
  top: calc(var(--site-header-height, 90px) + 28px);
  margin-top: 71px;
  padding: 0 4px 0 22px;
  max-height: calc(100svh - var(--site-header-height, 90px) - 56px);
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-width: thin;
  border-left: 1px solid #dce5e9;
}
.guide-reading .gr-contents-title { margin: 0 0 15px; color: #223e4c; font-size: 13px; line-height: 1.5; font-weight: 850; }
.guide-reading .gr-contents nav { margin: 0; padding: 0; gap: 0; border: 0; }
.guide-reading .gr-contents nav a { padding: 8px 0; color: #5a6f7a; font-size: 13px; line-height: 1.5; font-weight: 650; }
.guide-reading .gr-contents nav a:hover { color: #087fbd; text-decoration: underline; text-underline-offset: 3px; }
.guide-reading .gr-contents nav .gr-next-link { margin-top: 12px; padding-top: 17px; border-top: 1px solid #e3eaee; color: #087fbd; font-weight: 850; }
.guide-reading .gg-quick-nav { display: none; }
.guide-reading :is(.gr-back, .gr-contents a, .gg-quick-nav a):focus-visible { outline: 3px solid #209bd6; outline-offset: 4px; border-radius: 2px; }

/* Keep body text and headings on the same measure. No cards around prose. */
.guide-reading.article-branded .article > .gr-section { max-width: none; margin-top: 36px; padding-top: 0; scroll-margin-top: 20px; }
.guide-reading.article-branded .article > .gr-section h2 { max-width: 30ch; margin: 0 0 15px; font-size: 28px; line-height: 1.27; letter-spacing: -.022em; text-wrap: balance; }
.guide-reading.article-branded .article > .gr-section p { max-width: 66ch; margin: 0 0 17px; color: #354e5c; font-size: 17px; line-height: 1.82; overflow-wrap: break-word; }
.guide-reading.article-branded .article > .gr-section p:last-child { margin-bottom: 0; }
.guide-reading.article-branded .article > .gr-section .gg-section-sources { margin-top: 17px; color: #71818a; font-size: 12px; line-height: 1.6; }
.guide-reading .gr-section:target > h2 { text-decoration: underline; text-decoration-color: #b7dff0; text-decoration-thickness: 4px; text-underline-offset: 6px; }

/* Send problems need visible choices and steps, not another wall of text. */
.guide-reading .gr-quick-checks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:24px 0 34px; padding:0; }
.guide-reading .gr-quick-checks p { grid-column:1/-1; margin:0 0 4px; color:#405d6c; font-size:13px; font-weight:850; }
.guide-reading .gr-quick-checks a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; background:#f2f8fb; border:1px solid #d3e3ed; border-radius:7px; color:#237da8; font-size:13px; line-height:1.5; font-weight:800; }
.guide-reading .gr-quick-checks a:hover { background:#e8f5fc; border-color:#6fb4d6; }
.guide-reading .gr-step-list { padding:0; margin:0 0 23px; list-style:none; counter-reset:guide-step; }
.guide-reading .gr-step-list li { position:relative; counter-increment:guide-step; padding:12px 0 12px 39px; border-bottom:1px solid #e3ebef; color:#354e5c; font-size:16px; line-height:1.65; }
.guide-reading .gr-step-list li::before { content:counter(guide-step); position:absolute; top:13px; left:0; display:grid; place-items:center; width:23px; height:23px; border-radius:50%; background:#e9f4fa; color:#2188ba; font-size:11px; font-weight:850; }
.guide-reading .gr-table-wrap { margin:22px 0; }
.guide-reading .gr-table-wrap table { width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; font-size:14px; line-height:1.65; }
.guide-reading .gr-table-wrap thead th:first-child { width:27%; }
.guide-reading .gr-table-wrap caption { text-align:left; color:#4b6777; font-size:13px; font-weight:800; padding-bottom:12px; }
.guide-reading .gr-table-wrap th,.guide-reading .gr-table-wrap td { padding:15px; border:1px solid #dae5ec; text-align:left; vertical-align:top; color:#496370; }
.guide-reading .gr-table-wrap thead th { background:#edf5f9; color:#274d61; font-size:12px; }
.guide-reading .gr-table-wrap tbody th { width:27%; color:#244b60; background:#f8fbfd; }
.guide-reading .gr-more-reading { border-top:1px solid #dce5e9; margin-top:28px; padding-top:23px; }
.guide-reading .gr-more-reading h2 { margin:0 0 8px; font-size:19px; }
.guide-reading .gr-more-reading .gg-next-grid { margin:0; }
.guide-reading .gr-more-reading .gg-next-grid > a { padding-block:12px; }
@media(max-width:600px) {
  .guide-reading .gr-quick-checks { grid-template-columns:1fr; gap:8px; margin-bottom:28px; }
  .guide-reading .gr-quick-checks a { padding:12px 14px; min-height:44px; }
  .guide-reading .gr-table-wrap th,.guide-reading .gr-table-wrap td { padding:11px; font-size:13px; }
}

/* Tools and worked examples belong in the guide, rather than in a second page. */
.guide-reading.article-branded .article > .guide-lab { margin: 30px 0 36px; padding: 24px; border: 1px solid #d4e4ed; border-top: 3px solid #219ed7; border-radius: 10px; background: #f8fbfd; box-shadow: none; }
.guide-reading .guide-lab .gl-header { margin-bottom: 23px; padding-bottom: 18px; }
.guide-reading .guide-lab .gl-header h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.guide-reading .guide-lab .gl-header .gl-intro { max-width: 58ch; font-size: 16px; line-height: 1.65; }
.guide-reading .guide-lab .gl-header .gl-eyebrow { margin-bottom: 9px; font-size: 10px; letter-spacing: .08em; }
.guide-reading.article-branded .article > .gg-examples { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 38px; padding-top: 30px; border-top: 1px solid #cbdbe3; scroll-margin-top: 20px; }
.guide-reading.article-branded .gr-header + .gg-quick-nav + .gg-examples { border-top: 0; padding-top: 0; margin-top: 30px; }
.guide-reading.article-branded .article .gg-examples > h2 { margin: 0; font-size: 28px; line-height: 1.27; letter-spacing: -.022em; }
.guide-reading.article-branded .article .gg-examples > p { margin: -6px 0 8px; max-width: 62ch; color: #526c7b; font-size: 16px; line-height: 1.65; }
.guide-reading.article-branded .gg-example { padding: 24px; border: 1px solid #dbe5eb; border-radius: 10px; background: #f9fbfc; box-shadow: none; }
.guide-reading.article-branded .gg-example-top { align-items: center; flex-wrap: nowrap; gap: 20px; margin-bottom: 17px; }
.guide-reading.article-branded .gg-example-top h3 { flex: 1; margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -.015em; }
.guide-reading.article-branded .gg-example-top button { min-height: 38px; padding: 8px 12px; font-size: 12px; background: #fff; border-color: #c8dce8; }
.guide-reading .gg-example-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.guide-reading .gg-example-download { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #087cbd; font-size: 13px; font-weight: 800; white-space: nowrap; }
.guide-reading .gg-example-download:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-reading .gg-example-download:focus-visible { outline: 3px solid #159bdf; outline-offset: 4px; border-radius: 3px; }
.guide-reading.article-branded .gg-example-copy { padding: 20px; border: 1px solid #e0e7ec; border-radius: 5px; background: #fff; }
.guide-reading.article-branded .gg-example-copy > p { margin: 0 0 16px; }
.guide-reading.article-branded .gg-example-copy > p:last-child { margin-bottom: 0; }
.guide-reading.article-branded .gg-example-copy b { margin-bottom: 4px; color: #6a7c86; font-size: 12px; line-height: 1.5; }
.guide-reading.article-branded .gg-example-copy span { color: #294553; font-size: 16px; line-height: 1.65; }
.guide-reading.article-branded .gg-example-body p { margin-bottom: 14px; color: #354e5c; font-size: 16px; line-height: 1.75; }
.guide-reading.article-branded .gg-example-note { margin-top: 17px; padding-left: 12px; font-size: 14px; line-height: 1.65; border-left-color: #add4e8; }
.guide-reading.article-branded .gg-example-try { margin-top: 15px; background: #fff; }
.guide-reading .gg-copy-status:empty { margin: 0; min-height: 0; }
.guide-reading .gg-example-email .gg-example-copy { padding: 0; border: 0; background: transparent; }
.guide-reading .gg-template-preview { margin-top: 0; border-radius: 6px; }
.guide-reading .gg-template-preview iframe { height: var(--guide-template-height, 820px); background: #f4f3ef; }
.guide-reading .gg-template-preview-bar { padding: 11px 14px; background: #eef4f8; }
.guide-reading .gg-template-code { background: #fff; }
.guide-reading .gg-example-code { max-width: 100%; overscroll-behavior: auto; font-size: 13px; }

/* Finish the lesson, offer one action, then put references out of the way. */
.guide-reading .gr-footer { margin-top: 42px; }
.guide-reading.article-branded .article-cta { max-width: none; margin: 0; padding: 28px 30px; border: 1px solid #cee4d4; border-radius: 10px; background: #f2f9f3; box-shadow: none; color: #193b29; }
.guide-reading.article-branded .article-cta .gr-next-label { margin: 0 0 9px; color: #53745e; font-size: 11px; line-height: 1.5; letter-spacing: .07em; font-weight: 900; text-transform: uppercase; }
.guide-reading.article-branded .article-cta h2 { margin: 0 0 12px; max-width: 25ch; color: #193b29; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; }
.guide-reading.article-branded .article-cta p:not(.gr-next-label) { max-width: 60ch; margin: 0 0 20px; color: #496452; font-size: 16px; line-height: 1.65; }
.guide-reading .article-cta .button { min-height: 46px; padding: 12px 18px; font-size: 15px; }
.guide-reading .article-cta .text-link { color: #3e6950; }
.guide-reading .gg-sources { margin-top: 32px; padding-top: 24px; border-top: 1px solid #dce5e9; scroll-margin-top: 20px; }
.guide-reading.article-branded .gg-sources h2 { margin: 0 0 10px; font-size: 19px; line-height: 1.4; }
.guide-reading .gg-sources > p { margin: 0 0 14px; color: #687d89; font-size: 14px !important; line-height: 1.65; }
.guide-reading .gg-sources ul { padding: 0; margin: 0; }
.guide-reading .gg-sources li { margin: 9px 0; font-size: 13px; line-height: 1.6; }
.guide-reading .gg-sources a { font-size: 14px; line-height: 1.6; }
.guide-reading .gg-source-domain { font-size: 11px; }
.guide-reading.article-branded .gg-more-reading { margin-top: 26px; padding-block: 20px 0; }
.guide-reading.article-branded .gg-more-reading > summary { font-size: 16px; }
.guide-reading .gg-next-grid { grid-template-columns: 1fr; gap: 0; }
.guide-reading .gg-next-grid > a { padding: 15px 0; border: 0; border-bottom: 1px solid #e1e9ed; border-radius: 0; background: transparent; }
.guide-reading .gg-next-grid > a:hover { background: transparent; color: #087fbd; }
.guide-reading .gg-next-grid strong { font-size: 16px; line-height: 1.5; }

@media (max-width: 1050px) {
  .guide-reading.article-layout { width: min(760px, calc(100% - 48px)); grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 26px; }
  .guide-reading .gr-contents { display: none; }
  .guide-reading .gg-quick-nav { display: block; margin: 20px 0 0; padding: 0; border: 1px solid #dae5eb; border-radius: 8px; background: #f8fbfc; }
  .guide-reading .gg-quick-nav summary { display: flex; justify-content: space-between; align-items: center; min-height: 47px; padding: 12px 15px; color: #3f5e70; font-size: 14px; line-height: 1.5; font-weight: 800; cursor: pointer; }
  .guide-reading .gg-quick-nav summary::-webkit-details-marker { display: none; }
  .guide-reading .gg-quick-nav[open] summary { border-bottom: 1px solid #dae5eb; }
  .guide-reading .gg-quick-nav[open] summary > span { transform: rotate(180deg); }
  .guide-reading .gg-quick-nav nav { display: flex; flex-direction: column; padding: 9px 15px; }
  .guide-reading .gg-quick-nav nav a { padding: 8px 0; color: #4b6c7e; font-size: 14px; line-height: 1.5; }
  .guide-reading .gg-quick-nav nav .gr-next-link { margin-top: 6px; border-top: 1px solid #dae5eb; color: #087fbd; }
}
@media (max-width: 600px) {
  .guide-reading.article-layout { width: calc(100% - 36px); padding-block: 18px 50px; }
  .guide-reading .gr-back { margin-bottom: 19px; font-size: 13px; }
  .guide-reading.article-branded .article h1 { font-size: clamp(31px, 7.8vw, 40px); line-height: 1.17; }
  .guide-reading.article-branded .article-intro { margin: 17px 0 19px; font-size: 17px; line-height: 1.65; }
  .guide-reading .article-meta > span + span::before { padding-inline: 8px; }
  .guide-reading.article-branded .article > .gr-section { margin-top: 29px; }
  .guide-reading.article-branded .article > .gr-section h2, .guide-reading.article-branded .article .gg-examples > h2 { font-size: 24px; }
  .guide-reading.article-branded .article > .gr-section p { font-size: 16px; line-height: 1.8; }
  .guide-reading.article-branded .article > .guide-lab { padding: 20px 16px; margin-top: 25px; }
  .guide-reading.article-branded .article > .gg-examples { margin-top: 30px; padding-top: 25px; }
  .guide-reading.article-branded .gg-example { padding: 18px 15px; }
  .guide-reading.article-branded .gg-example-top { flex-wrap: wrap; gap: 12px; }
  .guide-reading.article-branded .gg-example-top h3 { flex: 1 1 160px; font-size: 20px; }
  .guide-reading.article-branded .gg-example-top button { min-height: 44px; }
  .guide-reading .gg-example-actions { flex-wrap: wrap; }
  .guide-reading.article-branded .gg-example-copy { padding: 16px; }
  .guide-reading.article-branded .gg-example-email .gg-example-copy { padding: 0; }
  .guide-reading .gr-footer { margin-top: 32px; }
  .guide-reading.article-branded .article-cta { padding: 23px; }
  .guide-reading.article-branded .article-cta h2 { font-size: 24px; }
  .guide-reading .article-cta .button { width: 100%; }
}
