/* name-wall.css: the page "The Name Wall" (website idea 3, 17 Nov 2026).
   All rules are .nwx-. The page's frame (hero, sections, jump links) is assets/start-page.css. */
.nwx-main { max-width: 70rem; }
.nwx-lead { margin: 0 0 1rem; max-width: 46rem; font-size: 1.06rem; line-height: 1.6; }
.nwx-main [hidden] { display: none !important; }

/* the spellings to choose from */
.nwx-chipbox { margin: 0 0 1.2rem; }
.nwx-chiplead { margin: 0 0 0.5rem; font-size: 0.95rem; color: #5a4c38; }
.nwx-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.nwx-chip { min-height: 2.3rem; padding: 0.25rem 0.85rem; border: 1px solid rgba(138, 100, 32, 0.6); border-radius: 999px; background: #fffdf7; color: #1c2a3f; font: inherit; font-size: 0.95rem; cursor: pointer; }
.nwx-chip small { margin-left: 0.25rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.74rem; font-weight: 700; color: #8a6420; }
.nwx-chip:hover { border-color: #1c2a3f; }
.nwx-chip[aria-pressed="true"] { background: #1c2a3f; border-color: #1c2a3f; color: #f6f1e7; }
.nwx-chip[aria-pressed="true"] small { color: #e8cd8a; }
.nwx-chip:focus-visible, .nwx-dot:focus-visible, .nwx-game button:focus-visible, .nwx-dlg button:focus-visible, .nwx-more a:focus-visible { outline: 2px solid #8a6420; outline-offset: 2px; }

/* the wall */
/* r3 (19 Nov 2026): three tiles in a row on a wide window and two on a middle one (four and three before), so that a window can grow with its box */
.nwx-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.nwx-tile { display: flex; flex-direction: column; margin: 0; padding: 0.75rem 0.85rem 0.9rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 6px; background: #fffdf7; scroll-margin-top: 8rem; transition: opacity 0.15s; }
.nwx-tile:target { outline: 2px solid #1c2a3f; outline-offset: 2px; }
.nwx-wall.nwx-filter .nwx-tile:not(.nwx-on) { opacity: 0.26; }
.nwx-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin: 0 0 0.5rem; min-height: 1.5rem; }
.nwx-year { margin-right: auto; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; color: #8a6420; font-variant-numeric: tabular-nums; }
.nwx-tag { padding: 0.05rem 0.5rem; border: 1px solid #1c2a3f; border-radius: 999px; background: #1c2a3f; color: #f6f1e7; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.nwx-tag-typed { background: transparent; border-color: rgba(138, 100, 32, 0.6); color: #6b5226; }
.nwx-plaque { display: flex; align-items: center; justify-content: center; height: 6.4rem; padding: 0.55rem; box-sizing: border-box; border: 1px solid rgba(60, 50, 35, 0.22); border-radius: 4px; background: #f1ece1; }
/* r3: a window is as wide as its tile allows, no higher than 5.2rem, and on the wall no wider than 2.7 times the points of the image it shows */
.nwx-win { position: relative; display: block; overflow: hidden; width: min(100%, calc(5.2rem * var(--r)), calc(var(--n, 9999) * 2.7px)); border-radius: 2px; background: #fff; }
.nwx-main .nwx-win img { position: absolute; display: block; max-width: none; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.nwx-typed { background: #fbf8f1; border-style: dashed; }
.nwx-type { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 2rem; line-height: 1; color: #1c2a3f; letter-spacing: 0.01em; }
.nwx-main .nwx-name { margin: 0.65rem 0 0.2rem; font-size: 1.25rem; line-height: 1.2; color: #1c2a3f; }
.nwx-rec { margin: 0 0 0.25rem; font-size: 0.95rem; line-height: 1.45; color: #2c2620; }
.nwx-by { margin: 0; font-size: 0.88rem; line-height: 1.4; color: #5a4c38; }
.nwx-by span { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8a6420; margin-right: 0.2rem; }
.nwx-more { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin: auto 0 0; padding-top: 0.6rem; font-size: 0.88rem; font-weight: 700; }

.nwx-other .nwx-rec { font-size: 0.92rem; }
.nwx-main .nwx-h3 { margin: 2rem 0 0.5rem; font-size: 1.2rem; color: #1c2a3f; scroll-margin-top: 8rem; }
.nwx-ledwrap { max-width: 46rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 6px; background: #fffdf7; overflow-x: auto; }
.nwx-main table.nwx-led { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.95rem; }
.nwx-main table.nwx-led th, .nwx-main table.nwx-led td { padding: 0.4rem 0.8rem !important; border: 0 !important; border-bottom: 1px solid rgba(190, 150, 70, 0.25) !important; text-align: left; vertical-align: top; background: transparent !important; }
.nwx-main table.nwx-led th { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8a6420; }
.nwx-main table.nwx-led td.y { white-space: nowrap; font-variant-numeric: tabular-nums; color: #5a4c38; }
.nwx-main table.nwx-led td.f { font-weight: 700; color: #1c2a3f; }
.nwx-main table.nwx-led tr:last-child td { border-bottom: 0 !important; }
/* the whole entry, shown over the page */
.nwx-dlg { width: min(64rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 1rem; box-sizing: border-box; border: 1px solid rgba(138, 100, 32, 0.7); border-radius: 8px; background: #fffdf7; color: #1f1a14; }
.nwx-dlg::backdrop { background: rgba(20, 31, 48, 0.72); }
.nwx-dlg img { display: block; width: 100%; height: auto; border: 1px solid rgba(60, 50, 35, 0.22); background: #fff; }
.nwx-dlg p { margin: 0.7rem 0 0; font-size: 0.98rem; line-height: 1.5; }
.nwx-dlg form { display: flex; justify-content: flex-end; margin: 0 0 0.6rem; }
.nwx-dlg button, .nwx-game button { min-height: 2.6rem; padding: 0.4rem 1.1rem; border: 1px solid #1c2a3f; border-radius: 5px; background: #1c2a3f; color: #f6f1e7; font: inherit; font-weight: 700; cursor: pointer; }

/* the chart: a row for each spelling, a mark for each record */
.nwx-chart { position: relative; max-width: 58rem; --nwx-lab: 5.6rem; --nwx-ink: #1c2a3f; --nwx-surface: #fffdf7; padding: 0.4rem 0.9rem 0.6rem 0; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 6px; background: var(--nwx-surface); }
.nwx-row { display: grid; grid-template-columns: var(--nwx-lab) minmax(0, 1fr); align-items: center; height: 1.8rem; transition: opacity 0.15s; }
.nwx-lab { padding-right: 0.7rem; text-align: right; font-size: 0.93rem; color: #2c2620; white-space: nowrap; }
.nwx-track { position: relative; display: block; height: 100%; }
.nwx-axis { height: 1.5rem; }
.nwx-axis i { position: absolute; top: 0.2rem; transform: translateX(-50%); font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.72rem; font-style: normal; color: #6b5a40; font-variant-numeric: tabular-nums; }
.nwx-plot { position: relative; border-top: 1px solid rgba(60, 50, 35, 0.25); }
.nwx-plot .nwx-row + .nwx-row { border-top: 1px solid rgba(60, 50, 35, 0.07); }
.nwx-grid { position: absolute; left: var(--nwx-lab); right: 0; top: 0; bottom: 0; pointer-events: none; }
.nwx-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(60, 50, 35, 0.13); }
.nwx-span { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--nwx-ink); }
.nwx-dot { position: absolute; top: 50%; width: 1.5rem; height: 1.5rem; margin: -0.75rem 0 0 -0.75rem; transform: translateX(calc(var(--k) * 11px)); border-radius: 50%; }
.nwx-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--nwx-ink); box-shadow: 0 0 0 2px var(--nwx-surface); }
.nwx-dot-own::before { border-radius: 2px; }
.nwx-dot:hover::before, .nwx-dot:focus-visible::before { box-shadow: 0 0 0 2px var(--nwx-surface), 0 0 0 4px #8a6420; }
.nwx-chart.nwx-filter .nwx-row:not(.nwx-on):not(.nwx-axis) { opacity: 0.26; }
.nwx-tip { position: absolute; z-index: 3; max-width: 17rem; padding: 0.4rem 0.6rem; border-radius: 5px; background: #1c2a3f; color: #f6f1e7; font-size: 0.86rem; line-height: 1.35; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); }
.nwx-tip b { display: block; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.8rem; letter-spacing: 0.03em; }
.nwx-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 0.6rem 0 0; font-size: 0.88rem; color: #5a4c38; }
.nwx-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.nwx-key { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #1c2a3f; }
.nwx-key-own { border-radius: 2px; }
.nwx-key-span { width: 1.6rem; height: 2px; border-radius: 0; }

/* the game */
.nwx-game { max-width: 42rem; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 8px; background: #fffdf7; }
.nwx-gcount { margin: 0 0 0.6rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8a6420; }
.nwx-gstage { display: flex; align-items: center; justify-content: center; height: 10.6rem; padding: 0.8rem; box-sizing: border-box; border: 1px solid rgba(60, 50, 35, 0.22); border-radius: 4px; background: #f1ece1; }
.nwx-gwin { width: min(100%, calc(8.6rem * var(--r))); }
.nwx-gq { margin: 0.9rem 0 0.5rem; font-size: 1.02rem; font-weight: 700; color: #1c2a3f; }
.nwx-gopts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.nwx-game .nwx-gopts button { background: #fff; color: #1c2a3f; border-color: rgba(138, 100, 32, 0.7); font-weight: 600; font-size: 1.05rem; }
.nwx-game .nwx-gopts button:hover:not(:disabled) { border-color: #1c2a3f; }
.nwx-game .nwx-gopts button:disabled { cursor: default; opacity: 0.55; }
.nwx-game .nwx-gopts button.is-right { opacity: 1; background: #1c2a3f; border-color: #1c2a3f; color: #f6f1e7; }
.nwx-game .nwx-gopts button.is-wrong { opacity: 1; border-style: dashed; border-color: #1c2a3f; text-decoration: line-through; }
.nwx-gfb { margin: 0.9rem 0 0; min-height: 3.2rem; font-size: 1rem; line-height: 1.5; }
.nwx-gfb b { color: #1c2a3f; }
.nwx-gfb span { display: block; font-size: 0.92rem; color: #5a4c38; }
.nwx-gnext { margin-top: 0.8rem; }
.nwx-game noscript p { margin: 0; color: #5a4c38; }
.nwx-gend { margin: 0 0 0.9rem; font-size: 1.15rem; line-height: 1.5; color: #1c2a3f; }
#how p { max-width: 46rem; font-size: 1.02rem; line-height: 1.6; margin: 0 0 0.8rem; }

/* dark */
html.theme-dark .nwx-chiplead, html.theme-dark .nwx-by, html.theme-dark .nwx-legend, html.theme-dark .nwx-gfb span { color: #c8b896; }
html.theme-dark .nwx-chip { background: #1f2e45; color: #f3ead6; border-color: rgba(216, 179, 102, 0.5); }
html.theme-dark .nwx-chip small, html.theme-dark .nwx-year, html.theme-dark .nwx-by span, html.theme-dark .nwx-gcount { color: #d8b366; }
html.theme-dark .nwx-chip[aria-pressed="true"] { background: #d8b366; border-color: #d8b366; color: #141f30; }
html.theme-dark .nwx-chip[aria-pressed="true"] small { color: #141f30; }
html.theme-dark .nwx-main .nwx-h3, html.theme-dark .nwx-main table.nwx-led td.f { color: #f3ead6; }
html.theme-dark .nwx-main table.nwx-led th { color: #d8b366; }
html.theme-dark .nwx-main table.nwx-led td.y { color: #c8b896; }
html.theme-dark .nwx-ledwrap, html.theme-dark .nwx-tile, html.theme-dark .nwx-game, html.theme-dark .nwx-dlg { background: #1f2e45; border-color: rgba(216, 179, 102, 0.45); color: #f3ead6; }
html.theme-dark .nwx-tile:target { outline-color: #d8b366; }
html.theme-dark .nwx-main .nwx-name, html.theme-dark .nwx-gq, html.theme-dark .nwx-gfb b, html.theme-dark .nwx-gend { color: #f3ead6; }
html.theme-dark .nwx-game noscript p { color: #c8b896; }
html.theme-dark .nwx-rec, html.theme-dark .nwx-lab { color: #e0d5bd; }
html.theme-dark .nwx-tag { background: #d8b366; border-color: #d8b366; color: #141f30; }
html.theme-dark .nwx-tag-typed { background: transparent; color: #e8cd8a; border-color: rgba(216, 179, 102, 0.5); }
html.theme-dark .nwx-plaque, html.theme-dark .nwx-gstage { background: #e9e2d2; border-color: rgba(216, 179, 102, 0.35); }
html.theme-dark .nwx-typed { background: #263752; }
html.theme-dark .nwx-type { color: #f3ead6; }
html.theme-dark .nwx-chart { --nwx-ink: #d8b366; --nwx-surface: #1f2e45; border-color: rgba(216, 179, 102, 0.45); }
html.theme-dark .nwx-axis i { color: #c8b896; }
html.theme-dark .nwx-plot { border-top-color: rgba(243, 234, 214, 0.3); }
html.theme-dark .nwx-plot .nwx-row + .nwx-row { border-top-color: rgba(243, 234, 214, 0.08); }
html.theme-dark .nwx-grid i { background: rgba(243, 234, 214, 0.14); }
html.theme-dark .nwx-key { background: #d8b366; }
html.theme-dark .nwx-tip { background: #f3ead6; color: #141f30; }
html.theme-dark .nwx-dlg button, html.theme-dark .nwx-game button { background: #d8b366; border-color: #d8b366; color: #141f30; }
html.theme-dark .nwx-game .nwx-gopts button { background: #141f30; color: #f3ead6; border-color: rgba(216, 179, 102, 0.5); }
html.theme-dark .nwx-game .nwx-gopts button.is-right { background: #d8b366; border-color: #d8b366; color: #141f30; }
html.theme-dark .nwx-game .nwx-gopts button.is-wrong { border-color: #d8b366; }

@media (max-width: 1099px) { .nwx-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .nwx-wall { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); }
  .nwx-chart { --nwx-lab: 4.7rem; padding-right: 0.7rem; }
  .nwx-lab { font-size: 0.84rem; padding-right: 0.5rem; }
  .nwx-dot { transform: translateX(calc(var(--k) * 9px)); }
  .nwx-dot::before { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .nwx-axis i.nwx-t5 { display: none; }
  .nwx-gstage { height: 8rem; }
  .nwx-gwin { width: min(100%, calc(6.2rem * var(--r))); }
}
@media (max-width: 430px) { .nwx-wall { grid-template-columns: 1fr; } .nwx-plaque.nwx-typed { height: 3.9rem; } .nwx-type { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { .nwx-tile, .nwx-row { transition: none; } }
@media print { .nwx-chipbox, #game, .nwx-more .nwx-whole { display: none !important; } .nwx-tile { break-inside: avoid; } }
