/* variant: V16-CumbreDeck | prefix: --cumbre- | ns: CumbreUI | i18n: alpine x-text | stack: tailwind+alpine+remix */

:root {
  --cumbre-brand: #f97316;
  --cumbre-deep: #ea580c;
  --cumbre-ink: #1b2a4a;
  --cumbre-navy: #243656;
  --cumbre-mute: #5c6570;
  --cumbre-line: #e8e0d8;
  --cumbre-paper: #ffffff;
  --cumbre-well: #f7f4ef;
  --cumbre-soft: #fff4eb;
  --cumbre-on-brand: #ffffff;
  --cumbre-max: 72rem;
  --cumbre-gutter: 1.5rem;
  --cumbre-font: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  --cumbre-banner-ratio: 1024 / 500;
  --cumbre-screen-ratio: 576 / 1024;
  --cumbre-logo: 2.5rem;
  --cumbre-ease: 220ms ease;
  --cumbre-mast: 4.25rem;
  --cumbre-radius: 1.05rem;
  --cumbre-shadow: 0 16px 36px rgba(27, 42, 74, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.cumbre-body {
  margin: 0;
  color: var(--cumbre-ink);
  background: var(--cumbre-well);
  font-family: var(--cumbre-font);
  line-height: 1.6;
}

[x-cloak] {
  display: none !important;
}

.cumbre-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 90;
  padding: 0.6rem 1rem;
  background: var(--cumbre-brand);
  color: var(--cumbre-on-brand);
}

.cumbre-skip:focus {
  left: 1rem;
  top: 1rem;
}

.cumbre-shell {
  width: min(var(--cumbre-max), calc(100% - 2 * var(--cumbre-gutter)));
  margin-inline: auto;
}

/* Top mast only — never a bottom dock */
.cumbre-mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cumbre-paper);
  box-shadow: 0 1px 0 var(--cumbre-line);
}

.cumbre-mast__edge {
  height: 4px;
  background: var(--cumbre-brand);
}

.cumbre-mast__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--cumbre-mast);
}

.cumbre-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.cumbre-brand img {
  width: auto;
  height: auto;
  max-width: var(--cumbre-logo);
  max-height: var(--cumbre-logo);
  object-fit: contain;
  flex: none;
}

.cumbre-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.cumbre-brand small {
  display: block;
  color: var(--cumbre-mute);
  font-size: 0.7rem;
  font-weight: 400;
}

.cumbre-links {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 0.15rem;
}

.cumbre-links a {
  padding: 0.45rem 0.7rem;
  color: var(--cumbre-navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.cumbre-links a.is-now,
.cumbre-links a[aria-current="page"] {
  color: var(--cumbre-brand);
  border-bottom-color: var(--cumbre-brand);
}

.cumbre-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cumbre-mast__row > .cumbre-lang {
  display: none;
  margin-left: 0.5rem;
}

.cumbre-lang button {
  border: 0;
  background: transparent;
  color: var(--cumbre-mute);
  cursor: pointer;
  padding: 0.2rem;
  font: inherit;
}

.cumbre-lang button.is-now {
  color: var(--cumbre-ink);
}

.cumbre-burger {
  margin-left: auto;
  border: 1px solid var(--cumbre-line);
  background: var(--cumbre-paper);
  color: var(--cumbre-ink);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0);
  transition: border-color var(--cumbre-ease), box-shadow var(--cumbre-ease);
}

.cumbre-burger:hover {
  border-color: var(--cumbre-brand);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.cumbre-drop {
  display: none;
  border-top: 1px solid var(--cumbre-line);
  background: var(--cumbre-paper);
  padding: 0.5rem 0 1rem;
}

.cumbre-drop.is-open {
  display: block;
}

.cumbre-drop a {
  display: block;
  padding: 0.7rem 0;
  color: var(--cumbre-ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--cumbre-line);
}

.cumbre-drop a.is-now {
  color: var(--cumbre-brand);
}

@media (min-width: 900px) {
  .cumbre-links,
  .cumbre-mast__row > .cumbre-lang {
    display: flex;
  }

  .cumbre-burger,
  .cumbre-drop {
    display: none !important;
  }
}

/* Framed banner: full artwork, scaled down in proportion */
.cumbre-lead {
  padding: 1.15rem 0 0;
}

.cumbre-lead .cumbre-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cumbre-lead__frame {
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem;
  border-radius: var(--cumbre-radius);
  border: 1px solid var(--cumbre-line);
  background: #fff;
  box-shadow: 0 0 0 6px #fff, var(--cumbre-shadow);
}

.cumbre-lead img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 260px;
  border-radius: 0.7rem;
}

.cumbre-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  width: 100%;
  margin-top: 0.7rem;
  color: var(--cumbre-mute);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cumbre-caption span:last-child {
  color: var(--cumbre-brand);
}

@media (max-width: 700px) {
  .cumbre-lead img {
    max-height: 168px;
  }
}

.cumbre-slab {
  padding: 3.5rem 0 2.5rem;
}

.cumbre-kicker {
  margin: 0 0 0.75rem;
  color: var(--cumbre-brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cumbre-slab h1 {
  margin: 0 0 1.75rem;
  max-width: 18em;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

.cumbre-slab__split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .cumbre-slab__split {
    grid-template-columns: 13rem 1fr;
    align-items: start;
  }
}

.cumbre-tally {
  margin: 0;
  padding: 0.15rem 0.9rem;
  list-style: none;
  border: 1px solid var(--cumbre-line);
  border-radius: var(--cumbre-radius);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
}

.cumbre-tally li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--cumbre-line);
}

.cumbre-tally li:last-child {
  border-bottom: 0;
}

.cumbre-tally b {
  color: var(--cumbre-brand);
  font-size: 0.8rem;
}

.cumbre-lede {
  margin: 0 0 1.25rem;
  color: var(--cumbre-navy);
  font-size: 1.05rem;
}

.cumbre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  align-items: center;
}

.cumbre-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.7rem;
  background: var(--cumbre-brand);
  color: var(--cumbre-on-brand);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
  transition: transform var(--cumbre-ease), background var(--cumbre-ease);
}

.cumbre-btn:hover {
  background: var(--cumbre-deep);
  transform: translateY(-2px);
}

.cumbre-textlink {
  color: var(--cumbre-ink);
  font-weight: 700;
}

/* Featured stage + compact thumbs — not a five-up tile wall */
.cumbre-look {
  padding: 1rem 0 3.5rem;
}

.cumbre-look h2 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.cumbre-look__hint {
  margin: 0 0 1.25rem;
  color: var(--cumbre-mute);
  font-size: 0.92rem;
}

.cumbre-stage {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.cumbre-stage__frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem;
  border-radius: 1.2rem;
  border: 1px solid var(--cumbre-line);
  background: #fff;
  box-shadow: 0 0 0 6px #fff, var(--cumbre-shadow);
}

.cumbre-stage__open {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: zoom-in;
}

.cumbre-stage__frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(36rem, 100%);
  max-height: 380px;
  border-radius: 0.75rem;
  animation: cumbreFade 0.45s ease;
}

.cumbre-stage__nav {
  position: absolute;
  inset: auto 0.7rem 0.7rem auto;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}

.cumbre-stage__nav button {
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cumbre-ink);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(27, 42, 74, 0.16);
}

.cumbre-stage__copy {
  text-align: center;
}

.cumbre-stage__copy h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.cumbre-stage__copy p {
  margin: 0;
  color: var(--cumbre-mute);
}

.cumbre-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.cumbre-thumbs button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.6rem;
  padding: 0.35rem;
  border: 1px solid var(--cumbre-line);
  border-radius: 0.75rem;
  background: var(--cumbre-soft);
  cursor: pointer;
  box-shadow: 0 0 0 3px transparent;
  transition: transform var(--cumbre-ease), border-color var(--cumbre-ease), box-shadow var(--cumbre-ease);
}

.cumbre-thumbs button:hover {
  transform: translateY(-4px);
}

.cumbre-thumbs button.is-now {
  border-color: var(--cumbre-brand);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
}

.cumbre-thumbs img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 4.1rem;
}

.cumbre-thumbs span {
  display: none;
}

@media (max-width: 700px) {
  .cumbre-stage__frame img {
    max-height: 240px;
  }

  .cumbre-thumbs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .cumbre-thumbs button {
    flex: 0 0 6.2rem;
  }
}

.cumbre-firm {
  background: var(--cumbre-paper);
  border-top: 1px solid var(--cumbre-line);
  padding: 2.5rem 0;
}

.cumbre-firm h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.cumbre-firm p {
  margin: 0 0 0.85rem;
  max-width: 52rem;
}

.cumbre-firm p:last-child {
  margin-bottom: 0;
}

/* Inner pages — each main is a different architecture */
.cumbre-wash {
  padding: 2.75rem 0 1.35rem;
  background: linear-gradient(180deg, var(--cumbre-soft), var(--cumbre-well));
  border-bottom: 1px solid var(--cumbre-line);
}

.cumbre-wash h1,
.cumbre-inkband h1,
.cumbre-faqmark h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.cumbre-wash .cumbre-lede,
.cumbre-inkband .cumbre-lede {
  margin: 0;
  max-width: 40rem;
}

.cumbre-steps {
  display: flex;
  gap: 0.55rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.cumbre-steps li {
  flex: 1 0 6.2rem;
  padding: 0.7rem 0.55rem;
  border: 1px solid var(--cumbre-line);
  border-radius: 0.75rem;
  background: #fff;
  text-align: center;
  font-size: 0.78rem;
}

.cumbre-steps b {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--cumbre-brand);
}

.cumbre-zig {
  padding: 1.5rem 0 3.5rem;
}

.cumbre-zig article {
  display: grid;
  gap: 1.35rem;
  align-items: center;
  padding: 1.8rem 0;
  border-bottom: 1px dashed var(--cumbre-line);
}

@media (min-width: 800px) {
  .cumbre-zig article {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .cumbre-zig article.is-flip figure {
    order: 2;
  }
}

.cumbre-zig figure {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--cumbre-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0 0 6px #fff, var(--cumbre-shadow);
}

.cumbre-zig img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 260px;
}

.cumbre-zig h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.cumbre-zig p {
  margin: 0;
  color: var(--cumbre-navy);
}

.cumbre-inkband {
  padding: 3rem 0;
  background: var(--cumbre-ink);
  color: #fff;
}

.cumbre-inkband .cumbre-kicker {
  color: #fdba74;
}

.cumbre-chapters {
  padding: 2.25rem 0 3.5rem;
}

.cumbre-chapters article {
  display: grid;
  gap: 0.85rem 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--cumbre-line);
}

@media (min-width: 800px) {
  .cumbre-chapters article {
    grid-template-columns: 5.5rem 1fr;
    align-items: start;
  }
}

.cumbre-chapters b {
  color: var(--cumbre-brand);
  font-size: 2rem;
  line-height: 1;
}

.cumbre-chapters h2 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
}

.cumbre-chapters p {
  margin: 0 0 0.8rem;
  max-width: 46rem;
}

.cumbre-chapters p:last-child {
  margin-bottom: 0;
}

.cumbre-chapters__mark {
  display: block;
  width: auto;
  height: auto;
  max-width: 5.5rem;
  max-height: 5.5rem;
  margin-bottom: 0.85rem;
}

.cumbre-faqmark {
  padding: 2.6rem 0 0;
}

.cumbre-faqmark h1 span {
  color: var(--cumbre-brand);
}

.cumbre-faqrail {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem 0 3.5rem;
}

@media (min-width: 860px) {
  .cumbre-faqrail {
    grid-template-columns: 16.5rem minmax(0, 1fr);
    align-items: start;
  }

  .cumbre-faqrail__index {
    position: sticky;
    top: calc(var(--cumbre-mast) + 0.9rem);
  }
}

.cumbre-faqrail__index p {
  margin: 0 0 0.65rem;
  color: var(--cumbre-brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cumbre-faqrail__index a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cumbre-line);
  color: var(--cumbre-ink);
  text-decoration: none;
  font-weight: 600;
}

.cumbre-faqrail__index a:hover {
  color: var(--cumbre-brand);
}

.cumbre-faqrail__pane article {
  padding: 1.35rem 0 1.6rem;
  border-bottom: 1px solid var(--cumbre-line);
}

.cumbre-faqrail__pane h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.cumbre-faqrail__pane p {
  margin: 0;
  color: var(--cumbre-navy);
}

.cumbre-letterwrap {
  padding: 2.6rem 0 3.75rem;
}

.cumbre-letter {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.7rem 2.1rem 1.55rem;
  border: 1px solid var(--cumbre-line);
  border-left: 8px solid var(--cumbre-brand);
  background: #fffdf8;
  box-shadow: var(--cumbre-shadow);
}

.cumbre-letter h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.25;
  word-break: break-word;
}

.cumbre-letter h1 a {
  color: var(--cumbre-ink);
  text-decoration: none;
}

.cumbre-letter h1 a:hover {
  color: var(--cumbre-brand);
}

.cumbre-letter p {
  margin: 0 0 0.85rem;
}

.cumbre-letter p:last-child {
  margin-bottom: 0;
}

/* Footer */
.cumbre-colophon {
  background: var(--cumbre-ink);
  color: #e8eef6;
  padding: 2rem 0 1.5rem;
}

.cumbre-colophon__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-start;
}

.cumbre-colophon a {
  color: #fdba74;
}

.cumbre-colophon .cumbre-brand {
  color: #fff;
}

.cumbre-colophon .cumbre-brand small {
  color: #c5cedb;
}

.cumbre-colophon__meta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #c5cedb;
  font-size: 0.85rem;
}

.cumbre-colophon__meta p {
  margin: 0.25rem 0;
}

/* Lightbox */
.cumbre-lite {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(27, 42, 74, 0.78);
}

.cumbre-lite img {
  max-width: min(26rem, 100%);
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--cumbre-line);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18), var(--cumbre-shadow);
}

.cumbre-lite button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--cumbre-ink);
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  font-size: 1.2rem;
}

@keyframes cumbreRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cumbreFade {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}

.cumbre-rise {
  animation: cumbreRise 0.55s var(--cumbre-ease) both;
}

.cumbre-rise-2 {
  animation-delay: 0.12s;
}

.cumbre-rise-3 {
  animation-delay: 0.22s;
}
