.publisher-guide {
    --guide-accent: #70e3ac;
    --guide-text: #e9f2ed;
    --guide-muted: #adc0b7;
    --guide-line: #33473e;
    --bs-code-color: #9de8bd;
    color: var(--guide-text);
    position: relative;
    width: min(75rem, calc(100% - 2rem));
    margin-block: clamp(1rem, 4vw, 3rem);
    min-width: 0;
}
.publisher-guide a:not(.btn) { color: var(--guide-accent); }
.publisher-guide :is(a, summary):focus-visible { outline: 2px solid var(--guide-accent); outline-offset: 4px; }
.guide-hero {
    border: 1px solid var(--guide-line);
    border-radius: 1.5rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    background: radial-gradient(ellipse at 85% 10%, #244538, transparent 62%), #121e19;
    box-shadow: 0 22px 64px #0004;
}
.guide-topbar, .guide-actions, .guide-footer { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.guide-topbar, .guide-footer { justify-content: space-between; }
.guide-topbar form { max-width: 100%; }
.guide-brand { color: var(--guide-text) !important; font-weight: 700; text-decoration: none; }
.guide-brand i, .guide-brand span { color: var(--guide-accent); }
.guide-brand span { margin-inline-start: .4rem; font-size: .8rem; }
.guide-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.5rem); align-items: end; padding-block-start: clamp(2rem, 5vw, 4.5rem); }
.guide-kicker { display: inline-block; color: var(--guide-accent); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.guide-hero h1 { margin: .5rem 0 1rem; max-width: 21ch; font-size: clamp(2.3rem, 5.3vw, 4.8rem); font-weight: 700; line-height: 1.03; letter-spacing: -.045em; overflow-wrap: anywhere; }
.guide-hero-copy p { color: var(--guide-muted); max-width: 49ch; line-height: 1.65; margin-block-end: 1.4rem; }
.guide-actions .btn-outline-light { padding: .65rem 1rem; font-size: .875rem; }
.guide-map { display: grid; gap: .3rem; padding: .75rem; border-radius: 1rem; border: 1px solid var(--guide-line); background: #0d1713a6; }
.guide-map a { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .6rem .65rem; border-radius: .6rem; color: var(--guide-text) !important; text-decoration: none; font-weight: 600; font-size: .88rem; }
.guide-map a:hover { background: #263f32; }
.guide-map span, .guide-step { display: inline-grid; place-items: center; min-width: 2rem; min-height: 2rem; border-radius: .55rem; color: var(--guide-accent); background: #213e2e; font: 700 .8rem/1 monospace; flex: 0 0 auto; }
.guide-content { display: grid; gap: 1rem; margin-block: 1.5rem; }
.guide-section { min-width: 0; scroll-margin-block-start: 1rem; border: 1px solid var(--guide-line); border-radius: 1.1rem; padding: clamp(1rem, 3vw, 2.25rem); background: #17231e; line-height: 1.65; }
.guide-section > h2 { display: flex; align-items: center; gap: .65rem; color: var(--guide-text); font-weight: 700; margin-block-end: 1rem; }
.guide-section p { color: var(--guide-muted); }
.guide-section .alert-warning { color: #ffe2a8; background: #392e18; border-color: #66532e; }
.guide-section pre.bg-dark, .guide-section details pre { background: #0c1612 !important; border: 1px solid var(--guide-line); }
.guide-section pre { padding: .85rem; border-radius: .65rem; overflow: auto; }
.guide-section code:not(pre code) { overflow-wrap: anywhere; unicode-bidi: isolate; }
.guide-section details { margin-block: .85rem; padding: .75rem 1rem; border: 1px solid var(--guide-line) !important; border-radius: .65rem; background: #131e19; }
.guide-section summary { color: var(--guide-accent); font-weight: 650; cursor: pointer; }
.guide-section details > div[lang] { max-height: 32rem; max-height: min(32rem, 65vh); overflow: auto; }
.guide-workflow { padding-inline-start: 1.65rem; }
.guide-workflow li { padding: .85rem; margin-block-end: .55rem; border-radius: .7rem; background: #101b16; }
.guide-workflow li::marker { color: var(--guide-accent); font-weight: 700; }
.guide-footer { padding: .5rem; font-size: .85rem; color: var(--guide-muted); }
@media (max-width: 48rem) {
    .guide-hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 30rem) {
    .publisher-guide { width: calc(100% - 1rem); }
    .guide-actions .btn { width: 100%; }
    .guide-section details { padding-inline: .65rem; }
}
