/* place.css -- the upgraded place pages (W1-10; lib/fam_place.py, assets/place.js). Reuses the sub-page vocabulary of style.css
   (.subbox .seg .cur .wk .sc .rel .related .tscroll-x table.subtable). Colours: neutral grey for holiday bands and outlines, never
   the price violet; honest styling: solid = measured, dashed = asked ahead, dashed and light = model estimate. */
.place-up { margin-top: var(--gap-box); }
.place-up h2.pl-h { margin: 0 0 6px; font-size: 18px; }
.place-up h3 { margin: 20px 0 6px; font-size: 15px; }
.pl-headline { max-width: 80ch; }
.pl-note, .pl-legend, .pl-cap, .pl-none { font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; max-width: 100ch; margin: 6px 0; }
.pl-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 10px 0 8px; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line); }
.pl-ctl .cur { margin: 0; flex: 1 1 360px; }
.pl-row { display: flex; align-items: center; gap: 8px; }
.pl-sel select { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); max-width: 100%; }
/* lens switching: everything marked data-l shows only under its lens; UK nation and German Land narrow it further */
.pl [data-l] { display: none; }
.pl[data-lens="ES"] [data-l="ES"], .pl[data-lens="UK"] [data-l="UK"], .pl[data-lens="US"] [data-l="US"], .pl[data-lens="DE"] [data-l="DE"] { display: revert; }
.pl[data-uks="EW"] [data-sc="SC"], .pl[data-uks="EW"] [data-sc="NI"], .pl[data-uks="SC"] [data-sc="EW"], .pl[data-uks="SC"] [data-sc="NI"],
.pl[data-uks="NI"] [data-sc="EW"], .pl[data-uks="NI"] [data-sc="SC"] { display: none !important; }
.pl[data-land] [data-un] { display: none !important; }
.pl [data-l].pl-sel { display: none; }
.pl[data-lens="UK"] .pl-sel[data-l="UK"], .pl[data-lens="DE"] .pl-sel[data-l="DE"] { display: flex; }
/* the year line */
.pl-chart { margin: 4px 0 0; }
svg.plc { display: block; width: 100%; min-width: 640px; height: auto; font-size: 11px; }
svg.plc text { fill: var(--ink-mute); font-family: inherit; font-variant-numeric: tabular-nums; }
.plc-g { stroke: var(--line); stroke-width: 1; }
.plc-t { stroke: var(--line-strong); stroke-width: 1; }
.plc-now { stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 2 3; }
.pln { fill: none; stroke: var(--sel); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.pln-a { stroke-dasharray: 5 4; }
.pln-e { stroke-dasharray: 2 4; opacity: .55; }
.pln-dot { fill: var(--sel); }
.plc-hit { fill: transparent; }
.plc-hit:hover { fill: rgba(0,0,0,.05); }
.bd rect { fill: #6b7280; fill-opacity: .15; stroke: #6b7280; stroke-opacity: .35; stroke-width: .6; }
.bd-typical rect { fill-opacity: .08; stroke-dasharray: 3 2; stroke-opacity: .6; }
svg.plc .bd text { font-size: 10px; font-weight: 700; fill: var(--ink-soft); }
/* the week strip: a holiday is an OUTLINE, never a fill (the fill is the price) */
.pl-strip { margin: 8px 0 4px; padding: 3px 0 5px; }
.wk-pl { gap: 2px; }
.wk-pl i { width: 13px; height: 22px; flex: 0 0 auto; position: relative; }
.wk-pl i.e { opacity: .35; }
.pl[data-lens="ES"] .wk-pl i[data-h~="ES"], .pl[data-lens="US"] .wk-pl i[data-h~="US"], .pl[data-lens="DE"]:not([data-land]) .wk-pl i[data-h~="DE"],
.pl[data-lens="DE"][data-land] .wk-pl i[data-dl],
.pl[data-lens="UK"] .wk-pl i[data-h~="UK:S"], .pl[data-lens="UK"][data-uks="EW"] .wk-pl i[data-h~="UK:EW"],
.pl[data-lens="UK"][data-uks="SC"] .wk-pl i[data-h~="UK:SC"], .pl[data-lens="UK"][data-uks="NI"] .wk-pl i[data-h~="UK:NI"] {
  outline: 2px solid var(--ink); outline-offset: -2px; z-index: 1; }
/* chips */
.pl-chips { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.pl-chips li[hidden] { display: none !important; }
.ch { padding: 7px 10px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 13px; line-height: 1.45; }
.ch-t { border-style: dashed; }
.ch-n { display: block; font-size: 13.5px; }
.ch-k { display: inline-block; min-width: 1.4em; text-align: center; font-size: 11px; font-weight: 700; border: 1px solid var(--line-strong); background: var(--surface-2); }
.ch-d { display: inline-block; margin-right: 8px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ch-c { color: var(--ink-mute); font-size: 12px; }
.ch-e { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.hl { display: inline-block; margin: 0 6px 2px 0; padding: 0 5px; font-size: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); white-space: nowrap; }
/* scales */
.pl-scales { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 6px 28px; max-width: 900px; }
.pl-sc { max-width: none; margin: 4px 0 8px; }
/* month ledger and members */
table.pl-ledger td.hol { white-space: normal; min-width: 220px; }
table.pl-ledger td, table.pl-ledger th { vertical-align: top; }
.st { font-size: 12px; color: var(--ink-soft); }
.st-ahead, .st-estimate, .st-part, .st-thin, .st-none { color: var(--ink-mute); font-style: italic; }
.pl-links { margin: 18px 0 4px; }
.pl-links h3 { margin: 0 0 6px; }
.pl-links ul { margin: 0; padding-left: 18px; columns: 2; font-size: 13.5px; }
@media (max-width: 759px) {
  .pl-ctl { position: sticky; top: 0; z-index: 6; gap: 6px 12px; padding: 6px 8px; }
  .pl-ctl .seg button { padding: 3px 7px; }
  .pl-chips { grid-template-columns: 1fr; }
  .pl-scales { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
  .pl-sc .sc-lab { font-size: 11px; }
  .pl-sc .sc-how { font-size: 11px; }
  .pl-links ul { columns: 1; }
  table.pl-ledger { font-size: 12.5px; }
}
table.pl-ledger th.px, table.pl-ledger td.px { text-align: right; padding-right: 22px; }
table.pl-ledger th.txt, table.pl-ledger td.txt { text-align: left; }
table.pl-ledger th small { margin-left: 4px; }
table.pl-ledger th:nth-child(3), table.pl-ledger td:nth-child(3) { padding-left: 20px; }
