/* MOLI public website (Website Mode): the generic stylesheet shared by the built-in one-page site, the blog, and any
   provider that does not replace it. Light, high-contrast, brand-token based. Every text/background pair below meets
   WCAG 2.2 AA (4.5:1); see moli.hyperbase.tests.test_palette_contrast. No framework, no jQuery. */

:root {
	--perdix-blue: #23385D;   /* 10.7:1 on white */
	--perdix-gold: #EBB700;   /* background only, under --ink; or text on --perdix-blue (6.3:1) */
	--moli-blue: #6AC1E0;     /* background only, under --ink (never text on white: 2.0:1) */
	--moli-pink: #E713A8;     /* decoration only */
	--moli-pink-ink: #B0107F; /* links / accents as text: 6.6:1 on white */
	--ink: #1F2937;           /* body text: 14:1 on white */
	--ink-muted: #4B5563;     /* 7.6:1 on white */
	--paper: #FFFFFF;
	--paper-tint: #F3F6FA;
	--paper-blue: #E8F6FB;
	--line: #D0D8E8;
	--live-red: #B91C1C;      /* background only, under white (6.5:1): the Live badge and the footer's link to /live/ */
	--focus: var(--moli-pink-ink);
	--radius: 10px;
	--measure: 70ch;
	--font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	overflow-wrap: break-word;	/* long URLs and part numbers wrap instead of widening the page */
}
img, video { max-width: 100%; height: auto; }
a { color: var(--moli-pink-ink); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--perdix-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}
h1, h2, h3, h4 { color: var(--perdix-blue); line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.5em; }
h3 { font-size: 1.25rem; margin-top: 1.25em; }
p, ul, ol, dl, table, blockquote, pre { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.95em; background: var(--paper-tint); padding: 0.1em 0.3em; border-radius: 4px; }
pre { background: var(--paper-tint); padding: 1em; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; padding: 0; }
blockquote { border-left: 4px solid var(--moli-blue); margin-left: 0; padding: 0.25em 0 0.25em 1em; color: var(--ink-muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95em; }
th, td { text-align: left; padding: 0.5em 0.75em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--perdix-blue); background: var(--paper-tint); }
td { overflow-wrap: anywhere; }
@media (max-width: 599.98px) { th, td { padding: 0.4rem; } }
caption { text-align: left; font-weight: 700; color: var(--perdix-blue); padding: 0.5em 0; caption-side: top; }

.container { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.prose img { border-radius: var(--radius); }

/* Skip link */
.skip-link {
	position: absolute; left: 1rem; top: -100px;
	background: var(--perdix-blue); color: #fff; padding: 0.75rem 1rem; border-radius: 0 0 var(--radius) var(--radius);
	z-index: 100; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 0; }
.skip-link:hover, .skip-link:focus { color: #fff; }

/* Header + navigation */
.site-header { background: var(--perdix-blue); color: #fff; position: relative; }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; min-height: 4rem; padding-block: 0.5rem; }
.site-brand { display: inline-flex; align-items: baseline; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; min-height: 44px; }
.site-brand__icon { align-self: center; width: 40px; height: 40px; }
.site-brand__byline { font-weight: 500; font-size: 0.9rem; color: var(--perdix-gold); }
.site-brand:hover, .site-brand:focus, .site-brand:visited { color: #fff; }
.site-brand:hover .site-brand__name { text-decoration: underline; text-underline-offset: 0.2em; }
.nav-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); border-radius: var(--radius); padding: 0.5rem 0.9rem; font: inherit; font-weight: 700; min-height: 44px; cursor: pointer; }
.nav-toggle__bars { display: inline-block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.site-nav { flex-basis: 100%; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav__item a { display: inline-block; color: #fff; text-decoration: none; font-weight: 700; padding: 0.6rem 0.9rem; border-radius: var(--radius); min-height: 44px; }
.site-nav__item a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.site-nav__item a[aria-current="page"] { background: #fff; color: var(--perdix-blue); }
.site-nav__item--cta a { background: var(--perdix-gold); color: var(--ink); }
.site-nav__item--cta a:hover { background: #fff; color: var(--perdix-blue); }
@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-nav { flex-basis: auto; margin-left: auto; }
}
@media (max-width: 899.98px) {
	.site-nav[hidden] { display: none; }
	.site-nav__list { flex-direction: column; padding-bottom: 0.5rem; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: 0.95rem; padding-block: 0.75rem; }
.breadcrumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; margin: 0 0.5rem; color: var(--ink-muted); }
.breadcrumbs [aria-current="page"] { color: var(--ink-muted); }

/* Hero */
.hero { padding-block: 3rem 2rem; }
.hero__icon { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 1rem; }
.hero__title { margin-bottom: 0.25em; }
.hero__lead { font-size: 1.25rem; max-width: var(--measure); color: var(--ink-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Buttons */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 44px; padding: 0.6rem 1.25rem; border-radius: var(--radius);
	font: inherit; background: var(--perdix-blue); color: #fff; text-decoration: none; font-weight: 800; border: 2px solid var(--perdix-blue);
	cursor: pointer;
}
.button:hover { background: #fff; color: var(--perdix-blue); }
.button--secondary { background: #fff; color: var(--perdix-blue); }
.button--secondary:hover { background: var(--perdix-blue); color: #fff; }
.button--gold { background: var(--perdix-gold); color: var(--ink); border-color: var(--perdix-gold); }
.button--gold:hover { background: #fff; color: var(--perdix-blue); border-color: var(--perdix-blue); }
.button--moli { background: var(--moli-blue); color: var(--ink); border-color: var(--moli-blue); }
.button--moli:hover { background: #fff; color: var(--perdix-blue); border-color: var(--perdix-blue); }

/* Cards / sections */
.section { padding-block: 2rem; }
.section--tint { background: var(--paper-tint); }
.section--blue { background: var(--paper-blue); }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); list-style: none; padding: 0; margin: 0 0 1em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card h3 { margin-top: 0; }
.card__meta { color: var(--ink-muted); font-size: 0.9rem; }
.card a.card__link { text-decoration: none; color: var(--perdix-blue); }
.card a.card__link:hover { text-decoration: underline; }

/* Contact card (simple site) */
.contact-card { padding-block: 1rem 2rem; }
.contact-card__list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.contact-card__list dt { font-weight: 800; color: var(--perdix-blue); }
.contact-card__list dd { margin: 0; }

/* Forms */
.form { max-width: 40rem; }
.form__field { margin-bottom: 1.25rem; }
.form__field label { display: block; font-weight: 700; margin-bottom: 0.25rem; color: var(--perdix-blue); }
.form__field input, .form__field textarea, .form__field select { width: 100%; font: inherit; padding: 0.6rem 0.75rem; border: 2px solid var(--line); border-radius: var(--radius); min-height: 44px; color: var(--ink); background: #fff; }
.form__field input[aria-invalid="true"], .form__field textarea[aria-invalid="true"] { border-color: var(--moli-pink-ink); }
.form__help { color: var(--ink-muted); font-size: 0.9rem; margin: 0.25rem 0 0; }
.form__error { color: var(--moli-pink-ink); font-weight: 700; margin: 0.25rem 0 0; }
.form__errors { border: 2px solid var(--moli-pink-ink); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.25rem; }
.form__errors h2 { margin-top: 0; font-size: 1.1rem; color: var(--moli-pink-ink); }
.form__honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; padding: 0; margin: 2rem 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; border-radius: var(--radius); text-decoration: none; border: 1px solid var(--line); }
.pagination [aria-current="page"] { background: var(--perdix-blue); color: #fff; border-color: var(--perdix-blue); }

/* Video */
.video { margin: 1.5rem 0; }
.video video, .video iframe { display: block; width: 100%; background: #000; border-radius: var(--radius); }
.video__caption { font-size: 0.95rem; color: var(--ink-muted); margin-top: 0.5rem; }

/* llms page */
.llms { display: grid; gap: 2rem; }
.llms__toc ol { columns: 2; column-gap: 2rem; padding-left: 1.25rem; }
.llms__footer { color: var(--ink-muted); font-size: 0.95rem; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; }
.llms > article { min-width: 0; }
.llms td, .llms th { overflow-wrap: anywhere; }
@media (min-width: 900px) {
	.llms { grid-template-columns: 16rem 1fr; align-items: start; }
	.llms__toc { position: sticky; top: 1rem; }
	.llms__toc ol { columns: 1; }
}

/* Footer */
.site-footer { background: var(--paper-tint); border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 2rem 1rem; font-size: 0.95rem; }
.site-footer__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.site-footer__name { font-weight: 800; color: var(--perdix-blue); margin-bottom: 0.25rem; }
.site-footer__address { font-style: normal; margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--perdix-blue); min-height: 24px; display: inline-block; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.site-footer__legal { margin-top: 1.5rem; color: var(--ink-muted); }

/* Live: /live/ and the footer's link to it while a livestream is on. The dot pulses three times and rests, inside the
   five seconds after which WCAG 2.2.2 would want a way to stop it. */
.live-badge { display: inline-block; background: var(--live-red); color: var(--paper); padding: 0.05em 0.45em; border-radius: var(--radius); }
.live-dot { display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.4em; border-radius: 50%; background: currentColor; animation: live-pulse 1.5s ease-in-out 3; }
@keyframes live-pulse { 50% { opacity: 0.3; } }
.site-footer .site-footer__live a { background: var(--live-red); color: var(--paper); font-weight: 800; text-decoration: none; padding: 0.1rem 0.75rem; border-radius: 999px; }
.site-footer .site-footer__live a:hover { background: var(--perdix-blue); color: var(--paper); }

/* Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-muted); }

/* Blog */
.post-card__image { display: block; margin: -1.25rem -1.25rem 1rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-tint); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__title { margin-top: 0; font-size: 1.25rem; }
.tags { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag { display: inline-block; font-size: 0.85rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--paper-blue); color: var(--perdix-blue); text-decoration: none; min-height: 24px; }
.tag:hover { background: var(--perdix-blue); color: #fff; }
.post { padding-block: 2rem; }
.post__header { margin-bottom: 1.5rem; }
.post__author-photo { border-radius: 50%; }
.post__hero img { width: 100%; border-radius: var(--radius); }
.post__hero, .post__gallery { margin: 1.5rem 0; }
.post__body figure { margin: 1.5rem 0; }
.post__body figcaption, .gallery figcaption { font-size: 0.95rem; color: var(--ink-muted); margin-top: 0.35rem; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.gallery img { width: 100%; border-radius: var(--radius); }
.post__nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.video--embed { aspect-ratio: 16 / 9; }
.video--embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.linkedin-embed { border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 40rem) minmax(14rem, 1fr); }
@media (max-width: 799.98px) { .contact-grid { grid-template-columns: 1fr; } }

/* Careers (moli.hyperbase.views.careers) */
.careers-posting__all { margin-left: 1.25rem; }
.careers-posting__instructions { color: var(--ink-muted); }
.careers-list__title { margin-top: 0; font-size: 1.25rem; }

/* security.txt, for people (moli.hyperbase.views.website.security_txt_page) */
.security-txt__fields { display: grid; gap: 0.5rem; margin: 0 0 1.5rem; }
.security-txt__fields > div { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; gap: 1rem; }
.security-txt__fields dt { font-weight: 800; color: var(--perdix-blue); }
.security-txt__fields dd { margin: 0; overflow-wrap: anywhere; }
.security-txt__file { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper-tint); padding: 1rem; border-radius: var(--radius); }
@media (max-width: 599.98px) { .security-txt__fields > div { grid-template-columns: 1fr; gap: 0; } }

/* The RSS feed logo, before the text of every link to a feed (website/inc-rss-icon.html) */
.rss-icon { width: 1em; height: 1em; vertical-align: -0.125em; margin-right: 0.35em; flex: none; }

/* Short values that must not break across lines (prices, file paths) */
.nowrap { white-space: nowrap; }
