/* Static audit demo: banner, toast and index hub.
   Loaded after each artboard's own styles. demo.js keeps --demo-banner-h in sync. */

:root { --demo-banner-h: 44px; }

/* In-page anchors land below the sticky banner. */
html { scroll-padding-top: calc(var(--demo-banner-h) + 12px); }

/* Side panels that stick at top: 24px in the artboards stay clear of the banner. */
body:not(.hub) [style*="position: sticky"] { top: calc(var(--demo-banner-h) + 24px) !important; }

/* ------------------------------------------------------------------ banner */

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  margin: 0;
  padding: 10px 24px;
  background: #1A3040;
  color: #FFFFFF;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}
.demo-banner__text { flex: 1 1 320px; min-width: 0; margin: 0; }
.demo-banner__pill {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 9px;
  border-radius: 999px;
  background: #D4B870;
  color: #1A3040;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  vertical-align: 1px;
}
.demo-banner .demo-banner__link,
.demo-banner .demo-banner__link:hover {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.demo-banner .demo-banner__link:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
@media (max-width: 480px) { .demo-banner { padding: 10px 16px; } }

/* ------------------------------------------------------------------- toast */

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1001;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #1A3040;
  box-shadow: 0 12px 32px rgba(26, 48, 64, .18), 0 1px 3px rgba(26, 48, 64, .12);
  font: 500 14px/1.45 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.demo-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .demo-toast { transition: none; } }

/* --------------------------------------------------------------- index hub */

body.hub {
  margin: 0;
  background: #FAF7F1;
  color: #1A3040;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hub *, .hub *::before, .hub *::after { box-sizing: border-box; }
.hub a { color: #3D6472; }
.hub a:hover { color: #335663; }
.hub :focus-visible { outline: 2px solid #3D6472; outline-offset: 2px; }

.hub-wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 48px; }
.hub-logo { display: block; width: 148px; height: auto; }
.hub-title {
  margin: 36px 0 0;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.hub-lead { margin: 16px 0 0; max-width: 66ch; font-size: 17px; line-height: 1.6; color: #4A6070; }
.hub-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hub-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(26, 48, 64, .18);
  border-radius: 999px;
  background: #FFFFFF;
  color: #1A3040;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.hub-nav a:hover { border-color: #3D6472; color: #3D6472; }

.hub-section { margin-top: 56px; }
.hub-section__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.hub-section__count { font-size: 14px; font-weight: 500; letter-spacing: 0; color: #5E7585; }

.hub-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid rgba(26, 48, 64, .14); }
.hub-item {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 48, 64, .10);
}
.hub-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-item__link { font-size: 16px; font-weight: 600; text-decoration: none; }
.hub-item__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hub-item__desc { margin: 0; font-size: 15px; line-height: 1.5; color: #4A6070; }
.hub-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #D8F2EE;
  color: #277768;
  font-size: 12px;
  font-weight: 600;
}

.hub-footer {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 48, 64, .12);
  font-size: 13px;
  color: #5E7585;
}

@media (max-width: 640px) {
  .hub-wrap { padding: 36px 16px 40px; }
  .hub-title { margin-top: 28px; font-size: 30px; }
  .hub-lead { font-size: 16px; }
  .hub-item { grid-template-columns: minmax(0, 1fr); }
}
