/* Guide shell. Shared brand decisions stay in ../booker-system.css. */
html { scroll-behavior: smooth; }
body { min-width: 320px; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 3px; }
code { overflow-wrap: anywhere; }
h3 { letter-spacing: -.025em; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 12px 20px; background: var(--booker-plum); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.system-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px clamp(24px,6vw,84px); background: var(--admin-surface-warm); border-bottom: 1px solid var(--admin-line); font-size: 11px; }
.system-bar a { text-decoration: none; }
.system-name { font-weight: 800; letter-spacing: -.015em; }
.gallery-header { border-bottom: 1px solid var(--admin-line); }
.gallery-header h1 { max-width: 760px; margin: 0; font-weight: 800; }
.gallery-header > a { flex-shrink: 0; }
.gallery-header img { width: 150px; }
.gallery-header p { font-size: 15px; line-height: 1.5; }
.gallery-layout { grid-template-columns: 244px minmax(0,1fr); }
.gallery-nav { top: 0; max-height: 100dvh; overflow-y: auto; padding: 30px 20px; }
.gallery-nav nav { display: grid; width: auto; gap: 7px; padding: 0; border: 0; }
.gallery-nav nav > a, .gallery-nav summary { padding: 11px 12px; border-radius: 8px; font-size: 12px; font-weight: 750; cursor: pointer; }
.gallery-nav summary { color: var(--admin-ink-muted); }
.gallery-nav details[open] > summary { color: var(--admin-ink); }
.gallery-nav summary:hover { background: var(--admin-surface); }
.nav-children { display: grid; gap: 2px; margin: 5px 0 13px 12px; border-left: 1px solid var(--admin-line); padding-left: 9px; }
.gallery-nav .nav-children a { font-weight: 550; }
.gallery-nav a[aria-current="page"] { background: var(--booker-plum); color: var(--booker-cream); }
.nav-foot { margin: 28px 12px 0; padding-top: 18px; border-top: 1px solid var(--admin-line); font-size: 10px; color: var(--admin-ink-muted); }
.gallery-main { padding-top: 32px; }
.topic-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 11px; }
.topic-heading > span { color: var(--admin-ink-muted); }
.topic-heading > span::after { content: '/'; margin-left: 8px; color: var(--admin-line-strong); }
.topic-heading > strong { font-weight: 700; }
.gallery-section { padding-top: 8px; }
.gallery-section > h2 { font-size: clamp(24px,2.5vw,32px); line-height: 1.15; margin-bottom: 10px; }
.gallery-section > p { line-height: 1.65; }
.gallery-section .field { max-width: none; }
.gallery-section > figure { margin-top: 24px; }
.entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.entry-card { display: block; padding: 24px; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-surface-warm); text-decoration: none; transition: border-color 150ms, transform 150ms; }
.entry-card:hover { border-color: var(--booker-plum); transform: translateY(-2px); }
.entry-card > span { color: var(--admin-ink-muted); font-size: 10px; font-weight: 650; }
.entry-card h3 { font-size: 20px; line-height: 1.2; margin: 30px 0 12px; }
.entry-card h3 > span { float: right; color: var(--booker-muted); }
.entry-card p { margin: 0; color: var(--admin-ink-muted); font-size: 12px; line-height: 1.65; }
.identity-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 30px; padding: 30px; border: 1px solid var(--admin-line); border-radius: 14px; background: var(--admin-surface-warm); }
.identity-strip img { width: 150px; }
.identity-strip p, .identity-type span { font-size: 11px; font-weight: 500; color: var(--admin-ink-muted); margin: 14px 0 0; }
.identity-type { font-size: 58px; line-height: 1; font-weight: 800; letter-spacing: -.06em; }
.identity-type span { display: block; letter-spacing: 0; }
.identity-colors { display: flex; }
.identity-colors i { display: block; width: 36px; height: 64px; border: 1px solid rgb(42 35 56 / 10%); }
.identity-colors i:first-child { border-radius: 8px 0 0 8px; }
.identity-colors i:last-child { border-radius: 0 8px 8px 0; }
.note { margin: 20px 0; border-left: 3px solid var(--booker-marigold); padding: 12px 18px; background: var(--admin-surface-warm); font-size: 13px; }
.note p { margin: 7px 0 0; color: var(--admin-ink-muted); }
.guidance { padding: 18px 20px; border: 1px solid var(--admin-line); border-radius: 12px; margin-top: 20px; font-size: 13px; }
.guidance summary { font-weight: 750; cursor: pointer; }
.guidance p, .guidance ul { margin-bottom: 0; line-height: 1.7; }
.panel h3 { font-size: 16px; line-height: 1.25; }
.panel p { font-size: 12px; color: var(--admin-ink-muted); line-height: 1.7; }
.proposal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 24px; background: var(--admin-canvas); border: 1px solid var(--admin-line); border-radius: 14px; }
.paper-mini { position: relative; display: flex; flex-direction: column; aspect-ratio: 8.5 / 11; min-width: 0; padding: 22px 18px; background: white; border: 1px solid var(--admin-line); box-shadow: 0 5px 14px rgb(42 35 56 / 5%); }
.paper-mini img { width: 90px; margin-bottom: 38px; }
.paper-eyebrow { font-size: 7px; font-weight: 750; letter-spacing: .06em; }
.paper-mini h3 { margin: 20px 0 14px; font-size: clamp(14px,1.4vw,21px); line-height: 1.1; }
.paper-mini p { margin: 0 0 12px; color: var(--booker-muted); font-size: 8px; line-height: 1.6; }
.paper-mini h4 { margin: 9px 0; font-size: 9px; }
.paper-mini small { margin-top: auto; padding-top: 20px; font-size: 6px; letter-spacing: .03em; }
.paper-mini small > span { float: right; }
.paper-rule { border-top: 1px solid var(--admin-line); margin: 6px 0 10px; }
.cover-mini { overflow: hidden; background: var(--admin-surface-warm); }
.cover-mini h3 { position: relative; z-index: 1; font-size: clamp(18px,2vw,29px); letter-spacing: -.05em; }
.cover-mini h3 em { color: var(--booker-coral); font-style: normal; }
.mini-price { display: grid; grid-template-columns: 1fr auto; font-size: 7px; margin: 10px 0; }
.mini-price > * { padding: 8px 0; border-bottom: 1px solid var(--admin-line); }
.document-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.caption { color: var(--admin-ink-muted); font-size: 11px; margin-top: 12px; }
.proposal-outline { padding-left: 20px; }
.proposal-outline li { padding: 10px 0; }
.proposal-outline p { margin: 5px 0; color: var(--admin-ink-muted); }
.guide-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 30px 0 0; font-size: 11px; color: var(--admin-ink-muted); }
.gallery-main .palette { grid-template-columns: repeat(3,minmax(0,1fr)); }
.gallery-main .palette-functional { grid-template-columns: repeat(2,minmax(0,1fr)); }
.gallery-main .live-preview iframe { max-width: 100%; }
@media (max-width: 1050px) {
 .entry-grid { grid-template-columns: 1fr; }
 .entry-card h3 { margin-top: 15px; }
 .identity-strip { grid-template-columns: 1fr 1fr; }
 .identity-colors { grid-column: 1 / -1; }
 .proposal-grid { grid-template-columns: 1fr; }
 .paper-mini { width: min(100%,360px); margin-inline: auto; padding: 32px; }
 .paper-mini h3 { font-size: 25px; }
 .paper-mini p { font-size: 11px; }
 .paper-mini h4 { font-size: 12px; }
 .paper-eyebrow, .mini-price { font-size: 10px; }
 .paper-mini small { font-size: 9px; }
}
@media (max-width: 780px) {
 .gallery-layout { grid-template-columns: 1fr; }
 .gallery-header { flex-direction: column-reverse; align-items: flex-start; gap: 25px; }
 .gallery-nav { position: static; max-height: none; padding: 14px 18px; }
 .gallery-nav nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
 .gallery-nav details[open] { grid-column: 1 / -1; }
 .nav-children { grid-template-columns: 1fr 1fr; }
 .gallery-nav a, .gallery-nav summary { min-height: 44px; display: block; }
 .gallery-nav summary { display: list-item; }
 .nav-foot { display: none; }
 .gallery-main { padding: 24px 18px 48px; }
 .gallery-main .palette, .gallery-main .palette-functional { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .type-sample { grid-template-columns: 1fr; gap: 10px; }
 .type-page { font-size: 30px; }
 .identity-strip { padding: 20px; gap: 20px; }
 .identity-strip img { width: 120px; }
 .proposal-grid { padding: 12px; }
 .gallery-main .radio-grid { grid-template-columns: 1fr; }
 .secret-field { flex-wrap: wrap; }
 .gallery-main .palette .swatch-info { padding: 14px; }
 .gallery-main .modal-stage { padding: 12px; }
 .system-bar { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .system-bar, .gallery-header, .gallery-nav, .guide-footer, .skip-link { display: none; } .gallery-layout { display: block; } .gallery-main { border: 0; padding: 0; } .gallery-section { break-inside: auto; } }
.navigation-panel > .navigation-summary { display: none; }
@media (max-width: 780px) {
 .navigation-panel > .navigation-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; min-height: 44px; }
 .navigation-summary::before { content: '+'; font-size: 20px; font-weight: 500; }
 .navigation-panel[open] > .navigation-summary::before { content: '−'; }
 .navigation-summary span { margin-left: auto; font-size: 11px; font-weight: 500; }
 .navigation-panel[open] > .navigation-summary { margin-bottom: 12px; border-bottom: 1px solid var(--admin-line); border-radius: 0; padding-bottom: 18px; }
}
.gallery-main .calendar-popover { max-width: 100%; }
.gallery-main .picker-doc-popover { max-width: 100%; }
@media (max-width: 1100px) { .gallery-main .picker-doc-grid { grid-template-columns: 1fr; } }
/* Identity specimens always render actual vector assets. */
.identity-example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.identity-example { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 14px; }
.identity-stage { min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 32px; }
.identity-stage--logo img { width: 100%; max-width: 300px; height: auto; }
.identity-stage--mark img { width: 76px; height: 76px; }
.identity-example-copy { padding: 20px; }
.identity-example-copy h3 { margin: 0 0 8px; font-size: 16px; }
.identity-example-copy p { margin: 0 0 15px; color: var(--admin-ink-muted); font-size: 12px; line-height: 1.65; }
.identity-example-copy a { font-size: 11px; font-weight: 750; }
.icon-treatment-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.icon-treatment-grid p { margin-top: 20px; font-size: 12px; color: var(--admin-ink-muted); }
.icon-tile { width: 110px; height: 110px; display: grid; place-items: center; border: 1px solid var(--admin-line); border-radius: 24px; }
.icon-tile img { width: 60%; height: 60%; object-fit: contain; }
.cream-tile,.round-tile { background: var(--booker-cream); }
.plum-tile { background: var(--booker-plum); border-color: var(--booker-plum); }
.round-tile { border-radius: 50%; }
.icon-size-row { display: flex; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.icon-size-row > div { display: grid; justify-items: center; gap: 16px; }
.icon-size-row span { font-size: 11px; color: var(--admin-ink-muted); }
@media (max-width: 1000px) { .icon-treatment-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .identity-example-grid { grid-template-columns: 1fr; } }
/* Palette hierarchy: foundations, bright accents, then compact dark companions. */
.gallery-main .palette-foundation { grid-template-columns: repeat(2,minmax(0,1fr)); }
.gallery-main .palette-brights, .gallery-main .palette-secondary { grid-template-columns: repeat(3,minmax(0,1fr)); }
.palette-foundation .swatch-color { height: 110px; }
.palette-brights .swatch-color { height: 144px; }
.palette-secondary-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 24px 0 12px; font-size: 13px; letter-spacing: 0; }
.palette-secondary-heading span { color: var(--admin-ink-muted); font-size: 11px; font-weight: 500; }
.palette-secondary .swatch-color { height: 58px; padding: 12px 16px; font-size: 24px; }
.palette-secondary .swatch-info { padding: 14px 16px; }
.palette-secondary .swatch-info h4 { font-size: 13px; }
.palette-secondary .swatch-info code { font-size: 12px; }
.palette-secondary .swatch-info p { margin-top: 8px; font-size: 11px; }
.palette-secondary .swatch-info small { margin-top: 10px; font-size: 10px; }
@media (max-width: 600px) {
 .gallery-main .palette-brights, .gallery-main .palette-secondary { gap: 8px; }
 .palette-brights .swatch-color { height: 105px; padding: 12px 10px; font-size: 28px; }
 .gallery-main .palette-brights .swatch-info, .gallery-main .palette-secondary .swatch-info { padding: 12px 9px; }
 .palette-brights .swatch-info h4 { font-size: 13px; }
 .palette-brights .swatch-info code, .palette-secondary .swatch-info code { font-size: 10px; }
 .palette-brights .swatch-info p { font-size: 11px; }
 .palette-secondary .swatch-color { height: 48px; padding: 10px; font-size: 20px; }
 .palette-secondary .swatch-info h4 { font-size: 11px; }
 .palette-secondary .swatch-info p { font-size: 10px; }
 .palette-secondary .swatch-info small { font-size: 9px; }
}
/* Supporting neutrals read from darkest to lightest in one row. */
.gallery-main .palette-functional { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width: 600px) {
 .gallery-main .palette-functional { gap: 8px; }
 .palette-functional .swatch-color { height: 105px; padding: 12px 10px; font-size: 28px; }
 .gallery-main .palette-functional .swatch-info { padding: 12px 9px; }
 .palette-functional .swatch-info h4 { font-size: 13px; }
 .palette-functional .swatch-info code { font-size: 10px; }
 .palette-functional .swatch-info p { font-size: 11px; }
 .palette-functional .swatch-info small { font-size: 9px; }
}

.cover-accent { width: 56px; height: 3px; margin: 20px 0 0; background: var(--booker-coral); }
/* Admin sidebar documentation: scoped to avoid changing the guide navigation. */
.sidebar-demo-caption { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; color: var(--admin-ink-muted); font-size: 11px; }
.sidebar-demo { border: 1px solid var(--admin-line); border-radius: 14px; overflow: hidden; background: #f7f3ed; }
.demo-shell-header { display: grid; grid-template-columns: 244px minmax(0,1fr); min-height: 72px; border-bottom: 1px solid #ded7de; background: #fffaf2; }
.demo-shell-brand { padding: 20px 28px; display: flex; align-items: center; border-right: 1px solid #ded7de; }
.demo-shell-brand img { width: 138px; height: auto; }
.demo-shell-company { display: flex; align-items: center; gap: 11px; padding: 12px 24px; }
.demo-company-initial { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--booker-mint); font-weight: 800; }
.demo-shell-company strong { display: block; font-size: 12px; }
.demo-shell-company small { display: block; font-size: 11px; color: var(--booker-muted); }
.demo-shell-body { display: grid; grid-template-columns: 244px minmax(0,1fr); min-height: 660px; }
.demo-sidebar { display: flex; flex-direction: column; padding: 24px 16px 20px; border-right: 1px solid #ded7de; background: #fffaf2; font-size: 14px; line-height: 1.5; }
.demo-sidebar-label { margin: 0 12px 9px; color: var(--booker-muted); font-size: 10px; font-weight: 750; }
.demo-nav-list { display: grid; gap: 3px; }
.demo-sidebar-group { margin-top: 16px; margin-bottom: 3px; padding-left: 12px; }
.demo-nav-item { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--booker-muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.demo-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
a.demo-nav-item:hover, .demo-nav-item.is-hover { background: white; color: var(--booker-plum); }
.demo-nav-item.is-current, a.demo-nav-item.is-current:hover { background: var(--booker-plum); color: var(--booker-cream); box-shadow: 0 8px 20px rgb(42 35 56 / 12%); }
.demo-sidebar-footer { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid #ded7de; color: var(--booker-muted); font-size: 11px; }
.demo-sidebar-footer strong { display: block; margin-bottom: 4px; color: var(--booker-plum); font-size: 12px; }
.demo-shell-content { min-width: 0; padding: 32px; }
.demo-breadcrumb { color: var(--booker-muted); font-size: 11px; }
.demo-shell-content > h3 { font-size: 30px; line-height: 1.1; margin: 20px 0 10px; }
.demo-shell-content > p { color: var(--booker-muted); font-size: 13px; }
.demo-content-panel { margin-top: 28px; padding: 24px; border: 1px solid #ded7de; border-radius: 16px; background: white; }
.demo-content-panel h4 { font-size: 16px; margin: 16px 0 10px; }
.demo-content-panel p { font-size: 12px; color: var(--booker-muted); line-height: 1.7; }
.sidebar-state-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.sidebar-state-grid .specimen { padding: 16px; }
.sidebar-state-grid .demo-nav-item { font-size: 12px; gap: 8px; }
.demo-mobile-strip { width: 100%; overflow-x: auto; padding: 9px 14px; background: #fffaf2; border-bottom: 1px solid #ded7de; }
.demo-mobile-links { display: flex; width: max-content; gap: 3px; }
.demo-mobile-links .demo-nav-item { min-height: 38px; white-space: nowrap; }
.sidebar-specs { margin-top: 18px; }
.sidebar-specs h3 { margin: 0 0 15px; font-size: 16px; }
.sidebar-specs dl { margin: 0; font-size: 12px; }
.sidebar-specs dl > div { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid var(--admin-line); }
.sidebar-specs dt { font-weight: 750; }
.sidebar-specs dd { margin: 0; color: var(--admin-ink-muted); }
@media (max-width: 1050px) { .demo-shell-header, .demo-shell-body { grid-template-columns: 208px minmax(0,1fr); } .demo-shell-content { padding: 24px; } .sidebar-state-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
 .demo-shell-header { display: block; }
 .demo-shell-brand { height: 72px; border-right: 0; padding: 0 18px; }
 .demo-shell-brand img { width: 124px; }
 .demo-shell-company { height: 52px; border-top: 1px solid #ded7de; padding: 0 18px; background: white; }
 .demo-shell-body { display: block; min-height: 0; }
 .demo-sidebar { display: block; padding: 9px 14px; border-right: 0; border-bottom: 1px solid #ded7de; overflow-x: auto; }
 .demo-sidebar-label, .demo-sidebar-footer { display: none; }
 .demo-nav-list { display: flex; width: max-content; }
 .demo-nav-list .demo-nav-item { min-height: 38px; white-space: nowrap; }
 .demo-shell-content { padding: 26px 18px; }
}
