/* showcase-index.css — scoped styles for the witchcraft.business showcase section.
   Every selector is prefixed with #ws-showcase-index so the existing homepage CSS/JS
   and all existing sections are untouched. Editorial layout, no gradient SaaS look. */

#ws-showcase-index {
  --ws-ink: #12100e;
  --ws-paper: #faf7f2;
  --ws-rule: #ddd5c8;
  --ws-muted: #6b6259;
  --ws-accent: #7a2f1d;
  --ws-deep: #1d1a17;
  display: block;
  isolation: isolate;
  background: var(--ws-paper);
  color: var(--ws-ink);
  border-bottom: 1px solid var(--ws-rule);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16.5px;
  line-height: 1.6;
  text-align: left;
}
#ws-showcase-index *,
#ws-showcase-index *::before,
#ws-showcase-index *::after { box-sizing: border-box; }

#ws-showcase-index .ws-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
#ws-showcase-index .ws-eyebrow {
  font: 700 11.5px/1 system-ui, -apple-system, Segoe UI, sans-serif;
  letter-spacing: .3em; text-transform: uppercase; color: var(--ws-accent);
}
#ws-showcase-index .ws-sans { font-family: system-ui, -apple-system, Segoe UI, sans-serif; }

/* ---- masthead: number | headline | note ---- */
#ws-showcase-index .ws-mast { padding: 56px 0 30px; }
#ws-showcase-index .ws-mast > .ws-wrap {
  width: 100%; max-width: 1180px; display: grid;
  grid-template-columns: 92px minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 34px; align-items: end;
}
#ws-showcase-index .ws-mast .ws-num {
  font: 400 60px/0.86 Georgia, serif; color: var(--ws-rule);
  border-top: 3px solid var(--ws-ink); padding-top: 12px;
}
#ws-showcase-index h2.ws-title {
  font: 400 clamp(34px, 4.4vw, 58px)/1.04 Georgia, serif;
  margin: 12px 0 0; letter-spacing: -.01em;
}
#ws-showcase-index h2.ws-title em { font-style: italic; color: var(--ws-accent); }
#ws-showcase-index .ws-standfirst { font-size: 17.5px; color: #3d372f; margin: 12px 0 0; max-width: 46ch; }
#ws-showcase-index .ws-note {
  border-left: 2px solid var(--ws-rule); padding-left: 20px;
  font-size: 14.5px; color: var(--ws-muted);
}
#ws-showcase-index .ws-note b { color: var(--ws-ink); display: block; font-size: 13px; letter-spacing: .04em; }

/* ---- controls: search + filters ---- */
#ws-showcase-index .ws-controls {
  position: sticky; top: 0; z-index: 3;
  background: var(--ws-paper);
  border-top: 1px solid var(--ws-ink); border-bottom: 1px solid var(--ws-rule);
  padding: 12px 0; margin-bottom: 34px;
}
#ws-showcase-index .ws-controls .ws-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
#ws-showcase-index .ws-search { flex: 1 1 240px; min-width: 200px; }
#ws-showcase-index .ws-search input {
  width: 100%; font: 400 15px/1.4 system-ui, sans-serif; color: var(--ws-ink);
  background: #fff; border: 1px solid var(--ws-rule); padding: 11px 14px;
}
#ws-showcase-index .ws-search input:focus-visible,
#ws-showcase-index .ws-chip:focus-visible,
#ws-showcase-index a:focus-visible {
  outline: 2px solid var(--ws-accent); outline-offset: 2px;
}
#ws-showcase-index .ws-chips { display: flex; gap: 8px; flex-wrap: wrap; }
#ws-showcase-index .ws-chip {
  font: 600 11.5px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  background: transparent; color: var(--ws-muted);
  border: 1px solid var(--ws-rule); padding: 10px 13px; cursor: pointer;
}
#ws-showcase-index .ws-chip b { color: var(--ws-ink); font-weight: 700; }
#ws-showcase-index .ws-chip[aria-pressed="true"] { background: var(--ws-deep); color: #fff; border-color: var(--ws-deep); }
#ws-showcase-index .ws-chip[aria-pressed="true"] b { color: #fff; }
#ws-showcase-index .ws-result {
  font: 600 12px/1 system-ui, sans-serif; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ws-muted);
}

/* ---- concepts: large still previews ---- */
#ws-showcase-index .ws-concept-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-bottom: 12px;
}
#ws-showcase-index .ws-card {
  background: #fff; border: 1px solid var(--ws-rule); display: flex; flex-direction: column;
}
#ws-showcase-index .ws-card[hidden] { display: none; }
#ws-showcase-index .ws-thumb {
  position: relative; display: block; border: 0; padding: 0; margin: 0;
  background: #e8e2d8; cursor: zoom-in; width: 100%;
}
#ws-showcase-index .ws-thumb img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover;
}
#ws-showcase-index .ws-thumb:hover img,
#ws-showcase-index .ws-thumb:focus-visible img { opacity: .93; }
#ws-showcase-index .ws-tag {
  position: absolute; left: 0; top: 0; background: var(--ws-accent); color: #fff;
  font: 700 10.5px/1 system-ui, sans-serif; letter-spacing: .2em; padding: 8px 11px; text-transform: uppercase;
}
#ws-showcase-index .ws-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
#ws-showcase-index .ws-card h3 { font: 400 23px/1.2 Georgia, serif; margin: 0 0 4px; }
#ws-showcase-index .ws-card .ws-ind {
  font: 600 11px/1 system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--ws-accent);
}
#ws-showcase-index .ws-card p { font-size: 15px; color: #463f37; margin: 12px 0 0; }
#ws-showcase-index .ws-traits { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
#ws-showcase-index .ws-traits li {
  font: 600 10.5px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ws-muted); border: 1px solid var(--ws-rule); padding: 6px 9px;
}
#ws-showcase-index .ws-card-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
#ws-showcase-index .ws-hint { font: 600 11px/1.5 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-muted); }
#ws-showcase-index .ws-btn {
  display: inline-block; align-self: flex-start; text-decoration: none; cursor: pointer;
  background: var(--ws-ink); color: #fff; border: 1px solid var(--ws-ink);
  font: 600 12px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; padding: 13px 18px;
}
#ws-showcase-index .ws-btn:hover { background: var(--ws-accent); border-color: var(--ws-accent); }
#ws-showcase-index .ws-btn--ghost { background: transparent; color: var(--ws-ink); }
#ws-showcase-index .ws-btn--ghost:hover { background: var(--ws-ink); color: #fff; }

/* ---- link groups ---- */
#ws-showcase-index .ws-group { padding: 30px 0 6px; border-top: 1px solid var(--ws-rule); margin-top: 34px; }
#ws-showcase-index .ws-group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 26px; align-items: baseline; }
#ws-showcase-index .ws-group-head h3 { font: 400 27px/1.15 Georgia, serif; margin: 0; }
#ws-showcase-index .ws-group-head p { margin: 0; color: var(--ws-muted); font-size: 15.5px; }
#ws-showcase-index .ws-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
#ws-showcase-index .ws-links li { border-top: 1px solid var(--ws-rule); }
#ws-showcase-index .ws-links li[hidden] { display: none; }
#ws-showcase-index .ws-links a {
  display: block; text-decoration: none; color: var(--ws-ink); padding: 16px 18px 18px;
  border-right: 1px solid var(--ws-rule); height: 100%;
}
#ws-showcase-index .ws-links li:last-child a,
#ws-showcase-index .ws-links a:last-child { border-right: 0; }
#ws-showcase-index .ws-links a:hover { background: #fff; color: var(--ws-accent); }
#ws-showcase-index .ws-labelsub { display: block; font: 600 10.5px/1.4 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ws-muted); margin-top: 7px; }
#ws-showcase-index .ws-explabel { display: block; font: 600 11px/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-accent); margin-top: 7px; }
#ws-showcase-index .ws-pending { opacity: .72; }
#ws-showcase-index .ws-foot-note { font-size: 14px; color: var(--ws-muted); padding: 26px 0 44px; }
#ws-showcase-index .ws-empty { display: none; padding: 30px 0 10px; font-size: 16px; color: var(--ws-muted); }
#ws-showcase-index.ws-filtered .ws-empty[data-empty="1"] { display: block; }

/* ---- enlarge dialog ---- */
#ws-showcase-index .ws-lightbox {
  position: fixed; inset: 0; z-index: 2147483000; display: none;
  background: rgba(14, 12, 10, .9); padding: 3vh 3vw;
}
#ws-showcase-index .ws-lightbox[open] { display: flex; align-items: center; justify-content: center; }
#ws-showcase-index .ws-lightbox figure { margin: 0; max-width: 1180px; max-height: 94vh; overflow: auto; background: #fff; }
#ws-showcase-index .ws-lightbox img { display: block; width: 100%; height: auto; }
#ws-showcase-index .ws-lightbox figcaption {
  font: 600 12px/1.5 system-ui, sans-serif; letter-spacing: .08em;
  color: var(--ws-muted); padding: 14px 18px;
}
#ws-showcase-index .ws-close {
  position: fixed; right: 3vw; top: 3vh; background: #fff; color: var(--ws-ink);
  border: 1px solid #fff; font: 600 12px/1 system-ui, sans-serif; letter-spacing: .14em;
  text-transform: uppercase; padding: 12px 16px; cursor: pointer;
}

/* ---- responsive ---- */
@media (max-width: 1000px) {
  #ws-showcase-index .ws-mast > .ws-wrap { grid-template-columns: 66px minmax(0, 1fr); gap: 22px; }
  #ws-showcase-index .ws-mast .ws-note { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ws-rule); padding: 16px 0 0; }
  #ws-showcase-index .ws-concept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ws-showcase-index .ws-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ws-showcase-index .ws-group-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 680px) {
  #ws-showcase-index { font-size: 16px; }
  #ws-showcase-index .ws-mast { padding-top: 40px; }
  #ws-showcase-index .ws-mast > .ws-wrap { grid-template-columns: minmax(0, 1fr); }
  #ws-showcase-index .ws-mast .ws-num { font-size: 42px; }
  #ws-showcase-index .ws-concept-grid { grid-template-columns: minmax(0, 1fr); }
  #ws-showcase-index .ws-links { grid-template-columns: minmax(0, 1fr); }
  #ws-showcase-index .ws-links a { border-right: 0; }
  #ws-showcase-index .ws-controls { position: static; }
  #ws-showcase-index .ws-thumb img { aspect-ratio: 16 / 11; }
}
@media (prefers-reduced-motion: reduce) {
  #ws-showcase-index *, #ws-showcase-index *::before, #ws-showcase-index *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
@media print {
  #ws-showcase-index .ws-controls, #ws-showcase-index .ws-lightbox { display: none !important; }
}
@media (forced-colors: active) {
  #ws-showcase-index .ws-card, #ws-showcase-index .ws-links a { border-color: CanvasText; }
}
