/* AyFlux learning pages — aligned with the flat, navy simulator interface. */
:root {
  --ink: #253e51;
  --muted: #52667c;
  --navy: #28485e;
  --blue: #2d6084;
  --blue-hover: #234e6e;
  --border: #b7cad9;
  --rule: #d7e2e9;
  --background: #e9edf1;
  --panel: #fff;
  --tab: #edf2f5;
  --notice: #fefbe9;
  --notice-border: #ab984f;
  color: var(--ink);
  background: var(--background);
  font: 12px/1.5 Arial, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
a { color: #245b7f; }
a:hover { color: #173f5d; }
a:focus-visible { outline: 2px solid #238ac4; outline-offset: 2px; }
.site-header {
  min-height: 82px;
  padding: 13px 20px 12px;
  border-bottom: 3px solid #829dad;
  background: var(--navy);
  color: #fff;
}
.site-header .brand {
  display: block;
  width: fit-content;
  margin: 0 0 2px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  letter-spacing: -.45px;
}
.site-header .brand:hover { color: #fff; }
.site-subtitle {
  margin: 3px 0 0;
  color: #e2eaf1;
  line-height: 1.4;
  font-size: 12px;
}
.shell { max-width: none; margin: 0; padding: 12px 20px 25px; }
.notice {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e6d99d;
  border-left: 4px solid var(--notice-border);
  background: var(--notice);
  color: var(--ink);
  line-height: 1.5;
}
.notice strong { font-weight: 700; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0 0 10px;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 8px 11px;
  border: 1px solid #a9bfd0;
  border-radius: 0;
  background: var(--tab);
  color: #31526e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.tabs a:hover:not([aria-current="page"]) { background: #dce8ef; color: #224d6e; }
.tabs a[aria-current="page"] {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.page-intro, .card {
  margin: 0 0 12px;
  padding: 15px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
.page-intro .eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #406b87;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .35px;
  text-transform: uppercase;
}
.page-intro h1 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}
.page-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.card h2 {
  margin: 0 0 9px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
}
.card h3 { margin: 12px 0 6px; font-size: 12px; }
.card p { max-width: 115ch; margin: 0 0 10px; }
.card p:last-child, .card ul:last-child, .card ol:last-child { margin-bottom: 0; }
.card ul, .card ol { max-width: 112ch; margin: 8px 0 11px; padding-left: 20px; }
.card li { margin: 4px 0; padding-left: 2px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 1000px; }
.topic-link {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #f4f7f9;
  text-decoration: none;
}
.topic-link strong { display: block; margin-bottom: 3px; color: #285b7b; font-size: 12px; }
.topic-link span { color: var(--muted); font-size: 12px; }
.topic-link:hover { background: #e8f0f5; }
.actions { display: flex; margin: 15px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 9px 12px;
  border: 1px solid #285b7b;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.btn:hover { color: #fff; background: var(--blue-hover); }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 15px;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: #5b6d7d;
  font-size: 11px;
}
.site-footer a { color: #285b7b; }
@media (max-width: 640px) {
  .site-header { min-height: 0; padding: 12px 14px; }
  .site-header .brand { font-size: 23px; }
  .site-subtitle { font-size: 11px; }
  .shell { padding: 11px 12px 22px; }
  .tabs { gap: 3px; }
  .tabs a { min-height: 32px; padding: 7px 9px; font-size: 11px; }
  .page-intro, .card { padding: 12px; margin-bottom: 10px; }
  .page-intro h1 { font-size: 17px; }
  .topic-grid { grid-template-columns: 1fr; }
}


/* User guide pages use a restrained local topic list, not the simulator tab bar. */
.site-header.ay-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px}
.site-header.ay-header .ay-title-stack{flex:1 1 350px;min-width:0}
.site-header.ay-header .ay-guide-link{display:inline-flex;align-items:center;justify-content:center;min-height:33px;border:1px solid #91abbc;border-radius:0;background:transparent;padding:7px 12px;color:#fff;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}
.site-header.ay-header .ay-guide-link:hover{background:#375c76;color:#fff}
.guide-topics{display:flex;flex-wrap:wrap;gap:6px 17px;align-items:center;margin:0 0 12px;padding:2px 0 9px;border-bottom:1px solid #b7cad9;font-size:12px}
.guide-topics-label{font-weight:700;color:#52667c;margin-right:3px}
.guide-topics a{padding:3px 0;color:#315c7a;text-decoration:none}
.guide-topics a:hover{text-decoration:underline}
.guide-topics a[aria-current="page"]{color:#213e53;font-weight:700;border-bottom:2px solid #2d6084}
@media(max-width:640px){.site-header.ay-header .ay-title-stack{flex-basis:210px}.guide-topics{gap:6px 12px}.guide-topics-label{flex-basis:100%}}

/* Same molecule mark and compact header spacing as the main simulator. */
.site-header.ay-header .ay-header-brand{display:flex;align-items:center;gap:11px;flex:1 1 350px;min-width:0}
.site-header.ay-header .ay-header-brand .ay-title-stack{min-width:0;flex:1 1 auto}
.site-header.ay-header .ay-brand-mark{display:block;width:42px;height:42px;flex:0 0 42px;object-fit:contain}
@media(max-width:640px){.site-header.ay-header .ay-header-brand{gap:9px;flex-basis:210px}.site-header.ay-header .ay-brand-mark{width:36px;height:36px;flex-basis:36px}}

.site-footer .cat-easter-egg{display:inline-block;margin-left:5px;font-size:13px;text-decoration:none;opacity:.52;filter:grayscale(1);vertical-align:middle}
.site-footer .cat-easter-egg:hover,.site-footer .cat-easter-egg:focus-visible{opacity:1;filter:none}
