/*
  Werkstatt / Workshop: styles for the notes and the index (topic filter, card meta, figures,
  more notes, release list). Loaded after komovi.css and frame.css; uses their colour tokens
  (light and dark). No external requests.
*/
.wmeta { margin: 14px 0 0; color: var(--muted); font-size: .95rem; font-weight: 600; }
.wmeta .sep, .tcard-meta .sep { margin: 0 .45em; opacity: .7; }

/* Index: filter, feed, suggestion */
.wtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 48px 0 16px; }
.wtools .notes-head { margin: 0; }
.wfeed { font-size: .9rem; font-weight: 700; color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .2em; }
.wfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.wfilter[hidden] { display: none; }
.wchip {
  font: inherit; font-size: .9rem; font-weight: 700; padding: 8px 16px; min-height: 40px; cursor: pointer;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.wchip:hover { border-color: var(--ridge-line); color: var(--ink); }
.wchip[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.wcount { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.wsuggest { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
.wsuggest a { font-weight: 700; color: var(--accent-ink); }
.tcards > li[hidden] { display: none; }

/* Cards */
.tcard-meta { display: block; margin: 8px 0 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.tcard-topic img { flex: none; }
.tcards-sm .tcard { padding: 20px 20px 18px; }
.tcards-sm .tcard-title { font-size: 1.15rem; }

/* Note body */
.prose h2 { margin-top: 40px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: .1em .35em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.prose strong { color: var(--ink); }
.wfig { margin: 28px 0; }
.wfig img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.wfig figcaption { margin: 8px 2px 0; color: var(--muted); font-size: .875rem; }
.wfig-phone { text-align: center; }
.wfig-phone img { width: min(100%, 280px); margin: 0 auto; border-radius: 22px; }
.wfig-mid img { width: min(100%, 460px); }
.wfig-phone figcaption { text-align: center; }
.wapp { display: flex; align-items: center; gap: 12px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.wapp img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.wapp a { font-weight: 750; color: var(--accent-ink); }
.wmore { padding-top: 56px; padding-bottom: 72px; }
.wmore .notes-head { margin-top: 0; }
.wmore-all { margin: 24px 0 0; font-weight: 700; }

/* What's new */
.wver { margin: 0 0 40px; padding: 0 0 32px; border-bottom: 1px solid var(--line); }
.wver:last-of-type { border-bottom: 0; }
.wver h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 8px; }
.wver h2 time { color: var(--muted); font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.wver .wintro { color: var(--ink); font-weight: 650; margin: 0 0 .6em; }
.wver ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.wver li { margin: 0 0 .5em; }
@media (max-width: 480px) { .wtools { margin-top: 36px; } }
.prose > p + .wver { margin-top: 36px; }
