/*
 * The wardrobe plan page. Chrome: ../fountains/page.css; the catalogue paper and chips:
 * ../shared/shop.css (.m--catalogue.m--embed, .m-chip).
 */
.bar nav { gap: 4px 14px; }
.wp-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.wp-stat { display: grid; justify-items: center; min-width: 110px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px rgba(38, 52, 69, 0.08); font: 600 13px/1.2 var(--body-font); color: var(--badge-color); }
.wp-stat b { font: 400 30px/1.1 var(--title-font); color: var(--primary-color); }

.wp-section { margin: 34px 0; scroll-margin-top: 70px; }
.wp-section > h2 { margin: 0 0 14px; font: 400 clamp(26px, 3.4vw, 36px)/1.1 var(--title-font); color: var(--primary-color); text-transform: uppercase; }
.wp-section h3 { margin: 18px 0 8px; font: 400 21px/1.15 var(--heading-font); color: var(--dark-navy); letter-spacing: 0.3px; }
.wp-section h3 small { font: 600 13px/1 var(--body-font); color: var(--badge-color); }
.wp-section p, .wp-list, .wp-rulelist, .wp-phases, .wp-questions { max-width: 80ch; line-height: 1.6; }
.wp-note { font-size: 14px; color: var(--badge-color); }
code { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft-peach); padding: 2px 5px; border-radius: 5px; }

/* ---- rules and the flow */
.wp-rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wp-rulelist { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.wp-flow { margin: 0; padding: 16px; border-radius: 18px; background: var(--dark-navy); color: #FFF8F4; }
.wp-flow figcaption { margin-bottom: 12px; font: 400 20px/1.1 var(--heading-font); color: var(--primary-yellow); }
.wp-steps { counter-reset: none; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.wp-steps li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 248, 244, 0.08); box-shadow: inset 0 0 0 1px rgba(252, 170, 26, 0.3); }
.wp-steps li:not(:last-child)::after { content: ''; position: absolute; left: 31px; bottom: -20px; width: 0; height: 0; border: 9px solid transparent; border-top-color: var(--primary-yellow); border-bottom-width: 0; }
.wp-step__n { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-yellow); color: var(--dark-navy); font: 400 20px/1 var(--title-font); }
.wp-steps b { font: 400 19px/1.2 var(--heading-font); letter-spacing: 0.3px; }
.wp-steps span:not(.wp-step__n) { font-size: 14px; line-height: 1.45; color: #E6E9F0; }

/* ---- totals */
.wp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; margin-bottom: 14px; }
.wp-card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px rgba(38, 52, 69, 0.08); }
.wp-card b { font: 400 30px/1 var(--title-font); color: var(--primary-color); }
.wp-card span { font: 700 14px/1.2 var(--body-font); }
.wp-card small { font-size: 12px; color: var(--badge-color); }
.wp-tablewrap { overflow-x: auto; }
.wp-table { border-collapse: collapse; min-width: 520px; width: 100%; font-size: 14px; background: #fff; border-radius: 12px; overflow: hidden; }
.wp-table caption { text-align: left; padding: 0 0 6px; font-weight: 700; color: var(--badge-color); }
.wp-table :is(th, td) { padding: 8px 10px; border-bottom: 1px solid rgba(38, 52, 69, 0.08); text-align: right; font-variant-numeric: tabular-nums; }
.wp-table :is(th[scope='row'], thead th:first-child) { text-align: left; }
.wp-table thead th { background: var(--soft-peach); }
.wp-table tfoot { background: var(--soft-cream); }

/* ---- the catalogue */
.wp-cat { padding: 16px; }
.wp-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.wp-field { display: grid; gap: 4px; flex: 1 1 150px; font: 700 11px/1 var(--body-font); letter-spacing: 1.2px; text-transform: uppercase; color: #8A6A40; }
.wp-field--grow { flex: 2 1 240px; }
.wp-field :is(input, select) { min-height: 44px; padding: 0 12px; border: 2px solid var(--rule); border-radius: 6px; background: #FFFDF6; color: var(--ink); font: 500 15px/1 var(--body-font); text-transform: none; letter-spacing: 0; }
.wp-field :is(input, select):focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }
.wp-count { margin: 12px 0; font-weight: 700; color: var(--ink-red); }
.wp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 18px; }
.wp-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 4px; border-bottom: 2px dotted rgba(110, 80, 40, 0.35); }
.wp-item[hidden] { display: none; }
.wp-item__art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 3px; background: var(--plate); box-shadow: 0 0 0 2px var(--rule); }
.wp-item--legendary .wp-item__art { box-shadow: 0 0 0 2px #FF9A2E, 0 0 12px rgba(255, 154, 46, 0.45); }
.wp-item__text { display: grid; gap: 3px; min-width: 0; }
.wp-item__name { font: 400 19px/1.1 var(--heading-font); color: var(--ink-red); letter-spacing: 0.2px; }
.wp-item__line { font: 700 11px/1.3 var(--body-font); letter-spacing: 0.06em; text-transform: uppercase; color: #8A6A40; }
.wp-item__desc { font-size: 13.5px; line-height: 1.4; }
.wp-item__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.wp-item__slot { font-size: 12px; color: var(--badge-color); }
.wp-item__how { font: 700 13px/1.3 var(--body-font); color: var(--dark-navy); }
.wp-standin { display: grid; place-items: center; opacity: 0.9; }

/* ---- render */
.wp-bases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.wp-baseset { padding: 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px rgba(38, 52, 69, 0.08); }
.wp-baseset h3 { margin-top: 0; }
.wp-baseset ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wp-baseset li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; border-radius: 8px; font-size: 14px; }
.wp-baseset li span { font-size: 12px; color: var(--badge-color); }
.wp-baseset li.is-have { background: #E3F4E8; }
.wp-baseset li.is-new { background: #FFF2D6; }
.wp-chipsets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.wp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-chips span { padding: 3px 10px; border-radius: 999px; background: var(--soft-peach); font: 600 12px/1.4 var(--body-font); }

/* ---- icons, data */
.wp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wp-list { padding-left: 20px; display: grid; gap: 6px; }
.wp-samples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 10px; }
.wp-samples li { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px rgba(38, 52, 69, 0.08); text-align: center; font-size: 13px; }
.wp-samples small { color: var(--badge-color); }
.wp-samples__art { display: grid; place-items: center; min-height: 96px; }
.wp-phases, .wp-questions { padding-left: 22px; display: grid; gap: 8px; }

@media (max-width: 860px) {
  .wp-rules, .wp-cols { grid-template-columns: minmax(0, 1fr); }
  .bar nav { display: none; }
}
@media (max-width: 520px) {
  .wp-item { grid-template-columns: 68px minmax(0, 1fr); }
  .wp-item__art { width: 68px; height: 68px; }
  .wp-item__art svg, .wp-item__art .fz-icon { width: 60px !important; height: 60px !important; }
  .wp-stat { min-width: 90px; }
}
@media (prefers-reduced-motion: reduce) { .shimmer { animation: none; } }
