/* Shared shell for the reading and scenario pages. The approved homepage is isolated. */
.flow-site {
  --flow-paper: #fcfbf8;
  --flow-ink: #23252b;
  --flow-muted: #62635f;
  --flow-line: #dedfd8;
  --flow-red: #bc403a;
  --flow-page-width: 1200px;
  --flow-reading-width: 760px;
  background: var(--flow-paper);
  color: var(--flow-ink);
  font-family: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.flow-site *, .flow-site *::before, .flow-site *::after { box-sizing: border-box; }
.flow-site .wp-site-blocks { display: flex; flex-direction: column; min-height: 100svh; }
.flow-site #main-content { flex: 1 0 auto; margin-top: 0; padding-top: 128px !important; }
.flow-site :is(section, [id]) { scroll-margin-top: 120px; }
.flow-site a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.flow-site ::selection { background: #edc8c4; color: var(--flow-ink); }
.flow-site :is(input, textarea) { caret-color: var(--flow-red); }
.flow-site :is(a, button, input, textarea, summary, select):focus-visible {
  outline: 2px solid var(--flow-red); outline-offset: 4px;
}
html:has(body.flow-site) { scrollbar-color: #b2b4ad #fcfbf8; }
.flow-site :is(time, .sa-pagination) { font-variant-numeric: tabular-nums; }
.flow-site .wp-site-blocks > header {
  position: fixed; z-index: 50; top: 18px; left: 0; right: 0;
  width: min(1040px, calc(100% - 48px)); margin: 0 auto;
  border: 1px solid var(--flow-line); border-radius: 20px;
  corner-shape: superellipse(2); background: var(--flow-paper);
  transform: none; overflow: visible;
}
.flow-site .ustno-header {
  padding: 10px 18px !important; border: 0; border-radius: inherit;
  border-image: none; background: transparent;
}
.flow-site .ustno-header-inner { max-width: none !important; gap: 24px; }
.flow-site .ustno-header .sl-wordmark { width: 112px !important; height: auto; }
.flow-site .ustno-header .wp-block-navigation__container { gap: 26px; }
.flow-site .ustno-header .wp-block-navigation-item__content {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 450 13px/1.4 Rubik, sans-serif; color: var(--flow-ink);
  white-space: nowrap; text-decoration: none;
}
.flow-site .ustno-header a[aria-current] { color: var(--flow-red); text-decoration: underline; }
.flow-site .ustno-header .wp-block-navigation-item:last-child a {
  border: 0; border-image: none; background: var(--flow-ink); color: var(--flow-paper);
  border-radius: 14px; corner-shape: superellipse(2); padding: 12px 18px;
  min-height: 44px; justify-content: center;
}
.flow-site .ustno-header .wp-block-navigation-item:last-child a:hover { background: #3b3d43; }
.flow-site .site-menu-toggle { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.flow-site .site-skip-link { border-radius: 12px; background: var(--flow-paper); color: var(--flow-ink); }
.flow-site .ustno-footer {
  margin-top: 64px; padding: 48px max(24px, calc((100% - 1200px)/2));
  background: var(--flow-paper); border-top: 1px solid var(--flow-line);
  color: var(--flow-muted); font-size: 13px;
}
.flow-site .ustno-footer .ustno-footer-inner {
  display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.4fr);
  align-items: start; gap: 48px; width: 100%; max-width: 1200px !important;
  margin-inline: auto !important;
}
.flow-site .ustno-footer .sl-wordmark { width: 112px; height: auto; }
.flow-site .ustno-footer-tagline { margin-top: 20px; font-size: 13px; line-height: 1.75; }
.flow-site .ustno-footer .ustno-footer-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start; justify-content: start; gap: 0 32px;
}
.flow-site .ustno-footer-links > p { margin: 0; min-width: 0; }
.flow-site .ustno-footer-links a {
  white-space: normal; min-height: 40px; line-height: 1.5; padding: 7px 0;
  color: var(--flow-muted); text-decoration: none;
}
.flow-site .ustno-footer-links a:hover { color: var(--flow-ink); text-decoration: underline; }
@media (max-width: 959px) {
  .flow-site .wp-site-blocks > header { top: 14px; width: calc(100% - 40px); }
  .flow-site .ustno-header { padding: 9px 16px !important; }
  .flow-site .site-menu { border-radius: 18px; }
  .flow-site .site-menu.is-open { background: var(--flow-paper); color: var(--flow-ink); }
  .flow-site .ustno-header .site-menu.is-open .wp-block-navigation-item__content {
    white-space: normal; font-size: 24px; line-height: 1.4;
  }
  .flow-site .ustno-footer .ustno-footer-inner { gap: 32px; }
}
@media (max-width: 599px) {
  .flow-site #main-content { padding-top: 112px !important; }
  .flow-site .ustno-footer { margin-top: 44px; padding: 36px 24px; }
  .flow-site .ustno-footer .ustno-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .flow-site .ustno-footer .ustno-footer-links { gap: 0 20px; }
}
