/* Printable Profile — interactive brochure flipbook */

.profile-flipbook {
  position: relative;
  width: 100%;
  padding: 2.5rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(245, 158, 11, 0.06), transparent 50%),
    linear-gradient(180deg, #070b12 0%, #0a1019 45%, #070b12 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-flipbook__intro {
  width: 100%;
  margin-bottom: 2rem;
  padding: 0 1rem;
  text-align: left;
}

.profile-flipbook__intro-inner {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.profile-flipbook__intro-copy {
  min-width: 0;
}

.profile-flipbook__intro h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: #fff;
}

.profile-flipbook__lead {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.6;
}

.profile-flipbook__sample-pill {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.75rem 0 0 auto;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(201, 162, 77, 0.42);
  border-radius: 999px;
  background: rgba(201, 162, 77, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.62rem, 1.45vw, 0.78rem);
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 768px) {
  .profile-flipbook {
    padding: 1.25rem 0 1.75rem;
  }

  .profile-flipbook__intro {
    margin-bottom: 0.85rem;
    padding: 0 0.75rem;
  }

  .profile-flipbook__intro h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .profile-flipbook__lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .profile-flipbook__sample-pill {
    margin-top: 0.65rem;
  }

  .profile-flipbook__stage {
    padding: 0 0.5rem;
  }

  .profile-flipbook__stage-panel {
    padding: 0.65rem;
    border-radius: 1rem;
  }

  .profile-flipbook__controls {
    margin-top: 0.75rem;
    gap: 0.5rem 0.75rem;
  }

  .profile-flipbook__btn {
    min-height: 2.5rem;
    padding: 0.5rem 0.85rem;
  }

  .profile-flipbook__status {
    font-size: 0.8125rem;
  }
}

.profile-flipbook__stage {
  width: 100%;
  padding: 0 1rem;
}

.profile-flipbook__stage-panel {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.25rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(96, 165, 250, 0.1), transparent 58%),
    linear-gradient(180deg, #243a5c 0%, #16263f 52%, #0d1524 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-flipbook__book-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border-radius: 0.65rem;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.profile-flipbook__book-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 0, 0, 0.35), transparent 62%),
    linear-gradient(180deg, #0a1019 0%, #060a12 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.profile-flipbook__spread-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  background:
    radial-gradient(ellipse 70% 55% at 28% 38%, rgba(255, 255, 255, 0.07), transparent 58%),
    linear-gradient(165deg, #314a6f 0%, #223754 46%, #15263f 100%);
}

.profile-flipbook__spread-fill--left {
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset -16px 0 34px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.profile-flipbook__spread-fill--right {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 16px 0 34px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.profile-flipbook__book {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
}

.profile-flipbook__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.profile-flipbook__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.profile-flipbook__btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.profile-flipbook__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.profile-flipbook__status {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.profile-flipbook__hint {
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 640px) {
  .profile-flipbook__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
  }

  .profile-flipbook__btn[data-flip-prev] {
    justify-self: start;
  }

  .profile-flipbook__status {
    grid-column: 2;
    white-space: nowrap;
  }

  .profile-flipbook__btn[data-flip-next] {
    grid-column: 3;
    justify-self: end;
  }
}

/* Phone landscape — compact chrome, keep the book tall */

@media (max-height: 520px) and (max-width: 960px) {
  .profile-flipbook {
    padding: 0.85rem 0 1rem;
  }

  .profile-flipbook__intro {
    margin-bottom: 0.65rem;
    padding: 0 0.75rem;
  }

  .profile-flipbook__intro h2 {
    margin: 0.15rem 0 0.3rem;
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .profile-flipbook__intro .product-eyebrow {
    margin-bottom: 0;
    font-size: 0.72rem;
  }

  .profile-flipbook__lead {
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .profile-flipbook__sample-pill {
    margin-top: 0.45rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.62rem;
  }

  .profile-flipbook__stage {
    padding: 0 0.5rem;
  }

  .profile-flipbook__stage-panel {
    padding: 0.55rem;
    border-radius: 0.8rem;
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .profile-flipbook__book-wrap {
    border-radius: 0.45rem;
  }

  .profile-flipbook__controls {
    margin-top: 0.55rem;
    gap: 0.45rem 0.65rem;
  }

  .profile-flipbook__btn {
    min-height: 2.25rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  .profile-flipbook__status {
    font-size: 0.78rem;
  }
}

@media (pointer: coarse) {
  .profile-flipbook__curl-guard {
    width: 32%;
    height: 32%;
  }

  .profile-flipbook__book-wrap {
    touch-action: pan-y pinch-zoom;
  }
}

/* Brochure page canvas */

.brochure-page {
  --brochure-footer-height: 3.85em;
  --brochure-footer-gap: 0.4em;
  --brochure-scale: 1;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  color: #e8edf5;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: calc(10px * var(--brochure-scale));
  line-height: 1.35;
  background: #012269;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.brochure-page__body {
  position: absolute;
  top: 0;
  right: 0;
  bottom: calc(var(--brochure-footer-height) + var(--brochure-footer-gap));
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 0.5rem;
  min-height: 0;
  padding: 1.25rem 1.2rem 0.35rem;
  overflow: hidden;
  box-sizing: border-box;
  contain: layout paint;
}

.brochure-page__stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  overflow: hidden;
  contain: paint;
}

.brochure-page__stack > .brochure-card--intro:last-child,
.brochure-page__stack > .brochure-card--prose:last-child {
  flex: 1 1 auto;
  min-height: 3.25rem;
  justify-content: flex-end;
}

.brochure-page__geom {
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  pointer-events: none;
  opacity: 0.26;
  background: url("../images/brochure/page-header.png") no-repeat top center / 100% auto;
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 100%);
}

.brochure-page__geom--soft {
  height: 16%;
  opacity: 0.18;
}

.brochure-page__header {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(107, 159, 212, 0.35);
}

.brochure-page__title {
  margin: 0;
  font-size: 1.65em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #fff;
}

.brochure-page__meta {
  margin: 0.2rem 0 0;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(107, 159, 212, 0.9);
  white-space: nowrap;
}

.brochure-page__footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  height: var(--brochure-footer-height);
  min-height: var(--brochure-footer-height);
  align-items: center;
  padding: 0.45rem 1.25rem 0.6rem;
  border-top: 1px solid rgba(107, 159, 212, 0.28);
  background: #070d17;
  font-size: 0.78em;
  color: rgba(255, 255, 255, 0.62);
  box-sizing: border-box;
  pointer-events: none;
}

.brochure-page__footer span:nth-child(2) {
  text-align: center;
}

.brochure-page__footer span:nth-child(3) {
  text-align: right;
}

/* Cover — matches employee-profile-brochure-page mockup */

.brochure-page--cover .brochure-page__body,
.brochure-page--back-cover .brochure-page__body {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  contain: none;
}

.brochure-cover__body {
  flex: 1 1 auto;
  min-height: 100%;
  padding-top: 0.85rem;
  padding-bottom: 0.5rem;
}

.brochure-cover__brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0;
  min-height: 3.4rem;
}

.brochure-cover__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: auto;
  min-height: 0;
  max-height: 100%;
  padding-top: 0.35rem;
  overflow: hidden;
}

.brochure-cover__brand img {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.55rem;
  object-fit: cover;
  flex-shrink: 0;
}

.brochure-cover__brand-text {
  font-size: 1.65em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brochure-cover__brand-accent {
  color: #e85d4a;
}

.brochure-cover__doc-type {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
  margin-left: auto;
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

.brochure-cover__hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-height: 0;
}

.brochure-cover__kicker {
  margin: 0 0 0.28rem;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b8fb8;
}

.brochure-cover__name {
  margin: 0;
  font-size: 2.55em;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.brochure-cover__role {
  margin: 0.2rem 0 0.95rem;
  font-size: 1.22em;
  font-weight: 500;
  color: #8fa8c4;
}

.brochure-cover__identity {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.brochure-cover__photo {
  display: block;
  width: 6.25rem;
  height: 7.6rem;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brochure-cover__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  padding-top: 0.15rem;
}

.brochure-cover__facts .brochure-field__label {
  font-size: 0.62em;
  letter-spacing: 0.1em;
  color: #6b8fb8;
}

.brochure-cover__facts .brochure-field__value {
  font-size: 0.98em;
  font-weight: 600;
}

.brochure-cover__stamp {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.brochure-cover__bottom-pane {
  flex: 0 0 auto;
  max-height: 46%;
  margin-top: 0.15rem;
  padding: 0;
  overflow: hidden;
  border-color: rgba(201, 162, 77, 0.5);
  background: rgba(7, 13, 23, 0.72);
}

.brochure-cover__notice {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 0;
  background: transparent;
}

.brochure-cover__notice h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92em;
  font-weight: 700;
  color: #d4a853;
}

.brochure-cover__notice p {
  margin: 0;
  font-size: 0.68em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.brochure-cover__footer {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0;
  padding: 0.55rem 0.75rem 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.brochure-cover__footer > div {
  min-width: 0;
}

.brochure-cover__footer-label {
  display: block;
  font-size: 0.58em;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6b8fb8;
}

.brochure-cover__footer-value {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.72em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

/* Back cover */

.brochure-back-cover__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 1.4rem;
  padding-bottom: 0.75rem;
  text-align: center;
}

.brochure-back-cover__panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
}

.brochure-back-cover__logo {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.65rem;
  object-fit: cover;
}

.brochure-back-cover__brand {
  margin: 0;
  font-size: 1.45em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brochure-back-cover__tagline {
  margin: 0.15rem 0 0;
  font-size: 0.82em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.brochure-back-cover__hint {
  margin: 0.35rem 0 0;
  font-size: 0.58em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #8fa8c4;
}

.brochure-back-cover__url {
  margin: 0.55rem 0 0;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6b9fd4;
}

.brochure-back-cover__footer {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Block page-curl interaction on first / last pages */

.profile-flipbook__curl-guards {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.profile-flipbook__curl-guard {
  position: absolute;
  width: 24%;
  height: 24%;
  pointer-events: auto;
  touch-action: none;
  cursor: default;
}

.profile-flipbook__curl-guard--tl {
  top: 0;
  left: 0;
}

.profile-flipbook__curl-guard--bl {
  bottom: 0;
  left: 0;
}

.profile-flipbook__curl-guard--tr {
  top: 0;
  right: 0;
}

.profile-flipbook__curl-guard--br {
  right: 0;
  bottom: 0;
}

/* Fields & cards */

.brochure-field {
  min-width: 0;
}

.brochure-field--wide {
  grid-column: 1 / -1;
}

.brochure-field__label {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(107, 159, 212, 0.88);
}

.brochure-field__value {
  display: block;
  font-size: 0.98em;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  word-break: break-word;
}

.brochure-section-label {
  position: relative;
  z-index: 1;
  margin: 0.1rem 0 0;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(107, 159, 212, 0.92);
}

.brochure-section-intro {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.86em;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.78);
}

.brochure-card {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-bottom: 0;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.brochure-card__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.48rem;
  font-size: 0.96em;
  font-weight: 700;
  color: #fff;
}

.brochure-card--prose .brochure-card__prose p {
  margin: 0 0 0.42rem;
  font-size: 0.84em;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.78);
}

.brochure-card--prose .brochure-card__prose p:last-child {
  margin-bottom: 0;
}

.brochure-card--intro {
  padding: 0.5rem 0.62rem;
  background: rgba(255, 255, 255, 0.03);
}

.brochure-card--intro .brochure-card__prose p {
  margin: 0;
  font-size: 0.84em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.brochure-card--contents .brochure-contents__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.brochure-card--declaration .brochure-card__prose p {
  margin: 0 0 0.45rem;
  font-size: 0.84em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.brochure-card--declaration .brochure-declaration__signatures {
  margin-top: 0.35rem;
}

.brochure-card__title::before {
  content: "";
  width: 0.18rem;
  height: 0.95em;
  border-radius: 999px;
  background: #4f8fd9;
}

.brochure-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem 0.75rem;
}

.brochure-card--summary .brochure-card__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Tables */

.brochure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88em;
}

.brochure-table th {
  padding: 0.42rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  color: rgba(107, 159, 212, 0.9);
}

.brochure-table td {
  padding: 0.48rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  vertical-align: top;
}

.brochure-table--compact th,
.brochure-table--compact td {
  padding: 0.38rem 0.3rem;
}

.brochure-pill {
  display: inline-block;
  padding: 0.12rem 0.35rem;
  border: 1px solid rgba(45, 106, 79, 0.65);
  border-radius: 999px;
  font-size: 0.92em;
  font-weight: 600;
  color: #6ee7b7;
  white-space: nowrap;
}

.brochure-pill--ok {
  border-color: rgba(45, 106, 79, 0.65);
  color: #6ee7b7;
}

/* Contents page */

.brochure-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
  margin-bottom: 0;
}

.brochure-stat {
  padding: 0.72rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.45rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.brochure-stat strong {
  display: block;
  font-size: 1.75em;
  line-height: 1.1;
  color: #fff;
}

.brochure-stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(107, 159, 212, 0.88);
}

.brochure-contents {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.brochure-contents__heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  font-size: 0.98em;
  font-weight: 700;
  color: #fff;
}

.brochure-contents__heading::before {
  content: "";
  width: 0.18rem;
  height: 0.95em;
  border-radius: 999px;
  background: #4f8fd9;
}

.brochure-contents__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brochure-contents__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: start;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brochure-contents__num {
  font-size: 0.85em;
  font-weight: 700;
  color: rgba(107, 159, 212, 0.92);
}

.brochure-contents__text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.brochure-contents__text strong {
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.brochure-contents__text em {
  font-size: 0.8em;
  font-style: normal;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

.brochure-contents__part {
  font-size: 0.78em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.brochure-declaration {
  position: relative;
  z-index: 1;
}

.brochure-declaration__heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.98em;
  font-weight: 700;
  color: #fff;
}

.brochure-declaration__heading::before {
  content: "";
  width: 0.18rem;
  height: 0.95em;
  border-radius: 999px;
  background: #4f8fd9;
}

.brochure-declaration > p {
  margin: 0 0 0.5rem;
  font-size: 0.88em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.brochure-declaration__signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.brochure-signature {
  min-width: 0;
}

.brochure-signature__mark {
  display: block;
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 1.05em;
  color: #fff;
}

.brochure-signature__line {
  display: block;
  height: 1.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.brochure-signature__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.65em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(107, 159, 212, 0.78);
}

.brochure-signature__name {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72em;
  font-weight: 600;
  color: #fff;
}

/* Detail pages — tighter layout for dense content */

.brochure-page--detail,
.brochure-page--contents,
.brochure-page--back-cover {
  font-size: 12px;
}

.brochure-page--cover {
  font-size: 11.25px;
}

.brochure-page--detail .brochure-card,
.brochure-page--contents .brochure-card,
.brochure-page--cover .brochure-card {
  padding: 0.58rem 0.64rem;
}

.brochure-page--detail .brochure-card,
.brochure-page--contents .brochure-card {
  backdrop-filter: none;
}

.brochure-page--detail .brochure-card__grid,
.brochure-page--contents .brochure-card__grid {
  gap: 0.52rem 0.68rem;
}

.brochure-page--detail .brochure-page__stack,
.brochure-page--contents .brochure-page__stack {
  gap: 0.42rem;
}

.brochure-page--detail .brochure-card__title,
.brochure-page--contents .brochure-card__title {
  margin-bottom: 0.4rem;
}

.brochure-page--detail .brochure-table th,
.brochure-page--detail .brochure-table td,
.brochure-page--contents .brochure-table th,
.brochure-page--contents .brochure-table td {
  padding-top: 0.34rem;
  padding-bottom: 0.34rem;
}

.brochure-page--cover .brochure-cover__name {
  font-size: 2.45em;
}

.brochure-page--cover .brochure-cover__identity {
  grid-template-columns: 6rem 1fr;
}

.brochure-page--cover .brochure-cover__photo {
  width: 6rem;
  height: 7.35rem;
}

.brochure-page--detail .brochure-card__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brochure-page__heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brochure-page__continued {
  margin: 0;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(107, 159, 212, 0.82);
}

/* Page-flip library overrides */

@media (min-width: 769px) {
  /* Hide gutter fills mid-spread during curl; keep them on cover/back so empty halves don't flash black */
  .profile-flipbook__book-wrap.is-spread.is-flipping .profile-flipbook__spread-fill {
    opacity: 0;
  }
}

.stf__parent {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

.stf__wrapper {
  overflow: hidden !important;
  background: transparent !important;
}

.stf__block {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: 0;
}

.stf__item {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #012269 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brochure-page.stf__item {
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.stf__outerShadow {
  opacity: 0.72 !important;
}

.stf__innerShadow {
  opacity: 0.82 !important;
}

.stf__hardShadow {
  opacity: 0.65 !important;
}

.stf__hardInnerShadow {
  opacity: 0.55 !important;
}

/* Safe-area padding on notched phones */

@supports (padding: max(0px)) {
  .profile-flipbook__stage-panel {
    padding-left: max(clamp(0.85rem, 3vw, 2.25rem), env(safe-area-inset-left));
    padding-right: max(clamp(0.85rem, 3vw, 2.25rem), env(safe-area-inset-right));
  }

  @media (max-width: 768px) {
    .profile-flipbook__stage-panel {
      padding-left: max(0.85rem, env(safe-area-inset-left));
      padding-right: max(0.85rem, env(safe-area-inset-right));
    }
  }
}
