/* Strategies (run F-SL1): the Library card and the Opinion block
 * (design/ai-first/SPEC.md §6), and Plans' Strategies section. Linked
 * after ember.css, whose .ecard these build on. The body face throughout:
 * a Library card has no headline figure. Amber marks rules past their July
 * refresh; peach a rule only seen in a search extract; cool, offline. Red
 * only when Hearth couldn't load the list. */

/* ---- the Library card ---- */
.ecard.lib, .ecard.op { overflow-wrap: anywhere; }
.ecard.lib .ltitle { margin: 0; font-family: var(--body-face); font-weight: 600; font-size: var(--t-title); line-height: var(--lh-title); color: var(--ink2); padding-right: 28px; }
.ecard.lib .idea { display: grid; gap: 6px; }
.ecard.lib .idea p, .ecard.lib .idea ul, .ecard.lib .idea ol { margin: 0; }
.ecard.lib ul, .ecard.lib ol, .strats ul.facts { margin: 0; padding-left: 20px; }
.ecard.lib li { margin: 2px 0; }
.ecard.lib .note, .strats .note { margin: 0; font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--softc); }
.ecard.lib .na { margin: 4px 0 0; font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--faint); }

.ecard .fit { display: grid; gap: 4px; justify-items: start; }
.fitchip, .acctchip {
  display: inline-block; font-family: var(--body-face); font-weight: 600; font-size: var(--t-small); line-height: 1; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--edge); color: var(--softc);
}
.fit[data-verdict="fits"] .fitchip { color: var(--amber); border-color: rgba(255, 180, 84, .5); }
.ecard .fit .because { margin: 0; font-family: var(--body-face); font-size: var(--t-body); line-height: var(--lh-body); color: var(--ink2); }

/* Folds: closed until tapped. */
.ecard details.fold, .strats details.fold { border-top: 1px solid var(--edge); padding-top: 6px; }
details.fold > summary {
  cursor: pointer; list-style: none; font-family: var(--body-face); font-weight: 600; font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink2); padding: 4px 0;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: '▸ '; color: var(--softc); }
details.fold[open] > summary::before { content: '▾ '; }
details.fold > :not(summary) { margin-top: 6px; }

/* The rules: each with its figure, its "as of" and its source chip. */
.ecard ul.rules { list-style: none; padding: 0; display: grid; gap: 8px; }
.ecard ul.rules li { display: grid; gap: 3px; justify-items: start; margin: 0; }
.ecard .rules .rule { font-family: var(--body-face); font-size: var(--t-body); line-height: var(--lh-body); }
.ecard .rules .figline { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); }
.ecard .rules .rfig { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink2); }
.ecard .rules .ras { color: var(--softc); }
.ecard .asof { font-weight: 400; color: var(--softc); }
.ecard .stale, .strats .stale, .ecard .asof.stale, .ecard .ras.stale { color: var(--amber); }
.staleline { margin: 0; font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); }
.srcchip {
  font-family: var(--body-face); font-weight: 600; font-size: var(--t-small); line-height: 1; padding: 4px 8px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px dotted var(--softc); color: var(--softc);
}
.srcchip.extract { color: var(--peach); border-color: var(--peach); }
.srcpop { font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--softc); }
.srcpop p { margin: 2px 0; }
.srcpop[hidden] { display: none; }

.ecard .sk { margin: 4px 0 0; font-family: var(--body-face); font-weight: 600; font-size: var(--t-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--softc); }
.ecard .camp { margin: 6px 0 0; }
.ecard .acct > summary { color: var(--peach); }
.ecard .acct .q { display: grid; gap: 2px; padding: 4px 0; }
.ecard .acct .q + .q { border-top: 1px dashed var(--edge); }
.ecard .acct .qq, .ecard .acct .qa { margin: 0; font-family: var(--body-face); font-size: var(--t-body); line-height: var(--lh-body); }
.ecard .acct .qa { color: var(--softc); }

/* ---- the Opinion block ---- */
.opinion { display: grid; gap: 4px; border-top: 1px solid var(--edge); padding-top: 8px; }
.ecard.op .opinion { border-top: 0; padding-top: 0; }
.opinion .ok { font-family: var(--body-face); font-weight: 600; font-size: var(--t-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--amber); }
.opinion .oline { margin: 0; font-family: var(--body-face); font-size: var(--t-read); line-height: var(--lh-read); color: var(--ink2); }
.opinion .opening .oline { color: var(--softc); }
.opinion .oline.unfilled { color: var(--softc); font-style: italic; }
.opinion .num.filled {
  border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--ink2); cursor: pointer;
  text-decoration: underline dotted rgba(244, 230, 214, .5); text-underline-offset: 3px;
}
.opinion .fillnote { margin: 2px 0 0; font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--softc); }
.opinion .fillnote[hidden] { display: none; }

/* ---- Plans' Strategies ---- */
.strats { display: grid; gap: 10px; font-family: var(--body-face); font-size: var(--t-body); line-height: var(--lh-body); color: var(--ink2); min-width: 0; }
.strats .lede { margin: 0; font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--softc); }
.strats .sstate { margin: 0; padding: 12px; background: var(--wall); border: 1px solid var(--edge); border-radius: 12px; }
.strats .sstate.cool, .strats .note.cool, .ecard .note.cool { color: var(--cool); }
.strats .sstate.red { color: var(--red); border-color: rgba(229, 72, 77, .5); }
.strats .askbtn { justify-self: start; }
.strats .askbtn.ghost { background: none; border-color: var(--edge); color: var(--softc); }
.strats .sgroup { margin: 6px 0 0; font-family: var(--body-face); font-weight: 600; font-size: var(--t-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--rail); }
.strats .sgroup .n { color: var(--faint); }
.strats ul.srows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.strats .srow { background: var(--wall); border: 1px solid var(--edge); border-radius: 12px; min-width: 0; overflow: hidden; }
.strats .shead {
  display: grid; gap: 4px; justify-items: start; width: 100%; text-align: left; padding: 12px; cursor: pointer;
  border: 0; background: none; color: inherit; font: inherit;
}
.strats .stitle { font-family: var(--body-face); font-weight: 600; font-size: var(--t-body); line-height: var(--lh-body); }
.strats .swhy { font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--softc); }
.strats .acctchip { color: var(--peach); border-color: rgb(var(--fg2) / .5); }
.strats ul.asks { list-style: none; margin: -4px 0 0; padding: 0 12px 12px; display: grid; gap: 6px; justify-items: start; }
.strats .asks .ask {
  font-family: var(--body-face); font-weight: 600; font-size: var(--t-small); line-height: var(--lh-small); padding: 6px 12px; border-radius: 999px; text-align: left;
  border: 1px solid rgba(255, 180, 84, .55); background: none; color: var(--amber); cursor: pointer;
}
.strats .asks .nohold { font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--softc); }
/* M2: the card's words are in .sbin, inside the panel that eases open (css/glide.css). */
.strats .sbin { display: grid; gap: 10px; padding: 0 8px 12px; }
.strats .sbody[hidden] { display: none; }
.strats .sbody .ecard { animation: none; }
.strats details.sfold > summary { color: var(--softc); }
.strats ul.facts li { font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--softc); }
