/* The mentor's plan, ally loyalty, betrayal, and night whispers.
   Kept apart from styles.css; uses the same tokens. */

/* Strategy session */
.mentor-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px; margin: 14px 0 12px; border-radius: 10px; border: 1px solid rgba(220,174,104,.45); background: linear-gradient(135deg, rgba(220,174,104,.1), transparent 60%), var(--panel); }
.mentor-card strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.mentor-card small { display: block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.mentor-card p { font-size: 14px; max-width: 70ch; }
.mentor-card p + p { margin-top: 6px; font-style: italic; }
.mentor-seal { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-size: 13px; line-height: 1; text-align: center; }
.mentor-seal b { display: block; font-size: 20px; color: var(--gold-2); margin-top: -8px; }
.intel { display: grid; gap: 8px; margin-bottom: 10px; }
.intel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.intel li { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 6px 10px 6px 6px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.intel li:not(:has(.mini-portrait)) { padding-left: 12px; }
.plan-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 12px; }
.plan-card { gap: 8px; }
.plan-card.selected { border-color: var(--gold); background: #2a2c24; }
.plan-facts { margin: 2px 0 0; display: grid; gap: 6px; }
.plan-facts div { display: grid; gap: 1px; }
.plan-facts dt, .plan-sub { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.plan-facts dd { margin: 0; font-size: 13px; color: #cfd5d1; }
.plan-commit { margin-top: 14px; position: sticky; bottom: 0; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.plan-banner { justify-content: flex-start; }
.plan-banner .icon { color: var(--gold); flex: none; }
.plan-banner p { color: var(--gold-2); }

/* Milestone rows (strategy cards, arena panel, change sheet, ending recap) */
.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ms { display: grid; grid-template-columns: 16px 1fr; column-gap: 8px; align-items: baseline; font-size: 13px; }
.ms-mark { color: var(--dim); font-weight: 700; text-align: center; }
.ms-label small { color: var(--muted); font-size: 12px; }
.ms b, .ms em { grid-column: 2; font-size: 12px; line-height: 1.3; }
.ms b { color: var(--gold-2); font-weight: 700; }
.ms em { font-style: normal; color: var(--muted); }
.ms-done .ms-mark, .ms-done em { color: var(--green); }
.ms-failed .ms-mark, .ms-failed em { color: var(--red); }
.ms-failed .ms-label, .ms-skipped .ms-label, .ms-dropped .ms-label { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(154,168,165,.5); }
.milestones.big .ms { font-size: 15px; }
.milestones.compact { margin-top: 6px; font-weight: 400; }

/* Arena HUD chip and panel */
.hud-plan { display: grid; gap: 3px; justify-items: start; text-align: left; background: transparent; border: 1px solid rgba(220,174,104,.35); border-radius: var(--radius); padding: 5px 9px; flex: none; }
.hud-plan:hover { border-color: var(--gold); }
.hud-plan .hud-label .icon { color: var(--gold); width: 13px; height: 13px; }
.plan-marks { display: flex; gap: 5px; line-height: 1; }
.pm { font-style: normal; font-size: 13px; font-weight: 700; color: var(--dim); }
.pm-done { color: var(--green); }
.pm-failed { color: var(--red); }
.plan-panel { border: 1px solid rgba(220,174,104,.4); border-radius: 8px; padding: 10px; background: linear-gradient(180deg, rgba(220,174,104,.07), transparent); }
.plan-panel h3 .icon { color: var(--gold); }
.plan-panel .text-button { justify-self: start; padding-left: 0; }
.plan-sheet h3 { margin-top: 6px; }
.replan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.replan-grid .card:hover { transform: none; }
.replan-grid .button { justify-content: center; min-height: 38px; font-size: 13px; margin-top: 4px; }

/* Allies: loyalty and oaths */
.loyalty { display: grid; gap: 2px; margin-top: 4px; }
.loyalty small { color: var(--muted); font-size: 11px; }
.meter.loyal span { background: linear-gradient(90deg, #5d7fa0, var(--blue)); }
.oath { color: var(--gold-2); font-weight: 700; }
.oath-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ffc9c2; background: var(--red-bg); border: 1px solid #7a3a35; border-radius: 3px; padding: 1px 6px; margin-right: 8px; }

/* Turning on an ally */
.choice-danger { border-color: #5a2f2b; background: linear-gradient(90deg, rgba(58,31,31,.6), var(--panel) 60%); }
.choice-danger .choice-body em { color: #f0a79d; }
.choice.armed { border-color: var(--red); background: var(--red-bg); }
.choice.armed .choice-body em { color: #ffc9c2; font-weight: 700; }

/* Night whisper */
.whisper { display: grid; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid rgba(127,182,196,.45); background: linear-gradient(180deg, #152433, transparent 220px); }
.whisper .eyebrow { color: var(--blue); display: flex; align-items: center; gap: 6px; }
.whisper .event-head { align-items: center; }
.whisper .event-head p { margin: 0; font-style: italic; color: #d9e4e8; }
.whisper-replies { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; }
.whisper-replies button { text-align: left; display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); }
.whisper-replies button:hover:not(:disabled) { border-color: var(--blue); }
.whisper-replies button:disabled { opacity: .5; }
.whisper-replies strong { font-size: 13px; }
.whisper-replies small { color: var(--muted); font-size: 12px; }
.whisper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.whisper-replies .chance { font-size: 11px; min-width: 0; padding: 2px 5px; }

/* Inside the ending recap list, milestone rows keep their own layout. */
.recap-list .ms { grid-template-columns: 16px 1fr; gap: 0 8px; font-size: 13px; }
.recap-list .ms span { text-transform: none; letter-spacing: 0; font-size: 13px; padding-top: 0; color: #d3d9d6; }
.recap-list .ms .ms-mark { color: var(--dim); }
.recap-list .ms-done .ms-mark { color: var(--green); }
.recap-list .ms-failed .ms-mark { color: var(--red); }
.recap-list .ms em { font-weight: 400; }

@media (max-width: 860px) {
  .hud-plan { order: 2; max-width: none; }
  .mentor-card { flex-direction: column; }
  .plan-grid { grid-template-columns: 1fr; }
}
