/* The 5-year minute book cost calculator (minute-book-cost.js). Shared by
   /tools/minute-book-cost-calculator and the embed on
   /compare/minutekeep-vs-ownr. Markup is built in JavaScript, so its classes
   live here (tailwind.css only sees class names written in the scanned files). */
.mbc { font-family: 'DM Sans', system-ui, sans-serif; color: #0a0f1a; }
.mbc-controls { display: grid; gap: 20px; margin-bottom: 24px; }
@media (min-width: 640px) { .mbc-controls { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.mbc-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.mbc-field[hidden] { display: none; }
.mbc-label { display: block; font-size: .875rem; font-weight: 600; color: #374151; margin-bottom: 8px; padding: 0; }
.mbc-out { font-weight: 700; color: #166534; }
.mbc-seg { display: flex; flex-wrap: wrap; border: 1px solid #e5e7eb; border-radius: .75rem; overflow: hidden; background: #fff; }
.mbc-seg label { flex: 1 1 0; min-width: 0; position: relative; text-align: center; font-size: .875rem; padding: .65rem .5rem; min-height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #374151; }
.mbc-seg label + label { border-left: 1px solid #e5e7eb; }
.mbc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mbc-seg label:has(input:checked) { background: #166534; color: #fff; }
.mbc-seg label:has(input:focus-visible) { outline: 2px solid #4ade80; outline-offset: -2px; }
.mbc-range { width: 100%; accent-color: #166534; min-height: 44px; }

.mbc-result { background: #f0faf4; border: 1px solid #bbead1; border-radius: .9rem; padding: 1rem 1.15rem; margin-bottom: 20px; }
.mbc-lead { margin: 0; font-size: 1rem; line-height: 1.5; color: #1f2937; }
.mbc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mbc-diff { margin: 8px 0 0; font-family: 'Newsreader', 'Newsreader Fallback', Georgia, serif; font-size: 1.5rem; font-weight: 600; line-height: 1.25; color: #14532d; }

.mbc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px; }
.mbc-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.mbc-caption { caption-side: top; text-align: left; font-size: .8rem; color: #6b7280; padding-bottom: 8px; }
.mbc-table th, .mbc-table td { padding: .7rem .6rem; border-bottom: 1px solid #f3f4f6; text-align: left; vertical-align: middle; }
.mbc-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; font-weight: 600; }
.mbc-name { display: block; font-weight: 600; color: #0a0f1a; }
.mbc-plan { display: block; font-size: .8rem; font-weight: 400; color: #6b7280; }
.mbc-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mbc-row-mk { background: #f0faf4; }
.mbc-row-mk .mbc-name, .mbc-row-mk .mbc-num { color: #14532d; font-weight: 700; }
.mbc-row-on { box-shadow: inset 4px 0 0 #166534; }
.mbc-action { text-align: right; }
.mbc-row-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; font-weight: 600; color: #166534; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.mbc-row-link:hover { color: #14532d; }

.mbc-cta { display: block; width: 100%; background: #166534; color: #fff; font-weight: 600; font-size: 1rem; text-align: center; text-decoration: none; padding: .95rem 1.25rem; border-radius: .75rem; line-height: 1.4; }
.mbc-cta:hover { background: #14532d; }
.mbc-cta:focus-visible, .mbc-row-link:focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }
.mbc-cta-note { margin: 8px 0 0; text-align: center; font-size: .8rem; color: #6b7280; }
.mbc-notes { margin: 20px 0 0; font-size: .8rem; line-height: 1.55; color: #6b7280; }

/* On a phone the four-column table becomes stacked rows. */
@media (max-width: 559px) {
  .mbc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mbc-table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: .7rem .6rem; border-bottom: 1px solid #f3f4f6; }
  .mbc-table th, .mbc-table td { border: 0; padding: 0; }
  .mbc-table tr > :nth-child(2) { display: none; }
  .mbc-table tr > :nth-child(3) { text-align: right; align-self: center; white-space: normal; }
  .mbc-table .mbc-action { grid-column: 1 / -1; text-align: left; }
  .mbc-table .mbc-action:empty { display: none; }
}
