/* Editorial templates and standard Gutenberg presentation — v1.1.0 */
.sgt-standard-page,.sgt-article,.sgt-listing-content,.sgt-related{margin:0}
.sgt-page-hero,.sgt-article-hero,.sgt-listing-hero,.sgt-error-page{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(93deg,rgba(11,12,13,.98),rgba(11,12,13,.83) 62%,rgba(11,12,13,.42)),url('../images/hero-market-path.jpg') center/cover no-repeat;color:#f3f0e8}
.sgt-page-hero::after,.sgt-listing-hero::after,.sgt-error-page::after,.sgt-article-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent 96%,rgba(199,162,96,.09) 97%),linear-gradient(90deg,transparent 96%,rgba(199,162,96,.07) 97%);background-size:72px 72px}
.sgt-page-hero,.sgt-listing-hero{padding:75px 0 88px}
.sgt-page-hero .sgt-eyebrow{margin-bottom:24px}
.sgt-page-hero h1,.sgt-listing-hero h1,.sgt-article-hero h1,.sgt-error-page h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(43px,5.4vw,86px);font-weight:400;letter-spacing:-.055em;line-height:1.06;margin:0;color:#f3f0e8;overflow-wrap:break-word}
.sgt-page-hero h1,.sgt-listing-hero h1{max-width:1060px}
.sgt-page-summary,.sgt-listing-summary,.sgt-article-summary{max-width:760px;color:#c6bdb0;font-size:clamp(15px,1.25vw,19px);line-height:1.75;margin:27px 0 0}
.sgt-listing-hero .sgt-eyebrow{margin-bottom:27px}
.sgt-listing-hero .sgt-listing-summary p{margin:0;color:inherit;font-size:inherit}
.sgt-standard-page{background:var(--sgt-paper);color:#171716}
.sgt-standard-page .sgt-page-layout{padding-block:68px 115px}
.sgt-page-featured{margin:0 auto 56px;max-width:1100px}
.sgt-page-featured img{width:100%;max-height:540px;object-fit:cover;display:block}
.sgt-standard-page .sgt-reading{margin-inline:auto}
/* Semantic article layout with readable measure and optional sidebar */
.sgt-article{background:var(--sgt-paper);color:#141516}
.sgt-article-hero{padding:72px 0 94px}
.sgt-article-hero h1{max-width:1100px;font-size:clamp(42px,5vw,78px)}
.sgt-article-hero .sgt-post-meta{margin-bottom:22px}
.sgt-post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#928a7d;font:11px/1.5 Arial,Helvetica,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.sgt-post-category{color:#c7a260!important;text-decoration:none!important;font-weight:700}
.sgt-article-hero .sgt-post-meta time{color:#b9b1a5}
.sgt-author-meta{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:#aaa49b;margin-top:29px;letter-spacing:.04em}
.sgt-author-meta a{color:#e3bd76!important}
.sgt-article-featured{padding:0 0 26px;position:relative;margin-top:-35px;z-index:2}
.sgt-article-featured figure{margin:0;border:1px solid rgba(199,162,96,.4);background:#141619}
.sgt-article-featured img{display:block;width:100%;max-height:530px;object-fit:cover}
.sgt-article-grid{display:grid;grid-template-columns:minmax(0,760px) minmax(220px,1fr);gap:clamp(35px,5vw,80px);padding-block:65px 80px;align-items:start}
.sgt-reading{width:100%;max-width:780px;min-width:0;font:17px/1.85 Arial,Helvetica,sans-serif;color:#383832;overflow-wrap:break-word}
.sgt-prose > *{max-width:100%}
.sgt-prose h2,.sgt-prose h3,.sgt-prose h4,.sgt-prose h5{font-family:Georgia,'Times New Roman',serif;color:#161716;letter-spacing:-.037em;line-height:1.2;font-weight:400;scroll-margin-top:110px}
.sgt-prose h2{font-size:clamp(28px,3vw,43px);margin:2.05em 0 .62em}
.sgt-prose h3{font-size:clamp(23px,2vw,31px);margin:1.55em 0 .5em}
.sgt-prose h4{font-size:23px;margin:1.5em 0 .5em}
.sgt-prose :is(p,ul,ol,blockquote,table,figure){margin-top:0;margin-bottom:1.4em}
.sgt-prose ul{list-style:disc;padding-left:1.6em}.sgt-prose ol{list-style:decimal;padding-left:1.6em}
.sgt-prose li{padding-left:.2em;margin-bottom:.4em}.sgt-prose li::marker{color:#a58042}
.sgt-prose a{color:#755020;text-decoration:underline;text-underline-offset:3px}
.sgt-prose a:hover{color:#a87831}
.sgt-prose blockquote{background:#e9e4d9;border-left:3px solid #aa8447;padding:23px 30px;color:#37332b;font-style:italic}
.sgt-prose :is(.wp-block-image,.wp-block-gallery,.wp-block-video,.wp-block-embed){margin-block:32px}
.sgt-prose figure img,.sgt-prose img{max-width:100%;height:auto}
.sgt-prose figcaption{color:#817970;font-size:12px;text-align:center;line-height:1.6;margin-top:9px}
.sgt-prose table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:14px}
.sgt-prose table th,.sgt-prose table td{border:1px solid rgba(11,12,13,.18);padding:12px;text-align:left}
.sgt-prose table th{background:#e5dfd1}
.sgt-prose pre,.sgt-prose code{overflow-wrap:anywhere}
.sgt-prose pre{max-width:100%;overflow-x:auto;padding:20px;background:#e5dfd1;color:#141516;font-size:13px;line-height:1.6}
.sgt-prose :is(input,textarea,select){max-width:100%;border:1px solid #9d968d;padding:10px;background:#fff;color:#171716}
.sgt-prose :is(.wp-block-button__link,button[type=submit],input[type=submit]){background:#bb9254;color:#171716;padding:12px 20px;border:0;text-decoration:none}
.sgt-prose .wp-block-separator{border-color:#c3b8a6;margin:36px 0}
.sgt-prose .alignwide,.sgt-prose .alignfull{max-width:100%}
.sgt-prose iframe,.sgt-prose embed,.sgt-prose video{max-width:100%}
.sgt-article-sidebar{padding-top:6px}
.sgt-side-panel{border-top:2px solid #b48a4b;background:#e9e5dc;padding:30px 28px;position:sticky;top:34px}
.sgt-side-panel h2{font:400 29px/1.2 Georgia,'Times New Roman',serif;letter-spacing:-.03em;margin:20px 0;color:#151515}
.sgt-side-panel p:not(.sgt-eyebrow){font-size:14px;line-height:1.75;color:#655d51}
.sgt-side-panel a{display:inline-block;margin-top:20px;color:#785323;font-size:13px;font-weight:700;text-decoration:none}
.sgt-article-tags{border-top:1px solid #c4baab;margin-top:54px;padding-top:20px;display:flex;flex-wrap:wrap;gap:8px}
.sgt-article-tags a{border:1px solid #b5a58c;color:#654d2c;padding:6px 11px;text-decoration:none;font-size:12px}
.sgt-post-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;border-top:1px solid #c4baab;margin-top:36px;padding-top:24px;font-size:13px;line-height:1.6}
.sgt-post-navigation>div:last-child{text-align:right}
.sgt-post-navigation a{font-weight:700;text-decoration:none;color:#6f4d27}
.sgt-article-disclosure{display:grid;grid-template-columns:130px 1fr;gap:25px;border-top:1px solid #c4baab;padding:25px 0 40px;color:#777169;font-size:12px;line-height:1.65}
.sgt-article-disclosure strong{color:#8d703f;text-transform:uppercase;font-size:11px;letter-spacing:.16em}
.sgt-article-disclosure p{margin:0}
.sgt-comments{padding:30px 0 80px}
/* Cards & archives */
.sgt-listing-content{background:var(--sgt-paper);color:#171716;padding-block:65px 115px}
.sgt-listing-content .sgt-section-rule{border-color:rgba(11,12,13,.19);color:#8d8579;margin-bottom:34px}
.sgt-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.sgt-post-card{display:flex;flex-direction:column;min-width:0;background:#f9f7f1;border:1px solid #ded6c8;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.sgt-post-card:hover{transform:translateY(-4px);border-color:#b69154;box-shadow:0 15px 35px #16151317}
.sgt-card-media{display:block;aspect-ratio:16/10;background:#151619;overflow:hidden}
.sgt-card-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.sgt-post-card:hover .sgt-card-media img{transform:scale(1.04)}
.sgt-card-no-image{height:100%;display:grid;place-items:center;background:radial-gradient(circle at 70% 50%,#7659342e,transparent 55%),#141619;color:#cda763}
.sgt-card-no-image span{font:400 72px/1 Georgia,serif;border:1px solid #9a7642;width:110px;height:110px;display:grid;place-items:center;border-radius:50%}
.sgt-card-content{padding:24px 25px 26px;display:flex;flex-direction:column;flex:1}
.sgt-post-card .sgt-post-meta{margin:0 0 15px;color:#77716c;font-size:10px}
.sgt-post-card .sgt-post-category{color:#926c32!important}
.sgt-card-title{font:400 clamp(23px,1.8vw,29px)/1.18 Georgia,serif;letter-spacing:-.038em;margin:0 0 13px;color:#171716;overflow-wrap:break-word}
.sgt-card-title a{text-decoration:none;color:inherit}
.sgt-card-title a:hover{color:#83602d}
.sgt-card-excerpt{font-size:13px;color:#6b665f;line-height:1.7;margin:0 0 27px;flex:1}
.sgt-card-more{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8a642a;text-decoration:none}
.sgt-card-more span{margin-left:8px}
.sgt-pagination{padding-top:45px}
.sgt-pagination .nav-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sgt-pagination .page-numbers{border:1px solid #b4a996;min-width:42px;min-height:42px;display:inline-grid;place-items:center;padding:9px 12px;color:#5f4930;text-decoration:none;font-size:12px}
.sgt-pagination .page-numbers.current{background:#171818;color:#e3bd76;border-color:#171818}
.sgt-related{background:#151619;color:#f3f0e8;padding:80px 0 100px}
.sgt-related h2{font:400 clamp(34px,4vw,58px)/1.1 Georgia,serif;letter-spacing:-.04em;margin:45px 0 40px;color:#f3f0e8}
.sgt-no-results{padding:50px 0;min-height:280px}
.sgt-no-results h2{font:400 35px/1.2 Georgia,serif}
.sgt-search-hero-form{max-width:580px;margin-top:38px}
.sgt-no-results form,.sgt-search-hero-form form{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}
.sgt-no-results input[type=search],.sgt-search-hero-form input[type=search]{background:#f3f0e8;color:#151619;border:1px solid #8b734d;padding:13px 16px;min-height:49px;flex:1;min-width:180px}
.sgt-no-results button,.sgt-search-hero-form button,.sgt-no-results input[type=submit],.sgt-search-hero-form input[type=submit]{background:#c7a260;color:#111;padding:11px 21px;border:1px solid #c7a260;min-height:49px;cursor:pointer}
.sgt-error-page{min-height:600px;display:flex;align-items:center;padding:105px 0}
.sgt-error-page h1{max-width:900px;margin:22px 0}
.sgt-error-page p:not(.sgt-eyebrow){max-width:560px;color:#c4bcad;font-size:18px;line-height:1.7}
.sgt-error-page .sgt-hero-actions{margin:30px 0 10px}
@media(max-width:1000px){.sgt-article-grid{grid-template-columns:minmax(0,1fr)}.sgt-article-sidebar{max-width:720px}.sgt-side-panel{position:static}.sgt-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sgt-page-hero,.sgt-listing-hero{padding:55px 0 66px}.sgt-article-hero{padding:50px 0 67px}.sgt-standard-page .sgt-page-layout{padding-block:42px 75px}.sgt-article-grid{padding-block:40px 60px}.sgt-reading{font-size:16px;line-height:1.8}.sgt-card-grid{grid-template-columns:1fr}.sgt-article-disclosure{grid-template-columns:1fr;gap:10px}.sgt-related{padding-block:60px 70px}.sgt-listing-content{padding-block:40px 70px}}
@media(max-width:420px){.sgt-article-hero h1{font-size:clamp(35px,11vw,49px)}.sgt-post-navigation{grid-template-columns:1fr}.sgt-post-navigation>div:last-child{text-align:left}.sgt-card-content{padding:22px}}
/* Related cards use light surfaces even inside the charcoal section. */
.sgt-related .sgt-post-card .sgt-card-title{color:#171716}
.sgt-related .sgt-post-card .sgt-card-title a{color:#171716}
.sgt-related .sgt-post-card .sgt-card-excerpt{color:#6b665f}

/* v1.1.1: readable small-text contrast on ivory/light cards. */
.sgt-listing-content .sgt-section-rule{color:#5f5a52}
.sgt-post-card .sgt-post-meta{color:#625c54}
.sgt-post-card .sgt-post-category{color:#67471f!important}
.sgt-card-more{color:#68491d}
.sgt-article-disclosure{color:#5f5850}


/* ==========================================================================
 * SGT learning landing pages: layout and scroll correction — 2026-10-28
 * Only WordPress Pages 1887 (Popular Indicators) and 1888 (Resources).
 * Keep the rest of the site's editorial, sidebar and archive CSS untouched.
 * ========================================================================== */

/* Landing pages are directories, not narrow single-column articles. */
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-standard-page .sgt-page-layout {
  padding-top: clamp(48px, 5vw, 78px);
  padding-bottom: clamp(70px, 8vw, 110px);
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-standard-page .sgt-reading {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  overflow-wrap: break-word;
}

/* Critical fix: the sidebar component was mistakenly used as an intro panel.
 * The default position:sticky;top:34px caused headings to appear frozen.
 */
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-standard-page .sgt-reading .sgt-side-panel {
  position: static;
  top: auto;
  max-width: 100%;
  margin: 0 0 clamp(52px, 6vw, 78px);
  padding: clamp(28px, 3.6vw, 47px);
  background: #e9e5dc;
  border-top: 3px solid #b48a4b;
  box-shadow: none;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-side-panel h2 {
  max-width: 870px;
  color: #171716;
  font: 400 clamp(31px, 3.9vw, 53px)/1.16 Georgia, 'Times New Roman', serif;
  letter-spacing: -.042em;
  margin: 16px 0 18px;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-side-panel p:not(.sgt-eyebrow) {
  max-width: 850px;
  color: #544f46;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.78;
  margin: 0 0 12px;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-side-panel p:last-child {
  margin-bottom: 0;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-eyebrow {
  color: #785629;
  font-size: 11px;
  letter-spacing: .17em;
}

/* A deliberate, consistent rhythm rather than the global article h2 2.05em. */
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading > h2,
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading > section[aria-label] > h2 {
  margin: 0 0 20px;
  font: 400 clamp(33px, 3.6vw, 50px)/1.16 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading > h2 + p,
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading > section[aria-label] > h2 + p {
  margin: 0 0 66px;
  max-width: 1120px;
  line-height: 2;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading section[id] {
  position: static;
  scroll-margin-top: 95px;
  margin: 0 0 clamp(66px, 7vw, 98px);
  padding: 0;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading section[id] > .wp-block-separator {
  border-color: #c6baaa;
  border-top-width: 1px;
  margin: 0 0 25px;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading section[id] > h2 {
  margin: 13px 0 16px;
  font: 400 clamp(32px, 3.3vw, 46px)/1.18 Georgia, 'Times New Roman', serif;
  letter-spacing: -.04em;
  color: #171716;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading section[id] > p:not(.sgt-eyebrow) {
  max-width: 790px;
  margin: 0 0 32px;
  color: #5b564e;
  font-size: 15px;
  line-height: 1.75;
}

/* Give cards enough width for multi-line headings; override article h3 rules. */
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 25px 0 0;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-post-card {
  min-width: 0;
  margin: 0;
  background: #f9f7f1;
  border: 1px solid #d9cebd;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 27px 26px 30px;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-post-card h3.sgt-card-title {
  margin: 0 0 17px;
  color: #171716;
  font: 400 clamp(23px, 2vw, 29px)/1.24 Georgia, 'Times New Roman', serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-card-title a {
  color: #171716;
  text-decoration: none;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-card-excerpt {
  margin: 0 0 24px;
  font: 14px/1.73 Arial, Helvetica, sans-serif;
  color: #615b53;
}
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-card-more {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  color: #735122;
  text-decoration: none;
}

/* Long resource directory: readable two-column index, not a 53-item wall. */
body.sgt-design.page-id-1888 .sgt-reading #directory .wp-block-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 25px 0 56px;
}
body.sgt-design.page-id-1888 .sgt-reading #directory .wp-block-list li {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 16px 20px;
  background: #faf8f2;
  border: 1px solid #d9cebd;
  font: 15px/1.5 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}
body.sgt-design.page-id-1888 .sgt-reading #directory .wp-block-list a {
  color: #63451f;
  text-decoration: none;
}
body.sgt-design.page-id-1888 .sgt-reading #directory .wp-block-list a:hover {
  color: #956a32;
  text-decoration: underline;
}

/* Remove unnecessary hover shifting in these dense learning libraries. */
body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-post-card:hover {
  transform: none;
}

@media (max-width: 1020px) {
  body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (max-width: 700px) {
  body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-standard-page .sgt-page-layout {
    padding-top: 42px;
  }
  body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-standard-page .sgt-reading {
    max-width: 100%;
  }
  body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-card-grid,
  body.sgt-design.page-id-1888 .sgt-reading #directory .wp-block-list {
    grid-template-columns: 1fr;
  }
  body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-card-content {
    padding: 24px;
  }
  body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading > h2 + p,
  body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading > section[aria-label] > h2 + p {
    margin-bottom: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.sgt-design:is(.page-id-1887,.page-id-1888) .sgt-reading .sgt-post-card {
    transition: none;
  }
}


/* ============================================================================
 * SGT learning hubs: fix WordPress inner block width / hero-to-body spacing.
 * 2026-10-29 | Pages 1887 & 1888 ONLY.
 *
 * The Go theme constrains direct .entry-content children to reading measure.
 * Widening .sgt-reading alone still leaves the first section/panel ~670px
 * wide and centred. Reset those direct child constraints for the two directories.
 * ============================================================================ */
body.sgt-design:is(.page-id-1887,.page-id-1888)
.sgt-standard-page .sgt-reading.entry-content > * {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Prevent a second WordPress content-margin from adding to page-layout padding. */
body.sgt-design:is(.page-id-1887,.page-id-1888)
.sgt-standard-page .sgt-page-layout {
  width: min(1220px, calc(100% - 96px));
  max-width: none;
  padding-top: clamp(28px, 3.4vw, 46px);
}
body.sgt-design:is(.page-id-1887,.page-id-1888)
.sgt-standard-page .sgt-reading.entry-content {
  width: 100%;
  max-width: none !important;
  margin-top: 0 !important;
  margin-bottom: 0;
}

/* The Resources page wraps its entire library in one direct-child <section>.
 * Let its contents fill the same shell instead of inheriting a reading column.
 */
body.sgt-design.page-id-1888
.sgt-standard-page .sgt-reading.entry-content > section[aria-label="Gold Trading Resources learning hub"] {
  display: block;
  width: 100% !important;
  max-width: none !important;
  padding: 0;
}

/* Both introduction panels should span the available library column. */
body.sgt-design:is(.page-id-1887,.page-id-1888)
.sgt-reading .sgt-side-panel {
  width: 100%;
  max-width: 100% !important;
}

/* Disentangle Go's block margin rules from the curated article sections. */
body.sgt-design:is(.page-id-1887,.page-id-1888)
.sgt-reading .sgt-card-grid {
  max-width: 100% !important;
  margin-inline: 0 !important;
}
body.sgt-design:is(.page-id-1887,.page-id-1888)
.sgt-reading .sgt-post-card,
body.sgt-design:is(.page-id-1887,.page-id-1888)
.sgt-reading .sgt-card-content {
  width: auto;
  max-width: none;
}
@media (max-width: 800px) {
  body.sgt-design:is(.page-id-1887,.page-id-1888)
  .sgt-standard-page .sgt-page-layout {
    width: min(100% - 48px, 740px);
    padding-top: 32px;
  }
}
@media (max-width: 480px) {
  body.sgt-design:is(.page-id-1887,.page-id-1888)
  .sgt-standard-page .sgt-page-layout {
    width: calc(100% - 36px);
    padding-top: 26px;
  }
}

/* ==========================================================================
 * Single-post Gutenberg reading rhythm — 2026-10-29
 *
 * Correct the screenshot's list-to-paragraph left-edge mismatch, oversized
 * headings and compound Go/Gutenberg separator spacing. The scope is limited
 * to direct content blocks inside SINGLE posts; no article content is edited.
 * Preserve deliberate alignwide/aligncenter media, nested block designs,
 * existing links, images, author bylines, sidebars and post navigation.
 * ========================================================================== */

/* Go's narrow, auto-centered block rules must not shrink ordinary text and
 * lists inside our existing 760px reading column. */
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(
  p, h2, h3, h4, h5, h6, ul, ol, blockquote, hr, pre, table, .wp-block-table
):not(.alignwide):not(.alignfull):not(.aligncenter):not(.alignleft):not(.alignright) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Lists remain lists (including numbered/indented steps); only remove the
 * unexpected centred max-width and exaggerated outside indentation. */
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(ul,ol) {
  list-style-position: outside;
  padding-inline-start: 1.55rem !important;
  margin-block: 0 1.45em !important;
  line-height: 1.72;
}
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(ul,ol) > li {
  padding-inline-start: .2rem;
  margin-block: 0 .45em;
  text-indent: 0;
}
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(ul,ol) > li > p {
  max-width: 100% !important;
  width: auto !important;
  margin-inline: 0 !important;
  margin-block: 0 .55em;
}
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(ul,ol) :is(ul,ol) {
  margin: .6em 0 .65em;
  padding-inline-start: 1.45rem;
}

/* Size only uncustomised direct section headings. Manual Gutenberg inline
 * font-size choices and headings inside groups/cards stay under editor control. */
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > h2:not([style*="font-size"]) {
  font-size: clamp(30px, 2.8vw, 40px) !important;
  font-weight: 400;
  line-height: 1.2 !important;
  letter-spacing: -.032em;
  margin-block: clamp(38px, 4vw, 53px) 18px !important;
}
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > h3:not([style*="font-size"]) {
  font-size: clamp(25px, 2.1vw, 31px) !important;
  font-weight: 400;
  line-height: 1.26 !important;
  letter-spacing: -.025em;
  margin-block: 32px 13px !important;
}
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > h4:not([style*="font-size"]),
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > h5:not([style*="font-size"]),
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > h6:not([style*="font-size"]) {
  font-size: clamp(19px, 1.65vw, 24px) !important;
  line-height: 1.35 !important;
  margin-block: 27px 12px !important;
}
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(h2,h3,h4,h5,h6):first-child {
  margin-block-start: 0 !important;
}

/* Gutenberg margin/blockGap can stack with Go's heading and HR margins.
 * A separator denotes a section break, not a second giant whitespace block. */
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(hr,.wp-block-separator) {
  margin-block: 34px 0 !important;
}
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(hr,.wp-block-separator) + :is(h2,h3,h4,h5,h6) {
  margin-block-start: 32px !important;
}
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(h2,h3,h4,h5,h6) + :is(p,ul,ol,blockquote) {
  margin-block-start: 0 !important;
}
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > p {
  line-height: 1.78;
  margin-block-end: 1.35em;
}

/* Keep illustrations and wide Gutenberg media blocks governed by their own
 * alignment classes. Only reset the unintended Go centring of plain tables. */
body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > .wp-block-table:not(.alignwide):not(.alignfull):not(.aligncenter) {
  margin-inline: 0 !important;
  max-width: 100% !important;
}
@media (max-width: 700px) {
  body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(ul,ol) {
    padding-inline-start: 1.3rem !important;
  }
  body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > h2:not([style*="font-size"]) {
    font-size: clamp(28px, 7.2vw, 34px) !important;
    margin-block-start: 34px !important;
  }
  body.sgt-design.single-post .sgt-article-grid > .sgt-reading.entry-content > :is(hr,.wp-block-separator) + :is(h2,h3,h4,h5,h6) {
    margin-block-start: 26px !important;
  }
}

/* ============================================================================
 * Single-post learning sidebar — desktop TOC, related links, learning hubs
 * 2026-10-29. Scoped to article template; pages/archives unaffected.
 * ============================================================================ */
body.sgt-design.single-post .sgt-article-sidebar.sgt-sidebar-enhanced {
  align-self: stretch;
  min-width: 0;
  padding-top: 0;
  color: #171716;
}
body.sgt-design.single-post .sgt-sidebar-enhanced :is(.sgt-sidebar-toc,.sgt-sidebar-related,.sgt-sidebar-hub) {
  width: 100%;
  min-width: 0;
}
body.sgt-design.single-post .sgt-sidebar-enhanced .sgt-sidebar-kicker {
  margin: 0 0 15px;
  font: 700 10px/1.55 Arial, Helvetica, sans-serif;
  color: #976f36;
  letter-spacing: .17em;
  text-transform: uppercase;
}
body.sgt-design.single-post .sgt-sidebar-enhanced :is(.sgt-sidebar-toc,.sgt-sidebar-related,.sgt-sidebar-hub) h2 {
  margin: 0 0 20px;
  color: #171716;
  font: 400 clamp(24px, 2.15vw, 31px)/1.19 Georgia, 'Times New Roman', serif;
  letter-spacing: -.035em;
}
body.sgt-design.single-post .sgt-sidebar-toc[hidden],
body.sgt-design.single-post .sgt-mobile-toc[hidden] { display: none !important; }
/* Only the section navigation is sticky. The related-reading and hub
 * modules remain in ordinary document flow. */
body.sgt-design.single-post .sgt-sidebar-toc {
  position: sticky;
  top: 26px;
  z-index: 2;
  padding: 26px 25px 29px;
  background: #e9e5dc;
  border-top: 2px solid #b48a4b;
  max-height: calc(100vh - 55px);
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
body.sgt-design.single-post .sgt-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.sgt-design.single-post .sgt-toc-list li {
  list-style: none;
  padding: 0;
  margin: 0 0 3px;
}
body.sgt-design.single-post .sgt-toc-list a {
  display: block;
  padding: 11px 11px 11px 15px;
  border-left: 2px solid transparent;
  color: #61594e;
  font: 13px/1.5 Arial, Helvetica, sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .15s, color .15s, background .15s;
}
body.sgt-design.single-post .sgt-toc-list a:hover,
body.sgt-design.single-post .sgt-toc-list a:focus-visible {
  color: #67471e;
  background: rgba(183, 148, 93, .1);
}
body.sgt-design.single-post .sgt-toc-list a[aria-current="location"] {
  border-left-color: #a87f43;
  color: #231b10;
  font-weight: 700;
  background: rgba(187, 146, 79, .13);
}
body.sgt-design.single-post .sgt-article-grid .sgt-reading h2[id] {
  scroll-margin-top: 95px;
}
body.sgt-design.single-post .sgt-sidebar-related {
  margin-top: 32px;
  padding: 26px 0 0;
  border-top: 1px solid #c9bdac;
}
body.sgt-design.single-post .sgt-sidebar-related-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px 0;
  border-top: 1px solid rgba(36, 30, 22, .14);
}
body.sgt-design.single-post .sgt-sidebar-related-image {
  display: block;
  flex: 0 0 82px;
  width: 82px;
  aspect-ratio: 1;
  background: #171819;
  overflow: hidden;
}
body.sgt-design.single-post .sgt-sidebar-related-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.sgt-design.single-post .sgt-sidebar-related-copy {
  flex: 1;
  min-width: 0;
}
body.sgt-design.single-post .sgt-sidebar-related-copy h3 {
  margin: 0 0 8px;
  color: #231f19;
  font: 400 18px/1.27 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
}
body.sgt-design.single-post .sgt-sidebar-related-copy h3 a {
  color: #231f19;
  text-decoration: none;
}
body.sgt-design.single-post .sgt-sidebar-related-copy h3 a:hover {
  color: #87602c;
}
body.sgt-design.single-post .sgt-sidebar-related-copy p {
  margin: 0;
  color: #686055;
  font: 12px/1.6 Arial, Helvetica, sans-serif;
}
body.sgt-design.single-post .sgt-sidebar-hub {
  padding-top: 26px;
  margin-top: 17px;
  border-top: 1px solid #c9bdac;
}
body.sgt-design.single-post .sgt-sidebar-hub > a {
  display: inline-block;
  color: #755126;
  border-bottom: 1px solid #b48a4b;
  font: 700 13px/1.6 Arial, Helvetica, sans-serif;
  padding-bottom: 6px;
  text-decoration: none;
}
body.sgt-design.single-post .sgt-sidebar-hub > a:hover { color: #a07132; }
body.sgt-design.single-post .sgt-mobile-toc { display: none; }

/* The main template switches to one column below 1000px.
 * Replace the desktop sidebar there with an article-top collapsible TOC. */
@media (max-width: 1000px) {
  body.sgt-design.single-post .sgt-article-sidebar.sgt-sidebar-enhanced {
    display: none;
  }
  body.sgt-design.single-post .sgt-mobile-toc:not([hidden]) {
    display: block;
    margin: 0 0 37px;
    padding: 0;
    background: #e9e5dc;
    border-top: 2px solid #b48a4b;
  }
  body.sgt-design.single-post .sgt-mobile-toc summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 23px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #2d2418;
    font: 700 13px/1.5 Arial, Helvetica, sans-serif;
  }
  body.sgt-design.single-post .sgt-mobile-toc summary::-webkit-details-marker { display: none; }
  body.sgt-design.single-post .sgt-mobile-toc[open] summary span { transform: rotate(45deg); }
  body.sgt-design.single-post .sgt-mobile-toc nav {
    padding: 0 16px 18px;
    max-height: min(65vh, 520px);
    overflow-y: auto;
  }
  body.sgt-design.single-post .sgt-mobile-toc .sgt-toc-list a { padding-block: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body.sgt-design.single-post .sgt-toc-list a { transition: none; }
  body.sgt-design.single-post .sgt-mobile-toc summary span { transition: none; }
}
