/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Self-hosted Inter Variable.
 *
 * Applied to product surfaces (staff app, member portal, auth, mailer-free pages) via the
 * body { font-family } rule below. Public website pages set their own font stack on
 * `.public-site` in public_site.css (and per-theme stylesheets), which has higher specificity
 * than the body selector here, so tenant-themed sites are unaffected. */
@font-face {
  font-family: "Inter Variable";
  src: url("/assets/InterVariable-884c49a1.woff2") format("woff2-variations"),
       url("/assets/InterVariable-884c49a1.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Variable";
  src: url("/assets/InterVariable-Italic-0aa7a4b3.woff2") format("woff2-variations"),
       url("/assets/InterVariable-Italic-0aa7a4b3.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "ChamberHive Wordmark";
  src: url("/assets/ChamberHiveWordmark-d8da0b4a.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

.chamberhive-wordmark {
  color: #111827;
  font-family: "ChamberHive Wordmark", "Arial Rounded MT Bold", Arial, sans-serif;
  font-feature-settings: normal;
  font-size: 1.625rem;
  font-variant-numeric: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

/* Repository-owned marketing articles. Markdown is rendered at runtime, so
 * these rules provide the reading rhythm that utility classes cannot attach
 * directly to generated elements. */
.blog-prose {
  color: #334155;
  font-size: 1.0625rem;
  line-height: 1.82;
}

.blog-prose :is(h2, h3, h4) {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 7rem;
}

.blog-prose h2 {
  margin: 3.25rem 0 1.1rem;
  padding-top: 0.25rem;
  font-size: clamp(1.65rem, 4vw, 2rem);
}

.blog-prose h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.18rem;
}

.blog-prose h4 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.05rem;
}

.blog-prose :is(p, ul, ol, blockquote, pre, table) {
  margin: 0 0 1.45rem;
}

.blog-prose :is(ul, ol) {
  padding-left: 1.5rem;
}

.blog-prose ul {
  list-style: disc outside;
}

.blog-prose ol {
  list-style: decimal outside;
}

.blog-prose li + li {
  margin-top: 0.55rem;
}

.blog-prose strong {
  color: #0f172a;
  font-weight: 700;
}

.blog-prose a {
  border-radius: 0.2rem;
  color: #92400e;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #fbbf24;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

.blog-prose a:hover {
  color: #78350f;
}

.blog-prose a:focus-visible {
  outline: 3px solid rgb(245 158 11 / 0.35);
  outline-offset: 3px;
}

.blog-prose blockquote {
  border-left: 4px solid #febd59;
  color: #475569;
  padding-left: 1.25rem;
}

.blog-prose pre {
  overflow-x: auto;
  border: 1px solid #1e293b;
  border-radius: 0.85rem;
  background: #0a172a;
  color: #f7f5f0;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.blog-prose :not(pre) > code {
  border-radius: 0.3rem;
  background: #e2e8f0;
  color: #0f172a;
  padding: 0.12em 0.35em;
  font-size: 0.92em;
}

.blog-prose hr {
  margin: 3.5rem 0 2rem;
  border: 0;
  border-top: 1px solid #cbd5e1;
}

.blog-prose hr + p {
  border: 1px solid #fde68a;
  border-radius: 1rem;
  background: #fffbeb;
  color: #78350f;
  padding: 1.1rem 1.25rem;
  font-size: 0.96rem;
  line-height: 1.7;
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.blog-prose :is(th, td) {
  border-bottom: 1px solid #cbd5e1;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.blog-prose th {
  color: #0f172a;
  font-weight: 700;
}

.blog-prose > :first-child {
  margin-top: 0;
}

.blog-prose > :last-child {
  margin-bottom: 0;
}

/* Restore native <dialog> centering that Tailwind's preflight strips */
dialog::backdrop {
  background-color: rgb(15 23 42 / 0.5);
}

dialog[open] {
  margin: auto;
}

.directory-rich-text p,
.directory-rich-text div {
  margin-top: 0;
  margin-bottom: 1rem;
}

.directory-rich-text ul,
.directory-rich-text ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.35rem;
}

.directory-rich-text ul {
  list-style: disc outside;
}

.directory-rich-text ol {
  list-style: decimal outside;
}

.directory-rich-text li + li {
  margin-top: 0.25rem;
}

.directory-rich-text :is(p, div, ul, ol):last-child {
  margin-bottom: 0;
}

.event-rich-text {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.event-rich-text p,
.event-rich-text div {
  margin-top: 0;
  margin-bottom: 1rem;
}

.event-rich-text h1,
.event-rich-text h2,
.event-rich-text h3,
.event-rich-text h4,
.event-rich-text h5,
.event-rich-text h6 {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  font-weight: 650;
  line-height: 1.25;
  color: #18181b; /* zinc-900 */
}

.event-rich-text h1 {
  font-size: 1.4rem;
}

.event-rich-text h2 {
  font-size: 1.2rem;
}

.event-rich-text h3 {
  font-size: 1.05rem;
}

.event-rich-text :is(h4, h5, h6) {
  font-size: 1rem;
}

.event-rich-text :is(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

.event-rich-text ul,
.event-rich-text ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.35rem;
}

.event-rich-text ul {
  list-style: disc outside;
}

.event-rich-text ol {
  list-style: decimal outside;
}

.event-rich-text li + li {
  margin-top: 0.25rem;
}

.event-rich-text strong,
.event-rich-text b {
  font-weight: 650;
}

.event-rich-text a {
  color: #1d4ed8; /* blue-700 */
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-rich-text img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 0.5rem;
}

.event-rich-text figure {
  max-width: 100%;
  margin: 0 0 1rem;
}

.event-rich-text figure img {
  margin: 0 auto 0.5rem;
}

.event-rich-text figcaption {
  color: #71717a; /* zinc-500 */
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

.event-rich-text blockquote {
  margin: 0 0 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid #e4e4e7; /* zinc-200 */
  color: #52525b; /* zinc-600 */
}

.event-rich-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: #f4f4f5; /* zinc-100 */
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.event-rich-text pre {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: #f4f4f5; /* zinc-100 */
  border-radius: 6px;
  overflow-x: auto;
}

.event-rich-text pre code {
  padding: 0;
  background: transparent;
}

.event-rich-text :is(p, div, ul, ol, blockquote, pre, figure):last-child {
  margin-bottom: 0;
}

.form-rich-text {
  font-size: 0.875rem;
  line-height: 1.625;
  overflow-wrap: anywhere;
}

.form-rich-text :is(p, div, ul, ol, blockquote, pre) {
  margin: 0 0 0.75rem;
}

.form-rich-text :is(p, div, ul, ol, blockquote, pre):last-child {
  margin-bottom: 0;
}

.form-rich-text h1,
.form-rich-text h2,
.form-rich-text h3,
.form-rich-text h4,
.form-rich-text h5,
.form-rich-text h6 {
  margin: 1rem 0 0.4rem;
  color: #18181b;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.form-rich-text :is(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

.form-rich-text ul,
.form-rich-text ol {
  padding-left: 1.35rem;
}

.form-rich-text ul {
  list-style: disc outside;
}

.form-rich-text ol {
  list-style: decimal outside;
}

.form-rich-text li + li {
  margin-top: 0.25rem;
}

.form-rich-text :is(strong, b) {
  font-weight: 650;
}

.form-rich-text a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-rich-text blockquote {
  padding-left: 0.75rem;
  border-left: 3px solid #e4e4e7;
  color: #52525b;
}

.form-rich-text pre {
  overflow-x: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  background: #f4f4f5;
}

.form-rich-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}
