body.centered-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: #f9f9f9;
  color: #333;
  text-align: center;
  justify-content: flex-start;
}

body.centered-page.align-left {
  text-align: left;
}

.centered-page main {
  flex: 1; /* allow footer to stick to bottom */
  width: min(960px, 100% - 3rem);
  max-width: none;
  padding: clamp(1.8rem, 3vw, 2.6rem);
  margin: clamp(1.4rem, 3vw, 2rem) auto; /* center vertically */
  background: transparent;
  border: none;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow-x: auto; /* helps tables on narrow screens */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.centered-page .content {
  margin-top: 1rem;
  line-height: 1.7;
  font-size: 1.1rem;
  word-wrap: break-word;
  width: min(820px, 100%);
  margin-inline: auto;
  text-align: center;
}

.centered-page.align-left .content {
  text-align: left;
}

/* Link Styling */
.centered-page a {
  color: #004080;
  text-decoration: underline;
}
.centered-page a:hover {
  text-decoration: none;
  color: #002f5f;
}

/* Button Style (used with [.button] or <a class="button">) */
body.product-page a.button,
body.product-page .button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  background-color: #004080;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
body.product-page a.button:hover,
body.product-page .button:hover {
  background-color: #002f5f;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.centered-page .content h1,
.centered-page .content h2,
.centered-page .content h3 {
  margin: 1.6rem auto 0.8rem;
  max-width: 820px;
  color: #0a2540;
}

.centered-page .content p,
.centered-page .content ul,
.centered-page .content ol {
  margin: 0.9rem auto;
  max-width: 820px;
  text-align: center;
  list-style-position: inside;
}

.centered-page.align-left .content p,
.centered-page.align-left .content ul,
.centered-page.align-left .content ol {
  text-align: left;
  list-style-position: outside;
}

.centered-page .content p + p {
  margin-top: 0.4rem;
}

body.product-page .content a[href^="/products/"],
body.product-page .content a[href^="/bridges/"] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  background: #eef2fb;
  border: 1px solid #d8e2fb;
  color: #0a2540;
  font-weight: 650;
}

body.product-page .content a[href^="/products/"]:hover,
body.product-page .content a[href^="/bridges/"]:hover {
  text-decoration: none;
  background: #e1e8fb;
  border-color: #c5d3f3;
}

.products-stack {
  display: grid;
  gap: 1.4rem;
  margin: 1.4rem auto 2rem;
  width: min(840px, 100%);
}

.product-entry {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid #d6e0f5;
  background: #f5f8ff;
  box-shadow: 0 10px 22px rgba(10, 37, 64, 0.08);
}

.product-entry p {
  margin: 0.25rem 0;
}

.product-entry p:first-child {
  font-weight: 600;
  color: #0a2540;
}

.product-entry a[href^="/products/"] {
  width: fit-content;
}

.download-card {
  display: block;
  padding: 1.05rem 1.25rem;
  background: rgba(248, 250, 255, 0.85);
  border: 1px solid rgba(176, 196, 222, 0.45);
  border-radius: 10px;
  text-decoration: none;
  color: #0a2540;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.download-card strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

[data-product-issue-body],
[data-product-issue-body] .prose {
  white-space: pre-line;
}

[data-product-issue-body] :is(p, ul, ol),
[data-product-issue-body] .prose :is(p, ul, ol) {
  margin-block: 0.8em 1em;
}

[data-product-issue-body] :is(h1, h2, h3, h4, h5, h6),
[data-product-issue-body] .prose :is(h1, h2, h3, h4, h5, h6) {
  margin-block: 1.2em 0.65em;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(15, 51, 88, 0.12);
}

.download-status {
  display: none;
  margin: -0.5rem 0 1.5rem;
  font-size: 0.95rem;
  color: #0a2540;
}

.download-status.is-visible {
  display: block;
}

.download-status.is-error {
  color: #b3261e;
}

.bridge-preview,
.bridge-ghost {
  position: relative;
  margin: 1.8rem auto;
  max-width: 820px;
  padding: 0.75rem 1.25rem;
  border-radius: 18px;
  background: rgba(12, 16, 24, 0.55);
  color: rgba(245, 245, 245, 0.65);
  overflow: hidden;
  box-shadow: 0 18px 40px -32px rgba(0, 0, 0, 0.85);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 55%,
    rgba(0, 0, 0, 0.2) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 55%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.bridge-preview__inner,
.bridge-ghost__inner {
  opacity: 0.14;
  filter: blur(1.5px) grayscale(1);
  line-height: 1.6;
}

.bridge-preview__inner {
  filter: blur(3px) grayscale(1);
  max-height: calc(1.6em * 4);
}

.bridge-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 18, 0.05) 0%,
    rgba(8, 12, 18, 0.35) 30%,
    rgba(8, 12, 18, 0.75) 65%,
    rgba(8, 12, 18, 0.97) 100%
  );
  pointer-events: none;
}

.bridge-ghost {
  margin-top: 0;
  padding-top: 0.2rem;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.7) 45%,
    rgba(0, 0, 0, 0.95) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.7) 45%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.bridge-ghost__inner {
  max-height: calc(1.6em * 7);
  filter: blur(1.5px) grayscale(1);
}

.bridge-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 18, 0.05) 0%,
    rgba(8, 12, 18, 0.3) 30%,
    rgba(8, 12, 18, 0.6) 65%,
    rgba(8, 12, 18, 0.9) 100%
  );
  pointer-events: none;
}


.bridge-access {
  margin: 1.8rem auto 0;
  max-width: 820px;
  text-align: left;
}

body.bridge-page .bridge-access {
  max-width: 100%;
  width: 100%;
  text-align: center;
}

body.bridge-page main {
  width: 100%;
  text-align: center;
}

body.bridge-page .content {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

body.bridge-page .content > * {
  margin-left: auto;
  margin-right: auto;
}

body.bridge-page .content p {
  text-align: center;
}

body.bridge-page .content :is(p, ul, ol) {
  margin-left: auto;
  margin-right: auto;
  max-width: min(900px, 100%);
}

body.bridge-page .content h1,
body.bridge-page .content h2,
body.bridge-page .content h3,
body.bridge-page .content h4,
body.bridge-page .content h5,
body.bridge-page .content h6 {
  text-align: center;
}


body.centered-page .content :is(ul, ol) {
  width: fit-content;
  max-width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.4rem;
  list-style-position: outside;
  text-align: left;
}

body.centered-page .content :is(ul, ol) li {
  text-align: left;
}

body.bridge-page .content blockquote,
body.warm-theme.centered-page .content blockquote {
  max-width: 42rem;
  margin: 3.5rem auto;
  padding: 2.5rem 2rem;
  text-align: center;

  font-style: italic;
  color: var(--text-muted);

  position: relative;
  border-left: none !important;
  background: transparent;
}

.img-w-33 {
  width: 33%;
  max-width: 33%;
  min-width: 220px;
  height: auto;
  display: block;
  margin: 2.5rem auto;
}

.img-invert {
  filter: none;
}

body.exclusive-theme .img-invert {
  filter: invert(1);
}

@media (max-width: 640px) {
  .img-w-33 {
    width: 80%;
    max-width: 80%;
  }
}

body.bridge-page .content blockquote::before,
body.warm-theme.centered-page .content blockquote::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);

  width: 2px;
  background: rgba(0, 0, 0, 0.12);

  /* optional soft glow for dark pages */
  box-shadow: none;
  z-index: -1;
}

body.bridge-page .bridge-download {
  justify-content: center;
  margin-inline: auto;
}

body.bridge-page .bridge-sigil__download {
  margin-inline: auto;

  color: #2f4f6f;
}

.bridge-access__locked {
  display: none;
}

.bridge-access__locked.unlocked,
.bridge-access--unlocked .bridge-access__locked {
  display: block;
}

.bridge-access__status {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--dc-bg-alt);
  font-size: 0.95rem;
}

.bridge-access__status.is-error {
  color: #b3261e;
}

.bridge-access__notice {
  margin: 0 0 1.4rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--dc-stroke);
  background: var(--dc-bg-alt);
}

.bridge-access__notice-copy {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.bridge-access__return {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #2f4f6f;
  background: transparent;
  text-decoration: none;
  font-size: 0.9rem;
  color: #2f4f6f;
}

.bridge-layer__status {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--dc-bg-alt);
  font-size: 0.95rem;
}

.bridge-proceed {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #2f4f6f;
  background: transparent;
  text-decoration: none;
  font-size: 0.95rem;
  color: #2f4f6f;
}

.bridge-sigil {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  margin: 2rem auto 0;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--dc-stroke);
  background: var(--dc-bg-alt);
  max-width: 360px;
}

.bridge-sigil img {
  width: min(220px, 70vw);
  height: auto;
  filter: grayscale(0.1) invert(1);
  opacity: 0.9;
}

body.exclusive-theme .bridge-sigil img {
  filter: grayscale(0.1);
}

.bridge-sigil__note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.75;
  text-align: center;
}

.bridge-download {
  display: flex;
  justify-content: center;
  margin: 2rem auto 0;
}

.bridge-sigil__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid #2f4f6f;
  background: transparent;
  text-decoration: none;
  font-size: 0.95rem;
  color: #2f4f6f;
  cursor: pointer;
}

.bridge-sigil__download[aria-disabled="true"] {
  cursor: pointer;
}

/* Optional: Callout style (for > **Note:** blocks in markdown) */
.centered-page blockquote {
  border-left: 4px solid #ccc;
  margin: 1.5em 0;
  padding-left: 1em;
  color: #555;
  font-style: italic;
}

/* Packs */
body.packs-page main {
  width: min(820px, 100% - 3rem);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}

body.packs-page .content {
  display: grid;
  gap: 1.6rem;
  justify-items: center;
  text-align: center;
}

body.packs-page .content p {
  max-width: 58ch;
}

body.packs-page .content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

body.packs-page .content ul li {
  font-weight: 600;
}

body.packs-page .content ul li a {
  color: #004080;
}

/* B2B */
body.b2b {
  background-color: var(--dc-bg);
}

/* Warm-mode migration overrides */
body.warm-theme .bridge-preview,
body.warm-theme .bridge-ghost {
  background: rgba(30, 30, 30, 0.06);
  color: rgba(30, 30, 30, 0.7);
  box-shadow: var(--dc-shadow);
}

body.warm-theme .bridge-preview::after,
body.warm-theme .bridge-ghost::before {
  background: linear-gradient(to bottom, rgba(247, 246, 242, 0.1), rgba(247, 246, 242, 0.75));
}

body.warm-theme a.button,
body.warm-theme .button,
body.warm-theme .sumup-checkout__button {
  background: #2f4f6f;
  color: #fff;
  border-radius: 6px;
}

body.warm-theme .sumup-checkout__button--secondary {
  background: transparent;
  color: #2f4f6f;
  border: 1px solid #2f4f6f;
}

body.warm-theme .sumup-checkout__summary-refunds,
body.warm-theme .sumup-checkout__terms,
body.warm-theme .sumup-checkout__terms-short {
  font-size: 0.9rem;
  color: var(--dc-text-soft);
}
