/* One semantic appearance layer. Artwork, downloads and game drawings keep their colours. */
:root {
  color-scheme: light;
  --ap-canvas:#fff;
  --ap-surface:#f2f4ed;
  --ap-raised:#fff;
  --ap-text:#000;
  --ap-secondary:#303030;
  --ap-placeholder:#3b3b3b;
  --ap-border:#777;
  --ap-line:#d1d1d1;
  --ap-selected:#000;
  --ap-selected-text:#fff;
  --ap-panel:#000;
  --ap-panel-text:#fff;
  --ap-panel-secondary:#ddd;
  --ap-field:#fff;
  --ap-field-text:#000;
  --ap-error:#962b22;
  --ap-accent:#d5ff65;
  --ap-focus:var(--ap-text);
  --ap-focus-gap:var(--ap-canvas);
}
html[data-appearance="night"] {
  color-scheme: dark;
  --ap-canvas:#000;
  --ap-surface:#111;
  --ap-raised:#1b1b1b;
  --ap-text:#efefef;
  --ap-secondary:#bfbfbf;
  --ap-placeholder:#c5c5c5;
  --ap-line:#414141;
  --ap-selected:#efefef;
  --ap-selected-text:#000;
  --ap-panel-text:#efefef;
  --ap-panel-secondary:#bfbfbf;
  --ap-field:#111;
  --ap-field-text:#efefef;
  --ap-error:#ffb4a9;
}
html { background:var(--ap-canvas); }
html body, html[data-appearance] body[data-brand-ui] {
  --bg:var(--ap-canvas);
  --paper:var(--ap-canvas);
  --ink:var(--ap-text);
  --muted:var(--ap-text);
  --line:var(--ap-line);
  --surface:var(--ap-surface);
  --tint:var(--ap-surface);
  --accent:var(--ap-text);
  --acid:var(--ap-accent);
  --brand-ink:var(--ap-text);
  --brand-caption:var(--ap-secondary);
  background:var(--ap-canvas);
  color:var(--ap-text);
}
html body a { color:inherit; }
html body :is(h1,h2,h3,h4,h5,h6,blockquote) { color:inherit; }
html body :is(h1,h2) em { color:inherit; }
html[data-appearance] body[data-brand-ui] :is(.home-deck,.takeaway-deck,.connect-deck,.journal-deck,.section-intro,.scene,.map-end>p,.stories-journal-link>p:not(.eyebrow)) { color:var(--ink); }
html[data-appearance] body[data-brand-ui] :is(.journal-prose,.reading,.pp-prose,.policy-hero,.policy-page main>section) { color:var(--ink); }

/* The new control follows the existing navigation geometry. */
.appearance-control { flex:0 0 auto; min-width:44px; }
.appearance-toggle {
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; min-width:44px; height:44px; padding:0; margin:0;
  border:1px solid var(--ap-border); border-radius:50%;
  background:transparent; color:var(--ap-text); font:inherit; cursor:pointer;
}
.appearance-symbol { display:block; width:22px; height:22px; line-height:0; }
.appearance-symbol svg,.appearance-mobile-symbol svg { display:block; width:100%; height:100%; }
.appearance-home-controls { display:inline-flex; align-items:center; flex:0 0 auto; gap:8px; }
.appearance-mobile-toggle { display:none; }
.site-nav-bar:has(.appearance-control) { column-gap:clamp(10px,1vw,14px); }
@media(max-width:1180px) {
  .site-nav-bar:has(.appearance-control) .site-nav-primary { display:none; }
  .site-nav-bar:has(.appearance-control) .appearance-control { margin-left:auto; }
  .site-nav-bar:has(.appearance-control) .site-language { margin-left:0; }
}
@media(max-width:600px) {
  .site-nav-bar:has(.appearance-control) { padding-inline:16px; column-gap:12px; }
  .site-nav-bar:has(.appearance-control) .site-language { margin-left:auto; }
  .site-nav-bar>.appearance-control { display:none; }
  .appearance-home-controls { gap:6px; }
  .appearance-mobile-toggle {
    position:relative; display:inline-flex; align-items:center; justify-content:center;
    flex:0 0 44px; width:44px; min-width:44px; height:44px;
    padding:0; margin:0; border:0; border-radius:50%;
    background:transparent; color:var(--ap-text); cursor:pointer;
  }
  .appearance-mobile-toggle::before {
    content:''; position:absolute; left:6px; top:6px; width:32px; height:32px;
    box-sizing:border-box; border:1px solid var(--ap-border); border-radius:50%;
    background:var(--ap-canvas);
  }
  .appearance-mobile-symbol { position:relative; display:block; width:19px; height:19px; line-height:0; }
}

/* Navigation and typographic brand marks; the lime point remains the point. */
html body .site-header {
  --nav-bg:var(--ap-canvas); --nav-ink:var(--ap-text); --nav-muted:var(--ap-secondary);
  --nav-line:var(--ap-line); --nav-accent:var(--ap-accent);
  background:var(--ap-canvas); color:var(--ap-text);
}
html body .site-nav-brand-copy, html body .site-footer-v2 .footer-brand { color:var(--ap-text); }
html body :is(.site-menu-panel,.site-to-top) { background:var(--ap-raised); color:var(--ap-text); border-color:var(--ap-border); }
html body :is(.site-language,.site-menu-toggle) { border-color:var(--ap-border); color:var(--ap-text); }
.site-nav-bar > :is(.site-language,.site-menu-toggle) {
  box-sizing:border-box;
  inline-size:94px;
  min-inline-size:94px;
  block-size:50px;
  border-radius:999px;
}
.site-nav-bar > .site-menu-toggle { padding-inline:12px; gap:6px; }
html body .site-menu-toggle { background:transparent; }
html body .site-menu-toggle:is(:hover,[aria-expanded="true"]) { background:var(--ap-surface); color:var(--ap-text); border-color:var(--ap-border); }
html body .site-nav-primary a::after { background:currentColor; }
html body .site-menu-route-dot { background:currentColor; border-color:currentColor; }
html body :is(.site-menu-home>span:last-child,.site-menu-utility strong) { text-decoration-color:currentColor; }
html body .site-menu-home:is(:hover,:focus-visible,:active)>span:last-child { text-decoration-color:var(--ap-accent); }
html[data-appearance] body[data-brand-ui] .site-footer-v2 { background:var(--ap-canvas); color:var(--ap-text); }
html[data-appearance="night"] :is(.site-nav-mark,.home-identity-art) svg path:is([fill="#000000"],[fill="#000"]) { fill:#fff; }
html body :is(.switcher-brand,.brand) { color:var(--ap-text); }
html body .world-switcher>.switcher-brand,html body.stories-page .editorial-brand-copy { color:var(--ap-text); }
html[data-appearance] body[data-brand-ui] :is(.album-heading h1>span,.connect-page h1 em) { color:var(--ap-text); }

/* Explicit dark panels keep a complete inversion instead of swapping ink/paper blindly. */
html[data-appearance] body[data-brand-ui] :is(.home-album,.release-spotlight,.connect-address,.connect-editor) {
  --ink:var(--ap-panel-text); --muted:var(--ap-panel-text);
  --brand-ink:var(--ap-panel-text); --brand-caption:var(--ap-panel-secondary);
  --home-caption-color:var(--ap-panel-secondary);
  --ap-focus:var(--ap-panel-text); --ap-focus-gap:#000;
  background:#000; color:var(--ap-panel-text);
}
html[data-appearance] body[data-brand-ui] .home-layout .home-album { background:#000; }
html[data-appearance] body[data-brand-ui] :is(.connect-address,.connect-editor) :is(h2,h3,h4,label,strong,.connect-primary,.connect-secondary,.connect-text-button,.connect-review-recipient>a) { color:var(--ap-panel-text); }
html[data-appearance] body[data-brand-ui] :is(.connect-address,.connect-editor) :is(p,.connect-hint,.connect-delivery,.data-note,.connect-message-label>span,.connect-review-recipient>span,.connect-field label>span) { color:var(--ap-panel-secondary); }
html body .connect-address>a[data-connect-address] { color:var(--ap-panel-text); }
html body .connect-editor { border-color:var(--ap-border); }
html body .connect-address-actions>a { background:transparent; border:1px solid var(--ap-panel-text); color:var(--ap-panel-text); }
html body .connect-address-actions>button { color:var(--ap-panel-text); }
html[data-appearance] body[data-brand-ui] .connect-address-actions>a:is(:hover,:focus-visible,:active) {
  background:var(--ap-panel-text); color:#000; text-decoration:none;
}
html[data-appearance] body[data-brand-ui] .connect-address-actions>[data-connect-copy-address]:is(:hover,:focus-visible,:active) {
  text-decoration-color:var(--ap-accent);
}
html[data-appearance] body[data-brand-ui] .connect-address-actions>[data-connect-copy-address]:is(:hover,:active):not(:focus-visible) {
  box-shadow:none;
}
html body .connect-editor :is(input,select,textarea,pre) { background:var(--ap-field); color:var(--ap-field-text); border-color:var(--ap-border); }
html body .connect-editor :is(input,textarea)::placeholder { color:var(--ap-placeholder); }
html body .connect-editor .connect-error { color:#ffb4a9; }
html[data-appearance] body[data-brand-ui] .connect-editor .eyebrow { color:var(--ap-panel-secondary); }

/* Quiet surfaces are neutral, while covers, paper illustrations and downloads stay intact. */
html[data-appearance] body[data-brand-ui] :is(.pp-project-visual,.invitation,.policy-status,.kit-usage,.engage-coming-card,.engage-tabs,.takeaway-previews,.takeaway-how,.takeaway-upcoming-card,.takeaway-hero-art,.takeaway-chooser-preview,.tg-gift-panel,.sg-song-return,.sg-reference,.feedback-review-text) {
  background:var(--ap-surface); color:var(--ap-text); border-color:var(--ap-line);
}
html[data-appearance] body[data-brand-ui] .takeaway-chooser { background:var(--ap-raised); color:var(--ap-text); border-color:var(--ap-border); }
html[data-appearance] body[data-brand-ui] :is(.takeaway-chooser-close,.takeaway-style-choice,.takeaway-downloads>a,.connect-topic,.connect-secondary,.feedback-choice,.engage-game-options button,.release-chapter-tab,.release-explorer-arrow) { color:var(--ink); border-color:var(--ap-border); }
html body .takeaway-chooser-preview { border-color:var(--ap-border); }
html body :is(.takeaway-chooser-format,.takeaway-chooser-status) { color:var(--ap-secondary); }
html body .takeaway-phone-clock { color:#000; }
html body .takeaway-hero-copy h1 { font-size:clamp(40px,5vw,68px); line-height:1.15; letter-spacing:-.025em; }
html body .takeaway-hero-copy h1>.takeaway-heading-phrase { display:block; }
html body .takeaway-hero-copy h1>.takeaway-heading-phrase+.takeaway-heading-phrase { margin-top:.2em; }
@media(max-width:480px) {
  html body .takeaway-hero-copy h1 { font-size:34px; }
}
html body :is(.transmission-selection,.transmission-panel-label,.transmission-action-hint,.transmission-mobile-theme,.transmission-choice-mark,.transmission-theme-mark,.transmission-step-title) { color:var(--ap-text); }
html body .pp-project-visual .pp-visual-covers a>span { background:var(--ap-selected); color:var(--ap-selected-text); }
html body .pp-guide-tag::before,html body .guide-source i { background:var(--ap-text); }

/* Editorial reading and secondary information have distinct readable roles. */
html body .project-pages-scope { --pp-ink:var(--ap-text); --pp-muted:var(--ap-text); --pp-line:var(--ap-line); --pp-accent:var(--ap-accent); color:var(--ap-text); background:var(--ap-canvas); }
html body :is(.journal-page,.kit-page,.policy-page,.connect-page) { color:var(--ap-text); }
html body .journal-process-image { color:var(--ap-text); }
html body :is(.journal-process-image span,.journal-process-image i,.journal-process-image figcaption,.journal-topic-section h2,.journal-feature h3,.journal-topics strong,.journal-related strong,.kit-page h1,.kit-page h2,.kit-page h3) { color:var(--ap-text); }
html[data-appearance] body[data-brand-ui] .journal-index .journal-process-image span,
html[data-appearance] body[data-brand-ui] .journal-article-visual .journal-process-image i { color:var(--ap-text); }
html body :is(.journal-toc,.journal-related>a,.kit-pdf-preview) { border-color:var(--ap-border); }
html body .journal-toc a,html body .journal-toc a::before { color:var(--ap-text); }
html body .journal-stories-grid .journal-feature p:not(.eyebrow),html body .journal-feature p:not(.eyebrow) { color:var(--ap-text); }
html[data-appearance] body[data-brand-ui] :is(.journal-feature>div>a,.journal-route-links a,.journal-related>a>span,.transmission-show-idea,.transmission-panel-action,.transmission-panel .transmission-action-hint,.transmission-choice-step>.transmission-step-title) { color:var(--ap-text); }
html body.kit-page .kit-hero h1,html body.connect-page h1 em { color:var(--ap-text); }
html body .journal-prose>ol>li::marker { color:var(--ap-secondary); }
html body :is(.kit-section p,.kit-hero-note,.kit-copy h3,#kit-project .kit-section-body>p:first-child,#kit-debut .kit-section-body>p:first-child) { color:var(--ink); }
html body .kit-pdf-preview { background:var(--ap-surface); }
html[data-appearance] body[data-brand-ui] :is(.eyebrow,.breadcrumbs,.footer-description,.footer-group-title,.footer-bottom p,.site-notices p,.home-cta-caption,.release-art figcaption,.takeaway-number,.takeaway-format-note span,.takeaway-previews figcaption>span,.takeaway-notes,.kit-edition,.kit-file-meta,.kit-note,.kit-hero-art figcaption,.kit-facts dt,.kit-songs span,.journal-byline,.journal-covers figcaption,.journal-pair-image figcaption) { color:var(--ap-secondary); }
html[data-appearance] body[data-brand-ui] :is(.home-album,.release-spotlight) :is(.eyebrow,.home-section-kicker,.home-cta-caption,.release-art figcaption) { color:var(--ap-panel-secondary); }
html[data-appearance] body[data-brand-ui] :is(.site-notices p,.footer-description,.footer-group-title,.footer-bottom p,.release-art figcaption,.takeaway-notes,.kit-file-meta,.kit-note,.kit-hero-art figcaption,.journal-byline,.journal-covers figcaption,.journal-pair-image figcaption) { font-size:14px; line-height:1.6; }

/* Native fields retain a visible boundary in both appearances. */
html[data-appearance] body[data-brand-ui] :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background:var(--ap-field); color:var(--ap-field-text); border-color:var(--ap-border);
}
html[data-appearance] body[data-brand-ui] :is(input,textarea)::placeholder { color:var(--ap-placeholder); opacity:1; }
html[data-appearance] body[data-brand-ui] :is(input[type="checkbox"],input[type="radio"],input[type="range"]) { accent-color:var(--ap-text); }
html body :is(.connect-error,.feedback-error,.guide-error,.ig-error) { color:var(--ap-error); }
html body .connect-editor .connect-error { color:#ffb4a9; }
html body :is(input,select,textarea)[aria-invalid="true"] { border-color:#b64636; }
html[data-appearance] body[data-brand-ui] .connect-editor .connect-field .connect-error { color:#ffb4a9; }

/* Chat uses its own semantic variables, including its existing inverse bubbles. */
html body .guide {
  --guide-ink:var(--ap-text); --guide-muted:var(--ap-text); --guide-line:var(--ap-border);
  --guide-paper:var(--ap-canvas); --guide-tint:var(--ap-surface);
  color:var(--ap-text);
}
html body .guide :is(.guide-message,.guide-message-user,.guide-result) { background:var(--ap-surface); color:var(--ap-text); border-color:var(--ap-border); }
html body .guide :is(.guide-speaker,.guide-source,.guide-result-kind,.guide-note) { color:var(--ap-secondary); }
html body .guide .guide-message-user .guide-speaker { color:var(--ap-secondary); }
html body .guide .guide-submit { background:transparent; color:var(--ap-text)!important; border-color:var(--ap-border); }
html body .imidjeologia-companion {
  --ig-ink:var(--ap-text); --ig-muted:var(--ap-text); --ig-surface:var(--ap-raised);
  --ig-line:var(--ap-border); --ig-lime:var(--ap-accent);
}
html body .imidjeologia-companion :is(.ig-message-user,.ig-source,.ig-entry) { background:var(--ap-surface); color:var(--ap-text); border-color:var(--ap-border); }
html body .imidjeologia-companion :is(.ig-name,.ig-caption,.ig-eyebrow,.ig-context,.ig-hint,.ig-heading>p,.ig-speaker,.ig-message-user .ig-speaker,.ig-source-label,.ig-help-footer,.ig-memory) { color:var(--ap-secondary); }
html body .imidjeologia-companion .ig-entry button { background:transparent; color:var(--ap-text); border:1px solid var(--ap-border); }
html body .imidjeologia-companion .ig-quick>button:first-child { background:transparent; }
html body .imidjeologia-companion .ig-close:hover,html body .imidjeologia-companion .ig-return:hover { background:var(--ap-surface); }

/* Game hosts follow the page; artwork and semantic game colours are not inverted. */
html body .participation-host { --play-bg:var(--ap-surface); --play-ink:var(--ap-text); --play-line:var(--ap-border); }
html body .tg-game { --tg-paper:var(--ap-canvas); --tg-ink:var(--ap-text); --tg-muted:var(--ap-text); --tg-line:var(--ap-border); --tg-tint:var(--ap-surface); }
html body .sg-game { --sg-ink:var(--ap-text); --sg-muted:var(--ap-text); --sg-line:var(--ap-border); }
html body .feedback { --feedback-ink:var(--ap-text); --feedback-muted:var(--ap-text); --feedback-line:var(--ap-border); }
html body :is(.sg-action:first-child,.feedback-primary,.feedback-mail) { background:transparent; color:var(--ap-text); border-color:var(--ap-border); }
html body .feedback-mail[aria-disabled="true"] { background:var(--ap-surface); color:var(--ap-secondary); }
html body :is(.sg-take-choice,.sg-road-tile,.tg-cell,.tg-domino,.tg-progress-panel textarea,.feedback-review-text) { background:var(--ap-surface); color:var(--ap-text); border-color:var(--ap-border); }
html body .sg-wave-canvas { background:#fff; color:#000; }
html body .sg-wave-canvas .sg-wave-key { color:#000; }
html body .sg-road-tile .sg-tile-number { color:var(--ap-text); }
html body .sg-road-tile .sg-tile-badge { background:var(--ap-surface); color:var(--ap-text); }
html body .tg-cell.is-blocked { background:var(--ap-raised); color:var(--ap-secondary); border-color:var(--ap-border); }
html body .tg-cell.is-current { background:var(--tg-lime,#d5ff65); color:#000; border-color:var(--ap-text); }
html body .tg-cell.is-current .tg-player-dot { background:#000; }
html[data-appearance="night"] body :is(.tg-status,.tg-moment-state,.sg-status,.sg-wave-feedback.is-matched) { color:#d5ff65; }
html[data-appearance="night"] body[data-brand-ui] :is(.tg-game[data-phase="success"] .tg-status,.sg-game[data-phase="success"] .sg-status) { color:var(--ap-accent); }
html[data-appearance] body[data-brand-ui] :is(.tg-progress-note,.tg-progress-copy-status) { color:var(--ap-secondary); font-size:14px; line-height:1.6; }
html body .participation h2 span { color:inherit; }
html[data-appearance="night"] body[data-brand-ui] :is(.tg-cell.has-moment,.tg-domino.is-possible,.tg-progress-list .is-complete,.sg-take-choice.is-selected) { background:#14210c; color:#efefef; border-color:#d5ff65; }
html[data-appearance="night"] body[data-brand-ui] .sg-game[data-phase="success"] .sg-take-choice.is-selected { background:#14210c; color:#efefef; border-color:#d5ff65; }
html[data-appearance="night"] body .participation :is(.participation-chip.is-filled,.participation-status) { color:#d5ff65; }

/* This single Music proposal uses the same top-aligned title/copy role as Home. */
html body .music-album .release-update-copy p { color:var(--ap-text); font-size:17px; line-height:1.7; }
html body .music-invitation {
  display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
  gap:24px clamp(32px,5vw,64px); align-items:start;
}
html body .music-invitation>.music-invitation-kicker { grid-column:1/-1; grid-row:1; margin:0; }
html body .music-invitation>.music-invitation-heading { grid-column:1; grid-row:2; margin:0; }
html body .music-invitation>.music-invitation-copy { grid-column:2; grid-row:2; margin:0; padding:0; }
html body .music-invitation .music-invitation-copy>p { margin-top:0; color:var(--ap-text); font-size:17px; line-height:1.75; }
@media(max-width:760px) {
  html body .music-invitation { grid-template-columns:minmax(0,1fr); }
  html body .music-invitation>.music-invitation-kicker,
  html body .music-invitation>.music-invitation-heading,
  html body .music-invitation>.music-invitation-copy { grid-column:1; grid-row:auto; }
}

/* Apply text, surface and border colours together on these controls. */
html[data-appearance] body[data-brand-ui] :is(
  .home-actions .primary-link,
  .home-album .primary-link,
  .kit-hero .primary-link[data-press-default],
  .site-language a,
  .site-menu-toggle,
  .imidjeologia-companion .ig-open,
  .site-search-form :is(input, button),
  .guide :is(.guide-submit, .guide-directions, .guide-reset, .guide-prompts button, .guide-entry input),
  .connect-address-actions > :is(a, button),
  .connect-page .connect-primary,
  .connect-editor :is(input, select, textarea, .site-picker-control),
  .release-explorer :is(.release-chapter-tab, .release-explorer-arrow)
) {
  transition-property: box-shadow, text-decoration-color, opacity;
}

/* Selected navigation and UI states are neutral; lime is transient feedback. */
html[data-appearance] body[data-brand-ui] :is(.site-language a[aria-current],.release-chapter-tab[aria-selected="true"],.engage-tabs a[aria-selected="true"],.engage-game-options button[aria-pressed="true"],.transmission-filter[aria-pressed="true"],.transmission-choice[aria-pressed="true"],.tg-hints-toggle[aria-pressed="true"],.takeaway-style-choice[aria-pressed="true"],.transmission-theme-option[aria-checked="true"]) {
  background:var(--ap-selected); color:var(--ap-selected-text); border-color:var(--ap-selected); box-shadow:none;
}
html[data-appearance] body[data-brand-ui] :is(.site-language a[aria-current],.release-chapter-tab[aria-selected="true"],.engage-game-options button[aria-pressed="true"]) :is(span,strong) { color:inherit; }
html[data-appearance] body[data-brand-ui] .transmission-choice[aria-pressed="true"] .transmission-choice-mark { color:inherit; }
html[data-appearance] body[data-brand-ui] .feedback-choice:has(input:checked) {
  background:var(--ap-surface); color:var(--ap-text); border-color:var(--ap-text);
}
html[data-appearance] body[data-brand-ui] .feedback-choice:has(input:checked) input { accent-color:var(--ap-text); }
html[data-appearance] body[data-brand-ui] .connect-topic {
  background:transparent; text-decoration:none;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
html[data-appearance] body[data-brand-ui] .connect-topic[aria-current="true"] {
  background:var(--ap-surface); border-color:#f2f4ed;
  outline:1px solid #f2f4ed; outline-offset:-2px;
  box-shadow:inset 3px 0 0 var(--ap-border);
}
html[data-appearance] body[data-brand-ui] .connect-topic:not([aria-current="true"]):active {
  border-color:var(--ap-text); box-shadow:inset 0 -2px var(--ap-accent);
}
html body .takeaway-downloads>a[aria-current="true"] { border-color:var(--ap-text); box-shadow:none; }
html[data-appearance] body[data-brand-ui] .site-menu-toggle[aria-expanded="true"] { box-shadow:inset 0 -3px currentColor; }

/* The transmission picker shares the page canvas and uses filled inverse actions. */
.transmission-picker { --transmission-ink:#000; }
html[data-appearance="night"] .transmission-picker { --transmission-ink:#fff; }
html[data-appearance] body[data-brand-ui] .transmission-picker :is(
  .transmission-filter,.transmission-choice,.transmission-theme-trigger,.transmission-theme-option,.transmission-show-idea
) {
  -webkit-appearance:none;
  appearance:none;
  background:var(--ap-canvas);
  color:var(--transmission-ink);
  border-color:var(--ap-border);
  transition-property:box-shadow;
}
html[data-appearance] body[data-brand-ui] .transmission-picker :is(
  .transmission-filter[aria-pressed="true"],.transmission-choice[aria-pressed="true"],.transmission-theme-option[aria-checked="true"]
) {
  background:var(--transmission-ink);
  color:var(--ap-canvas);
  border-color:var(--transmission-ink);
}
.transmission-picker .transmission-theme-trigger::after {
  content:"";
  flex:0 0 auto;
  width:8px;
  height:8px;
  margin-top:-4px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);
}
.transmission-picker .transmission-theme-trigger[aria-expanded="true"]::after {
  margin-top:4px;
  transform:rotate(225deg);
}
html[data-appearance] body[data-brand-ui] .transmission-picker :is(.transmission-choice-mark,.transmission-theme-mark) { color:inherit; }
html[data-appearance] body[data-brand-ui] .transmission-picker :is(.transmission-theme-menu,.transmission-panel) {
  background:var(--ap-canvas);
  color:var(--transmission-ink);
  border-color:var(--ap-line);
}
.transmission-picker .transmission-theme-menu { animation:none; }
.transmission-picker :is(.transmission-theme-step,.transmission-choice-step) { border-color:var(--ap-line); }
.transmission-picker[data-transmission-layout="columns"] .transmission-panel { border-top-width:1px; }
html[data-appearance] body[data-brand-ui] .transmission-picker[data-transmission-layout="inline"] .transmission-options > .transmission-choice {
  border-bottom-color:var(--ap-line);
}
html[data-appearance] body[data-brand-ui] .transmission-picker[data-transmission-layout="inline"] .transmission-options > .transmission-choice[aria-expanded="true"] {
  border-bottom-color:transparent;
  box-shadow:none;
  transition:none;
}
html[data-appearance] body[data-brand-ui] .transmission-picker .transmission-panel-action {
  background:var(--transmission-ink);
  color:var(--ap-canvas);
  border-color:var(--transmission-ink);
  transition:none;
}

html[data-appearance] body[data-brand-ui] .project-pages-scope .pp-text-link { text-decoration:none; background-image:none; }
html[data-appearance] body[data-brand-ui] .project-pages-scope .pp-text-link:is(:hover,:focus-visible,:active) { text-decoration:none; }
html[data-appearance] body[data-brand-ui] .project-pages-scope .pp-link-line { width:0; border-bottom:2px solid var(--ap-accent); transform:translateY(-4px); transition:width .2s ease; }
html[data-appearance] body[data-brand-ui] .project-pages-scope .pp-text-link:is(:hover,:focus-visible,:active) .pp-link-line { width:100%; border-bottom-color:var(--ap-accent); transition:width .2s ease; }

.link-underline-label { min-width:0; }
.kit-toc a > .link-underline-label { color:inherit; font:inherit; }
@media screen and (forced-colors:none) {
  html[data-appearance] body[data-brand-ui] a[data-link-underline="reveal"] {
    text-decoration-line:none!important;
  }
  .link-underline-line {
    background-image:linear-gradient(var(--ap-accent),var(--ap-accent));
    background-repeat:no-repeat;
    background-position:left bottom;
    background-size:0 2px;
    padding-bottom:.08em;
    -webkit-box-decoration-break:clone;
    box-decoration-break:clone;
    transition:background-size .18s ease;
  }
  [data-link-underline="reveal"]:is(:focus-visible,:active) .link-underline-line { background-size:100% 2px; }
  @media (hover:hover) {
    [data-link-underline="reveal"]:hover .link-underline-line { background-size:100% 2px; }
  }
  @media (prefers-reduced-motion:reduce) {
    .link-underline-line { transition:none; }
  }
}
html[data-appearance] body[data-brand-ui] :is(a[href],button,summary,input,select,textarea,[role="button"],[role="tab"]):focus-visible {
  outline:2px solid var(--ap-focus); outline-offset:4px; box-shadow:0 0 0 4px var(--ap-focus-gap);
}
html[data-appearance] body[data-brand-ui] :is(.primary-link,.button,.connect-primary,.connect-secondary,.kit-action-outline,.transmission-panel-action,.guide-submit,.feedback-primary,.feedback-mail,.sg-action:first-child):not(:disabled):not([aria-disabled="true"]):is(:focus-visible,:active) { background:var(--ap-accent); color:#000!important; border-color:#000; }
html[data-appearance] body[data-brand-ui] :is(.skip,.skip-link,.ig-skip) { background:var(--ap-selected); color:var(--ap-selected-text); }
html[data-appearance] body[data-brand-ui] :is(.skip,.skip-link,.ig-skip):focus { background:var(--ap-accent); color:#000; }
html[data-appearance] body[data-brand-ui].page-home .home-actions .primary-link,
html[data-appearance] body[data-brand-ui] .takeaway-hero [data-takeaway-choose],
html[data-appearance] body[data-brand-ui].kit-page .kit-hero .primary-link[data-press-default] { background:var(--ap-selected); color:var(--ap-selected-text); border-color:var(--ap-selected); }
html[data-appearance] body[data-brand-ui].page-home .home-actions .primary-link:is(:focus-visible,:active),
html[data-appearance] body[data-brand-ui] .takeaway-hero [data-takeaway-choose]:is(:focus-visible,:active),
html[data-appearance] body[data-brand-ui].kit-page .kit-hero .primary-link[data-press-default]:is(:focus-visible,:active) { background:var(--ap-accent); color:#000; border-color:#000; }
html body[data-brand-ui].stories-page #main .story-atlas .story-map-actions>.button { background:var(--ap-accent); color:#000; border-color:var(--ap-accent); }
html body[data-brand-ui].stories-page #main .story-atlas .story-map-actions>.button:is(:focus-visible,:active) { background:var(--ap-selected); color:var(--ap-selected-text)!important; border-color:var(--ap-selected); }
html body[data-brand-ui].stories-page #main .story-atlas .story-map-actions>.button:focus-visible { outline:2px solid var(--ap-focus); outline-offset:4px; box-shadow:0 0 0 4px var(--ap-focus-gap); }
html[data-appearance] body[data-brand-ui].page-home #debut .primary-link { background:var(--ap-accent); color:#000; border-color:var(--ap-accent); }
html[data-appearance] body[data-brand-ui].page-home #debut .primary-link:is(:focus-visible,:active) { background:#fff; color:#000; border-color:#fff; }
html[data-appearance] body[data-brand-ui].page-home #debut .primary-link:focus-visible { outline:2px solid #fff; outline-offset:4px; box-shadow:0 0 0 4px #000; }
@media(hover:hover) {
  html body .appearance-toggle:hover { background:var(--ap-accent); color:#000; border-color:#000; }
  html body .appearance-mobile-toggle:hover::before { border-color:var(--ap-text); box-shadow:0 0 0 1px var(--ap-line); }
  html body .site-nav-primary a:hover::after { background:var(--ap-accent); }
  html[data-appearance] body[data-brand-ui] :is(.primary-link,.button,.connect-primary,.connect-secondary,.kit-action-outline,.transmission-panel-action,.guide-submit,.feedback-primary,.feedback-mail,.sg-action:first-child,.ig-entry button):not(:disabled):not([aria-disabled="true"]):hover { background:var(--ap-accent); color:#000!important; border-color:#000; }
  html[data-appearance] body[data-brand-ui] :is(.site-language a,.takeaway-style-choice,.takeaway-downloads>a):hover { --ink:#000; --muted:#000; background:var(--ap-accent); color:#000; border-color:#000; }
  html[data-appearance] body[data-brand-ui] .takeaway-downloads>a:hover :is(span,b) { color:#000; }
  html body :is(.release-chapter-tab,.engage-game-options button,.transmission-theme-option):hover { background:var(--ap-surface); border-color:var(--ap-text); }
  html[data-appearance="night"] body[data-brand-ui] .release-explorer :is(
    .release-chapter-tab:not([aria-selected="true"]), .release-explorer-arrow:not(:disabled)
  ):hover { background-color:var(--ap-surface); color:var(--ap-text); }
  html[data-appearance] body[data-brand-ui] .connect-topic:not([aria-current="true"]):hover {
    border-color:var(--ap-text); box-shadow:0 4px 0 -1px var(--ap-accent);
  }
  @media (prefers-reduced-motion:no-preference) {
    html[data-appearance] body[data-brand-ui] .connect-topic:not([aria-current="true"]):hover { transform:translateY(-2px); }
  }
  html body .feedback-secondary:hover { background:var(--ap-surface); color:var(--ap-text); }
  html body .guide-prompts button:hover { border-color:var(--ap-border); }
  html[data-appearance] body[data-brand-ui].page-home .home-actions .primary-link:hover,
  html[data-appearance] body[data-brand-ui] .takeaway-hero [data-takeaway-choose]:hover,
  html[data-appearance] body[data-brand-ui].kit-page .kit-hero .primary-link[data-press-default]:hover { background:var(--ap-accent); color:#000; border-color:#000; }
  html body[data-brand-ui].stories-page #main .story-atlas .story-map-actions>.button:hover { background:var(--ap-selected); color:var(--ap-selected-text)!important; border-color:var(--ap-selected); }
  html[data-appearance] body[data-brand-ui].page-home #debut .primary-link:hover { background:#fff; color:#000; border-color:#fff; }
}
@media(forced-colors:active) {
  .appearance-toggle,.appearance-mobile-toggle { forced-color-adjust:auto; }
  .appearance-mobile-toggle[aria-pressed="true"] { border:0; }
  .appearance-mobile-toggle::before { border-color:ButtonText; background:Canvas; }
  html[data-appearance] body[data-brand-ui] :is(a[href],button,summary,input,select,textarea,[role="button"],[role="tab"]):focus-visible { outline:2px solid Highlight; box-shadow:none; }
}
@media print {
  .appearance-control,.appearance-mobile-toggle { display:none!important; }
}

body :is(h1,h2) .kit-title-dot {
  display:inline-block; width:.16em; height:.16em; margin-left:.09em; border-radius:50%; background:#d5ff65;
}
.kit-title-tail { white-space:nowrap; }

/* All primary page titles share one screen scale, independent of page family. */
@media screen {
  :root {
    --ap-page-title-size:clamp(44px,7vw,88px);
    --ap-page-title-leading:1.12;
    --ap-page-title-weight:600;
    --ap-page-title-tracking:-.025em;
    --ap-section-title-size:clamp(28px,3.5vw,48px);
    --ap-subsection-title-size:clamp(24px,2.5vw,32px);
    --type-section:min(clamp(28px,3.6vw,44px),var(--ap-section-title-size));
  }
  html body[data-brand-ui] :is(#world-main,#main) h1,
  html body[data-brand-ui] #world-main #dve-zapisi .album-heading > .release-feature-title {
    font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
    font-size:var(--ap-page-title-size);
    font-weight:var(--ap-page-title-weight);
    line-height:var(--ap-page-title-leading);
    letter-spacing:var(--ap-page-title-tracking);
    overflow-wrap:anywhere; hyphens:auto;
  }
  html body[data-brand-ui] :is(#world-main,#main) h1>:not(.kit-title-dot) { font:inherit; letter-spacing:inherit; }
  @media(max-width:360px) { :root { --ap-page-title-size:38px; } }
  html body[data-brand-ui] #world-main .future-release .release-path-heading h2 { font-size:min(clamp(36px,4.3vw,54px),var(--ap-section-title-size)); }
  @media (width > 760px) {
    html body[data-brand-ui] #world-main #future > .release-path-heading {
      align-items:start;
      row-gap:20px;
    }
    html body[data-brand-ui] #world-main #future > .release-path-heading > div { display:contents; }
    html body[data-brand-ui] #world-main #future > .release-path-heading .eyebrow {
      grid-column:1 / -1;
      margin-bottom:0;
    }
  }
  html body[data-brand-ui] #main :is(.takeaway-collection-heading,.takeaway-upcoming>header) h2 { font-size:min(clamp(30px,3.8vw,46px),var(--ap-section-title-size)); }
  html body[data-brand-ui] #main .takeaway-how h2 { font-size:min(34px,var(--ap-section-title-size)); }
  html body[data-brand-ui].kit-page #main h2 { font-size:min(clamp(25px,2.5vw,34px),var(--ap-section-title-size)); }
  @media(max-width:640px) { html body[data-brand-ui].kit-page #main h2 { font-size:min(30px,var(--ap-section-title-size)); } }
  html body[data-brand-ui] #world-main .future-release .release-stage h3 { font-size:min(clamp(28px,3.1vw,39px),var(--ap-subsection-title-size)); }
  html body[data-brand-ui].journal-page #main .journal-feature h3 { font-size:min(clamp(28px,3.7vw,43px),var(--ap-subsection-title-size)); }
  html body[data-brand-ui].journal-page #main .journal-stories-grid .journal-feature h3 { font-size:min(clamp(26px,2.8vw,34px),var(--ap-subsection-title-size)); }

  html body[data-brand-ui].page-home .home-layout .home-section-kicker>span:only-child { max-width:none; width:auto; text-align:left; }

  /* Informational cards share a frame; editorial titles and artwork keep their roles. */
  :root { --ap-info-surface:var(--ap-canvas); }
  html[data-appearance="night"] { --ap-info-surface:#111; }
  html body[data-brand-ui] :is(#world-main,#main) :is(.takeaway-upcoming-card,.engage-coming-card,.kit-usage,.policy-status,.takeaway-how,.invitation,.pp-project-visual,.journal-article-visual .journal-process-image) {
    background:var(--ap-info-surface); color:var(--ap-text);
    border:1px solid var(--ap-border); border-radius:16px;
  }
  html body[data-brand-ui] #main .journal-article-visual .journal-process-image { background:transparent; }
  html body[data-brand-ui] :is(#world-main,#main) :is(.takeaway-upcoming-card,.engage-coming-card,.kit-usage) h3 {
    font-size:clamp(22px,2.2vw,28px); font-weight:600; line-height:1.2;
  }
  html body[data-brand-ui] :is(#world-main,#main) :is(.takeaway-upcoming-card,.engage-coming-card,.kit-usage,.policy-status,.takeaway-how,.invitation) :is(p,li) {
    color:var(--ap-text); font-size:17px; line-height:1.7;
  }
  html body[data-brand-ui] :is(#world-main,#main) :is(.takeaway-upcoming-card,.engage-coming-card,.kit-usage,.policy-status,.takeaway-how,.invitation) :is(.eyebrow,.takeaway-upcoming-status,.engage-coming-type,.engage-coming-status),
  html body[data-brand-ui] :is(#world-main,#main) :is(.pp-project-visual,.journal-article-visual .journal-process-image) figcaption {
    color:var(--ap-secondary); font-size:14px; line-height:1.6;
  }
  html body[data-brand-ui] :is(#world-main,#main) :is(.takeaway-upcoming-status,.engage-coming-status) { border-top-color:var(--ap-line); }

  /* Footer group names are quiet labels, distinct from the links below them. */
  html[data-appearance] body[data-brand-ui] .site-footer-v2 .footer-group-title {
    color:var(--ap-secondary); font-size:12px; line-height:1.6; font-weight:600;
    letter-spacing:.09em; text-transform:uppercase; text-decoration:none;
    transition:none; cursor:default;
  }
  html body[data-brand-ui] .site-footer-v2 { --footer-widget-clearance:72px; }

  /* The small mobile controls have an opaque lane, separated from reading. */
  @media(max-width:700px) {
    html body[data-brand-ui]:not(:has(.site-header.site-menu-is-open)):not(.page-guide):has(.ig-rest:not([hidden]))::after,
    html body[data-brand-ui]:not(:has(.site-header.site-menu-is-open)):not(.page-guide):has(.ig-return:not([hidden]))::after,
    html body[data-brand-ui]:not(:has(.site-header.site-menu-is-open)):has(#site-to-top:not([hidden]))::after {
      content:""; position:fixed; z-index:94; inset:auto 0 0;
      height:calc(64px + env(safe-area-inset-bottom,0px));
      background:var(--ap-canvas); border-top:1px solid var(--ap-line);
      pointer-events:auto;
    }
    html body[data-brand-ui] .site-to-top {
      bottom:calc(10px + env(safe-area-inset-bottom,0px));
      min-height:44px;
    }
  }

  /* Legal links stay quiet until they are used; the keyboard outline is retained. */
  html[data-appearance] body[data-brand-ui] .site-footer-v2 .site-notices a {
    text-decoration-line:none; text-decoration-thickness:1px; text-underline-offset:.14em;
    background-image:none; border-bottom:0; box-shadow:none; transition:none;
  }
  html[data-appearance] body[data-brand-ui] .site-footer-v2 .site-notices a:is(:hover,:focus-visible,:active) {
    text-decoration-line:underline; text-decoration-thickness:1px;
    background-image:none; box-shadow:none; transition:none;
  }

  /* A shared kicker aligns the how-to title and its first step on the next row. */
  html body[data-brand-ui].takeaway-page #main .takeaway-how {
    --ink:var(--ap-text); --muted:var(--ap-secondary);
    --brand-ink:var(--ap-text); --brand-caption:var(--ap-secondary);
    background:var(--ap-canvas); color:var(--ap-text);
    border:0; border-top:1px solid var(--ap-line); border-radius:0; box-shadow:none;
    padding:28px 0 0; align-items:start; column-gap:48px; row-gap:20px;
  }
  html body[data-brand-ui].takeaway-page #main .takeaway-how>div { display:contents; }
  html body[data-brand-ui].takeaway-page #main .takeaway-how>div>.eyebrow {
    grid-column:1/-1; grid-row:1; margin:0;
    color:var(--ap-secondary); font-size:14px; line-height:1.6;
  }
  html body[data-brand-ui].takeaway-page #main .takeaway-how>div>h2 { grid-column:1; grid-row:2; margin:0; color:var(--ap-text); }
  html body[data-brand-ui].takeaway-page #main .takeaway-how>ol {
    grid-column:2; grid-row:2; min-width:0; margin:0; padding:0;
    list-style:none; counter-reset:takeaway-step; color:var(--ap-text); font-size:17px; line-height:1.7;
  }
  html body[data-brand-ui].takeaway-page #main .takeaway-how>ol>li {
    position:relative; counter-increment:takeaway-step; margin:0; padding:0 0 0 40px;
    color:var(--ap-text); font-size:17px; line-height:1.7;
  }
  html body[data-brand-ui].takeaway-page #main .takeaway-how>ol>li::before {
    content:counter(takeaway-step,decimal-leading-zero); position:absolute; left:0; top:.25em;
    color:var(--ap-secondary); font-size:14px; line-height:1.6; font-weight:600; letter-spacing:.04em;
  }
  html body[data-brand-ui].takeaway-page #main .takeaway-how>ol>li+li { margin-top:16px; padding-top:16px; border-top:1px solid var(--ap-line); }
  html body[data-brand-ui].takeaway-page #main .takeaway-how>ol>li+li::before { top:calc(16px + .25em); }
  @media(max-width:850px) {
    html body[data-brand-ui].takeaway-page #main .takeaway-how { grid-template-columns:minmax(0,1fr); padding-top:24px; row-gap:16px; }
    html body[data-brand-ui].takeaway-page #main .takeaway-how>ol { grid-column:1; grid-row:3; }
    html body[data-brand-ui].takeaway-page #main .takeaway-how>ol>li { padding-left:32px; }
  }

  /* On the single-column story atlas, the main action follows the text width. */
  @media(max-width:760px) {
    html body[data-brand-ui].stories-page[data-page="stories"] #main .story-atlas .story-map-actions {
      flex-direction:column; flex-wrap:nowrap; align-items:stretch; gap:16px;
    }
    html body[data-brand-ui].stories-page[data-page="stories"] #main .story-atlas .story-map-actions>.button {
      display:inline-flex; align-items:center; justify-content:center;
      box-sizing:border-box; width:100%; min-height:48px; margin:0; text-align:center;
    }
    html body[data-brand-ui].stories-page[data-page="stories"] #main .story-atlas .story-map-actions>.story-listening-path {
      align-self:flex-start; width:fit-content; max-width:100%; min-height:44px; margin:0;
    }
  }

  /* The three future formats have aligned copy and a decorative native hoodie. */
  html body[data-brand-ui] .takeaway-upcoming-grid>.takeaway-upcoming-card { display:flex; flex-direction:column; }
  html body[data-brand-ui] .takeaway-upcoming-card>.takeaway-upcoming-art { flex-shrink:0; }
  html body[data-brand-ui] .takeaway-upcoming-card>p:not(.eyebrow):not(.takeaway-upcoming-status) { margin-bottom:24px; }
  html body[data-brand-ui] .takeaway-upcoming-card>.takeaway-upcoming-status { margin-top:auto; }
  html body[data-brand-ui] .takeaway-upcoming-merch>svg {
    position:absolute; top:0; left:16px; width:160px; height:128px;
    color:var(--ap-text);
  }
  @media(min-width:1000px) {
    html body[data-brand-ui] .takeaway-upcoming-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    html body[data-brand-ui] .takeaway-upcoming-card>.eyebrow { min-height:3.2em; }
    html body[data-brand-ui] .takeaway-upcoming-card>h3 { min-height:2.4em; }
    html body[data-brand-ui] .takeaway-upcoming-card>.takeaway-upcoming-status { min-height:calc(4.8em + 18px); }
  }
}

/* Use system link and focus colours in high-contrast mode. */
@media(forced-colors:active) {
  html[data-appearance] body[data-brand-ui] .project-pages-scope .pp-text-link,
  html[data-appearance] body[data-brand-ui] .project-pages-scope .pp-text-link:is(:hover,:focus-visible,:active) { background-image:none; text-decoration:none; transition:none; }
  html[data-appearance] body[data-brand-ui] .project-pages-scope .pp-link-line,
  html[data-appearance] body[data-brand-ui] .project-pages-scope .pp-text-link:is(:hover,:focus-visible,:active) .pp-link-line { border-bottom-color:LinkText; transition:none; }
  html[data-appearance] body[data-brand-ui] :is(a[href],button,summary,input,select,textarea,[role="button"],[role="tab"]):focus-visible,
  html[data-appearance] body[data-brand-ui].page-home #debut .primary-link:focus-visible,
  html body[data-brand-ui].stories-page #main .story-atlas .story-map-actions>.button:focus-visible { outline:2px solid Highlight; box-shadow:none; }
}

@media screen {
  html body.page-home #world-main #page-title>em { display:block; white-space:nowrap; hyphens:none; overflow-wrap:normal; }
}

#album .release-update-heading > .quiet-status {
  display:flex;
  width:fit-content;
  margin-block-start:8px;
}

/* Mobile Music hierarchy and common first-section boundary. */
@media screen and (max-width:760px) {
  html body[data-brand-ui] #world-main .music-album {
    display:flex;
    flex-direction:column;
    padding-top:29px;
  }
  html body[data-brand-ui] #world-main .music-album>.section-top {
    display:contents;
  }
  html body[data-brand-ui] #world-main .music-album>.album-heading {
    order:1;
    display:block;
    margin:0;
  }
  html body[data-brand-ui] #world-main .music-album>.album-heading>p {
    margin:20px 0 0;
    padding-bottom:0;
  }
  html body[data-brand-ui] #world-main .music-album>.music-chapter-nav {
    order:3;
    gap:0 24px;
    margin:8px 0 0;
  }
  html body[data-brand-ui] #world-main .music-album>.release-update {
    order:4;
    margin:24px 0 32px;
  }
  html body[data-brand-ui] #world-main .music-album>.album-grid {
    order:5;
  }
}
@media screen and (width > 760px) {
  html body[data-brand-ui] #world-main .section-eyebrow+.music-album>.music-chapter-nav {
    margin-block-start:0;
  }
}

/* One rule under the shared header. Breadcrumbs do not add a second rule.
   Only Project's first hero loses its inherited section border; the internal
   principle/process/resources dividers remain untouched. */
html body[data-brand-ui] .site-header {
  border-bottom:1px solid var(--ap-line);
}
html body[data-brand-ui] :is(.breadcrumbs,.editorial-breadcrumb) {
  border-block:0;
}
html body[data-brand-ui] :is(.breadcrumbs,.section-eyebrow)+.project-pages-scope>.pp-project-hero:first-child {
  border-top:0;
}

/* Shared page start: keep the breadcrumb readable, then use one compact gap. */
@media screen {
  :root { --ap-first-section-gap:16px; }
  html body[data-brand-ui] :is(#world-main,#main) :is(.breadcrumbs,.editorial-breadcrumb) {
    display:flex; flex-wrap:wrap; align-items:center;
    box-sizing:border-box; min-height:56px; padding-block:0;
  }
  html body[data-brand-ui] :is(#world-main,#main) :is(.breadcrumbs,.editorial-breadcrumb)>*,
  html body[data-brand-ui] :is(#world-main,#main) .editorial-breadcrumb li {
    min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere;
  }
  html body[data-brand-ui] :is(#world-main,#main) .section-eyebrow {
    margin:var(--ap-first-section-gap) 0 0;
    font:400 12px/1.6 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;
    letter-spacing:.1em;
    text-transform:uppercase;
    color:var(--ap-secondary,var(--muted));
    overflow-wrap:anywhere;
  }
  html body[data-brand-ui] #world-main .section-eyebrow {
    width:min(calc(100% - 2 * var(--page-gutter)),calc(var(--page-width) - 2 * var(--page-gutter)));
    margin-inline:auto;
  }
  html body[data-brand-ui] .section-eyebrow+.music-album>.section-top {
    justify-content:flex-end;
  }
  html body[data-brand-ui] :is(#world-main,#main) :is(.breadcrumbs,.editorial-breadcrumb,.section-eyebrow)+:is(.takeaway-hero,.story-atlas,.hero,.journal-index-hero,.music-album,.engage-shell,.connect-hero,.kit-hero,.guide-page,.policy-hero),
  html body[data-brand-ui] :is(#world-main,#main) .breadcrumbs+.journal-article>.journal-hero:first-child,
  html body[data-brand-ui] :is(#world-main,#main) :is(.breadcrumbs,.section-eyebrow)+.pp-project-page>.pp-project-hero:first-child {
    padding-top:var(--ap-first-section-gap);
  }
  @media(min-width:1000px) { :root { --ap-first-section-gap:32px; } }
}

/* Shared shell geometry must not depend on the policy-page stylesheet order. */
html body :is(.site-nav-bar,.site-menu-inner) {
  max-width:var(--page-width,1240px);
  padding-inline:var(--page-gutter,24px);
}
html body .site-nav-brand-copy { font-size:19px; }
html body .site-menu-route-copy strong { font-size:28px; }
@media(max-width:760px) {
  html body .site-nav-brand-copy { font-size:17px; }
}
html body.policy-page main>.breadcrumbs { padding-inline:0; }

@media(max-width:520px) {
  .journal-edition-related .journal-route-links {
    display:grid;
    grid-template-columns:fit-content(60%) minmax(0,1fr);
  }
  .journal-edition-related .journal-route-links>a {
    display:block;
    min-width:0;
    padding-block:12px;
  }
  .journal-edition-related .journal-route-links>a:nth-child(n+3) { grid-column:1/-1; }
}

html body[data-brand-ui].stories-page nav.sequence>a {
  justify-content:center;
  min-height:112px;
  padding-block:18px;
}
@media(max-width:760px) {
  html body[data-brand-ui].stories-page nav.sequence>a { min-height:104px; }
}

/* A light interaction surface always carries its matching foreground. */
html[data-appearance] body[data-brand-ui].stories-page nav.sequence>a:is(:hover,:focus-visible,:active) {
  background:var(--ap-surface);
  color:var(--ap-text);
  border-color:var(--ap-border);
}
html[data-appearance] body[data-brand-ui].stories-page nav.sequence>a:is(:hover,:focus-visible,:active) :is(small,span,strong) {
  color:inherit;
}

/* Essential game lines remain distinguishable on both game surfaces. */
html body .sg-road-tile svg { stroke:var(--ap-secondary); }
html body .sg-wave-player { stroke:#537333; }
html body .sg-wave-key span:last-child::before { border-color:#537333; }

/* The fixed Guide label owns its surface, including when it crosses artwork. */
html body .imidjeologia-companion .ig-name {
  padding:4px 7px;
  border:1px solid var(--ap-border);
  border-radius:999px;
  background:var(--ap-canvas);
  color:var(--ap-text);
}
html body .imidjeologia-companion:is(.ig-footer-visible,[data-ig-guitar="compact"]):not([data-ig-guitar="full"]) .ig-name {
  padding:0; border:0; background:none;
}
@media(max-width:700px) {
  html body .imidjeologia-companion:not([data-ig-guitar="full"]) .ig-name { padding:0; border:0; background:none; }
}
@media print {
  html body[data-brand-ui]::after { display:none!important; }
  html body[data-brand-ui] .site-footer-v2 { --footer-widget-clearance:24px; }
}
html body .imidjeologia-companion.ig-navigation-obscured :is(.ig-rest,.ig-return,.ig-rest .ig-caption) {
  visibility:hidden;
  pointer-events:none;
}
html body .site-menu-bottom .site-menu-guide {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--ap-text);
  font-size:13px;
  line-height:1.4;
  text-decoration:underline;
  text-underline-offset:.14em;
}

/* Headings wrap at word boundaries; never split or hyphenate a title word. */
@media screen {
  html body[data-brand-ui] :is(h1,h2,h3),
  html body[data-brand-ui] :is(#world-main,#main) :is(h1,h2,h3),
  html body[data-brand-ui] :is(#world-main,#main) :is(h1,h2,h3) * {
    hyphens:none;
    word-break:normal;
    overflow-wrap:normal;
  }
  html body[data-brand-ui].journal-page #main .journal-index-hero h1 {
    max-width:none;
  }
  @media(max-width:340px) {
    html body[data-brand-ui].journal-page #main .journal-index-hero h1 {
      font-size:36px;
    }
  }
}

/* Whole-word headings need a usable measure in these four narrow contexts. */
@media screen {
  html body[data-brand-ui].journal-page #main .journal-index-hero h1,
  html body[data-brand-ui].journal-page #main .journal-index-hero .journal-deck {
    grid-column:1/-1;
  }
  html body[data-brand-ui].journal-page #main .journal-index-hero .journal-deck {
    max-width:66ch;
  }
  @media(max-width:390px) {
    html body[data-brand-ui].journal-page #main .journal-article>.journal-hero h1 {
      font-size:36px;
    }
  }
  @media(max-width:340px) {
    html body[data-brand-ui].journal-page #main .journal-article>.journal-hero h1 {
      font-size:32px;
    }
  }
  @media(max-width:480px) {
    html body[data-brand-ui].policy-page[data-page="privacy"] #main .policy-hero h1 {
      font-size:calc(9.7vw - 4.65px);
    }
    html body[data-brand-ui].policy-page[data-page="privacy"] #main h2 {
      font-size:24px;
    }
  }
  @media(min-width:1051px) {
    html body[data-brand-ui].kit-page #main .kit-section-project>header #kit-title-1 {
      font-size:min(32px,2.5vw);
    }
  }
}

/* Project links draw their separate line below the label. */
@media screen and (forced-colors:none) {
  html[data-appearance] body[data-brand-ui] :is(#world-main,#main) .project-pages-scope .pp-text-link {
    text-decoration:none;
  }
}

.guide-page-editorial #project-guide .guide-log {
  max-height:min(26rem,44vh);
  max-height:min(26rem,44svh);
  overflow-y:auto;
  padding:12px 4px 12px 0;
  border-bottom:1px solid var(--ap-line);
}
.guide-page-editorial #project-guide .guide-prompts { padding-block:12px; }
.guide-page-editorial #project-guide .guide-entry {
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}
.guide-page-editorial #project-guide .guide-entry input {
  appearance:none;
  padding-inline:12px;
  background:var(--ap-field);
  color:var(--ap-field-text);
}
.guide-page-editorial #project-guide .guide-entry .guide-submit { padding-inline:clamp(10px,3vw,22px); }

.site-menu-release strong { text-decoration-skip-ink: none; }

/* Synchron uses the approved letter geometry within the existing shell. */
@media screen {
  html body .site-footer-v2 { padding-block-start:32px; }
  html[lang="en"] body .site-footer-v2 { padding-block-start:34px; }
  @media (width > 800px) {
    html body .site-footer-v2 { padding-block-start:40px; }
    html[lang="en"] body .site-footer-v2 { padding-block-start:42px; }
  }
}
html body .site-footer-v2 .footer-brand > span[aria-hidden="true"] {
  order:-1; display:block; flex:0 0 23px; width:23px; height:24px;
  border-radius:0; box-shadow:none;
  background:url("assets/brand/synchron-symbol-light.svg?v=5dea2548563a") center / contain no-repeat;
}
html[data-appearance="night"] body .site-footer-v2 .footer-brand > span[aria-hidden="true"] {
  background-image:url("assets/brand/synchron-symbol-dark.svg?v=513a57ba9059");
}
html body .site-footer-v2 .footer-brand > .footer-brand-name {
  position:relative; flex:0 1 auto; min-width:0; width:auto; height:auto;
  border-radius:0; background:none; box-shadow:none;
}
.site-footer-v2 .footer-brand-name img {
  display:block; inline-size:auto; block-size:calc(854 * .0153303825136612px); aspect-ratio:7825 / 854;
}
html[lang="en"] .site-footer-v2 .footer-brand-name img {
  block-size:calc(1001 * .0153303825136612px); aspect-ratio:6039 / 1001;
}
html[data-appearance="night"] .site-footer-v2 .footer-brand-name img { filter:invert(1); }
@media (hover:hover) {
  html body[data-brand-ui] .site-footer-v2 .footer-brand:has(.footer-brand-name):hover { text-decoration:none; }
  html body[data-brand-ui] .site-footer-v2 .footer-brand:hover .footer-brand-name::after {
    content:""; position:absolute; pointer-events:none;
    inset-inline:0; inset-block-end:-2px; block-size:2px; background:var(--brand-accent);
  }
}
html body.stories-page .editorial-brand-mark { background:#000; }
.site-header:not([data-brand-compact]) .site-nav-brand { justify-content:flex-start; }
.site-header:not([data-brand-compact]) .site-nav-brand-copy { display:block; }
.site-header:not([data-brand-compact]) .site-nav-mark svg { translate:var(--site-nav-mark-shift) 0; }
.site-header[data-brand-compact] .site-nav-brand {
  --site-nav-mark-shift:max(0px, (44px - var(--site-nav-mark-width)) / 2);
  min-width:44px;
  justify-content:center;
}
.site-header[data-brand-compact] .site-nav-brand-copy { display:none; }
.site-nav-brand {
  --site-nav-brand-scale:1.16;
  --site-nav-mark-base-width:50px;
  --site-nav-mark-width:calc(var(--site-nav-mark-base-width) * var(--site-nav-brand-scale));
  --site-nav-brand-gap:13px;
  --site-nav-mark-inset:calc(var(--site-nav-mark-width) * 177.6054158607 / 812);
  --site-nav-mark-shift:calc(var(--site-nav-mark-inset) + var(--site-nav-brand-gap) - 11.5px * var(--site-nav-brand-scale));
  --site-nav-mark-offset:calc(var(--site-nav-mark-inset) + var(--site-nav-mark-shift));
  /* The first painted point of the letter sits on the shared content gutter. */
  margin-inline-start:calc(var(--site-nav-gutter-delta,0px) - var(--site-nav-mark-offset));
  position:relative;
}
.site-nav-mark { width:var(--site-nav-mark-width); flex-basis:var(--site-nav-mark-width); }
@media (hover:hover) {
  html body[data-brand-ui] a.site-nav-brand:hover { box-shadow:none; }
  html body[data-brand-ui] a.site-nav-brand:hover::after {
    content:""; position:absolute; pointer-events:none;
    inset-inline:var(--site-nav-mark-offset) 0; inset-block-end:-2px;
    block-size:2px; background:var(--brand-accent);
  }
  html body[data-brand-ui] .site-header[data-brand-compact] a.site-nav-brand:hover::after {
    inset-inline-end:var(--site-nav-mark-offset);
  }
}
/* Fit the copy to the visible symbol while preserving its type widths. */
.site-nav-brand-copy { line-height:.98; scale:1 .88; translate:0 -.75px; }
html body .site-nav-brand-copy small { line-height:1.04; margin-top:1.2px; translate:.75px 0; }
.site-nav-brand-copy:has(.site-nav-brand-wordmark) { scale:none; translate:none; }
.site-nav-brand-wordmark {
  display:block;
  inline-size:auto;
  block-size:calc(var(--site-nav-mark-width) * 480 / 812 * .96407);
}
.site-nav-brand-wordmark-ru { aspect-ratio:719.761459 / 138.82575; }
.site-nav-brand-wordmark-en {
  block-size:calc(var(--site-nav-mark-width) * 480 / 812 * .99199262);
  aspect-ratio:555.48108 / 142.846937;
}
html[data-appearance="night"] .site-nav-brand-wordmark { filter:brightness(1.3333333333) invert(1); }
@media (max-width:1050px) {
  .site-nav-brand { --site-nav-mark-base-width:46px; }
}
@media (max-width:600px) {
  .site-nav-bar:has(.appearance-control) { --site-nav-gutter-delta:calc(var(--page-gutter,24px) - 16px); }
  .site-nav-brand { --site-nav-mark-base-width:44px; --site-nav-brand-gap:10px; }
}
@media (max-width:359px) {
  .site-nav-brand { --site-nav-mark-base-width:37px; --site-nav-brand-gap:8px; }
}
@media (max-width:760px) {
  html body .site-nav-brand-copy small { margin-top:1.65px; }
}
@media (760px < width <= 1050px) {
  .site-nav-brand-copy { scale:1 .835; }
}
@media (width > 1050px) {
  .site-nav-brand-copy { scale:1 .915; }
}
@media (width > 760px) {
  html .page-home .home-layout .home-identity figcaption {
    /* Start at the visible edge of the centred letter, inside the 11% art padding. */
    padding-inline-start:calc(11% + 78% * 177.6054158607 / 812);
  }
}

/* Match the ink edge of the first letter in the footer statement. */
.site-footer-v2 .footer-brand:has(.footer-brand-name) {
  translate:1px 0;
}
