/* raduscurtu.com/printable-medication-list/: loaded after css/discount.css; fillable sheets + print layout */

/* hero */
.ml-hero { padding: 60px 0 70px; }
.ml-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.ml-hero h1 { font-size: clamp(34px, 4.6vw, 58px); }
.ml-hero h1 em { color: var(--gold-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.btn svg, .btn-ghost svg, .btn-line svg { width: 20px; height: 20px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: none; padding: 15px 22px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 10px; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
button.btn { border: 0; cursor: pointer; font-family: var(--sans); }

/* decorative paper stack */
.paper-stack { position: relative; height: 420px; }
.ps-sheet { position: absolute; inset: 20px 40px 20px 40px; background: #fff; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.ps-sheet.s3 { transform: rotate(8deg) translate(30px, 10px); background: #F3EADB; }
.ps-sheet.s2 { transform: rotate(-5deg) translate(-16px, 6px); background: #FBF6EE; }
.ps-sheet.s1 { transform: rotate(1.5deg); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; animation: sheetIn 1s cubic-bezier(.2, .7, .2, 1) both; }
.ps-title { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--wine); border-bottom: 3px solid var(--wine); padding-bottom: 8px; }
.ps-line { height: 10px; border-radius: 5px; background: #EDE3D2; }
.ps-line.w80 { width: 80%; } .ps-line.w60 { width: 55%; background: #F6D9D9; }
.ps-row { height: 26px; border-bottom: 1px solid #E6DCC8; background: linear-gradient(90deg, #F3EADB 0 34%, transparent 34% 36%, #F7F1E6 36% 60%, transparent 60% 62%, #F7F1E6 62% 100%); background-size: 100% 10px; background-repeat: no-repeat; background-position: 0 6px; }
.ps-stamp { position: absolute; right: 22px; bottom: 26px; transform: rotate(-10deg); border: 3px solid var(--red); color: var(--red); font-weight: 800; letter-spacing: .14em; font-size: 13px; padding: 6px 12px; border-radius: 6px; opacity: .85; }
@keyframes sheetIn { from { opacity: 0; transform: rotate(8deg) translateY(40px); } to { opacity: 1; transform: rotate(1.5deg); } }

/* why */
.why { background: var(--paper); padding: 56px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { position: relative; background: var(--cream); border-radius: 16px; padding: 26px 22px 20px 74px; }
.why-card > b { position: absolute; left: 20px; top: 24px; width: 38px; height: 38px; border-radius: 50%; background: var(--wine); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); }
.why-card h3 { font-size: 20px; color: var(--wine); margin-bottom: 6px; }
.why-card p { margin: 0; font-family: var(--serif); font-size: 16.5px; color: var(--ink-2); }

/* tool */
.tool { background: var(--cream); }
.toolbar-ml { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: 1000px; margin: 0 auto 18px; }
.toolbar-ml.t2 { margin-top: 56px; }
.toolbar-ml h2 { color: var(--wine); margin-bottom: 4px; font-size: clamp(26px, 3vw, 36px); }
.toolbar-ml p { margin: 0; font-family: var(--serif); color: var(--ink-2); }
.tb-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tb-btns .btn { padding: 13px 20px; font-size: 15.5px; }
.btn-line { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; color: var(--wine); background: #fff; border: 1.5px solid var(--wine); border-radius: 10px; padding: 12px 18px; cursor: pointer; transition: background .2s, color .2s; }
.btn-line:hover { background: var(--wine); color: #fff; }
.btn-text { font: inherit; font-size: 14px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.saved { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--green); opacity: 0; transition: opacity .3s; }
.saved.on { opacity: 1; }
.saved svg { width: 15px; height: 15px; }

/* the sheet (screen) */
.sheet { max-width: 1000px; margin: 0 auto; background: #fff; border-radius: 6px; padding: 34px 38px 22px; box-shadow: 0 2px 0 var(--line), 0 40px 70px -46px rgba(74, 11, 15, .7); font-family: var(--sans); color: #1A1A1A; }
.sh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 3px solid var(--wine); padding-bottom: 12px; margin-bottom: 18px; }
.sh-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.sh-head h3 { font-family: var(--display); font-size: 32px; color: var(--wine); margin-top: 2px; }
.sh-911 { text-align: right; font-size: 11.5px; color: #555; line-height: 1.3; border: 2px solid var(--red); border-radius: 8px; padding: 6px 12px; }
.sh-911 b { display: block; font-size: 20px; color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.sh-911 input { display: block; margin-top: 4px; width: 130px; border: 0; border-bottom: 1px solid #999; font: inherit; font-size: 15px; padding: 2px 0; background: transparent; }
.sh-fields { display: grid; gap: 10px 14px; margin-bottom: 14px; }
.sh-fields.g4 { grid-template-columns: repeat(4, 1fr); }
.sh-fields.g3 { grid-template-columns: repeat(3, 1fr); }
.sh-fields.g2 { grid-template-columns: repeat(2, 1fr); }
.f { display: flex; flex-direction: column; gap: 3px; }
.f.span2 { grid-column: span 2; }
.f span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6B6B6B; }
.f input { font: inherit; font-size: 15.5px; border: 0; border-bottom: 1.5px solid #BDB3A3; background: #FCFAF6; padding: 7px 8px; border-radius: 4px 4px 0 0; outline: none; transition: border-color .2s, background .2s; }
.f input:focus { border-color: var(--gold); background: #FFF7E6; }
.f.alert span { color: var(--red); }
.f.alert input { border-bottom-color: var(--red); background: #FFF4F3; font-weight: 600; }
.meds { width: 100%; border-collapse: collapse; margin: 6px 0 6px; table-layout: fixed; }
.meds th { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: left; color: #fff; background: var(--wine); padding: 8px 6px; }
.meds th:nth-child(1) { width: 22%; } .meds th:nth-child(2) { width: 10%; } .meds th:nth-child(3) { width: 16%; }
.meds th:nth-child(4) { width: 18%; } .meds th:nth-child(5) { width: 13%; } .meds th:nth-child(6) { width: 12%; } .meds th:nth-child(7) { width: 9%; }
.meds td { border: 1px solid #DDD3C2; padding: 0; height: 34px; }
.meds tbody tr:nth-child(even) td { background: #FBF8F2; }
.meds input { width: 100%; height: 100%; border: 0; background: transparent; font: inherit; font-size: 14.5px; padding: 6px 7px; outline: none; }
.meds input:focus { background: #FFF7E6; }
.add-row { font: inherit; font-size: 14px; font-weight: 700; color: var(--wine); background: none; border: 1.5px dashed #CDBB9C; border-radius: 8px; padding: 8px 14px; cursor: pointer; margin-bottom: 4px; }
.add-row:hover { border-color: var(--wine); }
.sh-tip { font-size: 13px; color: #666; font-style: italic; margin: 6px 0 14px; }
.sh-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #DDD3C2; padding-top: 10px; margin-top: 4px; font-size: 11.5px; color: #888; }

/* cabinet checklist */
.cab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; margin-bottom: 18px; }
.cab-group h4 { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); border-bottom: 2px solid var(--gold); padding-bottom: 5px; margin: 0 0 6px; }
.cab-group ul { list-style: none; margin: 0; padding: 0; }
.cab-group li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dotted #D9CDB8; }
.cab-group label { flex: 1; display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14.5px; line-height: 1.3; }
.cab-group label input { position: absolute; opacity: 0; pointer-events: none; }
.box { width: 18px; height: 18px; flex: none; border: 2px solid #8A7F72; border-radius: 4px; position: relative; transition: background .2s, border-color .2s; }
.box::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .2s; }
label input:checked + .box { background: var(--green); border-color: var(--green); }
label input:checked + .box::after { transform: rotate(45deg) scale(1); }
label input:checked ~ .it { color: #777; }
label input:focus-visible + .box { outline: 3px solid var(--gold); outline-offset: 2px; }
.mini { width: 62px; flex: none; font: inherit; font-size: 12.5px; border: 0; border-bottom: 1px solid #BDB3A3; background: transparent; padding: 3px 2px; outline: none; }
.cab-extra { margin-top: 4px; }
.print-all { text-align: center; margin-top: 40px; }
.print-all p { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* tips */
.tips { background: var(--paper); }
.tips h2 { color: var(--wine); margin-bottom: 26px; }
.tip-list { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.tip-list li { counter-increment: t; position: relative; padding: 16px 0 16px 62px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.tip-list li::before { content: counter(t); position: absolute; left: 0; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--wine); font-family: var(--display); font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold); }
.tip-list b { color: var(--ink); font-family: var(--sans); }

/* bridge to the book */
.book-bridge { background: var(--cream); }
.bridge-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 54px; align-items: center; }
.bridge-grid figure { margin: 0; }
.bridge-grid figure img { border-radius: 16px; box-shadow: 0 30px 60px -34px rgba(74, 11, 15, .7); cursor: zoom-in; }
.bridge-grid figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.bridge-grid h2, .bundles h2, .bonuses h2, .faq h2, .final h2 { color: var(--wine); }
.bridge-grid p { font-family: var(--serif); font-size: 18.5px; line-height: 1.65; color: var(--ink-2); }
.bridge-grid .checks li { font-size: 16px; }
.bonus-hint { background: var(--paper); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 16.5px !important; }

@media (max-width: 860px) {
  .ml-grid, .bridge-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .paper-stack { height: 300px; max-width: 360px; width: 100%; margin: 0 auto; order: -1; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .cab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .sheet { padding: 22px 14px 16px; border-radius: 0; margin: 0 -16px; }
  .sh-head { flex-direction: column; align-items: flex-start; }
  .sh-911 { text-align: left; }
  .sh-head h3 { font-size: 26px; }
  .sh-fields.g4, .sh-fields.g3, .sh-fields.g2, .cab-grid { grid-template-columns: minmax(0, 1fr); }
  .f.span2 { grid-column: auto; }
  .meds, .meds tbody, .meds tr, .meds td { display: block; width: 100%; }
  .meds thead { display: none; }
  .meds tr { border: 1px solid #DDD3C2; border-radius: 10px; margin-bottom: 10px; padding: 6px 10px; background: #fff; }
  .meds td { border: 0; border-bottom: 1px dotted #DDD3C2; height: auto; display: flex; align-items: center; background: transparent !important; }
  .meds td:last-child { border-bottom: 0; }
  .meds td::before { flex: none; width: 110px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wine); }
  .meds td:nth-child(1)::before { content: "Medicine"; } .meds td:nth-child(2)::before { content: "Dose"; }
  .meds td:nth-child(3)::before { content: "When"; } .meds td:nth-child(4)::before { content: "For"; }
  .meds td:nth-child(5)::before { content: "Prescribed by"; } .meds td:nth-child(6)::before { content: "Refill / exp."; }
  .meds td:nth-child(7)::before { content: "On hand"; }
  .toolbar-ml { flex-direction: column; align-items: stretch; }
  .tb-btns .btn, .tb-btns .btn-line { flex: 1; justify-content: center; }
}

.offer-one { background: var(--paper); }
.offer-one h2 { color: var(--wine); }

/* ---------- print ---------- */
@media print {
  @page { size: letter; margin: 0.45in; }
  html, body { background: #fff !important; padding: 0 !important; font-size: 12px; }
  .no-print, .topbar, .sticky-buy, .lightbox, .add-row, .toolbar-ml, .print-all { display: none !important; }
  section.tool { padding: 0 !important; background: #fff !important; }
  .tool .wrap { max-width: none; padding: 0; }
  .sheet { box-shadow: none !important; border-radius: 0; padding: 0; max-width: none; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet-list { break-after: page; }
  body.print-list .sheet-cabinet, body.print-cabinet .sheet-list { display: none !important; }
  body.print-cabinet .sheet-cabinet { break-before: auto; }
  .sh-head h3 { font-size: 24pt; }
  .meds td { height: 26pt; }
  .meds input, .f input, .mini, .sh-911 input { color: #000; background: transparent !important; }
  .f input { border-bottom: 1px solid #777; background: transparent; padding: 4px 2px; font-size: 11pt; min-height: 22pt; }
  .f.alert input { background: #FFF0EF !important; }
  .meds { display: table !important; } .meds thead { display: table-header-group !important; } .meds tbody { display: table-row-group !important; }
  .meds tr { display: table-row !important; border: 0; padding: 0; margin: 0; }
  .meds td { display: table-cell !important; border: 1px solid #999 !important; }
  .meds td::before { content: none !important; }
  .sh-fields.g4 { grid-template-columns: repeat(4, 1fr) !important; }
  .sh-fields.g3 { grid-template-columns: repeat(3, 1fr) !important; }
  .sh-fields.g2 { grid-template-columns: repeat(2, 1fr) !important; }
  .cab-grid { grid-template-columns: repeat(3, 1fr) !important; }
  body.print-blank input { color: transparent !important; }
  body.print-blank label input:checked + .box { background: transparent !important; border-color: #8A7F72 !important; }
  body.print-blank label input:checked + .box::after { display: none; }
  body.print-blank label input:checked ~ .it { color: #1A1A1A; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
