:root{
  --mfcp-form-navy:#03172c;
  --mfcp-form-blue:#0b4d83;
  --mfcp-form-gold:#d7a91d;
  --mfcp-form-cyan:#48e1da;
  --mfcp-form-cream:#fffaf0;
}

/* MFCP dosage-form identity system: image first, label second, instruction third. */
.mfcp-form-grid{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:.75rem;
}
.mfcp-form-item{
  display:grid;
  grid-template-rows:106px auto 1fr;
  align-items:center;
  min-height:224px;
  overflow:hidden;
  padding:0 0 .8rem;
  border:2px solid var(--mfcp-form-gold);
  border-radius:1rem;
  background:#fff;
  color:var(--mfcp-form-navy);
  font-size:.95rem;
  font-weight:900;
  box-shadow:0 8px 18px rgba(3,23,44,.18);
}
.mfcp-form-item>img{
  width:100%;
  height:106px;
  object-fit:contain;
  padding:.35rem .55rem 0;
}
.mfcp-form-name{
  display:block;
  padding:.15rem .5rem .2rem;
  font:700 1rem Georgia,"Times New Roman",serif;
}
.mfcp-form-example{
  margin:.15rem .55rem 0;
  padding:.45rem .35rem 0;
  border-top:1px solid #d7a91d88;
  color:#35536b;
  font-size:.7rem;
  font-weight:700;
  line-height:1.35;
}
.mfcp-form-example a{
  color:#075d94;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
}
.mfcp-release-badge{
  position:absolute;
  top:.45rem;
  right:.45rem;
  display:grid;
  place-items:center;
  min-width:2.1rem;
  height:2.1rem;
  padding:0 .35rem;
  border:2px solid var(--mfcp-form-gold);
  border-radius:50%;
  background:var(--mfcp-form-navy);
  color:#ffd75a;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.04em;
}
.mfcp-form-item{position:relative}
.mfcp-form-item--er{
  background:linear-gradient(180deg,#fff 0 62%,#f4f0df 100%);
}
.mfcp-form-item--liquid{
  background:linear-gradient(180deg,#fff 0 62%,#e8f6f5 100%);
}

.dosage-title{
  display:flex;
  align-items:center;
  gap:.7rem;
}
.dosage-heading-icons{
  display:flex;
  flex:0 0 auto;
  gap:.28rem;
}
.dosage-heading-icons img,
.route-mini{
  width:46px;
  height:46px;
  border:1px solid var(--mfcp-form-gold);
  border-radius:.55rem;
  background:#fff;
  object-fit:contain;
  padding:.12rem;
}
.form-chip{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  margin:0 0 .4rem;
  padding:.25rem .5rem .25rem .3rem;
  border:1px solid var(--mfcp-form-gold);
  border-radius:2px;
  background:#fff;
  color:#075d50;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1;
  text-transform:uppercase;
}
.form-chip img{
  width:34px;
  height:34px;
  padding-right:.38rem;
  border-right:1px solid var(--mfcp-form-gold);
  object-fit:contain;
}
.form-chip-group{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.35rem}
.form-chip-group .form-chip{margin:0}
.form-chip--er{background:#f6f0d9;color:#714e00}
.form-chip--softgel{background:#e9f3fa;color:#075d94}
.er-layer-key{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:.05rem .35rem;
  width:100%;
  padding:.42rem .5rem;
  border:1px solid #d2a329;
  background:#071e35;
  color:#fff;
  font-size:.64rem;
  line-height:1.22;
  text-align:left;
}
.er-layer-key b{color:#ffd95a;text-transform:uppercase}
.er-layer-key i{display:none}
.er-layer-note{
  display:block;
  margin-top:.35rem;
  padding:.35rem .45rem;
  border-left:3px solid #b88900;
  background:#f6f0df;
  color:#24394b;
  font-size:.7rem;
  line-height:1.35;
}
.er-layer-note b{color:#744e00;text-transform:uppercase}
.solid-dose-table th:nth-child(1){width:20%}
.solid-dose-table th:nth-child(2){width:26%}
.solid-dose-table th:nth-child(3){width:34%}
.solid-dose-table th:nth-child(4){width:20%}
.solid-dose-control{
  padding:8px;
  overflow-x:auto;
  border:2px solid var(--mfcp-form-gold);
  background:#f7f3e8;
  box-shadow:inset 0 0 0 3px #fff,0 8px 20px rgba(3,23,44,.1);
}
.solid-dose-table{
  border:1px solid var(--mfcp-form-gold);
  background:#fff;
  color:#08213a;
}
.solid-dose-table th{
  padding:.85rem .9rem;
  border-color:var(--mfcp-form-gold);
  background:#020f1d;
  color:#ffd95a;
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.solid-dose-table td{
  padding:.9rem;
  border-color:#c4b373;
  background:#fff;
  color:#08213a;
  box-shadow:inset 0 1px rgba(255,255,255,.8);
}
.solid-dose-table tbody tr:nth-child(even):not(.dose-warning-row) td{
  background:#eaf4f5;
}
.solid-dose-table td:first-child{
  background:#f6f0df!important;
  color:#083d68;
  font:700 1rem/1.3 Georgia,serif;
}
.solid-dose-table tbody tr:nth-child(even):not(.dose-warning-row) td:first-child{background:#dfeff0!important}
.solid-dose-table td:first-child a{color:#075c91;text-decoration-color:#b88900}
.solid-dose-table .form-chip{
  margin:0;
  padding:.18rem .5rem .18rem .28rem;
  border-color:#b88900;
  background:#fffdf7;
  box-shadow:0 2px 5px rgba(3,23,44,.08);
}
.solid-dose-table .compact{margin:0;padding-left:1.1rem}
.solid-dose-table .compact li::marker{color:#9b7100}
.solid-dose-table td:last-child{
  border-left:4px solid #8c1727;
  background:#fff8ed;
}
.solid-dose-table tbody tr:nth-child(even):not(.dose-warning-row) td:last-child{background:#eef6f2}
.dose-limit{
  display:block;
  color:#7d1525;
  font:700 1.28rem/1.05 Georgia,serif;
}
.dose-limit-note{
  display:block;
  margin-top:.28rem;
  color:#33485a;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.dose-limit--verify{font-size:1.08rem;text-transform:uppercase}
.solid-dose-table .dose-warning-row td{
  padding:.82rem 1rem;
  border-top:2px solid #ffd43b;
  border-left:8px solid #ffd43b;
  background:linear-gradient(100deg,#700f22,#92182c 58%,#5e1020)!important;
  color:#fff;
  font:800 .88rem/1.45 Arial,Helvetica,sans-serif;
}
.solid-dose-table .dose-warning-row strong{color:#ffe174;text-transform:uppercase}

/* Clinical Selection Map: one bounded decision instrument with a 2x2 oral grid. */
.selection-body{background:#fffdf7}
.selection-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border:2px solid var(--mfcp-form-gold);
  background:var(--mfcp-form-gold);
  gap:1px;
}
.selection-card{
  display:grid;
  grid-template-rows:auto auto 1fr auto;
  min-height:300px;
  background:#fff;
  color:#08213a;
}
.selection-card header{
  min-height:84px;
  padding:13px 17px 12px;
  border-bottom:1px solid var(--mfcp-form-gold);
  background:linear-gradient(100deg,#03172c,#0b4d83);
  color:#fff;
}
.selection-card header span{
  display:block;
  color:#55ebe3;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.selection-card header h3{
  margin:3px 0 0;
  color:#fff;
  font:700 1.55rem/1.05 Georgia,serif;
}
.selection-card--apap header{background:linear-gradient(100deg,#07334d,#087269)}
.selection-card--aspirin header{background:linear-gradient(100deg,#3f1020,#82172a)}
.selection-use{
  display:grid;
  grid-template-columns:74px 1fr;
  border-bottom:1px solid #c7d1d3;
  background:#f5faf9;
}
.selection-use b{
  padding:12px;
  border-right:1px solid var(--mfcp-form-gold);
  color:#075d50;
  font-size:.72rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.selection-use p{margin:0;padding:11px 14px;font-size:.94rem;line-height:1.4}
.selection-card>ul{
  margin:0;
  padding:14px 20px 12px 36px;
  font-size:.9rem;
  line-height:1.45;
}
.selection-card>ul li{margin:0 0 7px}
.selection-card>ul li::marker{color:#9b7100}
.selection-rule{
  margin:0;
  padding:10px 15px;
  border-top:1px solid var(--mfcp-form-gold);
  background:#f3ead0;
  color:#563d00;
  font-size:.82rem;
  font-weight:900;
}
.nsaid-gate{
  display:grid;
  grid-template-columns:minmax(250px,35%) 1fr;
  margin-top:14px;
  border:2px solid var(--mfcp-form-gold);
  background:#061a2e;
  color:#fff;
}
.nsaid-gate>div{padding:16px 18px;border-right:1px solid var(--mfcp-form-gold)}
.nsaid-gate span{color:#ffd95a;font-size:.72rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.nsaid-gate h3{margin:4px 0 0;color:#fff;font:700 1.2rem/1.25 Georgia,serif}
.nsaid-gate ul{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
}
.nsaid-gate li{display:flex;align-items:center;padding:14px 16px;border-left:1px solid #536679;font-size:.86rem;line-height:1.35}
.nsaid-gate li:first-child{border-left:0}
.targeted-band{
  display:grid;
  grid-template-columns:150px 1fr 1fr;
  margin-top:14px;
  border:2px solid var(--mfcp-form-gold);
  background:#fff;
}
.targeted-label{
  display:flex;
  align-items:center;
  padding:15px;
  background:#075d50;
  color:#fff;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.targeted-band article{padding:14px 17px;border-left:1px solid var(--mfcp-form-gold)}
.targeted-band h3{margin:0 0 4px;color:#073f70;font:700 1.05rem Georgia,serif}
.targeted-band p{margin:0;font-size:.86rem;line-height:1.4}
.selection-bottom{border:1px solid #b8d3cf;border-left:7px solid #087b69}

/* Dosage-form identifiers are compact table fields, not decorative badges. */
.solid-dose-table .form-chip{
  display:grid;
  grid-template-columns:42px 1fr;
  align-items:center;
  width:100%;
  min-height:48px;
  margin:0;
  padding:0;
  border:0;
  border-bottom:1px solid #d8c88e;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  font-size:.7rem;
  line-height:1.18;
}
.solid-dose-table .form-chip:last-child{border-bottom:0}
.solid-dose-table .form-chip img{
  width:42px;
  height:42px;
  padding:5px 8px 5px 0;
  border:0;
  object-fit:contain;
}
.solid-dose-table .form-chip-group{display:block;margin:0}
.solid-dose-table .form-chip--er,.solid-dose-table .form-chip--softgel{background:transparent;color:#075d50}
.solid-dose-table .er-layer-note{
  margin:6px 0 0;
  padding:6px 8px;
  border:0;
  border-top:1px solid #b88900;
  background:#f6f0df;
  font-size:.68rem;
}

@media(max-width:760px){
  .selection-grid{grid-template-columns:1fr}
  .selection-card{min-height:0}
  .nsaid-gate,.targeted-band{grid-template-columns:1fr}
  .nsaid-gate>div{border-right:0;border-bottom:1px solid var(--mfcp-form-gold)}
  .nsaid-gate ul{grid-template-columns:1fr}
  .nsaid-gate li{border-left:0;border-top:1px solid #536679}
  .nsaid-gate li:first-child{border-top:0}
  .targeted-band article{border-left:0;border-top:1px solid var(--mfcp-form-gold)}
}

/* Section 01 box discipline: a single decision instrument, not loose cards. */
#problem .body{
  background:linear-gradient(145deg,#061a2e 0%,#082c4b 58%,#07384a 100%);
}
#problem .map{
  gap:0;
  padding:12px;
  border:2px solid var(--mfcp-form-gold);
  background:#031727;
  box-shadow:inset 0 0 0 5px #0b3151,0 12px 28px rgba(0,0,0,.18);
}
#problem .choice{
  position:relative;
  min-height:196px;
  padding:0 1.05rem 1rem;
  border:1px solid #d7a91d;
  border-radius:0;
  background:linear-gradient(135deg,#071f36,#0b3151);
  color:#f7fbff;
  box-shadow:inset 0 1px rgba(255,255,255,.05);
}
#problem .choice:nth-child(2),
#problem .choice:nth-child(4),
#problem .choice:nth-child(6){
  background:linear-gradient(135deg,#0a4352,#0b5961);
}
#problem .choice:nth-child(3){
  background:linear-gradient(135deg,#351326,#67152a);
}
#problem .choice:nth-child(5){
  background:linear-gradient(135deg,#0c2d49,#124f70);
}
#problem .choice .decision{
  display:block;
  margin:0 -1.05rem .78rem;
  padding:.55rem 1.05rem .5rem;
  border:0;
  border-bottom:1px solid rgba(215,169,29,.82);
  background:rgba(2,17,31,.58);
  color:#ffd95a;
  font-size:.8rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}
#problem .choice h3{
  margin:0 0 .58rem;
  padding:0 0 .5rem;
  border-bottom:1px solid rgba(255,217,90,.42);
  color:#fff;
}
#problem .choice ul{
  margin:.35rem 0 0;
  padding-left:1.2rem;
  color:#f5fbff;
}
#problem .choice li::marker{color:#ffd95a}
#problem .control{
  margin-top:12px;
  padding:1rem 1.2rem 1.05rem;
  border:2px solid var(--mfcp-form-gold);
  border-left:10px solid #ffd43b;
  border-radius:0;
  background:linear-gradient(100deg,#6f0e21,#8f1528 55%,#601020);
  color:#fff;
  box-shadow:inset 0 1px rgba(255,255,255,.1),0 8px 18px rgba(0,0,0,.18);
}
#problem .control b{
  display:block;
  margin-bottom:.35rem;
  color:#ffe17a;
  letter-spacing:.1em;
  text-transform:uppercase;
}
#problem .control ul{margin:0;padding-left:1.25rem}
#problem .control li::marker{color:#ffe17a}
#problem .return a{color:#fff}

.delivery-card-mark{
  display:grid;
  grid-template-columns:78px 1fr;
  align-items:center;
  gap:.8rem;
  margin:-17px -17px 15px;
  padding:.65rem .85rem;
  border-bottom:2px solid var(--mfcp-form-gold);
  background:linear-gradient(110deg,var(--mfcp-form-navy),var(--mfcp-form-blue));
  color:#fff;
}
.delivery-card-mark img{
  width:78px;
  height:68px;
  border:1px solid var(--mfcp-form-gold);
  border-radius:.6rem;
  background:#fff;
  object-fit:contain;
}
.delivery-card-mark strong{
  color:#fff;
  font:700 1.28rem Georgia,"Times New Roman",serif;
}
.skin-route-step b{
  display:flex;
  align-items:center;
  gap:.45rem;
}
.skin-route-step .route-mini{
  width:40px;
  height:40px;
}

@media(max-width:900px){
  .mfcp-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:620px){
  .mfcp-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mfcp-form-item{min-height:205px}
  .mfcp-form-item>img{height:96px}
  .dosage-title{align-items:flex-start}
  .dosage-heading-icons img{width:40px;height:40px}
  .delivery-card-mark{grid-template-columns:64px 1fr}
  .delivery-card-mark img{width:64px;height:56px}
  .solid-dose-table th{width:auto!important}
}

@media print{
  .mfcp-form-item{box-shadow:none}
}
