/* MFCP Phenylephrine storyboard control — images 3–5 are authoritative.
 * Dark compartment discipline, fixed banner geometry, and proximity illumination.
 */
:root {
  --pe-story-navy: #052f59;
  --pe-story-cobalt: #0a477d;
  --pe-story-teal: #076762;
  --pe-story-black: #07111c;
  --pe-story-cyan: #69ebe6;
}

.module,
.module.compactPage,
.module:not(.compactPage) {
  padding-block: 46px 52px !important;
}

.module > .banner,
.module.compactPage > .banner {
  grid-template-columns: 142px minmax(0, 1fr) 26px !important;
  min-height: 138px !important;
  margin: 0 0 24px !important;
  border: 5px solid #020a13 !important;
  outline: 2px solid var(--pe-gold-bright) !important;
  outline-offset: -10px !important;
  border-radius: 8px !important;
  background:
    linear-gradient(108deg, #ffffff20 0, #ffffff08 17%, #0000 38% 70%, #0008 100%),
    radial-gradient(circle at 72% 38%, #08706f 0, #08466a 34%, #052846 69%, #020b16 100%) !important;
  box-shadow: 0 11px 22px #0012245c, inset 0 1px #ffffff3d, inset 0 -12px 24px #0006 !important;
}

.module > .banner .medal,
.module.compactPage > .banner .medal {
  display: grid !important;
  place-items: center !important;
  padding: 12px !important;
  border-right: 2px solid var(--pe-gold-bright) !important;
  background: radial-gradient(circle at 48% 34%, #123e63, #071827 58%, #02070d 100%) !important;
}

.module > .banner .medal .mfcpSectionIcon,
.module.compactPage > .banner .medal .mfcpSectionIcon {
  width: 88px !important;
  height: 88px !important;
  object-fit: contain !important;
  border: 2px solid var(--pe-gold-bright) !important;
  border-radius: 8px !important;
  box-shadow: 0 7px 15px #000a, 0 0 16px #28cbd342 !important;
}

.module > .banner > div:nth-child(2),
.module.compactPage > .banner > div:nth-child(2) {
  padding: 19px 24px 17px !important;
}

.module > .banner h2,
.module.compactPage > .banner h2 {
  margin: 5px 0 7px !important;
  color: #fff !important;
  font-size: clamp(27px, 2.2vw, 40px) !important;
  line-height: 1.06 !important;
  text-shadow: 0 2px 4px #000 !important;
}

.module > .banner p,
.module.compactPage > .banner p {
  color: var(--pe-story-cyan) !important;
  font: 900 12px/1.3 Arial, sans-serif !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}

.module > .banner aside,
.module.compactPage > .banner aside {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 26px !important;
  padding: 0 7px 0 0 !important;
}

.module > .banner aside i,
.module.compactPage > .banner aside i {
  display: block;
  width: 7px;
  height: 34px;
  border: 1px solid #020a13;
  border-radius: 2px;
  box-shadow: 0 0 8px #0008;
}

.module > .banner aside i:first-child { background: #17c97d; }
.module > .banner aside i:last-child { background: #d52f43; }

.module .table,
.module .table.c2,
.module .table.c3,
.module .table.c4 {
  gap: 0 !important;
  padding: 5px !important;
  border: 3px double var(--pe-gold-bright) !important;
  background: #020b14 !important;
  box-shadow: 0 9px 20px #00162e38 !important;
}

.module .table > * {
  min-height: 58px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--pe-gold) !important;
}

.module .table > b {
  color: var(--pe-story-cyan) !important;
  background: linear-gradient(145deg, #092d51, #04182c) !important;
  font-size: 12px !important;
}

.module .table > span,
.module .table > span.mfcp-row-even,
.module .table > span.mfcp-row-odd {
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1.38 !important;
  text-shadow: 0 1px 2px #0008;
}

.module .table > span.mfcp-row-even {
  background: linear-gradient(145deg, var(--pe-story-cobalt), #06345f) !important;
}

.module .table > span.mfcp-row-odd {
  background: linear-gradient(145deg, var(--pe-story-teal), #064a48) !important;
}

.module .callout,
.module .callout.green {
  border: 3px double var(--pe-gold-bright) !important;
  background: #020b14 !important;
  box-shadow: 0 9px 20px #00162e38 !important;
}

.module .callout > b,
.module .callout.green > b {
  color: var(--pe-gold-bright) !important;
  background: linear-gradient(145deg, #0b467b, #052b50) !important;
}

.module .callout.green > b {
  background: linear-gradient(145deg, #08736d, #064b49) !important;
}

.module .callout > div,
.module .callout.green > div {
  color: #fff !important;
  background: linear-gradient(145deg, #092b49, #071522) !important;
  text-shadow: 0 1px 2px #0008;
}

.contentsTable {
  padding: 5px !important;
  border: 3px double var(--pe-gold-bright) !important;
  background: #020b14 !important;
}

.contentsTable > a {
  color: #fff !important;
  border: 1px solid var(--pe-gold) !important;
  background: linear-gradient(145deg, var(--pe-story-cobalt), #06345f) !important;
}

.contentsTable > a:nth-child(odd) {
  background: linear-gradient(145deg, var(--pe-story-teal), #064a48) !important;
}

.contentsTable > a span,
.contentsTable > a em { color: #fff !important; }

.module .rapid > a,
.module .steps > div,
.module .verify > div,
.module .chemistryFacts > div,
.module .glance > div,
.magLedger article,
.identifierGrid article,
#m19 .refs li,
.literacyGrid > article {
  color: #fff !important;
  border: 1px solid var(--pe-gold) !important;
  background: linear-gradient(145deg, var(--pe-story-cobalt), #06345f) !important;
}

.module .rapid > a:nth-child(even),
.module .steps > div:nth-child(even),
.module .verify > div:nth-child(even),
.module .chemistryFacts > div:nth-child(even),
.module .glance > div:nth-child(even),
.magLedger article:nth-child(even),
.identifierGrid article:nth-child(even),
#m19 .refs li:nth-child(even),
.literacyGrid > article:nth-child(even) {
  background: linear-gradient(145deg, var(--pe-story-teal), #064a48) !important;
}

.module .rapid span,
.module .steps span,
.module .steps strong,
.module .verify span,
.module .chemistryFacts span,
.module .chemistryFacts b,
.module .glance span,
.magLedger article h3,
.magLedger article p,
.identifierGrid h4,
.identifierGrid p,
#m19 .refs a,
.literacyGrid article h3,
.literacyGrid article p {
  color: #fff !important;
}

.dosageFamilyControl {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  margin: 0 0 22px;
  padding: 10px;
  border: 3px double var(--pe-gold-bright);
  border-radius: 7px;
  background: #020b14;
  box-shadow: 0 10px 22px #00162e45;
}

.dosageFamilyControl figure {
  grid-row: 1 / 3;
  position: relative;
  min-height: 350px;
  margin: 0 !important;
  border: 1px solid var(--pe-gold) !important;
  border-radius: 6px !important;
  overflow: hidden;
  background: #020b14;
}

.dosageFamilyControl figure img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  object-position: center;
}

.dosageFamilyControl figure figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 9px 12px;
  border: 1px solid var(--pe-gold);
  border-radius: 4px;
  color: var(--pe-gold-bright) !important;
  background: #020d18e8;
  text-align: center;
  font: 900 11px/1.3 Arial, sans-serif;
  letter-spacing: .08em;
}

.dosageFamilyControl article {
  display: grid;
  align-content: center;
  min-height: 165px;
  padding: 19px 18px;
  border: 1px solid var(--pe-gold);
  border-radius: 6px;
  background: linear-gradient(145deg, var(--pe-story-cobalt), #06345f);
  color: #fff;
}

.dosageFamilyControl article:last-child {
  background: linear-gradient(145deg, var(--pe-story-teal), #064a48);
}

.dosageFamilyControl article small {
  color: var(--pe-story-cyan);
  font: 900 10px/1.2 Arial, sans-serif;
  letter-spacing: .1em;
}

.dosageFamilyControl article h3 {
  margin: 7px 0 6px;
  color: #fff;
  font: 700 22px/1.08 Georgia, serif;
}

.dosageFamilyControl article b {
  color: var(--pe-gold-bright);
  font: 900 18px/1.2 Arial, sans-serif;
}

.dosageFamilyControl article p {
  margin: 7px 0 0;
  color: #fff !important;
  font-size: 14px;
}

.mfcpProximityZone > * {
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease, opacity .2s ease !important;
}

.mfcpProximityZone[data-active] > *:not([data-near]) {
  filter: brightness(.78) saturate(.82) !important;
  opacity: .82;
}

.mfcpProximityZone > [data-near],
.module > .banner[data-near] {
  transform: translateY(-2px);
  filter: brightness(1.18) saturate(1.08) !important;
  opacity: 1 !important;
  box-shadow: 0 0 0 2px var(--pe-gold-bright), 0 0 28px #38e6e66b, 0 12px 24px #00132678 !important;
  position: relative;
  z-index: 2;
}

@media (max-width: 720px) {
  .module > .banner,
  .module.compactPage > .banner {
    grid-template-columns: 88px minmax(0, 1fr) 22px !important;
    min-height: 116px !important;
  }

  .module > .banner .medal .mfcpSectionIcon,
  .module.compactPage > .banner .medal .mfcpSectionIcon {
    width: 62px !important;
    height: 62px !important;
  }

  .module > .banner h2,
  .module.compactPage > .banner h2 {
    font-size: 21px !important;
  }

  .dosageFamilyControl {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .dosageFamilyControl figure { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .mfcpProximityZone > * { transition: none !important; }
}

@media print {
  .mfcpProximityZone[data-active] > *:not([data-near]),
  .mfcpProximityZone > [data-near] {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
  }
}
