/* Massage Service Chooser. All classes start with msc- to avoid clashes. */
.msc-panel { max-width: 860px; }
.msc-progress { display: grid; gap: 6px; margin-bottom: 20px; }
.msc-progress label { font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red-dark); }
.msc-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.msc-step legend { font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 900; color: var(--ink); line-height: 1.15; padding: 0; margin-bottom: 6px; }
.msc-step legend:focus { outline: none; }
.msc-step legend:focus-visible { outline: 3px solid var(--yellow); box-shadow: 0 0 0 6px var(--black); }
.msc-hint { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.msc-options { display: grid; gap: 12px; }
.msc-options .choice { min-height: 56px; align-items: center; }
.msc-options .choice:hover { border-color: var(--red); }
.msc-options .choice:has(input:focus-visible) { outline: 3px solid var(--yellow); box-shadow: 0 0 0 6px var(--black); }
.msc-urgent { border-style: dashed; }
.msc-urgent span::before { content: "! "; color: var(--red-dark); font-weight: 900; }
.msc-error { min-height: 1.6em; margin: 14px 0 0; font-weight: 800; color: var(--red-dark); }
.msc-nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.msc-nav .btn { min-height: 48px; min-width: 120px; }
.msc-nav .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Result card */
.msc-card { background: var(--white); border: 3px solid var(--ink); border-left-width: 12px; padding: 24px 24px 22px; }
.msc-card-ok { border-left-color: #1f7a3d; }
.msc-card-stop { border-left-color: var(--red); }
.msc-card-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.msc-card-head h3 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.msc-status { margin: 0 0 4px; font-weight: 900; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.msc-card-ok .msc-status { color: #1a6a35; }
.msc-card-stop .msc-status { color: var(--red-dark); }
.msc-card h4 { margin: 20px 0 8px; font-size: 1rem; font-weight: 800; color: var(--ink); letter-spacing: 0; line-height: 1.2; }
.msc-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.msc-times { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
.msc-times dt { font-weight: 800; color: var(--ink); margin-top: 8px; }
.msc-times dd { margin: 0; font-weight: 900; color: var(--ink); font-size: 1.1rem; }
.msc-notes { background: #fff7d6; border-left: 8px solid var(--yellow); padding: 4px 18px 14px; margin-top: 20px; }
.msc-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.msc-links .btn { min-height: 48px; display: inline-flex; align-items: center; }
.msc-fine { font-size: .88rem; color: var(--muted); }
.msc-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.msc-tools .btn { min-height: 44px; }
.msc-icon { width: 56px; height: 56px; flex: none; }
.msc-result:focus { outline: none; }
.msc-result:focus-visible { outline: 3px solid var(--yellow); box-shadow: 0 0 0 6px var(--black); }

/* Layout helpers */
.msc-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; margin: 0 0 28px; }
.msc-figure { margin: 0; max-width: 260px; }
.msc-figure img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--red); }
.msc-steps { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 8px; }
.msc-evidence { margin: 28px 0; }
.msc-evidence h3 { margin-top: 0; }
@media (min-width: 700px) {
  .msc-split { grid-template-columns: 1fr 260px; gap: 36px; }
  .msc-split-rev { grid-template-columns: 260px 1fr; }
  .msc-split-rev > :first-child { order: 2; }
  .msc-split-rev > .msc-figure { order: 1; }
  .msc-options { grid-template-columns: 1fr 1fr; }
  .msc-times { grid-template-columns: max-content 1fr; }
  .msc-times dt { margin-top: 0; }
}

/* Comparison table: stacks on phones */
.msc-table-wrap { border: 3px solid var(--ink); box-shadow: var(--shadow); margin: 8px 6px 18px 0; background: var(--white); }
.msc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.msc-table th, .msc-table td { padding: 14px 16px; vertical-align: top; text-align: left; border-bottom: 2px solid var(--surface); white-space: normal; font-weight: 400; color: var(--slate); }
.msc-table thead th { background: var(--ink); color: var(--yellow); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.msc-table tbody th { color: var(--ink); font-weight: 800; min-width: 160px; }
.msc-table tbody th > * { vertical-align: middle; }
.msc-table tbody th .msc-icon { width: 44px; height: 44px; display: block; margin: 0 0 6px; }
.msc-table td:last-child { font-weight: 400; white-space: normal; color: var(--slate); }
.msc-table td strong { color: var(--ink); }
.msc-table tbody tr:last-child th, .msc-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 899px) {
  .msc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .msc-table, .msc-table tbody, .msc-table tr, .msc-table th, .msc-table td { display: block; width: 100%; }
  .msc-table tbody tr { border-bottom: 6px solid var(--ink); padding-bottom: 6px; }
  .msc-table tbody tr:last-child { border-bottom: 0; }
  .msc-table tbody th { background: var(--yellow); color: var(--black); display: flex; align-items: center; gap: 10px; border-bottom: 3px solid var(--ink); }
  .msc-table tbody th .msc-icon { margin: 0; }
  .msc-table td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 2px; }
  .msc-table td { border-bottom: 1px solid var(--surface); }
}

/* JS gating */
.msc-js .msc-nojs { display: none; }
@media (prefers-reduced-motion: reduce) { .msc-nav .btn, .msc-options .choice { transition: none; } }

/* Print */
.msc-print-head, .msc-print-foot { border-top: 3px solid #000; border-bottom: 3px solid #000; padding: 6px 0; margin: 0 0 12px; font-size: 10.5pt; }
@media print {
  .msc-panel { max-width: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
  .msc-card { border: 2px solid #000 !important; border-left-width: 10px !important; break-inside: avoid; }
  .msc-links, .msc-tools { display: none !important; }
  .msc-table-wrap { box-shadow: none; border: 2px solid #000; break-inside: auto; }
  .msc-table tr { break-inside: avoid; }
  .msc-figure img { box-shadow: none; border: 1px solid #000; max-width: 120px; }
  .msc-split, .msc-split-rev { grid-template-columns: 1fr 130px; }
  .msc-table thead { position: static; width: auto; height: auto; clip: auto; }
}
@media print and (max-width: 899px) { .msc-table { display: table; } .msc-table tbody { display: table-row-group; } .msc-table tr { display: table-row; } .msc-table th, .msc-table td { display: table-cell; width: auto; } .msc-table td::before { content: none; } }

@media (max-width: 520px) {
  .msc-panel { padding: 20px 14px; }
  .msc-options .choice { padding: 12px 12px; gap: 10px; }
  .msc-card { padding: 18px 14px; border-left-width: 8px; }
  .msc-card-head { gap: 10px; }
  .msc-icon { width: 44px; height: 44px; }
}
