/*
 * 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;
}

/* Source display faces used by migrated chamber pages. Self-hosting avoids a
 * render-blocking third-party font request on public websites. */
@font-face {
  font-family: "Anton";
  src: url("/assets/Anton-Regular-e6b09352.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Antonio";
  src: url("/assets/Antonio-Medium-05cb936a.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Petit Formal Script";
  src: url("/assets/PetitFormalScript-Regular-b42ec6b4.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Covered By Your Grace";
  src: url("/assets/CoveredByYourGrace-Regular-6b3bc145.woff2") format("woff2");
  font-weight: 400;
  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,
.news-rich-text img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 0.5rem;
}

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

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

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

/* Click to enlarge for event description and news pictures shown smaller than
 * they are (picture_zoom_controller.js). Loaded on staff, portal and public pages.
 * The selectors carry two classes so a theme's button or image styles can't
 * outrank them. Icons are Heroicon mini magnifying-glass-plus and x-mark. */
.picture-zoom-host {
  position: relative;
}

.picture-zoom-host .picture-zoom-image {
  cursor: zoom-in;
}

.picture-zoom-host .picture-zoom-button {
  position: absolute;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgb(15 23 42 / 0.72);
  color: #fff;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 120ms ease;
}

.picture-zoom-host .picture-zoom-button::before,
.picture-zoom-dialog .picture-zoom-dialog__close::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: var(--picture-zoom-icon) center / contain no-repeat;
  mask: var(--picture-zoom-icon) center / contain no-repeat;
}

.picture-zoom-host .picture-zoom-button::before {
  --picture-zoom-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M9%206a.75.75%200%2001.75.75v1.5h1.5a.75.75%200%20010%201.5h-1.5v1.5a.75.75%200%2001-1.5%200v-1.5h-1.5a.75.75%200%20010-1.5h1.5v-1.5A.75.75%200%20019%206z%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M2%209a7%207%200%201112.452%204.391l3.328%203.329a.75.75%200%2011-1.06%201.06l-3.329-3.328A7%207%200%20012%209zm7-5.5a5.5%205.5%200%20100%2011%205.5%205.5%200%20000-11z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E");
}

.picture-zoom-host:hover .picture-zoom-button,
.picture-zoom-host .picture-zoom-button:focus-visible {
  opacity: 1;
}

.picture-zoom-host .picture-zoom-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgb(15 23 42 / 0.6);
}

/* Touch screens have no hover, so the button stays in view. */
@media (hover: none) {
  .picture-zoom-host .picture-zoom-button {
    opacity: 1;
  }
}

dialog.picture-zoom-dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

dialog.picture-zoom-dialog::backdrop {
  background: rgb(15 23 42 / 0.85);
}

.picture-zoom-dialog .picture-zoom-dialog__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 88vh;
  margin: 0;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
  cursor: zoom-out;
}

.picture-zoom-dialog .picture-zoom-dialog__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.92);
  color: rgb(15 23 42);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
  cursor: pointer;
}

.picture-zoom-dialog .picture-zoom-dialog__close::before {
  --picture-zoom-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20d%3D%22M6.28%205.22a.75.75%200%2000-1.06%201.06L8.94%2010l-3.72%203.72a.75.75%200%20101.06%201.06L10%2011.06l3.72%203.72a.75.75%200%20101.06-1.06L11.06%2010l3.72-3.72a.75.75%200%2000-1.06-1.06L10%208.94%206.28%205.22z%22%2F%3E%3C%2Fsvg%3E");
}

.picture-zoom-dialog .picture-zoom-dialog__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.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;
}
