/* RackingZone — Guides & Standards (hub /guides/, topic hubs, guide articles).
   Editorial / magazine look: ink rules, numbered indexes, big Barlow headlines.
   Pages are generated by working/site-src/generators/guides.php. Prefix: .gd-  */

.gd-page { --gd-rule: 3px solid var(--ink); --gd-hair: 1px solid var(--line); }

/* ---------- shared bits ---------- */
.gd-kicker { display: inline-block; font-family: var(--font-head); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-dark); }
.gd-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .8rem; color: var(--muted); }
.gd-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.gd-meta .bi { color: var(--teal); }
.gd-sec-head { margin-bottom: 2rem; }
.gd-sec-head .section-title { margin-bottom: .4rem; }
.gd-count { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--muted); }
.gd-mail { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink); word-break: break-all; }
.gd-mail:hover { color: var(--red); }

/* ================================================================ HUB */
.gd-masthead { background: var(--main); padding: 36px 0 44px; border-bottom: var(--gd-hair); }
.gd-mast-rule { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; border-top: var(--gd-rule); border-bottom: var(--gd-hair); padding: .55rem 0; margin: 1.4rem 0 1.8rem; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gd-mast-title { font-size: clamp(2.8rem, 7.2vw, 5.6rem); font-weight: 800; line-height: .95; letter-spacing: -.035em; margin: 0 0 1.1rem; }
.gd-amp { font-style: italic; color: var(--red); font-weight: 800; }
.gd-mast-lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0; }
.gd-index { border-top: var(--gd-rule); margin-top: 1.5rem; }
.gd-index-item { display: flex; align-items: baseline; gap: .9rem; padding: .85rem 0; border-bottom: var(--gd-hair); color: var(--ink); font-family: var(--font-head); }
.gd-index-item:hover { color: var(--teal); }
.gd-index-num { font-weight: 800; color: var(--red-dark); font-size: .9rem; width: 1.6rem; }
.gd-index-name { font-weight: 700; font-size: 1.3rem; flex: 1; transition: transform .3s var(--ease); }
.gd-index-item:hover .gd-index-name { transform: translateX(6px); }
.gd-index-count { font-weight: 700; color: var(--muted); font-size: .9rem; }
.gd-index-count::after { content: " guides"; font-weight: 600; }
@media (min-width: 992px) { .gd-index { margin-top: 0; } }

/* lead feature */
.gd-lead-wrap { padding: 48px 0 16px; }
.gd-lead { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--main); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.gd-lead-media { position: relative; display: block; min-height: 440px; overflow: hidden; background: var(--ink); }
.gd-lead-media img { position: absolute; top: 0; height: 100%; width: 62%; object-fit: cover; transition: transform .8s var(--ease); }
.gd-lead-media img:first-child { left: 0; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.gd-lead-media img:nth-child(2) { right: 0; clip-path: polygon(29% 0, 100% 0, 100% 100%, 9.7% 100%); }
.gd-lead:hover .gd-lead-media img { transform: scale(1.04); }
.gd-lead-tag { position: absolute; bottom: 14px; z-index: 2; background: rgba(35, 35, 35, .82); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 6px; }
.gd-lead-tag.l { left: 14px; }
.gd-lead-tag.r { right: 14px; background: var(--teal); }
.gd-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 1.5rem; box-shadow: 0 0 0 6px rgba(255, 255, 254, .85); z-index: 2; }
.gd-lead-body { padding: 2.4rem 2.4rem 2.2rem; display: flex; flex-direction: column; align-items: flex-start; }
.gd-lead-label { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); border-bottom: 2px solid var(--red); padding-bottom: .25rem; }
.gd-lead h2 { font-size: clamp(1.7rem, 2.8vw, 2.35rem); font-weight: 800; line-height: 1.1; margin: 1rem 0 .8rem; }
.gd-lead h2 a { color: var(--ink); }
.gd-lead h2 a:hover { color: var(--teal); }
.gd-lead-dek { color: var(--muted); font-size: 1.02rem; }
.gd-lead-in { width: 100%; margin: 1.2rem 0 1.6rem; border-top: var(--gd-hair); padding-top: 1rem; }
.gd-lead-in > span { font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gd-lead-in ol { counter-reset: lead; list-style: none; padding: 0; margin: .5rem 0 0; columns: 2; column-gap: 1.5rem; }
.gd-lead-in li { counter-increment: lead; break-inside: avoid; padding: .2rem 0; font-size: .9rem; }
.gd-lead-in li::before { content: counter(lead, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; color: var(--red); margin-right: .45rem; font-size: .8rem; }
.gd-lead-in a { color: var(--ink); }
.gd-lead-in a:hover { color: var(--teal); }
@media (max-width: 991.98px) {
  .gd-lead { grid-template-columns: 1fr; }
  .gd-lead-media { min-height: 280px; }
}
@media (max-width: 575.98px) {
  .gd-lead-media { min-height: 220px; }
  .gd-lead-body { padding: 1.5rem 1.25rem; }
  .gd-lead-in ol { columns: 1; }
  .gd-vs { width: 52px; height: 52px; font-size: 1.2rem; }
}

/* topic tiles */
.gd-topic-tile { display: flex; flex-direction: column; height: 100%; background: var(--main); border: 1px solid var(--line); border-top: var(--gd-rule); border-radius: 0 0 var(--radius) var(--radius); padding: 1.4rem 1.4rem 1.2rem; color: var(--ink); transition: all .35s var(--ease); }
.gd-topic-tile:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow-lg); border-top-color: var(--red); }
.gd-topic-top { display: flex; justify-content: space-between; align-items: center; }
.gd-topic-num { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.gd-topic-top .bi { font-size: 1.6rem; color: var(--teal); }
.gd-topic-tile h3 { font-size: 1.45rem; font-weight: 800; margin: 1rem 0 .3rem; }
.gd-topic-tile p { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.gd-topic-tile ul { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.gd-topic-tile li { padding: .35rem 0; border-top: 1px dashed var(--line); }
.gd-topic-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }

/* latest list */
.gd-sticky-head { position: sticky; top: 110px; }
@media (max-width: 991.98px) { .gd-sticky-head { position: static; } }
.gd-latest { list-style: none; padding: 0; margin: 0; border-top: var(--gd-rule); }
.gd-latest-item { display: grid; grid-template-columns: 2.4rem 128px minmax(0, 1fr) 1.4rem; gap: 1.1rem; align-items: start; padding: 1.3rem 0; border-bottom: var(--gd-hair); color: var(--ink); }
.gd-latest-item:hover { color: var(--ink); }
.gd-latest-num { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--red-dark); line-height: 1.2; }
.gd-latest-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); }
.gd-latest-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gd-latest-item:hover .gd-latest-thumb img { transform: scale(1.07); }
.gd-latest-text h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; margin: .25rem 0 .35rem; transition: color .2s; }
.gd-latest-item:hover h3 { color: var(--teal); }
.gd-latest-text p { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.gd-latest-go { color: var(--muted); transition: transform .3s var(--ease), color .3s; margin-top: .3rem; }
.gd-latest-item:hover .gd-latest-go { color: var(--red); transform: translate(3px, -3px); }
@media (max-width: 575.98px) {
  .gd-latest-item { grid-template-columns: 1.8rem minmax(0, 1fr); gap: .5rem .8rem; }
  .gd-latest-thumb, .gd-latest-go { display: none; }
  .gd-latest-num { font-size: 1.15rem; }
  .gd-latest-text p { display: none; }
  .gd-latest-text h3 { font-size: 1.08rem; }
}

/* tools band */
.gd-tools-band p { color: rgba(255, 255, 255, .72); }
.gd-tools-band .eyebrow { color: #7fd1d1; }
.gd-tool { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--main); border: 1px solid var(--line); color: var(--ink); transition: all .3s var(--ease); height: 100%; }
.gd-tool:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.gd-tool strong { display: block; font-family: var(--font-head); font-size: 1.02rem; line-height: 1.25; }
.gd-tool small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: .15rem; }
.gd-tool > .bi { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.gd-tool:hover > .bi { color: var(--red); transform: translate(3px, -3px); }
.gd-tool-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--teal-soft); color: var(--teal); }
.gd-tool-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; padding: 1.4rem 1.3rem; }
.gd-tool-dark:hover { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }
.gd-tool-dark small { color: rgba(255, 255, 255, .7); }
.gd-tool-dark > .bi { color: rgba(255, 255, 255, .6); }
.gd-tool-dark .gd-tool-icon { background: var(--red); color: #fff; }

/* glossary */
.gd-term { height: 100%; border-top: 2px solid var(--ink); padding-top: .9rem; }
.gd-term dt { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.gd-term dt::after { content: " n."; font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: .85rem; color: var(--muted); }
.gd-term dd { margin: .35rem 0 0; color: var(--text); font-size: .92rem; }
.gd-term-more { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }

/* newsletter + expert */
.gd-news-card, .gd-expert-card { position: relative; height: 100%; border-radius: var(--radius-lg); padding: 2.2rem 2rem; overflow: hidden; }
.gd-news-card { background: var(--main); border: 1px solid var(--line); }
.gd-news-icon { position: absolute; right: -10px; bottom: -28px; font-size: 9rem; color: var(--teal-soft); pointer-events: none; }
.gd-news-card > :not(.gd-news-icon) { position: relative; }
.gd-news-card h2, .gd-expert-card h2 { font-size: 1.6rem; font-weight: 800; margin: .6rem 0 .6rem; }
.gd-news-card p { color: var(--muted); max-width: 460px; }
.gd-news-card .newsletter { background: var(--bg); }
.gd-expert-card { background: var(--teal); color: rgba(255, 255, 255, .88); }
.gd-expert-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .08); }
.gd-expert-card > * { position: relative; z-index: 1; }
.gd-expert-card h2 { color: #fff; }
.gd-expert-card .eyebrow { color: #fff; }
.gd-expert-card .gd-mail { color: #fff; }
.gd-expert-card .gd-mail:hover { color: #fff; text-decoration: underline; }
@media (max-width: 575.98px) { .gd-news-card, .gd-expert-card { padding: 1.6rem 1.3rem; } }

/* ================================================================ TOPIC HUB */
.gd-topic-hero { background: var(--bg); padding: 36px 0 0; border-bottom: var(--gd-hair); position: relative; overflow: hidden; }
.gd-topic-hero .rz-breadcrumb { margin-bottom: 1.6rem; }
.gd-topic-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: .7rem 0 1rem; }
.gd-topic-hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 700px; }
.gd-topic-badge { margin-left: auto; width: 230px; height: 230px; border-radius: 50%; border: 2px solid var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--main); box-shadow: 12px 12px 0 var(--red-soft); }
.gd-topic-badge .bi { font-size: 2rem; color: var(--teal); }
.gd-topic-badge-num { font-family: var(--font-head); font-weight: 800; font-size: 4.2rem; line-height: 1; color: var(--ink); }
.gd-topic-badge span:last-child { font-size: .8rem; color: var(--muted); max-width: 140px; }
.gd-tabs { display: flex; gap: .3rem; margin-top: 2.2rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gd-tabs::-webkit-scrollbar { display: none; }
.gd-tab { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .75rem 1.1rem; font-family: var(--font-head); font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: rgba(255, 255, 254, .55); }
.gd-tab:hover { color: var(--ink); background: var(--main); }
.gd-tab.active { background: var(--main); color: var(--ink); border-color: var(--line); box-shadow: inset 0 3px 0 var(--red); }
.gd-list-head { border-bottom: var(--gd-rule); padding-bottom: .6rem; margin-bottom: .5rem; }
.gd-list-label { font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); }
.gd-topic-list { list-style: none; margin: 0; padding: 0; }
.gd-topic-article { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 2rem; padding: 2rem 0; border-bottom: var(--gd-hair); color: var(--ink); align-items: start; }
.gd-topic-article:hover { color: var(--ink); }
.gd-ta-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.gd-ta-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gd-topic-article:hover .gd-ta-media img { transform: scale(1.05); }
.gd-ta-num { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; padding: .35rem .8rem; border-top-right-radius: 12px; }
.gd-ta-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.15; margin: 0 0 .6rem; transition: color .2s; }
.gd-topic-article:hover h2 { color: var(--teal); }
.gd-ta-body p { color: var(--muted); margin-bottom: .9rem; max-width: 640px; }
.gd-mini-toc { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.gd-mini-toc li { font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; background: var(--main); border: 1px solid var(--line); color: var(--text); }
@media (max-width: 767.98px) {
  .gd-topic-article { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
  .gd-topic-hero { padding-top: 28px; }
}
.gd-rail-item { display: flex; align-items: center; gap: .8rem; padding: .7rem; border-radius: 12px; color: var(--ink); background: var(--main); border: 1px solid var(--line); transition: all .3s var(--ease); height: 100%; }
.gd-rail-item:hover { color: var(--ink); border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.gd-rail-thumb { width: 64px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: var(--bg); }
.gd-rail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gd-rail-item strong { display: block; font-family: var(--font-head); font-size: .98rem; line-height: 1.2; }
.gd-rail-item small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.gd-rail-item > .bi { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease); }
.gd-rail-item:hover > .bi { transform: translateX(3px); color: var(--red); }
.gd-cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 2rem 2.2rem; background: var(--main); box-shadow: 10px 10px 0 var(--teal-soft); }
.gd-cta-strip h2 { font-size: 1.7rem; font-weight: 800; margin: 0 0 .3rem; }
.gd-cta-strip p { margin: 0; color: var(--muted); max-width: 560px; }
.gd-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
@media (max-width: 575.98px) { .gd-cta-strip { padding: 1.5rem 1.25rem; box-shadow: 6px 6px 0 var(--teal-soft); } }
.gd-other-topic { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-top: var(--gd-rule); background: var(--main); color: var(--ink); border-radius: 0 0 12px 12px; transition: all .3s var(--ease); height: 100%; }
.gd-other-topic:hover { color: var(--ink); box-shadow: var(--shadow); border-top-color: var(--red); }
.gd-other-topic .gd-topic-num { font-size: 2rem; }
.gd-other-topic strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.gd-other-topic small { color: var(--muted); }
.gd-other-topic > .bi { margin-left: auto; }

/* ================================================================ ARTICLE */
.gd-wide { max-width: 1320px; }
.gd-art-head { background: var(--main); border-bottom: var(--gd-hair); padding: 32px 0 44px; }
.gd-art-head .rz-breadcrumb { margin-bottom: 1.6rem; }
.gd-art-head-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.gd-topic-kicker { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); border-bottom: 2px solid var(--red); padding-bottom: .2rem; }
.gd-topic-kicker:hover { color: var(--ink); }
.gd-art-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; margin: 1.1rem 0 1rem; }
.gd-dek { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin-bottom: 1.4rem; max-width: 680px; }
.gd-art-meta { border-top: var(--gd-hair); padding-top: .9rem; font-size: .84rem; }
.gd-byline { font-weight: 600; color: var(--ink); }
.gd-art-cover { margin: 0; position: relative; }
.gd-art-cover img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 14px 14px 0 var(--teal-soft); }
.gd-art-cover figcaption { font-size: .72rem; color: var(--muted); margin-top: .9rem; text-align: right; }
@media (max-width: 991.98px) {
  .gd-art-head-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .gd-art-cover img { aspect-ratio: 16 / 9; box-shadow: 8px 8px 0 var(--teal-soft); }
}
@media (max-width: 575.98px) {
  .gd-art-head { padding: 24px 0 32px; }
  .gd-dek { font-size: 1.05rem; }
}

/* three-column layout: TOC · body · rail */
.gd-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 3rem; padding: 3rem 0 4rem; align-items: start; }
.gd-main { min-width: 0; max-width: 720px; }
.gd-toc-col { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }

/* TOC (<details>: open sidebar on desktop, collapsible box on smaller screens) */
.gd-toc summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: default; }
.gd-toc summary::-webkit-details-marker { display: none; }
.gd-toc summary .toc-title { margin: 0; }
.gd-toc summary .bi, .gd-toc-current { display: none; }
.gd-toc .gd-toc-list { margin-top: .7rem; }
.gd-toc ol ol { border-left: 0; margin: 0 0 .2rem; }
.gd-toc ol ol a { padding-left: 1.6rem; font-size: .84rem; }
.gd-toc a { transition: color .2s, border-color .2s, background .2s; }
.gd-toc a.active { color: var(--ink); font-weight: 600; border-left-color: var(--red); background: linear-gradient(90deg, var(--red-soft), transparent); }
.gd-toc-top { margin-top: 1rem; background: none; border: 0; padding: 0; font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.gd-toc-top:hover { color: var(--teal); }

/* right rail */
.gd-rail { display: flex; flex-direction: column; gap: 1.25rem; align-self: stretch; }
.gd-rail-card { background: var(--main); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.gd-rail-card .gd-rail-item { border: 0; padding: .55rem .35rem; height: auto; }
.gd-rail-card .gd-rail-item + .gd-rail-item { border-top: 1px solid var(--line); border-radius: 0; }
.gd-rail-card .gd-rail-item:hover { box-shadow: none; transform: none; background: var(--bg); }
.gd-rail-card .gd-tool { border: 0; padding: .55rem .35rem; height: auto; }
.gd-rail-card .gd-tool + .gd-tool { border-top: 1px solid var(--line); border-radius: 0; }
.gd-rail-card .gd-tool:hover { box-shadow: none; transform: none; background: var(--bg); }
.gd-rail-card .gd-tool-icon { width: 40px; height: 40px; font-size: 1.1rem; }
.gd-rail-title { font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); }
.gd-rail-note { font-size: .72rem; color: var(--muted); margin: .6rem 0 0; }
.gd-rail-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.25rem; }
.gd-ad-slot { border: 2px dashed #cfc6bb; border-radius: var(--radius); padding: 1.4rem 1.2rem; text-align: center; background: repeating-linear-gradient(-45deg, rgba(35, 35, 35, .025) 0 10px, transparent 10px 20px); }
.gd-ad-label { display: block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.gd-ad-slot > .bi { font-size: 1.8rem; color: var(--red); }
.gd-ad-slot p { font-size: .86rem; color: var(--muted); margin: .5rem 0 .7rem; }

@media (max-width: 1199.98px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.75rem; max-width: 760px; margin: 0 auto; }
  .gd-main { max-width: none; }
  .gd-toc-col { position: sticky; top: 64px; z-index: 20; max-height: none; overflow: visible; }
  .gd-toc { background: var(--main); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
  .gd-toc summary { cursor: pointer; padding: .8rem 1rem; }
  .gd-toc summary .bi { display: inline-block; margin-left: auto; transition: transform .25s var(--ease); color: var(--muted); }
  .gd-toc[open] summary .bi { transform: rotate(180deg); }
  .gd-toc-current { display: block; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .86rem; font-weight: 600; color: var(--ink); }
  .gd-toc[open] .gd-toc-current { visibility: hidden; }
  .gd-toc .gd-toc-list { margin: 0 1rem; max-height: 60vh; overflow-y: auto; }
  .gd-toc-top { margin: .7rem 1rem .9rem; }
  .gd-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .gd-rail-sticky { position: static; }
}
@media (max-width: 767.98px) {
  .gd-toc-col { top: 58px; }
  .gd-rail { grid-template-columns: 1fr; }
}

/* article body */
.gd-disclaimer { display: flex; gap: .55rem; align-items: flex-start; font-size: .84rem; color: var(--muted); background: var(--main); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; padding: .7rem .9rem; margin-bottom: 2rem; }
.gd-disclaimer .bi { color: var(--teal); margin-top: .1rem; }
.gd-prose { font-size: 1.06rem; }
.gd-prose > h2 { padding-top: 1.4rem; border-top: 1px solid var(--line); margin-top: 2.6rem; }
.gd-prose h2, .gd-prose h3 { scroll-margin-top: 110px; }
@media (max-width: 1199.98px) { .gd-prose h2, .gd-prose h3 { scroll-margin-top: 150px; } }
/* CMS pages: the kernel puts <span class="toc-anchor"> before every body <h2> */
.gd-prose > .gd-takeaways + h2, .gd-prose > .gd-takeaways + .toc-anchor + h2 { border-top: 0; padding-top: 0; }
.gd-prose > .gd-takeaways + h2 + p::first-letter, .gd-prose > .gd-takeaways + .toc-anchor + h2 + p::first-letter { float: left; font-family: var(--font-head); font-weight: 800; font-size: 4.1em; line-height: .82; margin: .06em .1em 0 0; color: var(--red); }
.gd-prose .rz-table-wrap { margin: 1.4rem 0 1.6rem; }
.gd-prose .rz-table { font-size: .9rem; line-height: 1.5; }
.gd-prose .rz-table thead th { white-space: normal; }
.gd-prose .notice { margin: 1.4rem 0; font-size: .95rem; line-height: 1.6; }
.gd-prose .notice ul { padding-left: 1.1rem; }
.gd-prose ol, .gd-prose ul { padding-left: 1.3rem; }
.gd-prose li { margin-bottom: .35rem; }
.gd-prose .check-list { padding-left: 0; }
.gd-takeaways { background: var(--main); border: 1px solid var(--line); border-top: var(--gd-rule); border-radius: 0 0 var(--radius) var(--radius); padding: 1.3rem 1.5rem .6rem; margin-bottom: 2rem; }
.gd-prose .gd-takeaways-title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-dark); margin: 0 0 .7rem; padding: 0; border: 0; }
.gd-takeaways ul { list-style: none; padding: 0; counter-reset: tk; }
.gd-takeaways li { counter-increment: tk; position: relative; padding-left: 2.2rem; margin-bottom: .75rem; font-size: .98rem; line-height: 1.6; }
.gd-takeaways li::before { content: counter(tk); position: absolute; left: 0; top: .1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.gd-figure { margin: 2rem 0; }
.gd-figure .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.gd-formula { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; background: var(--ink); color: rgba(255, 255, 255, .7); border-radius: 12px; padding: 1rem 1.2rem; }
.gd-formula span { color: #fff; background: rgba(255, 255, 255, .1); border-radius: 8px; padding: .15rem .6rem; }
.gd-formula span:first-child { background: var(--red); }
.gd-pill { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .12rem .6rem; white-space: nowrap; }
.gd-pill.di { background: var(--red-soft); color: var(--red-dark); }
.gd-pill.pb { background: var(--teal-soft); color: var(--teal); }
.gd-pill.alt { background: #fff3cd; color: #7a5d0e; white-space: normal; }
.gd-damage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 1.4rem 0; }
.gd-damage { background: var(--main); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.gd-damage .bi { font-size: 1.3rem; color: var(--red); }
.gd-damage h4 { font-size: 1.02rem; margin: .4rem 0 .3rem; }
.gd-damage p { font-size: .85rem; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 767.98px) { .gd-damage-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 419.98px) { .gd-damage-grid { grid-template-columns: 1fr; } }
.gd-steps { list-style: none; counter-reset: st; padding: 0 !important; }
.gd-steps li { counter-increment: st; position: relative; padding: 0 0 1rem 3rem; margin: 0; }
.gd-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-family: var(--font-head); font-weight: 800; display: flex; align-items: center; justify-content: center; background: var(--main); }
.gd-steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.1rem; bottom: .1rem; width: 2px; background: var(--line); }
.gd-faq { margin-top: 1rem; }
.gd-sources { font-size: .88rem; line-height: 1.55; padding-left: 1.4rem; }
.gd-sources li { margin-bottom: .5rem; }
.gd-sources a { word-break: break-word; }
.gd-src-pub { font-weight: 600; color: var(--ink); }
.gd-src-pub::after { content: " —"; font-weight: 400; color: var(--muted); }
.gd-review-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }
.gd-review-note .bi { color: var(--teal); margin-top: .15rem; }

/* printable checklist (rack-inspection-checklist) */
.gd-printbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1.2rem; }
.gd-checklist { background: var(--main); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 0 0 1.5rem; font-size: .9rem; line-height: 1.45; }
.gd-cl-head { border-bottom: 2px solid var(--ink); padding-bottom: .9rem; margin-bottom: 1rem; }
.gd-cl-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.gd-cl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; margin: .8rem 0; font-size: .84rem; }
.gd-cl-fields span, .gd-cl-sign span { display: flex; align-items: flex-end; gap: .4rem; white-space: nowrap; }
.gd-cl-fields i, .gd-cl-sign i { flex: 1; border-bottom: 1px solid #9a9a9a; min-width: 40px; height: 1.1em; }
.gd-cl-key { font-size: .8rem; color: var(--muted); margin: 0; }
.gd-checklist .gd-cl-group { break-inside: avoid; page-break-inside: avoid; margin-bottom: .9rem; }
.gd-prose .gd-checklist h3 { font-size: .95rem; letter-spacing: .02em; margin: 0 0 .35rem; padding: .3rem .5rem; background: var(--bg); border-left: 3px solid var(--teal); }
.gd-checklist ul { list-style: none; padding: 0; margin: 0; }
.gd-checklist li { position: relative; padding: .28rem 0 .28rem 1.9rem; margin: 0; border-bottom: 1px dotted var(--line); }
.gd-checklist li::before { content: ""; position: absolute; left: .2rem; top: .42rem; width: 1rem; height: 1rem; border: 1.5px solid var(--ink); border-radius: 3px; background: #fff; }
.gd-cl-foot { border-top: 2px solid var(--ink); padding-top: .8rem; margin-top: .4rem; }
.gd-cl-notes { min-height: 4.6rem; font-size: .84rem; font-weight: 600; background: repeating-linear-gradient(transparent 0 1.45rem, #cfcfcf 1.45rem calc(1.45rem + 1px)); }
.gd-cl-sign { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; margin: .8rem 0 .6rem; font-size: .84rem; }
.gd-cl-foot p { font-size: .72rem; color: var(--muted); margin: 0; }
@media (min-width: 768px) { .gd-cl-groups { columns: 2; column-gap: 1.6rem; } }
@media (max-width: 575.98px) {
  .gd-checklist { padding: 1rem; }
  .gd-cl-fields, .gd-cl-sign { grid-template-columns: 1fr; }
}

/* end-of-article CTA */
.gd-cta-sec { background: var(--bg); }
.gd-plan { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--main); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.gd-plan-side { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 2.6rem 2.4rem; position: relative; overflow: hidden; }
.gd-plan-side::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 93, 72, .5), transparent 70%); }
.gd-plan-side > * { position: relative; z-index: 1; }
.gd-plan-side .eyebrow { color: #7fd1d1; }
.gd-plan-side h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.1; margin: .7rem 0 1rem; }
.gd-plan-side .check-list { margin-top: 1.4rem; }
.gd-plan-side .check-list li::before { color: var(--red); }
.gd-plan-form { padding: 2.2rem 2.2rem 2rem; }
@media (max-width: 991.98px) { .gd-plan { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .gd-plan-side, .gd-plan-form { padding: 1.8rem 1.3rem; } }

/* related guide cards */
.gd-card { display: flex; flex-direction: column; height: 100%; color: var(--ink); background: var(--main); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .35s var(--ease); }
.gd-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.gd-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.gd-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gd-card:hover .gd-card-media img { transform: scale(1.06); }
.gd-card-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1; }
.gd-card-body h3 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 .3rem; transition: color .2s; }
.gd-card:hover h3 { color: var(--teal); }
.gd-card .gd-meta { margin-top: auto; }

/* ================================================================ PRINT */
@media print {
  @page { margin: 14mm 12mm; }
  html, body { background: #fff !important; }
  body { padding: 0 !important; font-size: 10.5pt; color: #000; }
  .topbar, .site-header, .site-footer, .mobile-cta, .to-top, .scroll-progress, .rz-breadcrumb,
  .gd-toc-col, .gd-rail, .gd-cta-sec, .gd-related, .gd-noprint, .gd-art-cover, .gd-figure, .gd-faq .acc-btn::after { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .gd-art-head { padding: 0 0 8pt; border: 0; }
  .gd-art-head-grid { display: block; }
  .gd-art-head h1 { font-size: 22pt; margin: 4pt 0 6pt; }
  .gd-dek { font-size: 11pt; }
  .container, .gd-wide { max-width: none !important; padding: 0 !important; }
  .gd-layout { display: block; padding: 0; max-width: none; }
  .gd-main { max-width: none; }
  .gd-prose { font-size: 10.5pt; line-height: 1.5; }
  .gd-prose a { color: #000; text-decoration: none; }
  .gd-prose > h2 { break-after: avoid; page-break-after: avoid; margin-top: 14pt; padding-top: 8pt; }
  .rz-table-wrap { overflow: visible; border-color: #999; }
  .rz-table thead th { background: #eee !important; color: #000 !important; }
  .collapse { display: block !important; height: auto !important; }
  .gd-checklist { border: 1.5pt solid #000; border-radius: 0; padding: 10pt 12pt; font-size: 9.5pt; }
  .gd-prose > h2#checklist { break-before: page; page-break-before: always; border-top: 0; margin-top: 0; padding-top: 0; }
  .gd-checklist .gd-cl-groups { columns: 2; }
  .gd-checklist li::before { border-color: #000; }
  .gd-prose .gd-checklist h3 { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .gd-cl-notes { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* "Print / Save as PDF" button → only the checklist */
  html.gd-print-checklist .gd-art-head, html.gd-print-checklist .gd-disclaimer,
  html.gd-print-checklist .gd-prose > :not(.gd-checklist) { display: none !important; }
  html.gd-print-checklist .gd-checklist { margin: 0; }
}
