/* The pick page made richer (deep look, 17 Nov 2026): DS5 the Notes as rows with a heading beside each, the
   Signatures as cards, FT4 the serial map, PG1 the Signatures table on a phone, PG9 the Pick number in the heading. Loaded only by the pick page
   (/note/{slug}, routes/public.php names it). Prefixes: .pk- (the page) and .pmap- (the map).
   Colours are the site's own variables, so the dark look follows (php tools/build_dark_css.php). */

/* PG9: the Pick number in the main heading stays in one piece */
.pk-h1-pick { white-space: nowrap; }

/* ---- DS5: the Notes as rows, a heading beside each (as in the example the owner chose; rows from pickNotesGroups()) ---- */
.pk-parts { margin: 0; }
.pk-part { padding: .85rem 0; border-top: 1px solid var(--row); }
.pk-part:first-child { border-top: 0; padding-top: .15rem; }
.pk-part > h3 { margin: 0 0 .2rem; font-size: .95rem; font-weight: 800; line-height: 1.65; color: var(--navy); }
.pk-part > .pk-part-text { min-width: 0; }
.note-notes .pk-part-text p { margin: 0; }
.note-notes .pk-part-text p + p { margin-top: .6rem; }
.pk-parts > .tell-figs { margin: .4rem 0 1rem; }
/* The photographs in the Notes are small on the page and open large when pressed (the owner, 17 Nov 2026). About 150px
   wide, so two stand side by side on a phone. The variety page's "About this variety" keeps the larger size of style.css. */
#note-comments .tell-figs { grid-template-columns: repeat(auto-fill, minmax(132px, 152px)); justify-content: start; gap: .6rem; margin-top: .8rem; }
#note-comments .tell-figs + p { margin-top: 1.1rem; }
#note-comments .tell-fig { padding: .35rem; border-radius: 9px; }
#note-comments .tell-fig a { display: block; border-radius: 6px; }
#note-comments .tell-fig a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#note-comments .tell-fig img { border-width: 2px; transition: opacity .12s; }
#note-comments .tell-fig a:hover img { opacity: .85; }
#note-comments .tell-fig figcaption { font-size: .74rem; line-height: 1.35; margin-top: .35rem; }
@media (max-width: 400px) { #note-comments .tell-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the photographs of an explanation stand inside its row, in line with the text */
.pk-part-text > .tell-figs { margin: .7rem 0 .3rem; }
.pk-part-text > .tell-figs + p { margin-top: .9rem; }
.note-notes .pk-part-text > .tell-figs:last-child { margin-bottom: 0; }
/* side: the label in a column beside its paragraph (most paragraphs carry one) */
.pk-parts-side .pk-part { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .3rem 1.2rem; }
/* a long label of the owner's own ("The printed date decides the signer and the prefix") gets a wider column */
.pk-parts-side.pk-parts-wide .pk-part { grid-template-columns: 11rem minmax(0, 1fr); gap: .3rem 1.3rem; }
.pk-parts-side .pk-part > h3 { margin: 0; }
.pk-parts-side .pk-part > .pk-part-text { grid-column: 2; }
@media (max-width: 640px) {
  .pk-parts-side .pk-part { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .pk-parts-side .pk-part > .pk-part-text { grid-column: 1; }
}

/* the line under the Notes that names the varieties whose own pages carry a part of them */
.pk-moved { margin: .9rem 0 0; padding-top: .7rem; border-top: 1px solid var(--row); font-size: .9rem; color: var(--muted); }
.pk-moved a { font-weight: 600; white-space: nowrap; }

/* ---- the Signatures as cards (as in the example; PICK_SIGNATURE_CARDS in feat_pick.php, false = the table) ---- */
.pk-sigs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.pk-sig { display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem .85rem; }
.pk-sig-img { display: block; height: 74px; margin-bottom: .6rem; background: var(--thead); border-radius: 8px; }
.pk-sig-img .sig-zoom { display: grid; place-items: center; width: 100%; height: 100%; padding: .35rem; border: 0; border-radius: 8px; background: none; cursor: zoom-in; }
.pk-sig-img .sig-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-sig-img .sig-zoom:hover img { opacity: .8; }
.pk-sig-img img { display: block; max-height: 62px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
/* a signer pictured twice: both pictures in the one card, each with its office under it */
.pk-sig-form { display: block; }
.pk-sig-form .pk-sig-img { margin-bottom: .25rem; }
.pk-sig-cap { display: block; font-size: .8rem; line-height: 1.3; color: var(--muted); margin-bottom: .55rem; }
.pk-sig-form:not(:has(.pk-sig-cap)) .pk-sig-img { margin-bottom: .6rem; }
.pk-sig-name { color: var(--navy); font-size: .95rem; font-weight: 700; line-height: 1.3; }
.pk-sig-name a { color: inherit; text-decoration: none; }
.pk-sig-name a:hover, .pk-sig-name a:focus-visible { color: var(--accent); text-decoration: underline; }
.pk-sig-multi span { display: block; }
.pk-sig-title { color: var(--muted); font-size: .86rem; }
.pk-sig-on { margin-top: .35rem; font-size: .84rem; color: var(--ink); }
@media (max-width: 640px) { .pk-sigs { grid-template-columns: minmax(0, 1fr); gap: .6rem; } }

/* the small line of the Chronicle sits between sections */
.pk-chronicle { margin: 0 0 1.2rem; }

/* ---- PG1: the Signatures on a phone: name, office and signature under one another ---- */
@media (max-width: 560px) {
  #signatures .table-scroll { overflow: visible; }
  #signatures .sig-table, #signatures .sig-table tbody { display: block; width: 100%; }
  #signatures .sig-table tr { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .7rem .8rem .8rem; margin-bottom: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
  #signatures .sig-table td { display: block; padding: 0; border: 0; white-space: normal; }
  #signatures .sig-table .sig-name { color: var(--navy); }
  #signatures .sig-table .sig-name-multi span { white-space: normal; }
  #signatures .sig-table .sig-title { font-size: .9rem; }
  #signatures .sig-table .sig-image { margin-top: .35rem; }
  #signatures .sig-table .sig-image:empty { display: none; }
  #signatures .sig-table .sig-zoom { min-height: 44px; }
}

/* ---- FT4: the serial map ---- */
/* The drawing's colours go through names of its own (--pm-*), set from the site's variables on the section. The dark
   builder (tools/build_dark_css.php) reads a "fill" as text colour and would turn a surface colour used as a fill into
   white; it does not know these names, so they follow the site's own light and dark values. */
.pmap-sec { clear: both; --pm-card: var(--card); --pm-soft: var(--accent-soft); --pm-alt: var(--row); --pm-edge: var(--line);
  --pm-ink: var(--navy); --pm-quiet: var(--muted); --pm-hi: var(--accent-strong); }
.pmap-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: -.2rem 0 1rem; font-size: .9rem; color: var(--muted); }
.pmap-facts b { color: var(--ink); }
.pmap { position: relative; container-type: inline-size; border-radius: 10px; outline: none; }
.pmap.pmap-live:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pmap-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pmap-narrow { display: none; }
@container (max-width: 700px) {
  .pmap-wide { display: none; }
  .pmap-narrow { display: block; }
}
.pmap-empty { fill: var(--pm-card); stroke: var(--pm-edge); stroke-width: 1; }
.pmap-band-a { fill: var(--pm-soft); }
.pmap-band-b { fill: var(--pm-alt); }
.pmap-hatch-bg { fill: var(--pm-card); }
.pmap-hatch-ln { stroke: var(--pm-quiet); stroke-width: 1.6; opacity: .45; }
.pmap-mark { stroke: var(--pm-ink); stroke-width: 1.4; opacity: .5; }
.pmap-mark-2 { opacity: .72; stroke-width: 1.8; }
.pmap-mark-3 { opacity: .95; stroke-width: 2.2; }
.pmap-bsep { stroke: var(--pm-ink); stroke-width: 1; opacity: .35; }
.pmap-lab { font-size: 13px; font-weight: 700; fill: var(--pm-ink); }
.pmap-sub { font-size: 12.5px; fill: var(--pm-quiet); }
.pmap-axis, .pmap-tick { stroke: var(--pm-quiet); stroke-width: 1; opacity: .6; }
.pmap-tl { font-size: 12.5px; fill: var(--pm-ink); font-variant-numeric: tabular-nums; }
.pmap-hi { stroke: var(--pm-hi); stroke-width: 3; }
.pmap-hidot { fill: var(--pm-hi); stroke: var(--pm-card); stroke-width: 2; }
.pmap-tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%); background: var(--pm-ink); color: var(--pm-card); border-radius: 9px; padding: .4rem .65rem; font-size: .86rem; line-height: 1.35; white-space: nowrap; box-shadow: var(--shadow-hover); }
.pmap-tip b { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; letter-spacing: .02em; }
.pmap-tip span { display: block; opacity: .82; font-size: .82rem; }
.pmap-tip[hidden] { display: none; }
.pmap-key { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin: .9rem 0 0; padding: 0; font-size: .86rem; color: var(--muted); }
.pmap-key li { display: inline-flex; align-items: flex-start; gap: .45rem; }
.pmap-sw { display: inline-block; flex: none; width: 18px; height: 14px; margin-top: .15rem; border-radius: 3px; border: 1px solid var(--pm-edge); }
.pmap-sw-band { background: var(--pm-soft); }
.pmap-sw-shared { background: repeating-linear-gradient(45deg, var(--pm-card) 0 3px, var(--pm-quiet) 3px 4.5px); opacity: .7; }
.pmap-sw-mark { width: 3px; height: 16px; margin-top: .05rem; border: 0; border-radius: 0; background: var(--pm-ink); opacity: .7; }
.pmap-how { margin: .6rem 0 0; font-size: .88rem; color: var(--muted); max-width: 78ch; }
