/* Membrane "clean" design language — general, reusable style.
 * Load after bulma.min.css. Scope content with class="clean".
 * Provides: base palette/typography, eyebrow/lead/description text,
 * cta links, proof/terminal code panels, the two-column feature row,
 * and the resources/talks callout sections.
 * Page-specific layouts (e.g. the homepage hero) live in a separate file.
 */
.clean {
  --mf-ink: #17313c;
  --mf-muted: #536872;
  --mf-accent: #087bc1;
  --mf-line: #dce8f2;
  --mf-soft: #f0f8ff;
  --page-width: 1264px;
  color: var(--mf-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
.clean a:focus-visible { outline: 3px solid #b56b12; outline-offset: 5px; }
.clean .container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: 32px;
}

.clean .eyebrow {
  margin: 0 0 17px;
  color: var(--mf-accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 750;
}
.clean .lead { margin: 0 0 10px; font-size: 17px; font-weight: 650; }
.clean .description {
  max-width: 490px;
  margin: 0;
  color: var(--mf-muted);
  font-size: 15px;
  line-height: 1.8;
}
.clean .cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  color: var(--mf-accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.clean .cta:hover { border-bottom-color: currentColor; }
.clean .cta span { font-size: 19px; }

/* Dark code / config panels, plain or terminal-styled. */
.clean .proof {
  overflow: hidden;
  border: 1px solid #284654;
  border-radius: 12px;
  background: #112934;
  color: #e2f1f2;
  box-shadow: 0 16px 40px rgb(20 47 57 / 7%);
}
.clean .proof pre,
.clean .proof code {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dfeff2;
  text-shadow: none;
  font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.clean .proof pre { margin: 0; padding: 24px; }
.clean .proof code { padding: 0; }
.clean .code-key { color: #72d6ff; }

/* Two-column feature row, alternating background/order. */
.clean .feature { padding: 54px 0; }
.clean .feature > .container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: 32px;
}
.clean .feature:nth-of-type(odd) { background: #f0f8ff; }
.clean .feature:nth-of-type(even) { background: #fff; }
.clean .feature .columns {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
}
.clean .feature .column {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 0;
}
/* Text stays first in the DOM; alternating placement is desktop-only. */
.clean .feature:nth-of-type(even) .columns { flex-direction: row-reverse; }
.clean .feature h2 {
  max-width: 490px;
  margin: 0 0 21px;
  color: var(--mf-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 680;
  line-height: 1.14;
  letter-spacing: -.03em;
}

@media (max-width: 768px) {
  .clean .feature { padding: 40px 22px; }
  .clean .feature .columns,
  .clean .feature:nth-of-type(even) .columns { flex-direction: column; gap: 28px; }
  .clean .feature .column { flex: auto; width: 100%; }
  .clean .feature h2 { font-size: 30px; }
  .clean .proof pre { padding: 18px; }
  .clean .proof pre,
  .clean .proof code { font-size: 11px; }
}
@media (max-width: 600px) {
  .clean .container,
  .clean .feature > .container { padding-inline: 22px; }
  .clean .feature { padding-block: 40px; }
}

/* Terminal-styled proof panel: shell prompts and log output. Unscoped so
 * any page can drop in a terminal example without the .clean wrapper. */
.terminal {
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
  background: #062c2f;
  color: #a8b9b9;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #082326;
}
.terminal-title {
  margin-left: 8px;
  color: #789292;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.terminal pre {
  margin: 0;
  padding: 24px;
  background: transparent;
  color: #a8b9b9;
  font-size: 0.82rem;
  line-height: 1.65;
}
.terminal code { background: transparent; color: inherit; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ff6b67; }
.terminal-dot.yellow { background: #f8c555; }
.terminal-dot.green { background: #54c878; }
.prompt { color: #30cef3; font-weight: 700; }
.log-time { color: #829494; }
.log-info { color: #30cef3; font-weight: 600; }
.log-value { color: #d7e6d0; }

.tutorial .copy { max-width: 960px; }
.tutorial-note { margin-top: 1.25rem; color: #607070; }

/* Guides-and-resources callout. */
.membrane-resources {
  padding: 64px 28px;
  background: #f5f9fc;
  color: #17313c;
  font-family: inherit;
}
.membrane-resources,
.membrane-resources * { box-sizing: border-box; }
.membrane-resources .resources-container { max-width: 1140px; margin-inline: auto; }
.membrane-resources .resources-eyebrow {
  margin: 0 0 12px;
  color: #087bc1;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.membrane-resources .resources-title {
  margin: 0 0 12px;
  color: #17313c;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.035em;
}
.membrane-resources .resources-intro { margin: 0; color: #536872; font-size: 16px; line-height: 1.7; }
.membrane-resources .resources-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: 28px;
  margin-top: 30px;
}
.membrane-resources .quickstart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid #c9e1f2;
  border-radius: 10px;
  background: #e9f4fc;
}
.membrane-resources .quickstart-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: #35657e;
  font-size: 12px;
  line-height: 1.5;
}
.membrane-resources .quickstart-meta svg { width: 16px; height: 16px; flex-shrink: 0; }
.membrane-resources .quickstart h3 {
  margin: 0 0 12px;
  color: #17313c;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.025em;
}
.membrane-resources .quickstart p { margin: 0 0 24px; color: #536872; font-size: 15px; line-height: 1.7; }
.membrane-resources .quickstart .resource-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: auto;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 16px;
  border: 1px solid #087bc1;
  border-radius: 6px;
  background: #087bc1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.membrane-resources .quickstart .resource-button:hover { background: #06649e; border-color: #06649e; }
.membrane-resources .resource-list { border-block: 1px solid #d6e2eb; }
.membrane-resources .resource-row { padding: 19px 2px; border-bottom: 1px solid #d6e2eb; }
.membrane-resources .resource-row:last-child { border-bottom: 0; }
.membrane-resources .resource-row h3 { margin: 0; color: #17313c; font-size: 17px; font-weight: 650; line-height: 1.4; }
.membrane-resources .resource-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 30px;
  color: #17313c;
  text-decoration: none;
}
.membrane-resources .resource-link:hover { color: #087bc1; }
.membrane-resources .resource-arrow { color: #087bc1; font-size: 21px; font-weight: 400; }
.membrane-resources .resource-row p { margin: 5px 28px 0 0; color: #536872; font-size: 14px; line-height: 1.65; }
.membrane-resources .reference-link { color: #087bc1; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
  .membrane-resources { padding: 40px 22px; }
  .membrane-resources .resources-title { font-size: 30px; }
  .membrane-resources .resources-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .membrane-resources .quickstart { padding: 24px; }
  .membrane-resources .resource-row { padding-block: 20px; }
}

/* Tech-talk / event schedule callout. */
.membrane-talks { padding: 64px 28px; background: #fff; color: #17313c; }
.membrane-talks .talks-container { max-width: 1140px; margin-inline: auto; }
.membrane-talks .talks-eyebrow,
.membrane-talks .talks-label {
  margin: 0 0 12px;
  color: #087bc1;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.membrane-talks h2 {
  margin: 0 0 14px;
  color: #17313c;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.membrane-talks .talks-intro { max-width: 720px; margin: 0; color: #536872; font-size: 16px; line-height: 1.7; }
.membrane-talks .talks-meta { margin: 14px 0 0; color: #617780; font-size: 12px; line-height: 1.7; }
.membrane-talks .talks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 36px;
  margin-top: 30px;
}
.membrane-talks .talks-next {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid #c9e1f2;
  border-radius: 10px;
  background: #e9f4fc;
}
.membrane-talks .talks-date { display: block; margin: 4px 0 18px; color: #35657e; font-size: 14px; font-weight: 600; line-height: 1.7; }
.membrane-talks .talks-date span { display: block; font-size: 12px; font-weight: 400; }
.membrane-talks .talks-next h3 {
  margin: 0 0 14px;
  color: #17313c;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.membrane-talks .talks-next > p:not(.talks-label) { margin: 0 0 24px; color: #536872; font-size: 15px; line-height: 1.7; }
.membrane-talks .talks-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: auto;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 16px;
  border: 1px solid #087bc1;
  border-radius: 6px;
  background: #087bc1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.membrane-talks .talks-button:hover { background: #06649e; border-color: #06649e; color: #fff; }
.membrane-talks .talks-schedule-title { margin: 0 0 6px; color: #536872; font-size: 13px; font-weight: 600; line-height: 1.5; }
.membrane-talks .talks-list { margin: 0; padding: 0; list-style: none; }
.membrane-talks .talks-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid #d6e2eb;
}
.membrane-talks .talks-calendar {
  flex: 0 0 58px;
  padding: 8px 4px;
  border: 1px solid #dce8f2;
  border-radius: 7px;
  background: #f5f9fc;
  text-align: center;
}
.membrane-talks .talks-calendar span {
  display: block;
  color: #087bc1;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.membrane-talks .talks-calendar strong { display: block; color: #17313c; font-size: 23px; font-weight: 650; line-height: 1.2; }
.membrane-talks .talks-list h4 { margin: 0 0 5px; color: #17313c; font-size: 17px; font-weight: 650; line-height: 1.4; }
.membrane-talks .talks-list p { margin: 0; color: #617780; font-size: 12px; line-height: 1.6; }
.membrane-talks .talks-details {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-top: 12px;
  color: #087bc1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.membrane-talks .talks-details:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
  .membrane-talks { padding: 40px 22px; }
  .membrane-talks h2 { font-size: 30px; }
  .membrane-talks .talks-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .membrane-talks .talks-next { padding: 24px; }
}
