/* The compare view (templates/methods/_compare.html; methods-audit F5): the method shown first, other methods in an
   expander, rows that differ marked with a text label and a left rule (never colour alone). Text never moves: no
   fades or slides; a switch swaps blocks in place. Holds at 375 px with no sideways scroll: no fixed widths, long
   names and source chips wrap. */

.mc { --mc-ink: var(--ink, #1C1C1C); --mc-muted: #5d574c; --mc-line: rgba(30, 30, 36, .12); --mc-card: #fffdf8;
  --mc-accent: var(--indigo, #1F2A5A); --mc-diff: var(--kumkum, #8C2F39); --mc-diff-bg: #f7ebe7;
  --mc-default-bg: #e8ebf4; --mc-choice-bg: #f5e7cc; --mc-choice: #6b4a12;
  background: var(--mc-card); border: 1px solid var(--sand, #E6DCCB); border-radius: 12px; padding: 16px 16px 12px;
  margin: 16px 0; min-width: 0; overflow-wrap: anywhere; color: var(--mc-ink); }
.mc p { margin: 0; }
.mc-h { font-family: "Laila", Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--mc-accent);
  line-height: 1.3; margin: 0 0 8px !important; }
.mc-note { background: #fff6e0; border-radius: 8px; padding: 8px 10px; margin: 0 0 10px !important; font-size: .92rem; }
.mc-lead { display: grid; gap: 6px; }
.mc-result { font-family: "Laila", Georgia, serif; font-size: 1.25rem; line-height: 1.4; color: var(--mc-ink); }
.mc-result--review, .mc-result--unavailable { color: var(--mc-muted); font-style: italic; }
.mc-by { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; line-height: 1.4; }
.mc-name { font-weight: 600; }
.mc-chip { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; border-radius: 999px;
  padding: 2px 10px; line-height: 1.5; white-space: nowrap; }
.mc-chip--default { background: var(--mc-default-bg); color: var(--mc-accent); }
.mc-chip--choice { background: var(--mc-choice-bg); color: var(--mc-choice); }
.mc-why { color: #3b3a40; line-height: 1.55; }
.mc-back a, .mc-use a, .mc-pick { color: var(--mc-accent); font-weight: 600; text-underline-offset: 3px; }
/* a POST answer's choice is a submit button that reads as the link it replaces (the typed details go with it) */
.mc-pick { font: inherit; font-weight: 600; background: none; border: 0; padding: 8px 0; min-height: 44px;
  text-decoration: underline; cursor: pointer; text-align: left; }
.mc-pick:focus-visible, .mc-back a:focus-visible, .mc-use a:focus-visible { outline: 2px solid var(--mc-accent);
  outline-offset: 2px; border-radius: 4px; }
.mc-pick[hidden] { display: none; }
.mc-stamp { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--mc-line);
  font-size: .8rem; color: var(--mc-muted); line-height: 1.45; display: grid; gap: 2px; }

.mc-more { border-top: 1px solid var(--mc-line); margin: 12px 0 0; padding: 10px 0 0; }
.mc-more > summary { cursor: pointer; font-weight: 600; color: var(--mc-ink); line-height: 1.5; min-height: 44px;
  display: list-item; padding: 10px 0; }
.mc-more > summary:focus-visible { outline: 2px solid var(--mc-accent); outline-offset: 2px;
  border-radius: 4px; }
.mc-count { font-weight: 400; color: var(--mc-muted); }
.mc-rows { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.mc-row { border: 1px solid var(--mc-line); border-left: 4px solid var(--mc-line); border-radius: 10px;
  padding: 10px 12px; display: grid; gap: 5px; background: #fff; min-width: 0; }
.mc-row[aria-current="true"] { border-left-color: var(--mc-accent); }
.mc-row--differs { border-left-color: var(--mc-diff); background: var(--mc-diff-bg); }
.mc-row-h { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; line-height: 1.4; }
.mc-src { font-size: .82rem; color: var(--mc-muted); }
.mc-row-result { font-weight: 600; }
.mc-line { font-size: .92rem; line-height: 1.5; color: #3b3a40; }
.mc-mark { font-weight: 700; color: var(--mc-diff); }
.mc-flag { font-size: .85rem; color: #8a4f00; }
.mc-use a, .mc-back a { display: inline-block; padding: 8px 0; min-height: 44px; box-sizing: border-box; }
.mc-off { margin: 12px 0 4px; font-size: .88rem; color: var(--mc-muted); }
.mc-off-h { font-weight: 600; color: var(--mc-ink); margin: 0 0 4px !important; }
.mc-off ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.5; }
.mc-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media print {
  .mc-more { display: block; }
  .mc-use, .mc-back { display: none; }
}
