/* where-was-charles.css: the page "Where Was Charles?" (website ideas 5 and 11, 17 Nov 2026). All rules begin .wwx- */
.wwx-main { --wwx-ink: #1c2a3f; --wwx-mid: #6f819a; --wwx-dash: #7d7566; --wwx-gold: #8a6420; --wwx-surface: #fffdf7; --wwx-line: rgba(190, 150, 70, 0.6); --wwx-soft: #5a4c38; }
.wwx-lead { max-width: 46rem; margin: 0 0 1rem; }
.wwx-h3 { margin: 1.6rem 0 0.7rem; font-size: 1.2rem; color: #1c2a3f; }
.wwx-src { margin: 0.7rem 0 0; font-size: 0.92rem; color: var(--wwx-soft); max-width: 50rem; }
.wwx-src[hidden], .wwx-pick[hidden], .wwx-card[hidden] { display: none; }

/* ---- the date control */
.wwx-pick { padding: 1rem 1.1rem 0.9rem; border: 1px solid var(--wwx-line); border-radius: 8px; background: var(--wwx-surface); }
.wwx-strip { position: relative; display: flex; align-items: center; height: 34px; cursor: pointer; border-bottom: 1px solid var(--wwx-line); }
.wwx-strip .wwx-y { flex: 1 1 0; min-width: 0; height: 100%; }
.wwx-y { position: relative; display: inline-block; width: 16px; height: 16px; vertical-align: middle; }
.wwx-y::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; box-sizing: border-box; transform: translate(-50%, -50%); border-radius: 50%; }
.wwx-p::before { background: var(--wwx-ink); }
.wwx-v::before { background: var(--wwx-mid); }
.wwx-b::before { border: 2px solid var(--wwx-ink); }
.wwx-s::before { border: 2px solid var(--wwx-ink); border-radius: 0; width: 8px; height: 8px; transform: translate(-50%, -50%) rotate(45deg); }
.wwx-u::before { width: 5px; height: 5px; background: var(--wwx-ink); }
.wwx-x::before { display: none; }
.wwx-n::before { width: 8px; height: 2px; border-radius: 0; background: var(--wwx-dash); }
.wwx-a::before { width: 100%; height: 10px; border-radius: 0; background: var(--wwx-gold); }
.wwx-w::before { display: none; }
.wwx-army { position: absolute; top: 50%; height: 10px; margin-top: -5px; background: var(--wwx-gold); border-radius: 2px; pointer-events: none; }
.wwx-strip .wwx-y.wwx-on { background: rgba(138, 100, 32, 0.16); }
.wwx-now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #b3401e; pointer-events: none; }
.wwx-axis { position: relative; height: 1.3rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.74rem; color: var(--wwx-soft); font-variant-numeric: tabular-nums; }
.wwx-axis span { position: absolute; top: 0.2rem; transform: translateX(-50%); }
.wwx-range { display: block; width: 100%; margin: 0.1rem 0 0.8rem; accent-color: #1c2a3f; }
.wwx-ctl { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: flex-end; }
.wwx-ctl label { display: flex; flex-direction: column; gap: 0.2rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wwx-gold); }
.wwx-ctl select { font: inherit; font-family: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; padding: 0.42rem 0.5rem; border: 1px solid #8a7645; border-radius: 8px; background: #fff; color: #1f1a14; }
.wwx-btns { display: inline-flex; gap: 0.4rem; margin-left: auto; }
.wwx-main button { font: inherit; font-size: 0.92rem; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid #8a7645; background: #fff; color: #1c2a3f; cursor: pointer; }
.wwx-main button:disabled { opacity: 0.45; cursor: default; }
/* The site-wide rule "body.cine-typography *:focus-visible" sets a pale gilt ring with !important. On this page's light surfaces that ring
   is under 3:1, so the rings below are set with !important and one more step of weight. */
body .wwx-main button:focus-visible, body .wwx-main select:focus-visible, body .wwx-main .wwx-range:focus-visible, body .wwx-main summary:focus-visible, body .wwx-main .wwx-mapwrap:focus-visible, body .wwx-main a:focus-visible { outline: 2px solid #8a6420 !important; outline-offset: 2px !important; box-shadow: none !important; }
body .wwx-main .stx-hero a:focus-visible, body .wwx-main .stx-pills a:focus-visible { outline-color: #d8b366 !important; }   /* the head and the bar of the page are dark in both themes */
.wwx-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1.2rem; margin: 0.7rem 0 0; font-size: 0.88rem; color: var(--wwx-soft); }
.wwx-legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.wwx-legend .wwx-a { width: 22px; }
.wwx-legnote { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--wwx-soft); max-width: 50rem; }

/* ---- the reading for the chosen day */
.wwx-read { margin: 1.1rem 0 0; }
.wwx-nojs { margin: 0; padding: 0.8rem 1rem; border: 1px dashed var(--wwx-line); border-radius: 8px; color: var(--wwx-soft); }
.wwx-date { margin: 0 0 0.7rem; font-family: "Source Serif 4", Georgia, serif; font-size: 1.9rem; line-height: 1.15; color: #1c2a3f; }
.wwx-block { margin: 0 0 0.9rem; padding: 0.9rem 1.1rem 1rem; border: 1px solid var(--wwx-line); border-radius: 8px; background: var(--wwx-surface); max-width: 54rem; }
.wwx-bwar { border-left: 5px solid var(--wwx-gold); }
.wwx-bhead { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wwx-gold); }
.wwx-bsub { margin: 0.3rem 0 0.2rem; font-size: 0.95rem; color: var(--wwx-soft); }
.wwx-ba { margin: 0.8rem 0 0; font-size: 0.86rem; font-weight: 700; color: #1c2a3f; }
.wwx-item { margin: 0.5rem 0 0; }
.wwx-item + .wwx-item { padding-top: 0.6rem; border-top: 1px solid rgba(190, 150, 70, 0.35); }
.wwx-when { margin: 0; font-weight: 700; color: #1c2a3f; font-variant-numeric: tabular-nums; }
.wwx-main dl { margin: 0.35rem 0 0; display: grid; gap: 0.3rem; }
.wwx-main dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0 0.9rem; }
.wwx-main dt { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--wwx-soft); padding-top: 0.18rem; }
.wwx-main dd { margin: 0; line-height: 1.55; }
.wwx-at { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--wwx-soft); }
.wwx-at b { display: inline-block; min-width: 1.35rem; height: 1.35rem; line-height: 1.35rem; margin: 0 0.15rem; border-radius: 50%; background: #1c2a3f; color: #fff; text-align: center; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.78rem; }
.wwx-at.wwx-atr b { box-sizing: border-box; background: transparent; color: #1c2a3f; border: 1.5px dashed #1c2a3f; line-height: calc(1.35rem - 3px); }   /* placed by a reading: a dashed ring, as on the map */
.wwx-why { margin: 0.2rem 0 0; padding-left: 0.7rem; border-left: 2px dashed var(--wwx-dash, #6b6457); font-size: 0.9rem; line-height: 1.5; color: var(--wwx-soft); max-width: 46rem; }
.wwx-go { margin: 0.7rem 0 0; font-size: 0.95rem; font-weight: 700; }
.wwx-block .wwx-src { font-size: 0.86rem; }
.wwx-main a.wwx-c { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.78em; white-space: nowrap; }

/* ---- the map */
.wwx-mapwrap { max-width: 62rem; border: 1px solid var(--wwx-line); border-radius: 8px; overflow-x: auto; overflow-y: hidden; background: #e7dcc4; }
.wwx-map { position: relative; width: 100%; min-width: 640px; }
.wwx-map img { display: block; width: 100%; height: 100%; }
.wwx-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wwx-route path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.wwx-halo { stroke: rgba(255, 253, 247, 0.85); stroke-width: 6px; }
.wwx-line { stroke: #1c2a3f; stroke-width: 2.4px; stroke-dasharray: 7 6; }
.wwx-main a.wwx-pin { position: absolute; z-index: 2; box-sizing: border-box; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #1c2a3f; border: 2px solid #fffdf7; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); color: #fff !important; -webkit-text-fill-color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.wwx-pin b { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.9rem; line-height: 1; }
.wwx-pin span, .wwx-dot span { position: absolute; white-space: nowrap; padding: 0.08rem 0.4rem; border-radius: 4px; background: rgba(255, 253, 247, 0.92); color: #1c2a3f; -webkit-text-fill-color: #1c2a3f; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.8rem; font-weight: 700; line-height: 1.35; box-shadow: 0 0 0 1px rgba(28, 42, 63, 0.25); }
.wwx-pin small { font-weight: 400; font-size: 0.72rem; }
.wwx-side-top span { bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); }
.wwx-side-bottom span { top: calc(100% + 5px); left: 50%; transform: translateX(-50%); }
.wwx-side-right span { left: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
.wwx-side-left span { right: calc(100% + 6px); top: 50%; transform: translateY(-50%); text-align: right; }
.wwx-main a.wwx-pin.wwx-on { background: #b3401e; border-color: #fff; width: 38px; height: 38px; margin: -19px 0 0 -19px; z-index: 3; box-shadow: 0 0 0 4px rgba(179, 64, 30, 0.35), 0 1px 5px rgba(0, 0, 0, 0.5); }
.wwx-pin.wwx-on b { font-size: 1.05rem; }
/* a place where he is put only by a reading: paper inside, a dashed ring */
.wwx-main a.wwx-pin.wwx-pin-r { background: #fffdf7; border: 2.5px dashed #1c2a3f; color: #1c2a3f !important; -webkit-text-fill-color: #1c2a3f; }
.wwx-main a.wwx-pin.wwx-pin-r.wwx-on { background: #fffdf7; border-color: #8f2f12; color: #8f2f12 !important; -webkit-text-fill-color: #8f2f12; }
.wwx-dot { position: absolute; z-index: 1; width: 0; height: 0; }
.wwx-dot i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid #1c2a3f; background: #fffdf7; }
.wwx-dot span { right: 11px; top: -0.75rem; font-weight: 400; }
.wwx-credit { max-width: 62rem; margin: 0.5rem 0 0; font-size: 0.84rem; line-height: 1.5; color: var(--wwx-soft); }
.wwx-maplegend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--wwx-soft); max-width: 62rem; }
.wwx-maplegend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.wwx-lpin { flex: none; width: 1.3rem; height: 1.3rem; line-height: 1.3rem; border-radius: 50%; background: #1c2a3f; color: #fff; text-align: center; font-style: normal; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.76rem; font-weight: 700; }
.wwx-lpin.wwx-lpin-r { box-sizing: border-box; background: transparent; color: #1c2a3f; border: 1.5px dashed #1c2a3f; line-height: calc(1.3rem - 3px); }
.wwx-ldot { flex: none; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid #1c2a3f; background: #fffdf7; }
.wwx-lline { flex: none; width: 30px; height: 0; border-top: 2.4px dashed #1c2a3f; }

/* ---- the chosen entry, and the list */
.wwx-card { max-width: 54rem; margin: 1rem 0 0; padding: 0.8rem 1.1rem 1rem; border: 1px solid var(--wwx-line); border-left: 5px solid #b3401e; border-radius: 8px; background: var(--wwx-surface); }
.wwx-step { display: flex; align-items: center; gap: 0.7rem; }
.wwx-step span { flex: 1; text-align: center; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.82rem; color: var(--wwx-soft); font-variant-numeric: tabular-nums; }
.wwx-hint { min-height: 1.4em; margin: 0.6rem 0 0; font-size: 0.92rem; color: var(--wwx-soft); }
.wwx-entries, .wwx-ylist { list-style: none; margin: 0; padding: 0; max-width: 54rem; }
.wwx-entries > li, .wwx-ylist > li { padding: 0.75rem 0.8rem 0.8rem; border-top: 1px solid rgba(190, 150, 70, 0.4); scroll-margin-top: 8rem; }
.wwx-entries > li.wwx-same { background: rgba(138, 100, 32, 0.07); }
.wwx-entries > li.wwx-sel { background: rgba(179, 64, 30, 0.09); box-shadow: inset 4px 0 0 #b3401e; }
.wwx-ylist > li:target, .wwx-entries > li:target, .wwx-flash { background: rgba(138, 100, 32, 0.14); }
.wwx-main .wwx-ebtn { padding: 0.2rem 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wwx-ylist .wwx-when { font-size: 1.1rem; }
.wwx-ylist .wwx-when .wwx-y { margin-right: 0.35rem; }
.wwx-years { margin: 0.4rem 0 0; }
.wwx-years summary { padding: 0.5rem 0; font-weight: 700; color: #24497a; cursor: pointer; }

/* ---- dark */
html.theme-dark .wwx-main { --wwx-ink: #f3ead6; --wwx-mid: #93a5bf; --wwx-dash: #9a917f; --wwx-gold: #d8b366; --wwx-surface: #1f2e45; --wwx-line: rgba(216, 179, 102, 0.45); --wwx-soft: #c8b896; }
html.theme-dark .wwx-h3, html.theme-dark .wwx-date, html.theme-dark .wwx-when, html.theme-dark .wwx-ba { color: #f3ead6; }
html.theme-dark .wwx-ctl select, html.theme-dark .wwx-main button { background: #141f30; border-color: #8494b0; color: #f3ead6; }
html.theme-dark .wwx-range { accent-color: #d8b366; }
html.theme-dark .wwx-now { background: #ff9a6b; }
html.theme-dark .wwx-strip .wwx-y.wwx-on { background: rgba(216, 179, 102, 0.2); }
html.theme-dark body .wwx-main button:focus-visible, html.theme-dark body .wwx-main select:focus-visible, html.theme-dark body .wwx-main .wwx-range:focus-visible, html.theme-dark body .wwx-main summary:focus-visible, html.theme-dark body .wwx-main .wwx-mapwrap:focus-visible, html.theme-dark body .wwx-main a:focus-visible { outline-color: #d8b366 !important; }
html.theme-dark .wwx-at b { background: #f3ead6; color: #141f30; }
html.theme-dark .wwx-bwar { border-left-color: #d8b366; }
html.theme-dark .wwx-card { border-left-color: #ff9a6b; }
html.theme-dark .wwx-entries > li.wwx-sel { background: rgba(255, 154, 107, 0.12); box-shadow: inset 4px 0 0 #ff9a6b; }
body .wwx-main a.wwx-pin:focus-visible, html.theme-dark body .wwx-main a.wwx-pin:focus-visible { outline: 3px solid #b3401e !important; outline-offset: 2px !important; box-shadow: 0 0 0 2px #fffdf7 !important; }   /* the map keeps its paper colour in both themes */
html.theme-dark .wwx-entries > li.wwx-same { background: rgba(216, 179, 102, 0.08); }
html.theme-dark .wwx-ylist > li:target, html.theme-dark .wwx-entries > li:target, html.theme-dark .wwx-flash { background: #34425a; }
html.theme-dark .wwx-years summary { color: #e8cd8a; }
html.theme-dark .wwx-lpin { background: #f3ead6; color: #141f30; }
html.theme-dark .wwx-lpin.wwx-lpin-r, html.theme-dark .wwx-at.wwx-atr b { background: transparent; color: #f3ead6; border-color: #f3ead6; }
html.theme-dark .wwx-ldot { border-color: #f3ead6; background: #1f2e45; }
html.theme-dark .wwx-lline { border-top-color: #f3ead6; }
html.theme-dark .wwx-mapwrap { background: #e7dcc4; }

/* ---- narrow screens */
@media (max-width: 640px) {
  .wwx-main dl > div { grid-template-columns: 1fr; }
  .wwx-main dt { padding-top: 0.3rem; }
  .wwx-date { font-size: 1.55rem; }
  .wwx-btns { margin-left: 0; width: 100%; }
  .wwx-btns button { flex: 1; }
  .wwx-strip .wwx-y::before { transform: translate(-50%, -50%) scale(0.72); }
  .wwx-strip .wwx-s::before { transform: translate(-50%, -50%) rotate(45deg) scale(0.72); }
  .wwx-strip .wwx-a::before { transform: translate(-50%, -50%); }
  .wwx-map { min-width: 700px; }
}
@media print {
  .wwx-pick, .wwx-card, .wwx-go { display: none !important; }
  .wwx-years > summary { display: none; }
  .wwx-mapwrap { overflow: visible; }
}
@media (prefers-reduced-motion: no-preference) { .wwx-flash { animation: wwx-flash 1.6s ease-out; } }
@keyframes wwx-flash { from { background: rgba(179, 64, 30, 0.3); } }
