/* RFFM docs, using the shared Superpose Furo visual system. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,400&display=swap');

html,
body,
input,
button,
select,
textarea {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; margin-top: 2.75rem; }
h3 { font-size: 1.2rem; }

.sidebar-tree .reference,
.sidebar-logo-text {
  font-family: "Inter", sans-serif;
}

.sidebar-brand-text,
.header-center .brand {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.article-container > section p { line-height: 1.7; }

.admonition,
table.docutils,
.highlight,
pre {
  border-radius: 6px !important;
  box-shadow: none !important;
  border-width: 1px !important;
}

.announcement,
.announcement__info {
  background: #000000 !important;
  color: #ffffff !important;
  border-bottom: 1px solid #000000 !important;
  font-family: "Inter", sans-serif !important;
}
.announcement a { color: #ffffff; text-decoration: underline; }
.admonition-title { font-weight: 600; }

@media (max-width: 46em) {
  .announcement {
    height: auto;
    min-height: var(--header-height);
    overflow-x: visible;
  }
  .announcement-content {
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: normal;
  }
}

.badge {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--color-background-border, #e0e0e0);
  color: var(--color-foreground-muted, #555555);
  background: transparent;
  vertical-align: middle;
}
.badge-live { color: #ffffff; background: #00bb7f; border-color: #00bb7f; }

table.docutils {
  border-collapse: collapse;
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
}
table.docutils th,
table.docutils td {
  border: 1px solid var(--color-background-border, #e0e0e0) !important;
  padding: 0.5rem 0.75rem;
}
table.docutils th {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

a { text-decoration: underline; text-underline-offset: 3px; }

code, pre, .highlight {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
}
:not(pre) > code {
  border-radius: 4px;
  border: 1px solid var(--color-background-border, #e0e0e0);
}

.toc-tree code,
.toc-tree .pre {
  overflow-wrap: anywhere;
  word-break: break-word;
}
