/* "+ ao meu website": the toggle and the counter of the laboratory, and the
   cards of #start on the main page. Both controls are solid pills that carry
   their own background, so they read the same on any top bar: dark, light or
   transparent over a hero. Colours come from the page that loads this file:
   --fg and --bg on the demos, --text and white on the page and the index. */
.myw-add,.myw-count{--myw-fg:var(--fg,var(--text,#202024));--myw-bg:var(--bg,#fff)}
.myw-add{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:0 16px;border:1.5px solid var(--myw-fg);border-radius:999px;background:var(--myw-bg);color:var(--myw-fg);font:600 .8125rem/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:nowrap;cursor:pointer}
.myw-add[hidden],.myw-count[hidden]{display:none}
/* One width in both states: two hidden sizers, one per state, share the cell of the visible face,
   so the button is always as wide as the wider of the two and the counter beside it never moves. */
.myw-add::before,.myw-add::after{grid-area:1/1;height:0;overflow:hidden;visibility:hidden;pointer-events:none}
.myw-add::before{content:"+ ao meu website";content:"+ ao meu website" / ""}
.myw-add::after{content:"Adicionado";content:"Adicionado" / "";padding-left:21px}
.myw-add__face{grid-area:1/1;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.myw-add__check{display:none;flex:none;width:14px;height:14px}
.myw-add[aria-pressed="true"]{border-color:#0f7b5f;background:#0f7b5f;color:#fff}
.myw-add[aria-pressed="true"] .myw-add__check{display:block}
.myw-add:hover{box-shadow:0 0 0 2px currentColor}
.myw-add:focus-visible,.myw-count:focus-visible{outline:3px solid var(--myw-fg);outline-offset:3px}
.myw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.myw-count{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:0 12px 0 14px;border-radius:999px;background:var(--myw-bg);color:var(--myw-fg);font-weight:600;text-decoration:none;white-space:nowrap}
.myw-count__icon{flex:none;width:15px;height:15px}
.myw-count__n{display:inline-block;min-width:22px;padding:0 6px;border-radius:999px;background:var(--myw-fg);color:var(--myw-bg);font-size:.75rem;line-height:22px;font-weight:700;text-align:center;box-sizing:border-box}

/* Demo bar: the controls follow the back link and keep the bar as tall as it
   was. The file label stays at the right end, where the demo placed it. */
.demo-bar .myw-bar{display:flex;flex:none;align-items:center;gap:10px;margin-block:-11px;margin-right:auto}
.demo-bar .myw-bar .myw-count{margin:0;padding-inline:14px 12px;border-radius:999px;color:var(--myw-fg)}
/* No link of the bar breaks into two lines at any width: every item keeps its own width and
   the file label is the one that gives way, shrinking with an ellipsis. */
.demo-bar > :not(code){flex:none;white-space:nowrap}
.demo-bar a{white-space:nowrap}
.demo-bar code{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media (max-width:719px){
  .demo-bar{flex-wrap:wrap}
  .demo-bar code{display:none}
  .demo-bar .myw-bar{gap:6px;margin-left:auto;margin-right:0}
  .demo-bar .myw-bar .myw-count{gap:5px;padding-inline:10px}
  .demo-bar .myw-add{padding:0 11px;font-size:.75rem}
  /* The words leave, the list icon stays beside the number; the accessible name keeps "Meu website · N". */
  .myw-count__label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* Hero gallery: the button follows the title of each hero. */
.meta .myw-add{margin:12px 0 4px;justify-self:start}

/* #start: the chosen examples, one card each. */
.picks{margin:0 0 26px}
.picks [hidden]{display:none}
.picks-title{font-size:12px;font-weight:600;margin:0 0 10px}
.picks-title:focus,.pick:focus{outline:3px solid var(--accent);outline-offset:3px}
.picks-empty{margin:0;font-size:13px;line-height:1.6;color:var(--muted)}
.picks-empty a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:600}
.picks-list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.pick{--cat:#4b5563;display:flex;align-items:center;gap:12px;min-width:0;padding:8px 8px 8px 10px;border:1.5px solid var(--cat);border-radius:18px;background:transparent}
.pick[data-category="heroes"]{--cat:#0756d9}
.pick[data-category="three"]{--cat:#7a3cff}
.pick[data-category="data"]{--cat:#0e7490}
.pick[data-category="story"]{--cat:#a21caf}
.pick[data-category="art"]{--cat:#3f6212}
.pick[data-category="scroll"]{--cat:#0f7b5f}
.pick[data-category="entrance"]{--cat:#b4380f}
.pick[data-category="media"]{--cat:#c2185b}
.pick[data-category="surfaces"]{--cat:#8a5a00}
.pick[data-category="base"]{--cat:#4b5563}
.pick-thumb{flex:none;width:64px;height:40px;object-fit:cover;border-radius:8px;box-shadow:0 0 0 1px rgb(32 32 36 / .12)}
.pick-body{display:grid;flex:1;gap:2px;min-width:0}
.pick-name{font-size:14px;line-height:1.35;font-weight:650;color:var(--text)}
.pick-meta{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:11px;line-height:1.5;color:var(--muted)}
.pick-category{color:var(--cat);font-weight:700}
.pick-meta code{font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
.pick-remove{flex:none;min-width:44px;min-height:44px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--accent);font:600 13px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.pick-remove:hover{text-decoration:underline}
.pick-remove:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
