/* Shared layout families. All page-specific content stays outside this file. */
.gbg-site .site-header .nav:has(>.gbg-home-brand){padding-block:16px;row-gap:14px}
.gbg-site .brand.gbg-home-brand{flex:0 0 auto;width:min(100%,clamp(420px,36vw,520px));max-width:100%;min-height:44px;gap:0}
.gbg-site .brand.gbg-home-brand::before{content:none}
.gbg-brand-logo{display:block;width:100%;height:auto}
.gbg-site .site-footer .gbg-brand-logo{width:230px;max-width:100%;margin-bottom:8px}
@media(max-width:1240px){.gbg-site .site-header .nav:has(>.gbg-home-brand)>nav{flex-basis:100%}}
/* Direct heading links need the same sticky-contents clearance as section links. */
@media screen{.gbg-content :is(.gbg-topic-section,.gbg-editorial) :is(h2,h3,h4)[id]{scroll-margin-top:125px}.gbg-content :is(.gbg-topic-section,.gbg-editorial) :is(h2,h3,h4)[id][tabindex="-1"]:focus{outline:none}}
@media screen and (max-width:800px){.gbg-content :is(.gbg-topic-section,.gbg-editorial) :is(h2,h3,h4)[id]{scroll-margin-top:85px}}
.gbg-topic-section>:is(.gbg-grid-two,.gbg-grid-three,.gbg-hub-grid,.gbg-panel,.gbg-workflow-actions,.gbg-journey)+*{margin-top:28px}
.gbg-site .site-header a:focus-visible{outline:3px solid var(--gbg-focus);outline-offset:4px}
@media print{.gbg-topic-section .og-table-wrap{overflow:visible}.gbg-topic-section .og-table-wrap::before,.gbg-measurement .gbg-diagram-link{display:none}.gbg-topic-section .og-table-wrap table{width:100%;min-width:0;table-layout:fixed;font-size:9pt}.gbg-topic-section .og-table-wrap th,.gbg-topic-section .og-table-wrap td{min-width:0;padding:6pt;overflow-wrap:anywhere}.gbg-topic-section .og-table-wrap tr{break-inside:avoid}.gbg-topic-section .og-table-wrap thead{display:table-header-group}}
[data-print]{display:none}.gbg-js [data-print]{display:inline-flex}
.gbg-site main.gbg-content.gbg-legacy{max-width:980px;padding:48px 0 72px}.gbg-measurement figcaption a,.gbg-measurement>.gbg-diagram-link{display:block;width:fit-content;margin-top:10px;font-weight:700;min-height:36px}.gbg-site .skip-link:focus,.gbg-site .skip:focus{outline:3px solid var(--gbg-focus);outline-offset:3px}
.gbg-masthead .og-breadcrumb{flex-wrap:wrap;align-items:baseline;gap:4px 10px}.gbg-masthead .og-breadcrumb>span:last-child{min-width:0;overflow-wrap:anywhere}
.gbg-site{font-size:16px}.gbg-site .nav nav{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px}.gbg-site .nav nav a{font-size:var(--gbg-label-size);min-height:40px;display:inline-flex;align-items:center}.gbg-site .nav nav a:last-child{padding:8px 16px}.gbg-site .nav{flex-wrap:wrap}.gbg-site .brand{margin-right:auto}
.gbg-content.gbg-legacy{max-width:980px;padding:48px 0 72px}.gbg-content.gbg-legacy>h1{font-size:clamp(2.5rem,5vw,4rem);line-height:1.08;max-width:22ch}.gbg-content.gbg-legacy>h2{font-size:clamp(1.9rem,3vw,2.7rem);margin-top:45px}.gbg-content.gbg-legacy p,.gbg-content.gbg-legacy li{max-width:var(--gbg-reading-max)}.gbg-content.gbg-legacy fieldset{border-radius:8px;background:var(--gbg-mint)}.gbg-content.gbg-legacy input,.gbg-content.gbg-legacy textarea,.gbg-content.gbg-legacy select{font-size:1rem}.gbg-content.gbg-legacy .hero{max-width:none}.gbg-content.gbg-legacy .hero h1{font-size:clamp(2.5rem,5vw,4rem)}
.gbg-masthead{padding:48px 4% 44px;margin-top:24px;background:var(--gbg-mint);border-radius:3px 3px 55px 3px}.gbg-masthead .og-breadcrumb{color:var(--gbg-muted);margin-bottom:25px}.gbg-masthead .og-breadcrumb a{color:var(--gbg-ink)}.gbg-masthead h1{font-size:clamp(2.5rem,4.8vw,4.4rem);line-height:1.05;max-width:24ch;margin:0 0 24px}.gbg-lead{font-size:1.125rem;max-width:72ch!important;line-height:1.7}.gbg-review-meta{font-size:var(--gbg-meta-size);color:var(--gbg-muted);max-width:85ch!important;margin-top:24px}.gbg-masthead-tool{background:var(--gbg-deep);color:var(--gbg-inverse)}.gbg-masthead-tool h1,.gbg-masthead-tool .og-kicker,.gbg-masthead-tool .og-breadcrumb,.gbg-masthead-tool .og-breadcrumb a,.gbg-masthead-tool .gbg-review-meta{color:var(--gbg-inverse)}
.gbg-topic-section{padding-block:64px}.gbg-topic-section>.og-section-heading{max-width:900px}.gbg-topic-section h2{font-size:clamp(2rem,3.2vw,3rem)}.gbg-topic-section h3{font-size:clamp(1.5rem,2.2vw,1.9rem)}.gbg-topic-section p,.gbg-topic-section li{font-size:var(--gbg-body-size)}.gbg-topic-section>p,.gbg-topic-section>ul,.gbg-topic-section>ol{max-width:var(--gbg-reading-max)}.gbg-topic-section+ .gbg-topic-section{border-top:1px solid var(--gbg-line)}.gbg-topic-section table{font-size:1rem;line-height:1.65}.gbg-topic-section .og-table-wrap caption{font-size:var(--gbg-label-size)}.gbg-topic-section figure img{max-width:100%;height:auto}.gbg-topic-section summary{font-size:1rem;font-weight:750;cursor:pointer;padding:14px 0;min-height:44px}.gbg-topic-section details{border-block:1px solid var(--gbg-line);margin:24px 0;padding:8px 0}
.gbg-quick-answers{padding-block:45px}.gbg-quick-answers h2{font-size:clamp(1.8rem,3vw,2.6rem);max-width:none}.gbg-quick-answers .og-answer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.gbg-quick-answers .og-answer-grid h3{font-size:1.4rem}.gbg-next-step{background:var(--gbg-pink);border-radius:3px 42px 3px 3px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:35px;padding:40px 4%}.gbg-next-step h2{font-size:clamp(1.8rem,3vw,2.6rem);max-width:30ch}.gbg-next-step p{max-width:70ch}.gbg-next-step .button{white-space:normal}.gbg-editorial{padding-block:44px;border-top:1px solid var(--gbg-line)}.gbg-editorial h2{font-size:1.6rem}.gbg-editorial p,.gbg-source-list{font-size:var(--gbg-label-size);max-width:100ch}.gbg-source-list li{margin:12px 0;overflow-wrap:anywhere}.gbg-source-date{color:var(--gbg-muted)}
.gbg-grid-two,.gbg-grid-three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.gbg-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.gbg-panel{background:var(--gbg-mint);padding:26px;border:1px solid var(--gbg-line);border-radius:3px 3px 25px 3px;min-width:0}.gbg-panel h3{margin-top:0}.gbg-checklist{padding-left:23px}.gbg-checklist li{padding:6px 0}.gbg-worked-example{background:#f3f7f1;padding:30px;border-left:4px solid #7d9d83;margin:28px 0}.gbg-worked-example strong{color:var(--gbg-ink)}.gbg-measurement{margin:0 0 1em;padding:22px;background:var(--gbg-surface);border:1px solid var(--gbg-line)}.gbg-measurement figcaption{font-size:var(--gbg-label-size);padding-top:12px}.gbg-workflow-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}.gbg-content .gbg-save-button{margin:0 10px 10px 0}
.gbg-content .gbg-masthead-tool .button{background:var(--gbg-inverse);color:var(--gbg-ink)!important;border-color:var(--gbg-inverse)}
.gbg-content .gbg-masthead-tool .button.secondary{background:transparent;color:var(--gbg-inverse)!important}
.gbg-content .gbg-masthead-tool .button:hover{background:var(--gbg-mint);color:var(--gbg-ink)!important;border-color:var(--gbg-mint)}
.gbg-template-tool :is(input,select,textarea){scroll-margin-top:8rem}
.gbg-template-tool .planner-result{scroll-margin-top:6rem}
.gbg-template-tool .planner-result[tabindex="-1"]:focus{outline:none}
.gbg-template-tool button:disabled,.gbg-template-tool button:disabled:hover{opacity:.55;cursor:not-allowed;transform:none}
.gbg-js-only{display:none}.gbg-js .gbg-js-only{display:inline-flex}.gbg-contents .gbg-contents-toggle{display:none}.gbg-contents-links{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 20px}.gbg-contents-links a{font-size:var(--gbg-label-size);display:flex;align-items:center;min-height:36px;white-space:normal;border-bottom:2px solid transparent}.gbg-contents-links a[aria-current]{border-color:var(--gbg-plum);color:var(--gbg-plum)}.gbg-topic-section[tabindex="-1"]:focus{outline:none}.og-fit :where(a,button,input,select,summary,textarea):focus-visible,.gbg-masthead-tool :where(a,button):focus-visible{box-shadow:0 0 0 2px var(--gbg-inverse);outline:3px solid var(--gbg-focus);outline-offset:3px}
.gbg-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.gbg-hub-grid article{border:1px solid var(--gbg-line);border-top:4px solid #90ad97;padding:26px;border-radius:3px 3px 25px 3px;background:var(--gbg-surface)}.gbg-hub-grid h3{font-size:1.5rem}.gbg-hub-grid a{font-weight:750}.gbg-content .guide-index-entry{padding:26px 0;border-top:1px solid var(--gbg-line)}.gbg-content .guide-index-entry h2{font-size:1.7rem;margin:0 0 12px}.gbg-content .guide-index-entry p{font-size:1rem;max-width:75ch}
@media(max-width:900px){.gbg-site .nav nav{width:100%;gap:4px 22px}.gbg-quick-answers .og-answer-grid,.gbg-grid-three,.gbg-hub-grid{grid-template-columns:1fr 1fr}.gbg-next-step{grid-template-columns:1fr}.gbg-next-step .button{justify-self:start}}
@media(max-width:800px){.gbg-js .gbg-contents .gbg-contents-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;background:transparent!important;color:var(--gbg-ink)!important;padding:6px 0;min-height:44px}.gbg-current-section{margin-left:auto!important;font-size:var(--gbg-label-size);font-weight:500!important}.gbg-js .gbg-contents-links{display:none;max-height:55vh;overflow:auto;padding:12px 0 8px}.gbg-js .gbg-contents-open .gbg-contents-links{display:grid;grid-template-columns:1fr 1fr;gap:5px 14px}.gbg-contents-links a{min-height:44px}}
@media(max-width:600px){.gbg-site .nav nav{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}.gbg-masthead{padding:28px 6%;margin-top:15px;border-bottom-right-radius:35px}.gbg-masthead h1{font-size:clamp(2.2rem,9vw,3rem);max-width:none}.gbg-lead{font-size:1rem}.gbg-masthead .og-breadcrumb{font-size:.75rem}.gbg-topic-section{padding-block:44px}.gbg-topic-section h2{font-size:2rem}.gbg-quick-answers .og-answer-grid,.gbg-grid-two,.gbg-grid-three,.gbg-hub-grid{grid-template-columns:1fr}.gbg-quick-answers{padding-block:38px}.gbg-worked-example{padding:22px 18px}.gbg-panel{padding:22px}.gbg-next-step{padding:30px 6%}.gbg-editorial{padding-block:35px}.gbg-contents-toggle .gbg-current-section{max-width:60%;text-align:right}.gbg-content.gbg-legacy{padding-top:30px}.gbg-content.gbg-legacy>h1{font-size:2.5rem}}
@media print{.gbg-contents,.gbg-workflow-actions,.gbg-next-step,.gbg-review-meta{display:none!important}.gbg-masthead{background:#fff;color:#000;margin:0;padding:0}.gbg-masthead h1{font-size:28pt}.gbg-topic-section{padding-block:18px}.gbg-grid-two,.gbg-grid-three,.gbg-quick-answers .og-answer-grid{display:block}.gbg-panel,.gbg-worked-example{break-inside:avoid}.gbg-editorial{font-size:10pt}.gbg-content.gbg-legacy{padding:0}.gbg-source-list a{overflow-wrap:anywhere}}
/* Curated destination groups use the available width and align their next actions. */
.gbg-hub-grid .gbg-destination-card,.gbg-action-card{display:flex;flex-direction:column}
.gbg-destination-card>a:last-child,.gbg-action-card>a:last-child{margin-top:auto}
.gbg-hub-grid:has(>.gbg-destination-card:only-child){grid-template-columns:1fr}
@media(min-width:901px){.gbg-hub-grid:has(>article:nth-child(2):last-child),.gbg-hub-grid:has(>article:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:901px){.gbg-hub-grid>.gbg-destination-card:nth-child(3n+1):nth-child(n+7):last-child{grid-column:1/-1}}
@media(min-width:601px) and (max-width:900px){.gbg-hub-grid>.gbg-destination-card:nth-child(2n+1):not(:only-child):last-child,.gbg-grid-three>:is(.gbg-action-card,.gbg-panel):nth-child(2n+1):not(:only-child):last-child,.gbg-quick-answers>.og-answer-grid>article:nth-child(2n+1):not(:only-child):last-child{grid-column:1/-1}}
@media(min-width:1101px){.og-reading-grid>a:nth-child(4n+1):not(:only-child):last-child{grid-column:1/-1}}
@media(min-width:351px) and (max-width:1100px){.og-reading-grid>a:nth-child(2n+1):not(:only-child):last-child{grid-column:1/-1}}
@media screen and (min-width:351px) and (max-width:1100px){.og-reading-grid>a{overflow-wrap:anywhere}}
@media screen and (min-width:601px){.gbg-grid-two>.gbg-panel:nth-child(2n+1):not(:only-child):last-child{grid-column:1/-1}}
/* Larger tables reveal the same cue at tablet/desktop widths only while overflowing. */
@media screen and (min-width:601px){.gbg-content .og-table-wrap.gbg-table-overflow::before{content:'Scroll across to compare';display:block;position:sticky;left:0;padding:12px 20px;font-size:var(--gbg-label-size);font-weight:700;background:var(--gbg-mint)}}
@media screen and (min-width:601px) and (max-width:800px){.gbg-js .gbg-content .og-table-wrap:not(.gbg-table-overflow)::before{content:none}}
/* Two-column blank records keep the question readable before horizontal scrolling. */
.gbg-content .og-table-wrap table.gbg-record-table{table-layout:fixed}
.gbg-content .og-table-wrap .gbg-record-table th:first-child{width:28%;min-width:0}
/* Each blank-record column can be read without panning within its sentences. */
@media screen and (max-width:600px){.gbg-content .og-table-wrap table:is(.gbg-record-table,.gbg-detail-table){min-width:390px}.gbg-content .og-table-wrap table.gbg-detail-table{table-layout:fixed}.gbg-content .og-table-wrap :is(.gbg-record-table,.gbg-detail-table) th:first-child{width:45%;min-width:0}}
/* Linked labels must retain contrast on every dark comparison header. */
.gbg-content .og-table-wrap thead th a,.gbg-content .og-table-wrap thead th a:visited,.gbg-content .og-table-wrap thead th a:hover,.gbg-content .og-table-wrap thead th a:focus{color:var(--gbg-inverse);text-decoration:underline;text-underline-offset:3px}
.gbg-content .og-table-wrap thead th a:focus-visible{box-shadow:0 0 0 2px var(--gbg-deep);outline:3px solid var(--gbg-inverse);outline-offset:3px}
/* Shared home composition; every home-family page uses the same visual contract. */
.gbg-masthead-home:has(.gbg-home-hero-media){display:grid;grid-template-columns:1fr 1fr;column-gap:5%;padding-block:36px}.gbg-masthead-home>.og-breadcrumb{grid-column:1/-1}.gbg-masthead-home>.og-kicker,.gbg-masthead-home>h1,.gbg-masthead-home>.gbg-lead,.gbg-masthead-home>.gbg-workflow-actions,.gbg-masthead-home>.gbg-review-meta{grid-column:1}.gbg-masthead-home>h1{font-size:clamp(2.7rem,4.5vw,4.4rem);max-width:17ch}.gbg-home-hero-media{grid-column:2;grid-row:1/6;display:flex;flex-direction:column;margin:0;gap:12px;min-width:0}.gbg-home-hero-media img{display:block;width:100%;height:100%;max-height:580px;min-height:300px;object-fit:cover;object-position:50% center;border-radius:3px 3px 38px 3px}.gbg-home-hero-media figcaption{font-size:var(--gbg-meta-size);color:var(--gbg-muted);line-height:1.6}.gbg-masthead-home .gbg-workflow-actions{margin-top:0;align-items:center}.gbg-masthead-home .gbg-review-meta{margin-top:22px}
@media(max-width:900px){.gbg-masthead-home:has(.gbg-home-hero-media){grid-template-columns:1fr}.gbg-masthead-home>h1{max-width:24ch}.gbg-home-hero-media{grid-column:1;grid-row:auto;margin-top:24px}.gbg-home-hero-media img{height:280px;min-height:0;max-height:none;object-position:50% 58%}}
@media(max-width:600px){.gbg-masthead-home>h1{font-size:2.5rem}.gbg-home-hero-media img{height:220px}.gbg-masthead-home .gbg-workflow-actions{align-items:flex-start;flex-direction:column}}
@media print{.gbg-masthead-home:has(.gbg-home-hero-media){display:block}.gbg-home-hero-media{display:none}}
@media print{.gbg-content .og-table-wrap thead th,.gbg-content .og-table-wrap thead th a,.gbg-content .og-table-wrap thead th a:visited{background:var(--gbg-surface);color:#000!important}}

/* Structured editorial media. Legacy heroes and measured figures have their own layouts. */
.gbg-masthead.gbg-masthead-media {
    padding: 0;
    background: var(--gbg-deep);
    color: var(--gbg-inverse);
    border-radius: 3px 3px clamp(35px, 6vw, 82px) 3px;
}
.gbg-media-hero {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    align-items: stretch;
}
.gbg-media-hero-copy {
    align-self: center;
    min-width: 0;
    padding: clamp(22px, 3.35vw, 46px);
    overflow-wrap: anywhere;
}
.gbg-content .gbg-media-hero-copy :is(h1, .og-breadcrumb, .og-breadcrumb a, .gbg-review-meta) {
    color: var(--gbg-inverse);
}
.gbg-content .gbg-media-hero-copy .og-kicker { color: var(--gbg-mint); margin-bottom: 12px; }
.gbg-content .gbg-media-hero-copy h1 {
    font-size: clamp(2.55rem, 4.1vw, 4.1rem);
    max-width: 18ch;
    margin: 0 0 16px;
}
.gbg-media-hero-copy .og-breadcrumb { margin-bottom: 14px; }
.gbg-media-hero-copy .gbg-lead { line-height: 1.6; margin: 0; }
.gbg-media-hero-copy .gbg-workflow-actions {
    align-items: center;
    gap: 6px 15px;
    margin-top: 16px;
}
.gbg-media-hero-copy .gbg-review-meta { margin: 14px 0 0; line-height: 1.55; }
.gbg-content .gbg-media-hero-copy a { color: var(--gbg-inverse); }
.gbg-content .gbg-masthead-media .gbg-media-hero-copy .button {
    color: var(--gbg-ink) !important;
    background: var(--gbg-action-soft);
    border-color: var(--gbg-action-soft);
    max-width: 100%;
    white-space: normal;
}
.gbg-content .gbg-masthead-media .gbg-media-hero-copy .button:hover {
    background: var(--gbg-inverse);
    border-color: var(--gbg-inverse);
}
.gbg-content .gbg-masthead-media .gbg-media-hero-copy .button.secondary {
    color: var(--gbg-inverse) !important;
    background: transparent;
    border-color: var(--gbg-line);
}
.gbg-content .gbg-masthead-media .gbg-media-hero-copy .button.secondary:hover {
    color: var(--gbg-ink) !important;
    background: var(--gbg-mint);
}
.gbg-content .gbg-masthead-media .gbg-media-hero-copy a.button.secondary {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: var(--gbg-label-size);
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: .2em;
}
.gbg-content .gbg-masthead-media .gbg-media-hero-copy a.button.secondary:hover {
    color: var(--gbg-inverse) !important;
    background: transparent;
    text-decoration-thickness: 2px;
    transform: none;
}
.gbg-media-hero-copy :is(a, button):focus-visible {
    box-shadow: 0 0 0 2px var(--gbg-deep);
    outline: 3px solid var(--gbg-inverse);
    outline-offset: 3px;
}
.gbg-editorial-media {
    margin: 0;
    min-width: 0;
}
.gbg-editorial-media img {
    display: block;
    width: 100%;
    height: auto;
}
.gbg-editorial-media figcaption {
    padding-top: 10px;
    font-size: var(--gbg-label-size);
    line-height: 1.5;
    color: var(--gbg-muted);
    overflow-wrap: anywhere;
}
.gbg-editorial-media :is(.gbg-media-frame, img) { border-radius: 3px 3px 28px 3px; }
.gbg-media-hero > .gbg-editorial-media {
    display: flex;
    flex-direction: column;
    border-radius: inherit;
}
.gbg-media-hero > .gbg-editorial-media .gbg-media-frame {
    position: relative;
    flex: 1 0 auto;
    min-height: clamp(320px, 34vw, 475px);
    border-radius: 0 3px 0 0;
    overflow: hidden;
    background: var(--gbg-ink);
}
.gbg-media-hero > .gbg-editorial-media-hero {
    align-self: start;
}
.gbg-media-hero > .gbg-editorial-media-hero .gbg-media-frame {
    flex: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
}

.gbg-media-hero > .gbg-editorial-media img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.gbg-media-hero .gbg-media-focus-left img { object-position: left center; }
.gbg-media-hero .gbg-media-focus-right img { object-position: right center; }
.gbg-media-hero .gbg-media-focus-top img { object-position: center top; }
.gbg-media-hero .gbg-media-focus-bottom img { object-position: center bottom; }
.gbg-media-hero > .gbg-editorial-media figcaption {
    color: var(--gbg-inverse);
    padding: 10px clamp(18px, 3vw, 42px) 15px 16px;
    font-size: var(--gbg-meta-size);
}
.gbg-masthead-media-compact .gbg-media-hero {
    grid-template-columns: minmax(0, 66fr) minmax(0, 34fr);
    border-radius: inherit;
}
.gbg-masthead-media-compact .gbg-media-hero-copy { padding: clamp(22px, 3vw, 40px); }
.gbg-masthead-media-compact .gbg-media-hero-copy h1 {
    font-size: clamp(2.15rem, 3.5vw, 3.35rem);
    max-width: 22ch;
}
.gbg-media-hero > .gbg-editorial-media-compact .gbg-media-frame {
    min-height: clamp(165px, 19vw, 242px);
}
.gbg-topic-section > .gbg-editorial-media-wide { margin-bottom: clamp(24px, 4vw, 46px); }
.gbg-section-media-pair {
    display: grid;
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    align-items: center;
    gap: clamp(22px, 4vw, 56px);
    padding-block: clamp(12px, 2vw, 26px);
    margin-bottom: clamp(20px, 4vw, 44px);
    border-bottom: 1px solid var(--gbg-line);
}
.gbg-section-media-pair > .og-section-heading { margin-bottom: 0; min-width: 0; }

@media screen and (min-width: 721px) {
    .gbg-media-hero > .gbg-editorial-media-hero:not(:has(> figcaption)) {
        align-self: center;
    }
    .gbg-media-hero > .gbg-editorial-media-hero:not(:has(> figcaption)) .gbg-media-frame {
        border-radius: 0 3px clamp(24px, 4vw, 56px) 3px;
    }
}

@media screen and (max-width: 720px) {
    .gbg-content .gbg-masthead-media .gbg-media-hero { grid-template-columns: minmax(0, 1fr); }
    .gbg-media-hero-copy, .gbg-masthead-media-compact .gbg-media-hero-copy { padding: 22px clamp(18px, 5vw, 32px) 24px; }
    .gbg-media-hero-copy { padding-block-start: 18px; }
    .gbg-content .gbg-media-hero-copy h1 { font-size: clamp(2.15rem, 8.2vw, 3.35rem); max-width: 20ch; }
    .gbg-content .gbg-masthead-media-compact .gbg-media-hero-copy h1 { font-size: clamp(1.95rem, 7.4vw, 2.7rem); }
    .gbg-media-hero > .gbg-editorial-media .gbg-media-frame {
        min-height: 0;
        border-radius: 0;
    }
    .gbg-media-hero > .gbg-editorial-media-hero {
        order: -1;
        width: min(100%, 467px);
        justify-self: center;
    }
    .gbg-media-hero > .gbg-editorial-media-hero .gbg-media-frame {
        aspect-ratio: 5 / 3;
        border-radius: 3px 3px 0 0;
    }
    .gbg-media-hero > .gbg-editorial-media-hero figcaption {
        padding-inline: clamp(18px, 5vw, 32px);
        padding-bottom: 0;
    }

    .gbg-media-hero > .gbg-editorial-media-compact .gbg-media-frame { aspect-ratio: 5 / 2; }
    .gbg-media-hero > .gbg-editorial-media figcaption { padding-right: 28px; }
    .gbg-section-media-pair { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
}
@media print {
    .gbg-masthead.gbg-masthead-media { background: white; color: black; }
    .gbg-content .gbg-masthead-media .gbg-media-hero-copy :is(h1, .og-kicker, .og-breadcrumb, .og-breadcrumb a) { color: black; }
    .gbg-media-hero, .gbg-section-media-pair { display: block; }
    .gbg-media-hero-copy, .gbg-masthead-media-compact .gbg-media-hero-copy { padding: 0; }
    .gbg-media-hero > .gbg-editorial-media { display: none; }
    .gbg-topic-section .gbg-editorial-media { break-inside: avoid; }
    .gbg-topic-section .gbg-editorial-media img { max-height: 13cm; object-fit: contain; }
}

/* Readable decision summaries complement the detailed sheets and tables. */
.gbg-calculation {
    margin: 24px 0;
    padding: clamp(20px, 3vw, 32px);
    background: var(--gbg-mint);
    border-left: 4px solid var(--gbg-plum);
}
.gbg-calculation-terms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 20px;
}
.gbg-calculation-terms > div { min-width: 0; }
.gbg-calculation-terms dt { font-size: var(--gbg-label-size); line-height: 1.5; }
.gbg-calculation-terms dd {
    margin: 8px 0 0;
    font-family: var(--gbg-serif);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
    color: var(--gbg-plum);
}
.gbg-calculation-limit { border-top: 1px solid var(--gbg-line); padding-top: 16px; margin-bottom: 0; }
.gbg-decision-overview { margin: 32px 0 40px; }
.gbg-option-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}
.gbg-option-list > li { margin: 0; border-top: 1px solid var(--gbg-line); }
.gbg-content .gbg-option-list a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
    color: var(--gbg-ink);
    text-decoration: none;
    line-height: 1.6;
    min-height: 44px;
}
.gbg-option-list a strong { display: block; text-decoration: underline; text-underline-offset: 4px; margin-bottom: 6px; }
.gbg-option-list a > span > span { display: block; }
.gbg-option-number {
    display: grid;
    place-items: center;
    align-self: start;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background: var(--gbg-mint);
    font-weight: 700;
}
.gbg-option-list a:hover strong { color: var(--gbg-plum); text-decoration-thickness: 2px; }
.gbg-route-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.gbg-route-overview > div { padding: 24px; background: var(--gbg-mint); border-top: 3px solid var(--gbg-plum); }
.gbg-route-overview h4 { font-size: 1.15rem; line-height: 1.5; margin: 0 0 16px; }
.gbg-route-overview ol { padding-left: 1.5em; margin: 0; }
.gbg-route-overview li { padding-left: 6px; margin: 0 0 10px; line-height: 1.5; }
.gbg-route-overview li:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
    .gbg-calculation-terms, .gbg-option-list, .gbg-route-overview { grid-template-columns: minmax(0, 1fr); }
    .gbg-calculation-terms { gap: 18px; }
    .gbg-calculation-terms dd { margin-top: 3px; font-size: 2rem; }
    .gbg-route-overview { gap: 16px; }
    .gbg-route-overview > div { padding: 20px; }
}
@media print {
    .gbg-calculation, .gbg-route-overview > div { background: white; break-inside: avoid; }
    .gbg-option-list a { color: black; }
}

/* Changing the current section must not move the document while scrolling. */
@media screen and (max-width: 800px) {
    .gbg-current-section {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Room designer: shared component, central tokens and typography only. */
.gbg-room-designer{--rd-space:var(--gbg-mint);color:var(--gbg-ink);margin:28px 0 0}
.gbg-room-designer [hidden]{display:none!important}
.gbg-room-designer .rd-app{border:1px solid var(--gbg-line);border-radius:4px 4px 32px 4px;background:var(--gbg-surface);overflow:hidden}
.gbg-room-designer :is(h3,h4,p){margin-top:0}
.gbg-room-designer .rd-topbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;padding:22px;background:var(--gbg-mint);border-bottom:1px solid var(--gbg-line)}
.gbg-room-designer .rd-room-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:0}
.gbg-room-designer .rd-room-form>div{width:130px;max-width:100%}
.gbg-room-designer label{display:block;font-size:var(--gbg-label-size);font-weight:700;line-height:1.4;margin-bottom:7px}
.gbg-room-designer label span{font-weight:500}
.gbg-room-designer :is(input:not([type=checkbox]),select){width:100%;max-width:100%;min-width:0;font:inherit;font-size:1rem;line-height:1.4;background:var(--gbg-surface);color:var(--gbg-ink);border:1px solid var(--gbg-muted);border-radius:3px;padding:10px 11px;margin:0;min-height:46px}
.gbg-room-designer input[type=file]{padding:8px;font-size:var(--gbg-label-size)}
.gbg-room-designer input[type=checkbox]{width:20px;height:20px;accent-color:var(--gbg-deep)}
.gbg-room-designer :is(button,input,select,summary):focus-visible{outline:3px solid var(--gbg-focus);outline-offset:3px}
.gbg-room-designer button{font-size:var(--gbg-label-size);min-height:44px;white-space:normal}
.gbg-room-designer .button{padding:10px 16px;border-radius:24px}
.gbg-room-designer .button.secondary{background:var(--gbg-surface);color:var(--gbg-ink)!important;border:1px solid var(--gbg-muted)}
.gbg-room-designer .rd-text-button{border:0;background:transparent;color:var(--gbg-ink);padding:10px 8px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.gbg-room-designer button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.gbg-room-designer .rd-history{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.gbg-room-designer .rd-workspace{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(285px,1fr)}
.gbg-room-designer .rd-plan-panel{min-width:0;padding:26px 22px;border-right:1px solid var(--gbg-line)}
.gbg-room-designer .rd-plan-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}
.gbg-room-designer .rd-plan-heading .og-kicker{font-size:.7rem;letter-spacing:.12em;margin:0 0 8px}
.gbg-room-designer .rd-plan-heading h3{font-size:clamp(1.5rem,2.8vw,2rem);line-height:1.1;margin:0}
.gbg-room-designer .rd-area{background:var(--gbg-pink);border-radius:30px;padding:9px 12px;font-weight:750;white-space:nowrap;font-size:var(--gbg-label-size);margin:0}
.gbg-room-designer .rd-canvas-wrap{margin:22px 0 8px;background:var(--gbg-mint);border:1px solid var(--gbg-line);border-radius:3px;overflow:hidden}
.gbg-room-designer .rd-canvas{display:block;width:100%;height:auto;aspect-ratio:1000/720;user-select:none;touch-action:none}
.gbg-room-designer .rd-canvas [data-rd-object]{cursor:grab;outline:none}
.gbg-room-designer .rd-canvas [data-rd-object]:active{cursor:grabbing}
.gbg-room-designer .rd-canvas [data-rd-object]:focus-visible .rd-object-outline{stroke:var(--gbg-focus);stroke-width:5}
.gbg-room-designer .rd-plan-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.gbg-room-designer .rd-plan-foot p{font-weight:750;font-size:var(--gbg-label-size);margin:0}
.gbg-room-designer .rd-check{display:flex;align-items:center;gap:8px;font-weight:500;margin:0;min-height:44px}
.gbg-room-designer .rd-help{font-size:var(--gbg-label-size);line-height:1.6;color:var(--gbg-muted);margin:10px 0 0}
.gbg-room-designer .rd-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:20px;font-size:.75rem;color:var(--gbg-muted)}
.gbg-room-designer .rd-legend>span{display:inline-flex;align-items:center;gap:7px}
.gbg-room-designer .rd-legend i{width:18px;height:14px;display:block}
.gbg-room-designer .rd-legend-swing{border:1px dashed var(--gbg-ink);border-radius:0 100% 0 0}
.gbg-room-designer .rd-legend-conflict{outline:2px dashed var(--gbg-plum);outline-offset:-2px}
.gbg-room-designer .rd-legend-space{background:var(--gbg-mint);outline:1px dotted var(--gbg-ink)}
.gbg-room-designer .rd-edit-panel{min-width:0;padding:24px;background:var(--gbg-surface)}
.gbg-room-designer .rd-add-form{margin:0 0 24px;padding-bottom:22px;border-bottom:1px solid var(--gbg-line)}
.gbg-room-designer .rd-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.gbg-room-designer .rd-selection-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.gbg-room-designer .rd-selection-heading h3{font-size:1.5rem;margin:0;overflow-wrap:anywhere}
.gbg-room-designer .rd-count{font-size:.75rem;color:var(--gbg-muted)}
.gbg-room-designer .rd-object-form{margin:0}
.gbg-room-designer .rd-object-form>input,.gbg-room-designer .rd-object-form>select{margin-bottom:14px}
.gbg-room-designer .rd-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.gbg-room-designer .rd-object-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.gbg-room-designer .rd-object-details{border-top:1px solid var(--gbg-line);border-bottom:0;margin:24px 0 0;padding:8px 0 0}
.gbg-room-designer .rd-object-details summary{font-size:var(--gbg-label-size);padding:12px 0}
.gbg-room-designer .rd-object-list{display:grid;gap:6px;list-style:none;padding:0;margin:8px 0 0;max-height:250px;overflow:auto}
.gbg-room-designer .rd-object-list li{margin:0}
.gbg-room-designer .rd-object-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;width:100%;border:1px solid var(--gbg-line);background:var(--gbg-surface);color:var(--gbg-ink);padding:10px 12px;border-radius:3px}
.gbg-room-designer .rd-object-list button[aria-pressed=true]{border:2px solid var(--gbg-ink);background:var(--gbg-mint);padding:9px 11px}
.gbg-room-designer .rd-object-list button span:first-child{overflow-wrap:anywhere}
.gbg-room-designer .rd-object-list .rd-object-number{flex:0 0 auto;font-size:.75rem}
.gbg-room-designer .rd-feedback{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px;padding:28px;background:var(--gbg-mint);border-top:1px solid var(--gbg-line)}
.gbg-room-designer .rd-feedback>*{min-width:0}
.gbg-room-designer .rd-feedback .og-kicker{font-size:.7rem;margin-bottom:8px}
.gbg-room-designer .rd-feedback h3{font-size:1.8rem;margin-bottom:12px}
.gbg-room-designer .rd-feedback p,.gbg-room-designer .rd-feedback li{font-size:var(--gbg-label-size);overflow-wrap:anywhere}
.gbg-room-designer .rd-feedback ul{margin:0;padding-left:22px}
.gbg-room-designer .rd-feedback li+li{margin-top:9px}
.gbg-room-designer .rd-feedback[data-has-issues=true]{border-left:4px solid var(--gbg-plum);padding-left:24px}
.gbg-room-designer .rd-limit{font-size:var(--gbg-label-size);color:var(--gbg-muted);padding:20px 28px;margin:0;max-width:none}
.gbg-room-designer .rd-save-panel{border-top:1px solid var(--gbg-line);border-bottom:0;margin:0;padding:8px 28px 20px}
.gbg-room-designer .rd-save-panel>summary{font-size:1rem;padding:14px 0}
.gbg-room-designer .rd-save-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;padding-top:10px}
.gbg-room-designer .rd-save-grid h4{font-family:var(--gbg-sans);font-size:1rem;margin:0 0 10px}
.gbg-room-designer .rd-save-grid p{font-size:var(--gbg-label-size);color:var(--gbg-muted)}
.gbg-room-designer .rd-save-actions{display:flex;flex-wrap:wrap;gap:8px}
.gbg-room-designer .rd-file-label{margin-top:18px}
.gbg-room-designer .rd-status{min-height:1.6em;padding:0 28px 22px;font-size:var(--gbg-label-size);font-weight:700;margin:0;max-width:none}
@media(max-width:1000px){.gbg-room-designer .rd-workspace{grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr)}.gbg-room-designer .rd-plan-panel,.gbg-room-designer .rd-edit-panel{padding:20px}.gbg-room-designer .rd-plan-heading{display:block}.gbg-room-designer .rd-area{display:inline-block;margin-top:12px}.gbg-room-designer .rd-topbar{padding:18px}}
@media(max-width:760px){.gbg-room-designer .rd-workspace,.gbg-room-designer .rd-feedback,.gbg-room-designer .rd-save-grid{grid-template-columns:minmax(0,1fr)}.gbg-room-designer .rd-plan-panel{border-right:0;border-bottom:1px solid var(--gbg-line)}.gbg-room-designer .rd-topbar{gap:14px}.gbg-room-designer .rd-room-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.gbg-room-designer .rd-room-form>div{width:auto}.gbg-room-designer .rd-room-form>.button{grid-column:1/-1;justify-self:start}.gbg-room-designer .rd-plan-panel,.gbg-room-designer .rd-edit-panel{padding:18px}.gbg-room-designer .rd-plan-heading{display:flex}.gbg-room-designer .rd-area{margin:0}.gbg-room-designer .rd-canvas-wrap{margin-top:16px}.gbg-room-designer .rd-feedback{padding:22px 18px;gap:14px}.gbg-room-designer .rd-feedback[data-has-issues=true]{padding-left:14px}.gbg-room-designer .rd-limit{padding:18px}.gbg-room-designer .rd-save-panel{padding:8px 18px 18px}.gbg-room-designer .rd-save-grid{gap:22px}.gbg-room-designer .rd-status{padding:0 18px 18px}.gbg-room-designer .rd-object-list{max-height:230px}}
@media(max-width:360px){.gbg-room-designer .rd-plan-heading{display:block}.gbg-room-designer .rd-area{margin-top:10px}.gbg-room-designer .rd-field-pair{gap:9px}.gbg-room-designer .rd-history{gap:5px}.gbg-room-designer .button{padding:10px 13px}}
@media print{.gbg-room-designer .rd-topbar,.gbg-room-designer .rd-edit-panel,.gbg-room-designer .rd-save-panel,.gbg-room-designer .rd-status,.gbg-room-designer .rd-check{display:none}.gbg-room-designer .rd-workspace{display:block}.gbg-room-designer .rd-plan-panel{border:0}.gbg-room-designer .rd-canvas{max-height:170mm}.gbg-room-designer .rd-feedback{display:block;break-inside:avoid}.gbg-room-designer .rd-app{border-radius:0}}

.gbg-room-designer .rd-zoom-controls{display:flex;align-items:center;justify-content:end;gap:9px;margin:14px 0 0}
.gbg-room-designer .rd-zoom-controls .button{min-width:44px;font-size:1.15rem;padding:6px 13px}
.gbg-room-designer .rd-zoom-controls span{font-size:var(--gbg-label-size);min-width:42px;text-align:center}
.gbg-room-designer .rd-canvas-wrap{aspect-ratio:1000/720;overflow:auto}
.gbg-room-designer .rd-canvas{touch-action:none;max-width:none}
.gbg-room-designer .rd-canvas [data-rd-object]{touch-action:none}
.gbg-room-designer .rd-canvas[data-zoom="1.5"]{width:150%}
.gbg-room-designer .rd-canvas[data-zoom="2"]{width:200%}
.gbg-room-designer .rd-canvas[data-zoom="3"]{width:300%}
.gbg-room-designer .rd-canvas[data-zoom="4"]{width:400%}
.gbg-room-designer .rd-legend i{border:0;outline:0;border-radius:0;background:none}
.gbg-room-designer .rd-legend svg{display:block;width:20px;height:16px}
@media print{.gbg-room-designer .rd-zoom-controls{display:none}.gbg-room-designer .rd-canvas-wrap{overflow:visible;aspect-ratio:auto}.gbg-room-designer .rd-canvas[data-zoom]{width:100%;height:auto}}

/* The base theme marks generic button text important; light designer controls override it explicitly. */
.gbg-room-designer .rd-text-button,.gbg-room-designer .rd-object-list button{color:var(--gbg-ink)!important}
.gbg-room-designer .rd-text-button:hover,.gbg-room-designer .rd-object-list button:hover{background:var(--gbg-mint);border-color:var(--gbg-muted)}

