/* AMAADOR Aurora shared shell AF */
:root {
  --aurora-bg: #fbf8f3;
  --aurora-surface: rgba(255, 255, 255, .94);
  --aurora-surface-strong: #fff;
  --aurora-text: #0b2050;
  --aurora-muted: #64708c;
  --aurora-border: rgba(24, 38, 82, .10);
  --aurora-pill: rgba(255, 255, 255, .72);
  --aurora-pill-hover: #f1ecff;
  --aurora-pill-active: #ece5ff;
  --aurora-accent: #6d3cff;
  --aurora-focus: #8a52ff;
  --aurora-shadow: 0 18px 52px rgba(37, 31, 78, .10);
  color-scheme: light;
}
:root[data-aurora-theme="dark"] {
  --aurora-bg: #11142b;
  --aurora-surface: rgba(28, 31, 61, .96);
  --aurora-surface-strong: #1c1f3d;
  --aurora-text: #f8f8ff;
  --aurora-muted: #c2c6dc;
  --aurora-border: rgba(255, 255, 255, .15);
  --aurora-pill: rgba(255, 255, 255, .08);
  --aurora-pill-hover: rgba(137, 89, 255, .22);
  --aurora-pill-active: rgba(137, 89, 255, .32);
  --aurora-accent: #b39aff;
  --aurora-focus: #cbbcff;
  --aurora-shadow: 0 22px 58px rgba(0, 0, 0, .28);
  color-scheme: dark;
}
html { background: var(--aurora-bg); }
body { background-color: var(--aurora-bg); color: var(--aurora-text); }
.aurora-shell-suppressed { display: none !important; }
.aurora-shell-header,
.aurora-shell-footer {
  box-sizing: border-box;
  color: var(--aurora-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.aurora-shell-header *, .aurora-shell-footer * { box-sizing: border-box; }
.aurora-shell-header {
  position: relative;
  z-index: 10000;
  width: min(1920px, calc(100% - 32px));
  margin: 10px auto 18px;
  border: 1px solid var(--aurora-border);
  border-radius: 24px;
  background: var(--aurora-surface);
  box-shadow: var(--aurora-shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.aurora-shell-header-inner {
  min-height: 66px;
  padding: 9px 18px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
}
.aurora-shell-header .aurora-shell-brand{grid-column:1;order:0!important}
.aurora-shell-header .aurora-shell-nav{grid-column:2;order:0!important}
.aurora-shell-header .aurora-shell-controls{grid-column:3;order:0!important}
.aurora-shell-header .aurora-shell-languages{order:0!important}
.aurora-shell-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--aurora-text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.02em;
}
.aurora-shell-brand strong { font-size: 1.02rem; font-weight: 900; }
.aurora-shell-brand span { color: var(--aurora-accent); font-size: .66rem; font-weight: 900; letter-spacing: .20em; }
.aurora-shell-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.aurora-shell-nav-link,
.aurora-shell-language,
.aurora-shell-theme,
.aurora-shell-menu {
  min-height: 40px;
  border: 1px solid var(--aurora-border);
  border-radius: 999px;
  background: var(--aurora-pill);
  color: var(--aurora-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  text-decoration: none;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.aurora-shell-nav-link:hover,
.aurora-shell-language:hover,
.aurora-shell-theme:hover,
.aurora-shell-menu:hover { background: var(--aurora-pill-hover); border-color: color-mix(in srgb, var(--aurora-accent) 38%, transparent); }
.aurora-shell-nav-link:active,
.aurora-shell-language:active,
.aurora-shell-theme:active,
.aurora-shell-menu:active { transform: translateY(1px); }
.aurora-shell-nav-link[aria-current="page"],
.aurora-shell-language[aria-current="page"] { background: var(--aurora-pill-active); border-color: color-mix(in srgb, var(--aurora-accent) 36%, transparent); color: var(--aurora-accent); }
.aurora-shell-controls { display: flex; align-items: center; gap: 8px; }
.aurora-shell-languages { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--aurora-border); border-radius: 999px; background: var(--aurora-pill); }
.aurora-shell-language { min-width: 38px; padding-inline: 10px; border: 0; background: transparent; }
.aurora-shell-theme { width: 42px; min-width: 42px; padding: 0; }
.aurora-shell-theme-icon { display: block; width: 19px; height: 19px; flex: 0 0 19px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aurora-shell-theme-moon { fill: currentColor; stroke: none; }
.aurora-shell-theme-sun { display: none; fill: none; stroke: currentColor; }
.aurora-shell-theme[data-mode="dark"] .aurora-shell-theme-moon { display: none; }
.aurora-shell-theme[data-mode="dark"] .aurora-shell-theme-sun { display: block; }
.aurora-shell-menu { display: none; }
.aurora-shell-header :where(a, button):focus-visible,
.aurora-shell-footer :where(a, button):focus-visible { outline: 3px solid color-mix(in srgb, var(--aurora-focus) 78%, white); outline-offset: 3px; }

.aurora-shell-footer {
  width: min(1920px, calc(100% - 32px));
  margin: 28px auto 16px;
  padding: 20px 24px 14px;
  border: 1px solid var(--aurora-border);
  border-radius: 28px;
  background: var(--aurora-surface);
  box-shadow: var(--aurora-shadow);
}
.aurora-shell-footer-main { display: grid; grid-template-columns: minmax(210px, 1fr) auto auto; gap: 20px; align-items: center; }
.aurora-shell-footer-identity p { margin: 7px 0 0; max-width: 340px; color: var(--aurora-muted); font-size: .82rem; line-height: 1.45; }
.aurora-shell-footer-nav { justify-content: flex-start; }
.aurora-shell-footer-nav .aurora-shell-nav-link { min-height: 36px; padding: 7px 11px; font-size: .75rem; }
.aurora-shell-footer-bottom { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--aurora-border); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--aurora-muted); font-size: .72rem; }
.aurora-related-platforms{display:flex;flex-wrap:wrap;gap:7px}.aurora-related-platforms a{padding:6px 10px;border:1px solid var(--aurora-border);border-radius:999px;background:var(--aurora-pill);color:var(--aurora-text);font-weight:750;text-decoration:none}.aurora-related-platforms a:after{content:" ↗";color:var(--aurora-accent)}
.aurora-shell-utility { display: flex; gap: 14px; flex-wrap: wrap; }
.aurora-shell-utility a { color: var(--aurora-muted); text-decoration: none; }
.aurora-shell-utility a:hover { color: var(--aurora-accent); }
.aurora-shell-footnote { margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--aurora-pill); color: var(--aurora-muted); font-size: .76rem; line-height: 1.45; }
body > #amaador-support-controls{position:relative!important;inset:auto!important;display:flex!important;justify-content:center!important;width:min(100% - 24px,760px)!important;margin:18px auto!important;z-index:2!important}
body > #amaador-support-controls .amaador-support-pill{position:static!important;box-shadow:0 10px 26px rgba(45,39,107,.12)!important}
.aurora-shell-header .aurora-shell-language,.aurora-shell-footer .aurora-shell-language{color:var(--aurora-text)!important}
.aurora-shell-header .aurora-shell-language[aria-current="page"],.aurora-shell-footer .aurora-shell-language[aria-current="page"]{color:#fff!important}

@media (min-width: 901px) and (max-width: 1120px) {
  .aurora-shell-header{width:calc(100% - 20px);border-radius:18px}
  .aurora-shell-header-inner{height:46px;min-height:46px;grid-template-columns:max-content minmax(0,1fr) max-content;gap:5px;padding:3px 9px}
  .aurora-shell-brand{gap:4px}.aurora-shell-brand strong{font-size:.82rem}.aurora-shell-brand span{font-size:.48rem;letter-spacing:.1em}
  .aurora-shell-nav{gap:2px}.aurora-shell-nav-link{min-height:32px;padding:5px 7px;font-size:.63rem}
  .aurora-shell-controls{gap:3px}.aurora-shell-languages{padding:1px}.aurora-shell-language{min-width:27px;min-height:30px;padding:4px 5px;font-size:.6rem}
  .aurora-shell-theme{width:32px;min-width:32px;min-height:32px}
  .aurora-shell-theme-icon{width:16px;height:16px;flex-basis:16px}
}
.aurora-shell-theme::before{content:'\263E';display:block;font-size:20px;line-height:1;color:var(--aurora-ink,#101c48)}
.aurora-shell-theme>.aurora-shell-theme-icon{display:none!important}
body:has(main.af-home)>.aurora-shell-footer{margin:10px auto 8px;padding:10px 14px 8px;border-radius:20px}
body:has(main.af-home)>.aurora-shell-footer .aurora-shell-footer-main{gap:10px}
body:has(main.af-home)>.aurora-shell-footer .aurora-shell-footer-identity p{margin-top:2px;font-size:.68rem;line-height:1.25}
body:has(main.af-home)>.aurora-shell-footer .aurora-shell-footer-nav .aurora-shell-nav-link{min-height:28px;padding:4px 8px;font-size:.68rem}
body:has(main.af-home)>.aurora-shell-footer .aurora-shell-footer-bottom{margin-top:6px;padding-top:6px;gap:8px;font-size:.65rem}
body:has(main.af-home)>.aurora-shell-footer #amaador-support-controls{margin:4px 0 0!important;width:auto!important;justify-content:flex-end!important}

@media (max-width: 900px) {
  .aurora-shell-header-inner { grid-template-columns: max-content 1fr max-content; }
  .aurora-shell-header .aurora-shell-nav { position: absolute; left: 14px; right: 14px; top: calc(100% + 8px); padding: 12px; border: 1px solid var(--aurora-border); border-radius: 20px; background: var(--aurora-surface-strong); box-shadow: var(--aurora-shadow); display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aurora-shell-header[data-menu-open="true"] .aurora-shell-nav { display: grid; }
  .aurora-shell-menu { display: inline-flex; }
  .aurora-shell-footer-main { grid-template-columns: 1fr auto; }
  .aurora-shell-footer-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .aurora-shell-header, .aurora-shell-footer { width: min(100% - 18px, 1920px); border-radius: 20px; }
  .aurora-shell-header-inner { min-height: 104px; padding: 8px 10px; gap: 6px 8px; grid-template-columns: minmax(0,1fr) auto auto; grid-template-rows:48px 42px; }
  .aurora-shell-brand span { display: none; }
  .aurora-shell-header-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .aurora-shell-header .aurora-shell-brand{grid-column:1!important;grid-row:1!important}
  .aurora-shell-header .aurora-shell-controls { position: static!important; display: contents!important; transform:none!important; }
  .aurora-shell-header .aurora-shell-languages { position: static!important; grid-column:1/-1!important;grid-row:2!important;justify-self:end!important;width:auto!important;gap:0;transform:none!important; }
  .aurora-shell-header .aurora-shell-theme { position:static!important;grid-column:2!important;grid-row:1!important;inset:auto!important;transform:none!important; }
  .aurora-shell-header .aurora-shell-menu { position:static!important;grid-column:3!important;grid-row:1!important;inset:auto!important;transform:none!important; }
  .aurora-shell-language { min-width: 34px; min-height: 38px; padding: 7px 8px; }
  .aurora-shell-theme { width: 40px; min-width: 40px; }
  .aurora-shell-menu { min-height: 40px; padding-inline: 12px; }
  .aurora-shell-nav { grid-template-columns: 1fr; }
  .aurora-shell-nav-link { min-height: 48px; justify-content: flex-start; }
  .aurora-shell-footer { padding: 18px 16px 12px; }
  .aurora-shell-footer-main { grid-template-columns: 1fr; }
  .aurora-shell-footer-nav { grid-template-columns: 1fr; }
  .aurora-shell-footer .aurora-shell-languages { justify-self: start; }
  .aurora-shell-footer-bottom { align-items: flex-start; flex-direction: column; }
}
