:root {
    --gsbg-action: #c82020;
    --gsbg-action-hover: #a61717;
    --gsbg-ink: #20262f;
    --gsbg-muted: #5b6470;
    --gsbg-border: #dde1e7;
    --gsbg-canvas: #f5f6f8;
    --gsbg-radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--gsbg-canvas); color: var(--gsbg-ink); font: 400 18px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; overflow-wrap: anywhere; }
a { color: var(--gsbg-action-hover); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #145ac4; outline-offset: 4px; }
img, video, iframe, svg { max-width: 100%; }
img, video { height: auto; }
figure { margin-inline: 0; }
button, input, textarea, select { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
button, .wp-block-button__link, .gsbg-action { -webkit-tap-highlight-color: transparent; }

.screen-reader-text, .gsbg-skip-link:not(:focus) { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute !important; white-space: nowrap; }
.gsbg-skip-link:focus { position: fixed; z-index: 99999; inset: 12px auto auto 12px; padding: 10px 18px; background: #fff; color: #111; border-radius: 8px; }
.gsbg-header { background: #fff; border-bottom: 1px solid var(--gsbg-border); }
.gsbg-header__inner { max-width: 920px; min-height: 80px; margin: auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gsbg-brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--gsbg-ink); text-decoration: none; font-size: 19px; font-weight: 800; line-height: 1.35; }
.gsbg-brand__mark { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--gsbg-action); color: white; font-size: 22px; font-weight: 850; }
.gsbg-header__label { flex: 0 0 auto; color: var(--gsbg-muted); font-size: 13px; }
.gsbg-main { max-width: 816px; margin: 40px auto 56px; padding: 0 24px; min-height: 45vh; }
.gsbg-main:focus { outline: none; }
.gsbg-article, .gsbg-directory { padding: clamp(24px, 5vw, 48px); background: #fff; border: 1px solid var(--gsbg-border); border-radius: var(--gsbg-radius); }
.gsbg-article__header { margin-bottom: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--gsbg-border); }
.gsbg-kicker { margin: 0 0 10px; color: var(--gsbg-action-hover); font-size: 13px; font-weight: 750; letter-spacing: .025em; }
.gsbg-article h1, .gsbg-directory h1 { margin: 0; font-size: clamp(26px, 4.5vw, 36px); font-weight: 800; line-height: 1.4; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
.gsbg-updated { margin: 14px 0 0; color: var(--gsbg-muted); font-size: 13px; }
.entry-content { min-width: 0; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { word-break: keep-all; overflow-wrap: anywhere; font-weight: 750; line-height: 1.5; letter-spacing: -.025em; }
.entry-content h2 { margin: 2em 0 .8em; padding-bottom: .45em; border-bottom: 2px solid #edf0f3; font-size: clamp(23px, 3.5vw, 28px); }
.entry-content h3 { margin: 1.7em 0 .6em; font-size: 21px; }
.entry-content h4 { margin: 1.5em 0 .5em; font-size: 19px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em; padding-inline-start: 1.5em; }
.entry-content li { padding-inline-start: .15em; margin: .45em 0; }
.entry-content li::marker { color: var(--gsbg-action-hover); font-weight: 750; }
.entry-content li > ul, .entry-content li > ol { margin-block: .5em; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 1.5em 0; padding: 18px 22px; background: #f7f8fa; border: 0; border-inline-start: 4px solid #9aa5b2; border-radius: 0 10px 10px 0; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { max-width: 100%; overflow: auto; padding: 18px; background: #f4f5f7; border: 1px solid var(--gsbg-border); border-radius: 8px; font-size: 14px; }
.entry-content code { overflow-wrap: anywhere; }
.entry-content figcaption { margin-top: 8px; color: var(--gsbg-muted); font-size: 13px; line-height: 1.6; }
.entry-content .wp-block-image, .entry-content .wp-block-embed { max-width: 100%; }
.entry-content .alignleft, .entry-content .alignright { max-width: 48%; }
.entry-content .alignleft { float: left; margin: 0 20px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 20px; }
.entry-content::after { display: block; clear: both; content: ""; }
.entry-content hr { border: 0; border-top: 1px solid var(--gsbg-border); margin: 2em 0; }

/* WordPress native Button blocks inherit this design without a custom class. */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.entry-content .wp-block-button { max-width: 100%; }
.entry-content .wp-block-button__link,
.gsbg-action {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    min-height: 68px;
    padding: 19px 26px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--gsbg-action);
    color: #fff;
    box-shadow: 0 5px 0 #8e1717, 0 9px 18px rgb(170 25 25 / 12%);
    font-size: clamp(18px, 2.7vw, 21px);
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.entry-content .wp-block-button__link::after,
.gsbg-action::after {
    content: "";
    display: block;
    flex: 0 0 1.55em;
    width: 1.55em;
    height: 1.55em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 16h21M17 6l10 10-10 10' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 16h21M17 6l10 10-10 10' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (hover: hover) {
    .entry-content .wp-block-button__link:hover, .gsbg-action:hover { background: var(--gsbg-action-hover); color: #fff; box-shadow: 0 6px 0 #791111, 0 14px 22px rgb(170 25 25 / 20%); transform: translateY(-2px); }
}
.entry-content .wp-block-button__link:focus-visible, .gsbg-action:focus-visible { outline: 3px solid #145ac4; outline-offset: 5px; }
.entry-content .wp-block-button__link:active, .gsbg-action:active { background: #941414; color: #fff; transform: translateY(3px); box-shadow: 0 2px 0 #791111, 0 3px 8px rgb(170 25 25 / 12%); }
.gsbg-destination { margin-top: 36px; padding: 26px; background: #fff7f6; border: 1px solid #f1d2cf; border-radius: 14px; text-align: center; }
.gsbg-destination__eyebrow { margin: 0 0 16px; font-size: 16px; font-weight: 750; }
.gsbg-destination .gsbg-action { width: 100%; }
.gsbg-destination__host { margin: 20px 0 0; color: #4c515b; font-size: 14px; line-height: 1.6; }
.gsbg-destination__host bdi { font-weight: 700; }
.gsbg-destination__note { margin: 7px 0 0; color: var(--gsbg-muted); font-size: 13px; line-height: 1.6; }
.gsbg-source-link { margin: 28px 0 0; text-align: center; font-size: 15px; }
.gsbg-source-link a { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 8px; }

.entry-content .wp-block-table, .entry-content .gsbg-table-scroll { max-width: 100%; margin: 24px 0; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; border: 1px solid var(--gsbg-border); font-size: 16px; line-height: 1.65; }
.entry-content th, .entry-content td { padding: 13px 15px; border: 1px solid var(--gsbg-border); vertical-align: top; text-align: start; word-break: normal; overflow-wrap: anywhere; }
.entry-content th { background: #edf0f4; font-weight: 750; }
.entry-content .gsbg-table-wide { min-width: 560px; }
.entry-content .gsbg-table-compact { table-layout: fixed; }
.entry-content table caption { padding: 8px 0; color: var(--gsbg-muted); text-align: start; font-size: 14px; }
.gsbg-table-hint { margin: -15px 0 24px !important; color: var(--gsbg-muted); font-size: 13px; }
.gsbg-table-hint[hidden] { display: none; }

.gsbg-directory__header { margin-bottom: 28px; }
.gsbg-directory__header > p:last-child { margin-bottom: 0; color: var(--gsbg-muted); }
.gsbg-post-list { border-top: 1px solid var(--gsbg-border); }
.gsbg-post-item { padding: 24px 0; border-bottom: 1px solid var(--gsbg-border); }
.gsbg-post-item h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.5; }
.gsbg-post-item h2 a { display: block; min-height: 44px; color: var(--gsbg-ink); text-decoration: none; }
.gsbg-post-item h2 a:hover { color: var(--gsbg-action-hover); text-decoration: underline; }
.gsbg-post-item h2 a span { color: var(--gsbg-action); white-space: nowrap; }
.gsbg-post-item > p { margin: 0; color: var(--gsbg-muted); font-size: 16px; }
.gsbg-empty { padding-block: 32px; }
.gsbg-empty h2 { margin: 0 0 10px; font-size: 22px; }
.gsbg-empty > p:last-child { margin-bottom: 0; }
.gsbg-empty p { color: var(--gsbg-muted); }
.gsbg-text-link { display: inline-block; min-height: 44px; padding-block: 8px; }
.navigation.pagination { margin-top: 28px; }
.nav-links, .gsbg-page-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav-links .page-numbers, .gsbg-page-links > span, .gsbg-page-links a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gsbg-border); border-radius: 8px; padding: 6px 12px; text-decoration: none; }
.nav-links .current { color: #fff; background: var(--gsbg-action); border-color: var(--gsbg-action); }
.gsbg-footer { border-top: 1px solid var(--gsbg-border); }
.gsbg-footer__inner { max-width: 816px; margin: auto; padding: 28px 24px 36px; color: var(--gsbg-muted); font-size: 13px; line-height: 1.8; }
.gsbg-footer__brand { color: var(--gsbg-ink); font-size: 15px; font-weight: 750; }
.gsbg-footer p { margin: 0 0 9px; }
.gsbg-footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding-block: 7px; }

/* The front page is a single introduction; individual guides keep their article design. */
body.home { background: #fff; }
body.home .gsbg-main { margin-block: 0; min-height: 0; }
body.home .gsbg-home { padding: clamp(56px, 9vw, 112px) clamp(8px, 3vw, 24px); }
body.home .gsbg-home h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); font-weight: 800; line-height: 1.4; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
body.home .gsbg-home__intro { max-width: 34em; margin: 22px 0 0; color: var(--gsbg-muted); font-size: clamp(17px, 2.5vw, 19px); line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
body.home .gsbg-home__help { margin: 28px 0 0; color: var(--gsbg-muted); font-size: 15px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }

@media (max-width: 600px) {
    body { font-size: 17px; }
    .gsbg-header__inner { min-height: 70px; padding: 14px 18px; }
    .gsbg-brand { font-size: 17px; }
    .gsbg-header__label { font-size: 12px; }
    .gsbg-main { margin-block: 20px 32px; padding-inline: 12px; }
    .gsbg-article, .gsbg-directory { padding: 24px 20px; border-radius: 12px; }
    .gsbg-article__header { margin-bottom: 26px; padding-bottom: 20px; }
    .entry-content .wp-block-buttons { gap: 16px; }
    .entry-content .wp-block-buttons > .wp-block-button { flex-basis: 100%; width: 100%; }
    .entry-content .wp-block-button__link { width: 100%; min-height: 68px; padding: 17px 16px; gap: 10px; }
    .entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin-inline: 0; }
    .entry-content th, .entry-content td { padding: 11px 10px; }
    .gsbg-destination { margin-top: 30px; padding: 21px 15px; }
    .gsbg-destination .gsbg-action { padding-inline: 14px; gap: 10px; }
    .gsbg-footer__inner { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .entry-content .wp-block-button__link:hover, .entry-content .wp-block-button__link:active, .gsbg-action:hover, .gsbg-action:active { transform: none; }
}
