:root {
  font:
    15px/1.55 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink, #15223d);
  background: var(--bg, #f7f9fc);
  --ink: #15223d;
  --bg: #f7f9fc;
  --accent: #0866ff;
  --line: color-mix(in srgb, var(--ink) 17%, transparent);
  --muted: color-mix(in srgb, var(--ink) 62%, white);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  letter-spacing: -0.04em;
}
h1 {
  font:
    500 clamp(32px, 3.5vw, 52px)/1.1 Georgia,
    serif;
}
h2 {
  font:
    500 29px/1.2 Georgia,
    serif;
  margin-bottom: 18px;
}
h3 {
  font-size: 16px;
}
button,
a {
  touch-action: manipulation;
}
.shell {
  max-width: 1540px;
  padding: 0 28px;
  margin: auto;
}
.top {
  height: 90px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.brand strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}
.brand img,
.monogram {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  object-fit: contain;
}
.monogram {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-size: 23px;
}
.top-label {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top a {
  text-decoration: none;
}
.top select {
  background: transparent;
  border: 0;
  padding: 6px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 24px;
  align-items: start;
}
.content {
  min-width: 0;
}
.hero {
  padding: 36px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 9%, var(--bg));
  margin-bottom: 20px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero p {
  margin-top: 14px;
  font-size: 17px;
}
.search {
  position: relative;
  margin-top: 26px;
}
.search span {
  position: absolute;
  left: 15px;
  top: 12px;
}
.search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #15223d;
}
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.topic {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #ffffffad;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
}
.topic.selected {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, white);
}
.topic span {
  font-size: 23px;
  color: var(--accent);
}
.section {
  margin: 30px 0;
}
.faq {
  background: #ffffffc7;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 8px 0;
}
.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
}
.faq[open] {
  background: color-mix(in srgb, var(--ink) 5%, var(--bg));
}
.faq .prose {
  padding: 0 18px 18px;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
}
.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.article {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-decoration: none;
  display: block;
}
.article span {
  font-size: 24px;
  color: var(--accent);
}
.article small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}
.article:hover {
  border-color: var(--ink);
}
.empty {
  padding: 30px 0;
  color: var(--muted);
}
.back,
.chat-launch,
.chat-close {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 9px 14px;
}
.back {
  margin: 10px 0 24px;
}
.article-page {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.article-page h1 {
  font-size: 36px;
  margin: 10px 0 24px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 0;
}
.chat-panel {
  position: sticky;
  top: 18px;
  height: calc(100dvh - 118px);
  min-height: 420px;
  max-height: 900px;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
}
.chat-panel iframe {
  border: 0;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.chat-caption {
  font-size: 11px;
  text-align: center;
  color: #7b8aa5;
  padding: 7px;
}
.chat-close {
  display: none;
}
.chat-launch {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 6px 30px #0002;
  padding: 14px 22px;
}
.status-page {
  max-width: 600px;
  margin: 12vh auto;
  padding: 30px;
}
.status-page button {
  padding: 10px 20px;
  margin-top: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.no-chat .layout {
  grid-template-columns: minmax(0, 1000px);
  justify-content: center;
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .shell {
    padding: 0 18px;
  }
  .hero {
    padding: 26px;
  }
  .top-label {
    display: none;
  }
}
@media (max-width: 780px) {
  .top {
    height: 76px;
  }
  .brand strong {
    font-size: 20px;
  }
  .top-actions {
    gap: 10px;
  }
  .layout {
    display: block;
  }
  .chat-panel {
    display: none;
    position: fixed;
    inset: 8px;
    height: calc(100dvh - 16px);
    max-height: none;
    z-index: 10;
    min-height: 0;
    box-shadow: 0 0 0 100vmax #15223d66;
  }
  .chat-panel.open {
    display: flex;
  }
  .chat-close {
    display: block;
    border: 0;
    border-radius: 0;
    align-self: stretch;
    text-align: right;
  }
  .chat-launch {
    display: block;
    z-index: 2;
  }
  .hero {
    padding: 24px;
  }
  .hero p {
    font-size: 15px;
  }
  .footer {
    padding-bottom: 100px;
  }
  .article-page {
    padding: 22px;
  }
  .topics {
    grid-template-columns: repeat(2, 1fr);
  }
  .top a {
    font-size: 13px;
  }
}

.center-chat-hidden .chat-panel {
  display: none;
}
.center-chat-hidden .layout {
  grid-template-columns: minmax(0, 1000px);
  justify-content: center;
}
.center-chat-hidden .chat-launch {
  display: block;
}
.search svg {
  width: 20px;
  height: 20px;
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:after {
  content: "⌄";
  font-size: 20px;
  font-weight: 400;
}
.faq[open] summary:after {
  content: "⌃";
}
