/* =========================================================
   WDSibyl redesign — "Werkstatt" theme
   Warm workshop palette inherited from the Enlighten footprint.
   Built on Bulma 1.x (self hosted) with a site specific layer.
   Prefix: zib (Sibyl)
   ========================================================= */

:root {
  --zib-paper: #f3ebdd;
  --zib-paper-deep: #ece0cc;
  --zib-surface: #fffcf6;
  --zib-surface-alt: #f7efe2;
  --zib-ink: #2a2018;
  --zib-ink-soft: #5c4a3a;
  --zib-ink-faint: #8a7660;
  --zib-brick: #993333;
  --zib-brick-deep: #7a2626;
  --zib-espresso: #4e3525;
  --zib-espresso-deep: #3a271b;
  --zib-tan: #cc9966;
  --zib-sand: #dcc9ae;
  --zib-note: #fff8cc;
  --zib-teal: #006699;
  --zib-line: #d8c8b0;
  --zib-line-soft: #e7dbc8;

  --zib-radius: 3px;
  --zib-shadow: 0 1px 0 rgba(78, 53, 37, .05), 0 14px 30px -24px rgba(58, 39, 27, .55);
  --zib-shadow-lift: 0 2px 0 rgba(78, 53, 37, .06), 0 22px 40px -26px rgba(58, 39, 27, .6);
  --zib-unit: 6px;

  --zib-serif: "Trebuchet MS", "Fira Sans", Tahoma, "Segoe UI", sans-serif;
  --zib-mono: "Lucida Console", "Courier New", monospace;

  /* Bulma 1.x variable bridge */
  --bulma-family-primary: var(--zib-serif);
  --bulma-family-body: var(--zib-serif);
  --bulma-body-family: var(--zib-serif);
  --bulma-text: var(--zib-ink);
  --bulma-body-color: var(--zib-ink);
  --bulma-body-background-color: var(--zib-paper);
  --bulma-primary: var(--zib-brick);
  --bulma-link: var(--zib-brick);
  --bulma-link-hover: var(--zib-teal);
  --bulma-radius: var(--zib-radius);
  --bulma-radius-small: var(--zib-radius);
  --bulma-border: var(--zib-line);
  --bulma-title-color: var(--zib-ink);
  --bulma-title-family: var(--zib-serif);
  --bulma-title-weight: 700;
  --bulma-strong-color: var(--zib-ink);
  --bulma-content-heading-color: var(--zib-ink);
}

/* ---------- base ---------- */
html {
  background: var(--zib-paper);
  scroll-behavior: smooth;
}

body.zib-body {
  margin: 0;
  font-family: var(--zib-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--zib-ink);
  background:
    radial-gradient(1200px 420px at 50% -260px, #fbf5ea 0%, rgba(251, 245, 234, 0) 70%),
    repeating-linear-gradient(0deg, rgba(78, 53, 37, .018) 0 1px, transparent 1px 6px),
    var(--zib-paper);
  -webkit-font-smoothing: antialiased;
}

.zib-body ::selection {
  background: var(--zib-tan);
  color: var(--zib-espresso-deep);
}

.zib-body a {
  color: var(--zib-brick);
  text-decoration: none;
  text-underline-offset: .18em;
}

.zib-body a:hover {
  color: var(--zib-teal);
  text-decoration: underline;
}

.zib-body :focus-visible {
  outline: 3px solid var(--zib-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.zib-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.zib-masthead-grid > *,
.zib-hero > *,
.zib-grid > *,
.zib-layout > *,
.zib-stats > *,
.zib-footer-grid > * {
  min-width: 0;
}

.zib-body img {
  max-width: 100%;
}

.zib-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--zib-espresso);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--zib-radius) 0;
}

.zib-skip:focus {
  left: 0;
}

/* ---------- utility strip ---------- */
.zib-utility {
  background: var(--zib-espresso-deep);
  color: #e9dccb;
  font-size: 13px;
  letter-spacing: .02em;
}

.zib-utility .zib-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}

.zib-utility a {
  color: #f3e8d8;
}

.zib-utility a:hover {
  color: #fff;
  text-decoration: none;
}

.zib-utility-tagline {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  color: #cdbba4;
}

.zib-utility-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.zib-utility-links .zib-dot {
  color: #7d654f;
}

.zib-langswitch {
  display: inline-flex;
  border: 1px solid #6b5240;
  border-radius: var(--zib-radius);
  overflow: hidden;
}

.zib-langswitch a {
  padding: 3px 9px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.6;
}

.zib-langswitch a[aria-current="true"] {
  background: var(--zib-brick);
  color: #fff;
}

/* ---------- masthead ---------- */
.zib-masthead {
  padding: 20px 0 0;
}

.zib-masthead-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 14px;
  align-items: stretch;
}

.zib-brand {
  background:
    linear-gradient(155deg, #573c2a 0%, var(--zib-espresso) 48%, #422c1e 100%);
  color: #fff;
  border-radius: var(--zib-radius);
  padding: 26px 26px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--zib-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 168px;
}

.zib-brand::before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 180px;
  height: 180px;
  border: 24px solid rgba(204, 153, 102, .16);
  border-radius: 50%;
}

.zib-wordmark {
  font-size: 48px;
  line-height: .95;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.zib-wordmark span {
  color: var(--zib-tan);
}

.zib-slogan {
  margin: 10px 0 0;
  color: var(--zib-note);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.zib-brand-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #d7c4ad;
  letter-spacing: .02em;
}

.zib-headerphoto {
  position: relative;
  border-radius: var(--zib-radius);
  overflow: hidden;
  min-height: 168px;
  border: 1px solid var(--zib-line);
  background: #d9cdb9;
  box-shadow: var(--zib-shadow);
}

.zib-headerphoto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 168px;
  filter: saturate(.92) contrast(1.02);
}

.zib-headerphoto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(58, 39, 27, .38) 0%, rgba(58, 39, 27, .04) 46%, rgba(58, 39, 27, .18) 100%);
}

.zib-photo-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  color: #fff7ea;
  font-size: 12px;
  letter-spacing: .04em;
  text-shadow: 0 1px 8px rgba(40, 26, 16, .6);
}

.zib-photo-chips {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.zib-chip {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #3a271b;
  background: rgba(255, 248, 230, .9);
  border-radius: 2px;
  padding: 3px 8px;
  backdrop-filter: blur(2px);
}

/* ---------- navigation ---------- */
.zib-navbar {
  background: var(--zib-espresso);
  border-radius: var(--zib-radius);
  margin-top: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 24px -20px rgba(58, 39, 27, .8);
  transition: box-shadow .25s ease, background .25s ease;
}

.zib-navbar.is-pinned {
  box-shadow: 0 16px 30px -18px rgba(58, 39, 27, .85);
  background: var(--zib-espresso-deep);
}

.zib-navbar .zib-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
}

.zib-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #7a604a;
  border-radius: var(--zib-radius);
  color: #f0e3d1;
  font: inherit;
  font-size: 13px;
  letter-spacing: .06em;
  padding: 8px 12px;
  cursor: pointer;
}

.zib-nav-toggle .zib-bars {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.zib-nav-toggle .zib-bars b {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
}

.zib-navlist {
  display: flex;
  align-items: stretch;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.zib-navlist a {
  display: block;
  padding: 17px 13px 15px;
  color: #f1e6d8;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  position: relative;
  line-height: 1.2;
}

.zib-navlist a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 9px;
  height: 3px;
  border-radius: 2px;
  background: var(--zib-tan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease, background .22s ease;
}

.zib-navlist a:hover {
  color: #fff;
  text-decoration: none;
}

.zib-navlist a:hover::after,
.zib-navlist a.is-active::after {
  transform: scaleX(1);
}

.zib-navlist a.is-active {
  color: #fff;
}

.zib-navlist a.is-active::after {
  background: var(--zib-brick);
}

.zib-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.zib-nav-cta .button {
  font-weight: 700;
  font-size: 13px;
  border-color: transparent;
}

/* ---------- main layout ---------- */
.zib-main {
  padding: 26px 0 40px;
}

.zib-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 26px;
  align-items: start;
}

.zib-layout.is-full {
  grid-template-columns: minmax(0, 1fr);
}

.zib-content {
  min-width: 0;
}

/* ---------- breadcrumbs ---------- */
.zib-crumbs {
  font-size: 12.5px;
  color: var(--zib-ink-faint);
  margin: 0 0 14px;
  letter-spacing: .02em;
}

.zib-crumbs a {
  color: var(--zib-ink-soft);
}

.zib-crumbs .zib-sep {
  margin: 0 6px;
  color: var(--zib-sand);
}

/* ---------- typography helpers ---------- */
.zib-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--zib-brick);
  font-weight: 700;
  margin: 0 0 8px;
}

.zib-title {
  font-family: var(--zib-serif);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--zib-ink);
  margin: 0 0 12px;
  font-weight: 700;
}

.zib-title-sm {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.zib-lead {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--zib-ink-soft);
  margin: 0 0 18px;
  max-width: 66ch;
}

.zib-prose {
  max-width: 68ch;
}

.zib-prose p {
  margin: 0 0 16px;
}

.zib-prose h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 34px 0 12px;
  font-weight: 700;
  color: var(--zib-ink);
}

.zib-prose h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 26px 0 10px;
  font-weight: 700;
  color: var(--zib-ink);
}

.zib-prose ul,
.zib-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.zib-prose li {
  margin: 6px 0;
}

.zib-prose blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--zib-note);
  border-left: 4px solid var(--zib-tan);
  border-radius: 0 var(--zib-radius) var(--zib-radius) 0;
  color: var(--zib-espresso-deep);
  font-size: 17px;
}

.zib-prose code {
  font-family: var(--zib-mono);
  font-size: .88em;
  background: var(--zib-surface-alt);
  border: 1px solid var(--zib-line-soft);
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--zib-espresso-deep);
}

.zib-prose pre {
  background: var(--zib-espresso-deep);
  color: #f3e8d8;
  padding: 16px 18px;
  border-radius: var(--zib-radius);
  overflow: auto;
  font-family: var(--zib-mono);
  font-size: 13.5px;
  line-height: 1.6;
}

.zib-prose pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.zib-prose a {
  text-decoration: underline;
  text-decoration-color: rgba(153, 51, 51, .35);
  text-decoration-thickness: 1px;
}

.zib-prose a:hover {
  text-decoration-color: currentColor;
}

.zib-rule {
  border: 0;
  border-top: 1px dashed var(--zib-line);
  margin: 26px 0;
}

/* ---------- hero ---------- */
.zib-hero {
  position: relative;
  background:
    linear-gradient(180deg, var(--zib-surface) 0%, #fbf4e7 100%);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  box-shadow: var(--zib-shadow);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 30px;
  align-items: center;
  overflow: hidden;
}

.zib-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(var(--zib-brick), var(--zib-tan));
}

.zib-hero h1 {
  margin-bottom: 14px;
}

.zib-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.zib-plate {
  background: var(--zib-espresso);
  border-radius: var(--zib-radius);
  padding: 16px;
  color: #f4e9d9;
  box-shadow: var(--zib-shadow-lift);
}

.zib-plate img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #fdf8ef;
  border-radius: 2px;
  background: #fdf8ef;
  box-sizing: border-box;
}

.zib-plate dl {
  margin: 14px 2px 2px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 13px;
}

.zib-plate dt {
  color: var(--zib-tan);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 10.5px;
  align-self: center;
}

.zib-plate dd {
  margin: 0;
  color: #f6ecdd;
}

/* ---------- buttons ---------- */
.zib-body .button {
  border-radius: var(--zib-radius);
  font-family: var(--zib-serif);
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.zib-body .button.is-primary,
.zib-btn-primary {
  background: var(--zib-brick);
  border-color: var(--zib-brick);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.zib-body .button.is-primary:hover,
.zib-btn-primary:hover {
  background: var(--zib-brick-deep);
  border-color: var(--zib-brick-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(122, 38, 38, .8);
  text-decoration: none;
}

.zib-body .button.is-outlined,
.zib-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--zib-espresso);
  color: var(--zib-espresso);
}

.zib-body .button.is-outlined:hover,
.zib-btn-ghost:hover {
  background: var(--zib-espresso);
  color: #fff;
  text-decoration: none;
}

.zib-body .button.is-light {
  background: var(--zib-surface-alt);
  border-color: var(--zib-line);
  color: var(--zib-espresso);
}

.zib-linkarrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14.5px;
}

.zib-linkarrow::after {
  content: "\2192";
  transition: transform .2s ease;
}

.zib-linkarrow:hover::after {
  transform: translateX(4px);
}

/* ---------- sections ---------- */
.zib-section {
  margin: 40px 0 0;
}

.zib-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--zib-line);
}

.zib-section-head p {
  margin: 0;
  color: var(--zib-ink-soft);
  max-width: 62ch;
}

/* ---------- cards ---------- */
.zib-grid {
  display: grid;
  gap: 18px;
}

.zib-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zib-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zib-card {
  position: relative;
  background: var(--zib-surface);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  box-shadow: var(--zib-shadow);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.zib-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--zib-sand);
  transition: background .2s ease;
}

.zib-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--zib-shadow-lift);
  border-color: var(--zib-sand);
}

.zib-card:hover::before {
  background: var(--zib-brick);
}

.zib-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.zib-card p {
  margin: 0 0 14px;
  color: var(--zib-ink-soft);
  font-size: 15.5px;
}

.zib-card .zib-meta {
  font-size: 12.5px;
  color: var(--zib-ink-faint);
  letter-spacing: .02em;
  margin-bottom: 10px;
}

.zib-card-media {
  margin: -22px -22px 16px;
  border-bottom: 1px solid var(--zib-line);
  background: var(--zib-surface-alt);
}

.zib-card-media img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.zib-card-framed {
  padding: 14px;
}

.zib-card-framed img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--zib-line);
  border-radius: 2px;
  background: #fff;
  padding: 6px;
  box-sizing: border-box;
}

/* release list */
.zib-release {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--zib-line);
}

.zib-release:last-child {
  border-bottom: 0;
}

.zib-date {
  background: var(--zib-surface-alt);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  text-align: center;
  padding: 6px 4px;
  color: var(--zib-espresso);
  line-height: 1.1;
}

.zib-date .d {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.zib-date .m {
  display: block;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--zib-ink-faint);
}

.zib-release h3 {
  margin: 0 0 3px;
  font-size: 17px;
  line-height: 1.35;
}

.zib-release .zib-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--zib-ink-faint);
}

.zib-release .zib-linkarrow {
  white-space: nowrap;
  font-size: 13px;
}

/* tags */
.zib-body .tag {
  background: var(--zib-surface-alt);
  color: var(--zib-ink-soft);
  border: 1px solid var(--zib-line);
  border-radius: 2px;
  font-family: var(--zib-serif);
  font-size: 11.5px;
  letter-spacing: .04em;
  font-weight: 700;
}

.zib-body .tag.is-brick {
  background: var(--zib-brick);
  border-color: var(--zib-brick);
  color: #fff;
}

.zib-body .tag.is-sand {
  background: var(--zib-sand);
  border-color: var(--zib-sand);
  color: var(--zib-espresso-deep);
}

.zib-tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

/* stat strip */
.zib-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--zib-line);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  overflow: hidden;
}

.zib-stat {
  background: var(--zib-surface);
  padding: 18px 20px;
}

.zib-stat .n {
  display: block;
  font-size: 27px;
  font-weight: 700;
  color: var(--zib-brick);
  line-height: 1.1;
}

.zib-stat .l {
  font-size: 12.5px;
  color: var(--zib-ink-soft);
  letter-spacing: .04em;
}

/* ---------- rail / sidebar ---------- */
.zib-rail {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.zib-panel {
  background: var(--zib-surface);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  box-shadow: var(--zib-shadow);
  padding: 18px;
}

.zib-panel-title {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--zib-brick);
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--zib-line-soft);
}

.zib-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zib-menu li {
  border-bottom: 1px dashed var(--zib-line-soft);
}

.zib-menu li:last-child {
  border-bottom: 0;
}

.zib-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 8px 10px;
  color: var(--zib-ink-soft);
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: border-color .18s ease, color .18s ease, padding .18s ease;
}

.zib-menu a:hover,
.zib-menu a.is-active {
  color: var(--zib-brick);
  border-left-color: var(--zib-brick);
  text-decoration: none;
  padding-left: 13px;
}

.zib-menu a .zib-bullet {
  width: 5px;
  height: 5px;
  background: var(--zib-tan);
  border-radius: 50%;
  flex: none;
}

.zib-extlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zib-extlist li {
  margin: 0 0 2px;
}

.zib-extlist a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--zib-ink-soft);
  line-height: 1.4;
}

.zib-extlist a:hover {
  color: var(--zib-brick);
}

.zib-extlist .zib-extnote {
  display: block;
  font-size: 11.5px;
  color: var(--zib-ink-faint);
}

.zib-note {
  background: var(--zib-note);
  border: 1px solid #ecdf9e;
  border-radius: var(--zib-radius);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--zib-espresso-deep);
}

.zib-note strong {
  display: block;
  margin-bottom: 4px;
}

/* ---------- callout band ---------- */
.zib-band {
  margin: 44px 0 0;
  background:
    linear-gradient(140deg, var(--zib-espresso) 0%, #5a3e2b 60%, #6b4a32 100%);
  color: #f4ead9;
  border-radius: var(--zib-radius);
  padding: 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--zib-shadow);
  position: relative;
  overflow: hidden;
}

.zib-band::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 220px;
  height: 220px;
  border: 26px solid rgba(204, 153, 102, .14);
  border-radius: 50%;
}

.zib-band h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
}

.zib-band p {
  margin: 0;
  color: #dfcdb9;
  max-width: 60ch;
}

.zib-band .button.is-light {
  background: var(--zib-note);
  border-color: var(--zib-note);
  color: var(--zib-espresso-deep);
}

/* ---------- sponsor strip ---------- */
.zib-sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.zib-sponsor {
  background: #fff;
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  flex: 1 1 150px;
  filter: grayscale(1);
  opacity: .86;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.zib-sponsor:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

.zib-sponsor img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* ---------- tables ---------- */
.zib-body .table {
  background: var(--zib-surface);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  color: var(--zib-ink);
  font-size: 15px;
  width: 100%;
  table-layout: fixed;
}

.zib-body .table th,
.zib-body .table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.zib-body .table th {
  background: var(--zib-surface-alt);
  color: var(--zib-espresso);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-color: var(--zib-line);
}

.zib-body .table td {
  border-color: var(--zib-line-soft);
  vertical-align: top;
}

.zib-body .table.is-striped tbody tr:not(.is-selected):nth-child(even) {
  background: #fbf5ea;
}

.zib-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.zib-spec th,
.zib-spec td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--zib-line-soft);
  vertical-align: top;
}

.zib-spec th {
  width: 34%;
  color: var(--zib-espresso);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- forms ---------- */
.zib-form {
  background: var(--zib-surface);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  padding: 24px;
  box-shadow: var(--zib-shadow);
}

.zib-body .label {
  color: var(--zib-espresso);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
}

.zib-body .input,
.zib-body .textarea,
.zib-body .select select {
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  box-shadow: none;
  background: #fffdf9;
  color: var(--zib-ink);
  font-family: var(--zib-serif);
}

.zib-body .input:focus,
.zib-body .textarea:focus {
  border-color: var(--zib-brick);
  box-shadow: 0 0 0 3px rgba(153, 51, 51, .12);
}

.zib-fieldnote {
  font-size: 12.5px;
  color: var(--zib-ink-faint);
  margin-top: 6px;
}

.zib-formstatus {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--zib-radius);
  background: var(--zib-note);
  border: 1px solid #ecdf9e;
  color: var(--zib-espresso-deep);
  font-size: 14px;
}

.zib-formstatus.is-visible {
  display: block;
}

/* ---------- FAQ ---------- */
.zib-faq {
  border-top: 1px solid var(--zib-line);
}

.zib-faq details {
  border-bottom: 1px solid var(--zib-line);
  padding: 4px 0;
}

.zib-faq summary {
  cursor: pointer;
  padding: 15px 30px 15px 4px;
  font-weight: 700;
  color: var(--zib-ink);
  position: relative;
  list-style: none;
  font-size: 16px;
}

.zib-faq summary::-webkit-details-marker {
  display: none;
}

.zib-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--zib-brick);
  font-weight: 700;
}

.zib-faq details[open] summary::after {
  content: "\2013";
}

.zib-faq .zib-faq-body {
  padding: 0 4px 16px;
  color: var(--zib-ink-soft);
  max-width: 70ch;
}

/* ---------- 404 ---------- */
.zib-404 {
  text-align: center;
  padding: 60px 20px;
}

.zib-404 .code {
  font-size: clamp(70px, 14vw, 130px);
  font-weight: 700;
  line-height: 1;
  color: var(--zib-brick);
  letter-spacing: -.04em;
}

/* ---------- footer ---------- */
.zib-footer {
  background: var(--zib-espresso-deep);
  color: #d9c8b4;
  margin-top: 46px;
  padding: 34px 0 0;
  border-top: 6px solid var(--zib-brick);
}

.zib-footer a {
  color: #e7d7c3;
}

.zib-footer a:hover {
  color: #fff;
}

.zib-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
  padding-bottom: 26px;
}

.zib-footer h4 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--zib-tan);
  margin: 0 0 12px;
}

.zib-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zib-footer li {
  margin: 0 0 7px;
  font-size: 14px;
}

.zib-footer .zib-wordmark {
  font-size: 30px;
  color: #fff;
  margin: 0 0 6px;
}

.zib-footer .zib-footer-note {
  font-size: 13.5px;
  color: #bfae99;
  max-width: 34ch;
  margin: 0;
}

.zib-footer-bottom {
  border-top: 1px solid #513a2a;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #a9917b;
}

.zib-footer-bottom .zib-flag {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

/* ---------- reveal (progressive enhancement) ---------- */
.zib-reveal {
  opacity: 1;
  transform: none;
}

.zib-js .zib-reveal {
  opacity: 0;
  transform: translateY(10px) scale(.99);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

.zib-js .zib-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- homepage front page ---------- */
.zib-front {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.zib-front > * {
  min-width: 0;
}

.zib-front .zib-section,
.zib-front .zib-band {
  margin-top: 0;
}

.zib-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(900px 400px at 88% -10%, rgba(204, 153, 102, .22), transparent 60%),
    linear-gradient(125deg, #3a271b 0%, #4e3525 55%, #6b4a32 100%);
  color: #f6ecdd;
  border-radius: var(--zib-radius);
  padding: 46px;
  overflow: hidden;
  box-shadow: var(--zib-shadow);
}

.zib-banner::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 460px;
  height: 460px;
  border: 46px solid rgba(204, 153, 102, .12);
  border-radius: 50%;
  pointer-events: none;
}

.zib-banner::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(var(--zib-brick), var(--zib-tan));
}

.zib-banner-copy {
  position: relative;
  z-index: 1;
}

.zib-banner .zib-eyebrow {
  color: var(--zib-tan);
}

.zib-banner-title {
  font-size: clamp(58px, 8.5vw, 104px);
  line-height: .86;
  letter-spacing: -.035em;
  color: #fff;
  margin: 6px 0 18px;
  font-weight: 700;
}

.zib-banner-lead {
  font-size: 19px;
  line-height: 1.6;
  color: #e7d7c3;
  max-width: 52ch;
  margin: 0 0 24px;
}

.zib-btn-onDark {
  background: transparent !important;
  border: 1.5px solid var(--zib-tan) !important;
  color: #f6ecdd !important;
}

.zib-btn-onDark:hover {
  background: var(--zib-tan) !important;
  color: var(--zib-espresso-deep) !important;
  text-decoration: none;
}

.zib-ledger {
  position: relative;
  z-index: 1;
  background: rgba(255, 252, 246, .06);
  border: 1px solid rgba(204, 153, 102, .4);
  border-radius: var(--zib-radius);
  padding: 22px;
}

.zib-ledger-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--zib-tan);
}

.zib-ledger dl {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 16px;
  font-size: 14px;
}

.zib-ledger dt {
  color: #c9b49a;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  align-self: center;
}

.zib-ledger dd {
  margin: 0;
  color: #fbf4e9;
}

.zib-banner .zib-ledger-link {
  color: var(--zib-tan);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(204, 153, 102, .5);
  text-underline-offset: .2em;
}

.zib-banner .zib-ledger-link:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.zib-ticker {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  background: var(--zib-surface);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  overflow: hidden;
}

.zib-ticker-label {
  background: var(--zib-brick);
  color: #fff;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 18px;
  display: flex;
  align-items: center;
}

.zib-ticker a {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--zib-espresso);
  border-right: 1px dashed var(--zib-line-soft);
}

.zib-ticker a:hover {
  color: var(--zib-brick);
}

.zib-ticker .zib-ticker-more {
  margin-left: auto;
  color: var(--zib-brick);
  border-right: 0;
}

.zib-doorrow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--zib-line);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  overflow: hidden;
}

.zib-door {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px;
  background: var(--zib-surface);
  color: var(--zib-ink);
  transition: background .2s ease;
}

.zib-door:hover {
  background: var(--zib-surface-alt);
  text-decoration: none;
}

.zib-door-n {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--zib-tan);
  font-weight: 700;
}

.zib-door-t {
  font-size: 20px;
  font-weight: 700;
  color: var(--zib-espresso);
}

.zib-door-d {
  font-size: 14px;
  color: var(--zib-ink-soft);
}

.zib-door::after {
  content: "\2192";
  color: var(--zib-brick);
  font-weight: 700;
  margin-top: 6px;
}

.zib-front-news {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 26px;
  align-items: stretch;
}

.zib-feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--zib-surface);
  border: 1px solid var(--zib-line);
  border-left: 5px solid var(--zib-brick);
  border-radius: var(--zib-radius);
  padding: 30px;
  box-shadow: var(--zib-shadow);
}

.zib-feature-meta {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--zib-brick);
  font-weight: 700;
  margin-bottom: 10px;
}

.zib-feature-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

.zib-feature p {
  margin: 0 0 18px;
  color: var(--zib-ink-soft);
}

.zib-feature-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--zib-line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.zib-headlines {
  display: flex;
  flex-direction: column;
  background: var(--zib-surface-alt);
  border: 1px solid var(--zib-line);
  border-radius: var(--zib-radius);
  padding: 8px 20px;
}

.zib-headline {
  display: block;
  padding: 14px 0;
  border-bottom: 1px dashed var(--zib-line);
  color: var(--zib-ink);
}

.zib-headline:last-child {
  border-bottom: 0;
}

.zib-headline:hover {
  text-decoration: none;
  color: var(--zib-brick);
}

.zib-headline .d {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--zib-ink-faint);
  margin-bottom: 3px;
}

.zib-headline .t {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.zib-toollist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  border-top: 1px solid var(--zib-line);
}

.zib-tool {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px dashed var(--zib-line);
  color: var(--zib-ink);
}

.zib-tool:hover {
  text-decoration: none;
}

.zib-tool-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--zib-espresso);
}

.zib-tool:hover .zib-tool-name {
  color: var(--zib-brick);
}

.zib-tool-author {
  grid-column: 1;
  font-size: 12px;
  color: var(--zib-ink-faint);
  letter-spacing: .03em;
}

.zib-tool-desc {
  grid-column: 1;
  font-size: 14px;
  color: var(--zib-ink-soft);
}

.zib-tool::after {
  content: "\2192";
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: var(--zib-tan);
  font-weight: 700;
}

.zib-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--zib-radius);
  overflow: hidden;
  border: 1px solid var(--zib-line);
  box-shadow: var(--zib-shadow);
}

.zib-split-pane {
  padding: 32px;
}

.zib-split-dark {
  background: linear-gradient(140deg, #3a271b, #4e3525);
  color: #f1e5d5;
}

.zib-split-dark .zib-eyebrow {
  color: var(--zib-tan);
}

.zib-split-dark h2 {
  color: #fff;
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.2;
}

.zib-split-light {
  background: var(--zib-surface);
}

.zib-split-light h2 {
  color: var(--zib-espresso);
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.2;
}

.zib-split-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.zib-split-list li {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.zib-split-light .zib-split-list li {
  border-bottom: 1px dashed var(--zib-line);
}

.zib-split-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
}

.zib-split-dark .zib-split-list a {
  color: #f1e5d5;
}

.zib-split-dark .zib-split-list a:hover {
  color: #fff;
}

.zib-split-light .zib-split-list a {
  color: var(--zib-ink);
}

.zib-split-light .zib-split-list a:hover {
  color: var(--zib-brick);
}

.zib-split-list span {
  color: var(--zib-tan);
  font-size: 12px;
  letter-spacing: .05em;
}

.zib-split-light .zib-split-list span {
  color: var(--zib-ink-faint);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .zib-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .zib-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .zib-plate {
    max-width: 560px;
  }

  .zib-banner {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px;
  }

  .zib-ledger {
    max-width: 460px;
  }

  .zib-front-news {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .zib-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .zib-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zib-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zib-masthead-grid {
    grid-template-columns: 1fr;
  }

  .zib-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .zib-doorrow,
  .zib-toollist,
  .zib-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .zib-js .zib-nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .zib-navbar .zib-shell {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .zib-js .zib-navlist {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 6px 0 10px;
    gap: 0;
  }

  .zib-js .zib-navlist.is-open {
    display: flex;
  }

  .zib-navlist {
    flex-direction: column;
    width: 100%;
    padding: 6px 0 10px;
    gap: 0;
  }

  .zib-navlist a {
    padding: 11px 4px;
    border-bottom: 1px solid #634730;
  }

  .zib-navlist a::after {
    display: none;
  }

  .zib-navlist a.is-active {
    color: var(--zib-tan);
  }

  .zib-nav-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  body.zib-body {
    font-size: 16.5px;
  }

  .zib-shell {
    padding: 0 16px;
  }

  .zib-hero {
    padding: 24px 20px;
  }

  .zib-photo-chips {
    display: none;
  }

  .zib-banner {
    padding: 26px 22px;
  }

  .zib-banner-lead {
    font-size: 17px;
  }

  .zib-ticker-label {
    width: 100%;
    justify-content: center;
  }

  .zib-ticker a {
    flex: 1 1 100%;
    border-right: 0;
    border-bottom: 1px dashed var(--zib-line-soft);
  }

  .zib-ticker .zib-ticker-more {
    margin-left: 0;
  }

  .zib-split-pane {
    padding: 24px;
  }

  .zib-feature {
    padding: 22px;
  }

  .zib-grid-3,
  .zib-grid-2 {
    grid-template-columns: 1fr;
  }

  .zib-stats {
    grid-template-columns: 1fr;
  }

  .zib-rail {
    grid-template-columns: 1fr;
  }

  .zib-release {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .zib-release .zib-linkarrow {
    grid-column: 2;
  }

  .zib-brand {
    min-height: 0;
    padding: 22px;
  }

  .zib-wordmark {
    font-size: 40px;
  }

  .zib-band {
    padding: 24px 22px;
  }

  .zib-footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .zib-footer-bottom {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .zib-utility-links {
    font-size: 11.5px;
  }

  .zib-date {
    display: none;
  }

  .zib-release {
    grid-template-columns: 1fr;
  }

  .zib-release .zib-linkarrow {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .zib-js .zib-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .zib-card,
  .zib-card:hover,
  .zib-band .button,
  .zib-body .button {
    transition: none;
    transform: none;
  }
}

@media print {
  .zib-utility,
  .zib-navbar,
  .zib-rail,
  .zib-footer,
  .zib-band,
  .zib-hero-actions {
    display: none !important;
  }

  body.zib-body {
    background: #fff;
    color: #000;
  }

  .zib-content {
    width: 100%;
  }
}
