/* The Moving Board (#83). Builds on styles.css and reset/reset.css for the page shell.
   Layout follows the reset tools: every block is a panel on the same column as the header. */
.board-page { --board-navy: #1d2a44; --board-paper: #f3f1ea; --board-pencil: #b9c2d2; }
.board-page .reset-hero-copy h1 { max-width: none; font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.board-page .reset-hero { margin-bottom: 1.1rem; }
.board-page .panel { margin-bottom: 1rem; }
.board-page button:disabled { opacity: .45; cursor: not-allowed; }
.board-page input[type="text"] { border: 1.5px solid var(--line); border-radius: .9rem; padding: .7rem .9rem; background: #fff; color: var(--ink); min-height: 48px; width: 100%; font-size: 1rem; }

.board-panel-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.2rem; }
.board-panel-head h2 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.08; letter-spacing: -.035em; }
.board-panel-head .board-note { margin-top: .6rem; max-width: 44rem; }
.board-panel-head .eyebrow { margin-bottom: .5rem; }
.board-note { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; max-width: 34rem; }
.board-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.board-detail textarea { border: 1.5px solid var(--line); border-radius: .9rem; padding: .7rem .9rem; background: #fff; color: var(--ink); min-height: 48px; width: 100%; font: inherit; font-size: 1rem; line-height: 1.35; resize: none; field-sizing: content; }
@media (max-width: 560px) {
  /* Equal buttons in two columns, so "Clear tile" no longer drops alone under the others. */
  .board-detail .board-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-detail .board-actions > button, .board-detail .board-actions > label { width: 100%; justify-content: center; text-align: center; }
}
.board-small { min-height: 42px; padding: .55rem 1rem; font-size: .92rem; }

/* Step 1: feelings */
.board-feel { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 1rem 2rem; align-items: end; }
.board-feel h2 { margin: 0 0 .9rem; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.08; letter-spacing: -.035em; }
.board-feel .eyebrow { margin-bottom: .5rem; }
.board-feel .board-note { margin-top: .7rem; }
.board-feelings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.board-chip { display: flex; align-items: center; gap: .5rem; white-space: nowrap; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .6rem 1rem; font-weight: 800; font-size: .98rem; min-height: 46px; transition: transform .15s ease, background-color .2s ease; }
.board-chip::before { content: ""; flex: 0 0 auto; width: .85rem; height: .85rem; border-radius: 50%; background: var(--chip-colour, var(--board-pencil)); }
.board-chip:hover { transform: translateY(-1px); }
.board-chip[aria-pressed="true"] { background: var(--chip-colour, var(--ink)); border-color: var(--ink); }
.board-chip[aria-pressed="true"]::before { background: var(--ink); }
.board-word-row { display: grid; gap: .5rem; padding-left: 2rem; border-left: 1px solid var(--line); }
.board-word-row label { font-weight: 800; }
.board-word-row input[type="text"] { font-weight: 800; }
.board-word-row button { white-space: nowrap; }

/* Step 2: the board */
.board-layouts { display: inline-flex; gap: .3rem; padding: .25rem; border-radius: 999px; background: rgba(23, 32, 51, .06); }
.board-layouts button { border: 0; background: transparent; color: var(--ink); border-radius: 999px; padding: .5rem 1rem; font-weight: 800; font-size: .92rem; min-height: 40px; }
.board-layouts button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(23, 32, 51, .12); }
.board-example { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.2rem; padding: .9rem 1.1rem; border-radius: 1rem; background: #fff3d1; border: 1px solid #f0d58a; }
.board-example p { margin: 0; flex: 1 1 24rem; line-height: 1.5; }
.board-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.board-stage .board-grid { align-self: start; }
.board-grid { display: grid; gap: .55rem; aspect-ratio: 1; width: 100%; background: var(--board-paper); border: 1px solid var(--line); border-radius: 1.3rem; padding: .55rem; }
.board-grid[data-layout="25"] { gap: .3rem; padding: .35rem; }
.board-tile { position: relative; overflow: hidden; min-width: 0; min-height: 0; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; gap: .5rem; padding: .8rem .85rem; border-radius: .9rem; border: 1.5px dashed var(--board-pencil); background: #fff; color: var(--ink); transition: background-color .35s ease, border-color .35s ease, transform .15s ease; }
button.board-tile:hover { transform: translateY(-2px); }
.board-tile.is-empty { align-items: center; justify-content: center; gap: .1rem; color: var(--muted); text-align: center; }
.board-tile-plus { font-size: 1.8rem; font-weight: 300; line-height: 1; }
.board-tile-add { font-size: .78rem; font-weight: 750; }
.board-tile.is-lit { border-style: solid; border-color: transparent; background: var(--tile-colour); }
.board-tile[aria-current="true"] { box-shadow: 0 0 0 3px var(--ink); }
.board-tile-area, .board-tile-mark { position: relative; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-tile-mark { position: absolute; top: .6rem; right: .65rem; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--ink); color: #fff !important; font-size: .8rem; letter-spacing: 0; }
.board-tile-mark:empty { display: none; }
.board-tile.is-lit .board-tile-area, .board-tile.is-lit .board-tile-mark { color: rgba(23, 32, 51, .74); }
.board-tile-want { position: relative; font-weight: 800; font-size: clamp(.78rem, 1.6vw, 1.3rem); line-height: 1.16; letter-spacing: -.01em; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.board-tile-photo { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(1) brightness(.85); transition: filter .5s ease; }
.board-tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(23, 32, 51, .2), rgba(23, 32, 51, .78)); }
.board-tile.is-lit .board-tile-photo { filter: none; }
.board-tile.has-photo, .board-tile.has-photo .board-tile-area, .board-tile.has-photo .board-tile-mark { color: #fff; border-color: transparent; border-style: solid; }
.board-word-tile { background: var(--board-navy); color: #fff; border: 0; align-items: center; justify-content: center; text-align: center; gap: .4rem; }
.board-word-tile .board-tile-area { color: #c7d2e6; white-space: normal; }
.board-word-text { font-weight: 850; font-size: clamp(1.1rem, 2.9vw, 2.2rem); letter-spacing: -.03em; line-height: 1; overflow-wrap: anywhere; }
.board-grid[data-layout="25"] .board-tile { padding: .35rem .4rem; border-radius: .5rem; }
.board-grid[data-layout="25"] .board-tile-want { font-size: clamp(.5rem, .95vw, .8rem); }
.board-grid[data-layout="25"] .board-tile-area { font-size: .48rem; }
.board-grid[data-layout="25"] .board-tile { gap: .25rem; }
.board-grid[data-layout="25"] .board-tile-mark { top: .25rem; right: .25rem; width: .95rem; height: .95rem; font-size: .55rem; }
.board-grid[data-layout="25"] .board-tile-add { display: none; }
.board-grid[data-layout="25"] .board-word-text { font-size: clamp(.6rem, 1.4vw, 1.05rem); }
.board-grid[data-layout="25"] .board-word-tile .board-tile-area { font-size: .42rem; }

.board-card { display: grid; gap: .8rem; border: 1px solid var(--line); border-radius: 1.3rem; padding: clamp(1rem, 2vw, 1.4rem); background: rgba(255, 255, 255, .86); min-width: 0; }
.board-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.15; }
.board-card .eyebrow { margin: 0; }
.board-card label { font-weight: 800; font-size: .9rem; color: var(--muted); }
.board-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.board-area-chips .board-chip { min-height: 40px; padding: .45rem .85rem; font-size: .9rem; border-radius: 999px; }
.board-area-chips .board-chip::before { content: none; }
.board-area-chips .board-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.board-idea-buttons { display: grid; gap: .5rem; }
.board-idea-button { display: grid; gap: .2rem; text-align: left; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 1rem; padding: .8rem .95rem; font-size: 1rem; transition: transform .15s ease, border-color .15s ease; }
.board-idea-button span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.board-idea-button:hover { border-color: var(--ink); transform: translateY(-1px); }
.board-own { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; }
.board-own label { grid-column: 1 / -1; }
.board-photo-label { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 850; color: var(--ink) !important; font-size: .92rem !important; cursor: pointer; }
.board-detail .ghost { padding-inline: .6rem; text-decoration: underline; text-underline-offset: .2em; font-weight: 750 !important; }
.board-photo-label:focus-within { outline: 3px solid rgba(37, 99, 235, .38); outline-offset: 3px; }
.board-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Step 3: progress and saving share one card with the tile editor */
.board-side { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.board-detail { display: grid; gap: .8rem; align-content: start; padding: clamp(1rem, 2vw, 1.4rem); flex: 1 1 auto; }
.board-detail h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.15; }
.board-progress { display: grid; gap: .8rem; padding: clamp(1rem, 2vw, 1.4rem); border-top: 1px solid var(--line); background: rgba(23, 32, 51, .025); }
.board-meter { display: flex; align-items: center; gap: .8rem; font-weight: 850; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.board-meter-track { flex: 1; height: .7rem; border-radius: 999px; background: rgba(23, 32, 51, .08); overflow: hidden; }
.board-meter-track span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .4s ease; }
.board-line { margin: 0; font-weight: 750; font-size: 1.05rem; line-height: 1.4; }
.board-status { margin: 0; font-weight: 750; color: #a4470f; }
.board-status:empty { display: none; }
.board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; }
.board-foot .board-note { font-size: .88rem; }
.board-foot .ghost { padding-inline: .4rem; text-decoration: underline; text-underline-offset: .2em; font-weight: 750; }

/* What's different */
.board-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.board-pair .panel { margin: 0; }
.board-pair h2 { margin: 0 0 1rem; font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.035em; line-height: 1.1; }
.board-pair ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: 1.05rem; line-height: 1.45; }
.board-pair li { display: flex; gap: .7rem; align-items: baseline; }
.board-pair li::before { content: "–"; color: var(--muted); font-weight: 800; }
.board-usual { color: var(--muted); }
.board-usual h2 { color: var(--ink); }
.board-moving { background: #e6f0ea; }
.board-moving li { font-weight: 700; }
.board-moving li::before { content: "✓"; color: #2f7a57; }

/* How to */
.board-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; counter-reset: board-step; }
.board-steps li { counter-increment: board-step; border: 1px solid var(--line); border-radius: 1.25rem; background: rgba(255, 255, 255, .7); padding: 1.1rem; color: var(--muted); line-height: 1.55; font-size: .96rem; }
.board-steps li::before { content: "0" counter(board-step); display: block; font-size: .78rem; font-weight: 900; letter-spacing: .12em; color: #a4470f; margin-bottom: .5rem; }
.board-steps strong { display: block; color: var(--ink); font-size: 1.2rem; line-height: 1.15; letter-spacing: -.02em; margin-bottom: .5rem; }

/* Ideas */
.board-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.board-tabs button { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 800; min-height: 44px; }
.board-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.board-area h3 { margin: 1.4rem 0 .7rem; font-size: 1.2rem; }
.board-tabbed .board-area h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.board-area ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.board-area li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .9rem; align-items: center; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255, 255, 255, .8); padding: .85rem 1rem; }
.board-idea-want { font-weight: 800; font-size: 1.02rem; line-height: 1.3; }
.board-idea-step { grid-column: 1; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.board-idea-add { grid-column: 2; grid-row: 1 / span 2; }
.board-idea-more { margin: 1rem 0 0; color: var(--muted); }
.board-idea-more a { color: var(--ink); font-weight: 750; text-underline-offset: .2em; }

/* Questions */
.board-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.board-faq div { border: 1px solid var(--line); border-radius: 1.25rem; background: rgba(255, 255, 255, .7); padding: 1.1rem 1.2rem; }
.board-faq h3 { margin: 0 0 .45rem; font-size: 1.12rem; letter-spacing: -.01em; }
.board-faq p { margin: 0; color: var(--muted); line-height: 1.65; }

@media (max-width: 1000px) {
  .board-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .board-stage, .board-pair, .board-faq, .board-area ul { grid-template-columns: minmax(0, 1fr); }
  .board-feel { grid-template-columns: minmax(0, 1fr); }
  .board-feelings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-word-row { padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .board-steps { grid-template-columns: minmax(0, 1fr); }
  .board-grid { gap: .3rem; padding: .3rem; border-radius: .9rem; }
  .board-tile { padding: .4rem .45rem; border-radius: .55rem; }
  .board-tile-area { font-size: .48rem; }
  .board-tile-want { font-size: .7rem; }
  .board-tile-mark { top: .3rem; right: .3rem; width: 1rem; height: 1rem; font-size: .58rem; }
  .board-tile { gap: .25rem; }
  .board-tile-add { display: none; }
  .board-grid[data-layout="25"] { gap: .18rem; padding: .2rem; }
  .board-grid[data-layout="25"] .board-tile { padding: .18rem .2rem; border-width: 1px; }
  .board-grid[data-layout="25"] .board-tile-area { display: none; }
  /* On a phone the bingo squares grow taller than they are wide, so the words stay readable (#83). */
  .board-grid[data-layout="25"] { aspect-ratio: auto; }
  .board-grid[data-layout="25"] .board-tile { min-height: 5.4rem; justify-content: flex-start; }
  .board-grid[data-layout="25"] .board-tile-want { font-size: .64rem; line-height: 1.16; -webkit-line-clamp: 9; line-clamp: 9; hyphens: auto; overflow-wrap: break-word; }
  .board-grid[data-layout="25"] .board-word-tile { justify-content: center; }
  .board-grid[data-layout="25"] .board-word-text { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .board-tile, .board-tile-photo, .board-meter-track span, .board-chip, .board-idea-button { transition: none; }
  button.board-tile:hover, .board-chip:hover, .board-idea-button:hover { transform: none; }
}
.board-page [hidden] { display: none !important; }
.board-note a { color: var(--ink); font-weight: 750; text-underline-offset: .2em; }
/* Sharing row under the save buttons. */
.board-own-line { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; min-width: 0; }
.board-line-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; min-width: 0; }
.board-line-pick label { font-size: .88rem; font-weight: 750; color: var(--muted); }
.board-line-pick select { flex: 1 1 12rem; width: 12rem; min-width: 0; max-width: 100%; min-height: 2.6rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: .7rem; background: #fff; color: var(--ink); font: inherit; font-size: .92rem; }
.board-share-row { gap: .5rem 1rem; }
.board-backup-row { margin-top: .5rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.board-foot label.board-restore-label { cursor: pointer; display: inline-flex; align-items: center; min-height: 2.4rem; color: var(--ink); font-size: .92rem; }
.board-restore-label:has(+ input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.board-pin-link { color: var(--ink); font-weight: 750; font-size: .92rem; text-underline-offset: .2em; }

/* Example boards (#83). */
.board-samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.2rem; }
.board-sample { scroll-margin-top: 6rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; margin: 0; }
.board-sample img { display: block; width: 100%; height: auto; border-radius: 1rem; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(23, 32, 51, .12); }
.board-sample figcaption { font-size: .93rem; line-height: 1.5; color: var(--muted); }
.board-sample figcaption strong { color: var(--ink); }
.board-sample figcaption a { color: var(--ink); font-weight: 750; text-underline-offset: .2em; white-space: nowrap; }
@media (max-width: 520px) { .board-samples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } }

/* Themed ideas page (/vision-board/ideas/, #83) */
.board-theme-jump{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.board-theme-jump a{padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:700;font-size:.92rem;text-decoration:none}
.board-cta{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.board-cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:18px 0 0}
.board-text-link{color:var(--ink);font-weight:750;text-underline-offset:.2em}
.board-page .reset-hero:has(.board-theme-jump){margin-bottom:1.4rem}
.board-theme-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,280px);gap:32px;align-items:center}
.board-theme-copy{min-width:0}
.board-theme-list{margin:14px 0 20px;padding-left:20px;columns:2 220px;column-gap:28px}
.board-theme-list li{break-inside:avoid;margin-bottom:6px}
.board-theme{margin:0}
.board-theme img{display:block;width:100%;height:auto;border-radius:18px;box-shadow:0 18px 40px rgba(32,45,77,.16)}
.board-theme figcaption{display:flex;gap:16px;margin-top:10px;font-weight:700;font-size:.92rem}
.board-theme-steps{margin:0 0 20px;padding-left:22px;display:grid;gap:10px;max-width:70ch}
@media (max-width:760px){.board-theme-layout{grid-template-columns:minmax(0,1fr)}.board-theme{max-width:360px}}
.board-page .reset-related-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,12.5rem),1fr))}
.board-theme figcaption a{color:var(--ink)}
