/* Inner pages in the homepage style (openspec change website-inner-pages-restyle).
   Loaded last by every docs page (body.docs-page), never by the homepage. Only grounds, colours and
   button looks change; copy, structure, layout and spacing stay as they are. Colours come from
   assets/brand.css only, so this file holds no colour literals. */

/* 1. Grounds and text: point the old Aurora edition tokens at the brand tokens.
   Every docs stylesheet (reading, theme, privacy, content-refresh) already reads these. */
html[data-edition="aurora"] {
  --edition-ground: var(--brand-white);
  --edition-field: var(--brand-white);
  --edition-ink: var(--brand-black);
  --edition-copy: var(--ui-text-muted);
  --edition-accent: var(--brand-blue);
  --edition-on-accent: var(--brand-white);
  --edition-surface: var(--brand-white);
  --edition-rule: var(--ui-rule);
  --edition-wash: var(--brand-blue-soft);
  --edition-light: transparent;
  --edition-contour: transparent;
}

/* Body text on the light-blue ground is near-black (brand rule: blue or grey copy on #EEF3FF is too faint). */
.docs-page :is(.blog-cta, .reader-context, .guide-hub-note, .guide-answer, .models-example, .copy-plan, .download-note, .download-card-live, .related-articles a),
.docs-page :is(.blog-cta, .reader-context, .guide-hub-note, .guide-answer, .models-example, .copy-plan, .download-note, .download-card-live, .related-articles a) :is(p, li, small),
.docs-page :is(.download-platform, .resource-state) {
  color: var(--brand-black);
}
.docs-page .download-card-live .download-platform { background: var(--brand-white); }

/* 2. Page buttons: the homepage pill. Primary = brand blue with white text, secondary = white with a
   blue ring. Borders stay 1px and sizes are untouched, so nothing reflows; the secondary ring is
   thickened to the brand 1.5px with an inset shadow. Hover / press come from brand.css
   (.brand-btn-feel on the button in the HTML). */
.docs-page .button {
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  background: var(--brand-white);
  color: var(--brand-blue);
  box-shadow: inset 0 0 0 .5px var(--brand-blue);
  filter: none;
}
.docs-page .button:is(.button-blue, .button-dark) {
  background: var(--brand-blue);
  color: var(--brand-white);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-blue) 28%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--brand-black) 12%, transparent);
}
/* The resting shadows above outrank brand.css, so its focus ring is restated here. */
.docs-page .button.brand-btn-feel:focus-visible { outline: none; box-shadow: var(--brand-focus-ring); }
/* theme.css moves .button on hover and press by itself; buttons move only as the site header's do:
   brand.css, plus the header's 1px lift for the secondary button (website-global-nav #40). */
.docs-page .button.brand-btn-feel--secondary:hover:not(:active),
.docs-page .button:not(.brand-btn-feel):is(:hover, :active) { transform: none; }
@media not ((hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference)) {
  .docs-page .button:is(:hover, :active) { transform: none; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .docs-page .button.brand-btn-feel--secondary:hover:not(:active) { transform: translateY(-1px); }
}
/* Like the header's Open web app, the secondary ground turns light blue on hover and focus, so
   reduced motion still gets a colour change. */
.docs-page .button.brand-btn-feel--secondary:is(:hover, :focus-visible) { background: var(--brand-blue-soft); }

/* 3. Utility actions without the brand feel: the copy-prompt button and the download-card actions
   (acquisition.js rebuilds those at run time, so they cannot carry a class here). Same pill look,
   no motion of their own. */
.docs-page :is(.guide-copy, .download-action) {
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  background: var(--brand-white);
  color: var(--brand-blue) !important;
  box-shadow: inset 0 0 0 .5px var(--brand-blue);
  transform: none;
  transition: none;
}
.docs-page :is(.guide-copy, .download-action):not(:disabled):is(:hover, :active) {
  transform: none;
  box-shadow: inset 0 0 0 .5px var(--brand-blue);
}
@media (hover: hover) and (pointer: fine) {
  .docs-page :is(.guide-copy, .download-action):not(:disabled):hover { background: var(--brand-blue-soft); }
}
.docs-page .download-card-live .download-action,
.docs-page .download-card-live .download-action:not(:disabled):is(:hover, :active) {
  background: var(--brand-blue);
  color: var(--brand-white) !important;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-blue) 28%, transparent), inset 0 -3px 0 color-mix(in srgb, var(--brand-black) 12%, transparent);
}
.docs-page .download-action:disabled {
  border-color: var(--ui-rule);
  background: var(--ui-surface);
  color: var(--ui-text-muted) !important;
  box-shadow: none;
}

/* 4. The feedback form frame's loading ground (theme.css wrote it as a literal grey). */
.docs-page .feedback-page iframe { background: var(--ui-surface); }
