/* BlueFire Direct Mail: navy (#283f73) additions on top of print.css (already recolored by the build). */
.dm { --royal-l: #eaeef7; --dm: #283f73; --dm-2: #3a5590; --hot: #e8590c; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* menu extras */
.mm-size { color: var(--soft); font-size: 13px; margin-left: 4px; }
.mm-facts li { color: var(--soft); font-size: 14.5px; padding: 5px 0 5px 18px; position: relative; }
.mm-facts li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--dm); }

/* product cards: photos fill the art area */
.dm .pc-art { padding: 0; background: #f4f6fa; }
.dm .pc-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.pc-flag { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--hot); color: #fff; font: 700 12px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.pc-size { color: var(--dm) !important; font: 600 14px var(--body) !important; flex: 0 !important; }
.pc-body p.pc-size + p { margin-top: 2px; }

/* two ways */
.ways { display: grid; gap: 42px; }
.way-top { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #dbe2ee; }
.way-top > svg { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--dm); color: #fff; }
.way-top h3 { font: 700 clamp(22px, 2.4vw, 28px) var(--display); color: var(--ink); }
.way-top p { color: var(--soft); }
@media (max-width: 640px) { .way-top { grid-template-columns: 46px 1fr; } .way-top .btn { grid-column: 1 / -1; justify-self: start; } }

/* who it's for */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; }
.who li { background: #fff; border: 1px solid #dbe2ee; border-left: 4px solid var(--dm); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.who b { font: 700 18px var(--display); color: var(--ink); }
.who span { color: var(--soft); font-size: 15px; }
@media (max-width: 900px) { .who { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } }

/* ---------- planner ---------- */
.plan-hero { padding-bottom: 40px; }
.plan { padding-top: 36px; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; }
.plan-map { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.plan-panel { position: sticky; top: 16px; box-shadow: 0 30px 60px -40px rgba(20, 30, 60, .45); border: 1px solid #dbe2ee; }
@media (max-width: 980px) { .plan-grid { grid-template-columns: 1fr; } .plan-panel { position: static; } }

.zip-form { background: #fff; border: 1px solid #dbe2ee; border-radius: 18px; padding: 18px 20px; }
.zip-row { display: flex; gap: 10px; margin-top: 6px; }
.zip-row input { flex: 1; min-width: 0; height: 50px; border: 1.5px solid #c9d3e4; border-radius: 12px; padding: 0 16px; font: 500 17px var(--body); color: var(--ink); background: #fff; }
.zip-row input:focus { outline: 3px solid rgba(40, 63, 115, .25); border-color: var(--dm); }
.zip-row .btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.zip-row .btn svg { width: 18px; height: 18px; }
.zip-msg { margin-top: 8px; color: var(--soft); font-size: 14.5px; min-height: 1.2em; }
@media (max-width: 480px) { .zip-row { flex-direction: column; } }

.map { position: relative; height: clamp(320px, 52vh, 520px); border-radius: 18px; overflow: hidden; border: 1px solid #dbe2ee; background: linear-gradient(135deg, #eef2f9, #dfe6f2); z-index: 0; }
.map-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 24px; color: var(--soft);
  background-image: radial-gradient(circle at 20% 30%, rgba(40, 63, 115, .08) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(40, 63, 115, .08) 0 2px, transparent 3px); background-size: 34px 34px, 46px 46px; }
.map-empty b { color: var(--ink); font: 700 19px var(--display); }
.leaflet-container { font: 13px var(--body); }

.routes { background: #fff; border: 1px solid #dbe2ee; border-radius: 18px; padding: 18px 20px; }
.routes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.link-btn { background: none; border: 0; padding: 0; font: 600 14.5px var(--body); color: var(--dm); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rt-wrap { max-height: 340px; overflow: auto; border: 1px solid #e4e9f2; border-radius: 12px; }
.rt { width: 100%; border-collapse: collapse; font-size: 15px; }
.rt th { position: sticky; top: 0; background: #f4f6fa; text-align: left; font: 600 13px var(--body); color: var(--soft); padding: 9px 12px; }
.rt td { padding: 10px 12px; border-top: 1px solid #edf0f6; color: var(--ink-2); }
.rt td small { display: block; color: var(--soft); font-size: 12.5px; }
.rt tbody tr { cursor: pointer; transition: background .15s; }
.rt tbody tr:hover { background: #f6f8fc; }
.rt tbody tr.is-on { background: #fff3eb; }
.rt tbody tr.is-on td:first-child { box-shadow: inset 4px 0 0 var(--hot); }
.rt input { width: 18px; height: 18px; accent-color: var(--hot); }
.rt th:nth-child(n+3), .rt td:nth-child(n+3) { text-align: right; }

/* mailer options */
.mopts { display: grid; gap: 8px; }
.mopt { position: relative; cursor: pointer; }
.mopt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mopt > span { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "s p"; column-gap: 12px; border: 1.5px solid #c9d3e4; border-radius: 12px; padding: 10px 14px; transition: border-color .15s, background .15s; }
.mopt b { grid-area: n; font: 600 15.5px var(--body); color: var(--ink); }
.mopt small { grid-area: s; color: var(--soft); font-size: 13px; }
.mopt em { grid-area: p; align-self: center; font: 700 17px var(--display); font-style: normal; color: var(--dm); }
.mopt em small { font: 500 12px var(--body); color: var(--soft); }
.mopt-pop { font: 700 10.5px var(--body); font-style: normal; text-transform: uppercase; letter-spacing: .05em; background: var(--hot); color: #fff; padding: 3px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.mopt input:checked + span { border-color: var(--dm); background: #eef1f8; box-shadow: inset 0 0 0 1px var(--dm); }
.mopt input:focus-visible + span { outline: 3px solid rgba(40, 63, 115, .3); }

.plan-sum { display: flex; flex-direction: column; gap: 6px; }
.ps-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--soft); }
.ps-row b { color: var(--ink); font-weight: 600; }
.ps-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e3e8f1; padding-top: 10px; margin-top: 4px; }
.dchoice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.design-note { background: #eef1f8; border-radius: 10px; padding: 10px 14px; font-size: 14.5px; color: var(--ink-2); }
.cf-in { height: 46px; border: 1.5px solid #c9d3e4; border-radius: 10px; padding: 0 12px; font: 500 15px var(--body); color: var(--ink); width: 100%; background: #fff; }
.plan-panel textarea { width: 100%; border: 1.5px solid #c9d3e4; border-radius: 10px; padding: 10px 12px; font: 15px/1.4 var(--body); color: var(--ink); resize: vertical; }
.calc-go:disabled { opacity: .5; cursor: not-allowed; }

/* mail to a list */
.list-card { background: #fff; border: 1px solid #dbe2ee; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.list-result { border-radius: 12px; padding: 12px 16px; background: #f4f6fa; color: var(--ink-2); font-size: 15px; }
.list-result.is-ok { background: #ecf8f1; border: 1px solid #b5e2c8; }
.list-result.is-ok b { color: #11703f; }
.list-result.is-err { background: #fff4ec; border: 1px solid #f6c9a8; color: #8a3b07; }
.lr-sample { list-style: none; padding: 0; margin-top: 8px; font: 13px/1.6 var(--mono); color: var(--soft); }
.tips { list-style: none; padding: 0; display: grid; gap: 10px; }
.tips li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.tips svg { flex: none; width: 20px; height: 20px; color: #11703f; margin-top: 1px; }

/* banner badge for "per home" */
.dm .bn-price span:last-child { max-width: 16ch; }
.dm .pc-from { padding-right: 44px; }
.dm .pc-from small { display: block; font-size: 13px; color: var(--soft); }
.mopt b { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.mopt-pop { vertical-align: 0; }
