/* Perslis Accessibility — micro-site styles.
   Built on dive.css + peel-site.css; only what those two do not already cover. */

.acc-code {
  margin: 1.1rem 0;
  padding: 1rem 1.15rem;
  background: #0d121b;
  border: 1px solid var(--line, #263040);
  border-radius: 10px;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: .85rem;
  line-height: 1.65;
  color: #cfd8e6;
  -webkit-overflow-scrolling: touch;
}
.acc-code code { background: none; padding: 0; font: inherit; color: inherit; }

/* Route and comparison tables stay readable on a phone. */
.acc-table-wrap { margin: 1.1rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.acc-table-wrap table { min-width: 34rem; }
.acc-table-wrap code { font-size: .82em; white-space: nowrap; }

/* The chapter nav wraps rather than scrolling off on small screens. */
.peel-nav { flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .acc-code, .acc-table-wrap { scroll-behavior: auto; }
}

/* Skip link: off-screen until a keyboard user focuses it. This micro-site is
   about access, so the link stays rather than being dropped. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--blue, #75b7ff);
  color: #06121f;
  font-weight: 650;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; outline: 3px solid #fff; outline-offset: 2px; }

/* No mascot in this hero, so it should not reserve room for one. */
.peel-hero { min-height: auto; padding-bottom: 2.2rem; }

/* ---------------------------------------------------------------- the board
   Styled to match the TinkySpeak board builder: a dark panel, a cream sentence
   bar, and pastel tiles whose label band is the same hue at 68% brightness. */
.ts-band-section { padding-top: 1rem; }
.ts-board { max-width: 60rem; margin: 0 auto; }

/* one bar, at the top: what the other person said */
.ts-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem .55rem .5rem 1.1rem; margin-bottom: 1.1rem;
  background: #0f1520; border: 1px solid #2b3a4e; border-radius: 14px;
}
.ts-bar:focus-within { border-color: var(--blue, #75b7ff); }
.ts-barlabel { font-size: .66rem; letter-spacing: .12em; color: var(--dim, #919fb2); flex: 0 0 auto; }
.ts-bar input {
  flex: 1 1 auto; min-width: 0; padding: .65rem 0; font-size: 1.15rem;
  color: var(--ink, #dce4f0); background: none; border: 0;
}
.ts-bar input::placeholder { color: #5d6b80; font-size: 1rem; }
.ts-bar input:focus { outline: none; }
.ts-go { flex: 0 0 auto; width: 2.8rem; height: 2.8rem; border-radius: 10px; cursor: pointer;
  background: var(--blue, #75b7ff); color: #06121f; border: 0; font-size: 1rem; }
.ts-go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* the board panel itself */
.ts-panel-board {
  background: #14161f; border-radius: 20px; padding: 1.1rem 1.1rem 1.3rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.ts-boardtitle { color: #fff; font-size: 1.45rem; font-weight: 700; margin: .25rem .3rem 1rem; text-align: left; }

/* the cream sentence bar */
.ts-say {
  display: flex; align-items: center; gap: .7rem;
  background: #fffaea; border-radius: 10px; padding: .6rem .7rem; margin-bottom: 1rem;
  border: 2px solid transparent;
}
.ts-say.is-draft { border-color: #f0b429; }
.ts-move {
  flex: 0 0 auto; background: #15161c; color: #fff; border-radius: 20px;
  padding: .22rem .7rem; font-size: .72rem; font-weight: 600;
}
.ts-saytext { flex: 1 1 auto; color: #1d2330; font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.ts-saytext.is-hint { color: #8a8372; font-style: italic; font-weight: 400; }
.ts-say-btn {
  flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 8px; cursor: pointer;
  border: 0; font-size: .95rem; line-height: 1;
}
.ts-speak { background: #2563c9; color: #fff; }
.ts-speak[disabled] { background: #c9c3b2; cursor: default; }
.ts-clear { background: #15161c; color: #fff; }
.ts-say-btn:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }

/* the tiles: pastel face, darker label band */
.ts-tiles { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-tile {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--face); border: 0; border-radius: 10px; font: inherit;
  transition: transform .12s, box-shadow .12s;
}
.ts-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.ts-tile:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ts-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
  padding: 1.5rem .7rem 1.2rem; min-height: 6.2rem;
}
.ts-emoji { font-size: 2.6rem; line-height: 1; }
.ts-art svg { width: 54px; height: 54px; }
.ts-art rect { fill: hsl(var(--h) 60% 80%); stroke: hsl(var(--h) 45% 45%); stroke-width: 2; }
.ts-art text { fill: hsl(var(--h) 55% 28%); font: 700 20px ui-sans-serif, system-ui; }
.ts-price { font-size: .85rem; font-weight: 700; color: #3a3a2e; }
.ts-band {
  background: var(--band); color: #14161f; padding: .5rem .4rem; min-height: 2rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-align: center;
  display: flex; align-items: center; justify-content: center; line-height: 1.15;
}
.ts-empty {
  grid-column: 1 / -1; color: #6f7788; font-size: 1rem; text-align: center;
  padding: 3rem 1rem; border: 2px dashed #2b3040; border-radius: 10px;
}
.ts-note-small { color: var(--dim, #919fb2); font-size: .8rem; margin: .7rem 0 0; }

/* suggestions and photos, under the board */
.ts-under { margin-top: 1.5rem; display: grid; gap: .85rem; }
.ts-quickrow, .ts-scanrow { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ts-quicklabel { font-size: .66rem; letter-spacing: .12em; color: var(--dim, #919fb2); margin-right: .2rem; }
.ts-quick { padding: .4rem .8rem; border-radius: 20px; cursor: pointer; font: inherit; font-size: .85rem;
  background: #111823; color: var(--muted, #b0bbca); border: 1px solid #263040; }
.ts-quick:hover { border-color: var(--blue, #75b7ff); color: var(--ink, #dce4f0); }
.ts-scan { padding: 0; background: #0f1520; border: 1px solid #263040; border-radius: 10px;
  overflow: hidden; cursor: pointer; color: var(--ink, #dce4f0); font: inherit; }
.ts-scan:hover { border-color: var(--teal, #82decf); }
.ts-scan img { display: block; width: 140px; height: 96px; object-fit: cover; }
.ts-scan span { display: block; padding: .35rem .5rem; font-size: .78rem; }

/* builder detail, folded away from the board */
.ts-more { margin-top: 1.7rem; border-top: 1px solid #1c2534; padding-top: 1rem; }
.ts-more summary { cursor: pointer; font-size: .9rem; color: var(--blue, #75b7ff); }
.ts-controls { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 1.4rem; align-items: center; }
.ts-controls label { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.ts-controls select { padding: .35rem .5rem; background: #0f1520; color: var(--ink, #dce4f0);
  border: 1px solid #263040; border-radius: 8px; font: inherit; font-size: .85rem; }
.ts-reset { padding: .45rem 1rem; border-radius: 9px; cursor: pointer; font: inherit; font-size: .85rem;
  background: #111823; color: var(--muted, #b0bbca); border: 1px solid #263040; }
.ts-twocol { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.ts-twocol h4 { font-size: .85rem; margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.ts-badge { padding: .08rem .5rem; border-radius: 20px; background: #16304a; color: var(--blue, #75b7ff);
  font-size: .78rem; font-variant-numeric: tabular-nums; }
.ts-history { list-style: none; margin: 0; padding: 0; max-height: 14rem; overflow-y: auto; }
.ts-h { display: flex; gap: .55rem; padding: .35rem 0; border-bottom: 1px solid #1a2231; font-size: .85rem; }
.ts-h:last-child { border-bottom: 0; }
.ts-role { flex: 0 0 4.2rem; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .18rem; }
.ts-h-partner .ts-role { color: var(--dim, #919fb2); }
.ts-h-user .ts-role { color: var(--teal, #82decf); }
.ts-json { max-height: 14rem; overflow: auto; font-size: .7rem; margin: 0; }

@media (max-width: 620px) {
  .ts-bar { flex-wrap: wrap; }
  .ts-barlabel { width: 100%; }
  .ts-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-emoji { font-size: 2.1rem; }
  .ts-saytext { font-size: .95rem; }
}
