/* Collections and collectors: /provenance, /provenance/{slug}, and the pedigree line on a variety page
   (the owner's picks FT8 and FT24, 17 Nov 2026). Prefix fc-. Colours from the site's variables; after a change of
   colour run php tools/build_dark_css.php. */

.fc-kicker { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.fc-sec { background: var(--card); border-radius: 16px; padding: 1.4rem 1.6rem 1.6rem; box-shadow: var(--shadow); margin-bottom: 1.4rem; }
.fc-sec > h2, .fc-sec-top h2 { color: var(--navy); font-size: 1.25rem; font-weight: 800; margin-bottom: .3rem; }
.fc-sec h3 { color: var(--navy); font-size: 1rem; margin-bottom: .6rem; }
.fc-h3 { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.fc-lede { color: var(--muted); font-size: .97rem; margin-bottom: 1.1rem; max-width: 46rem; }
.fc-key { color: var(--muted); font-size: .88rem; margin: -.4rem 0 1rem; }
.fc-also { color: var(--muted); font-size: .92rem; margin-top: .9rem; }
.fc-swatch { display: inline-block; width: 22px; height: 10px; background: var(--accent); border-radius: 0 3px 3px 0; margin-right: .4rem; vertical-align: -1px; }

/* ---------- the hall ---------- */
.fc-head { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 1.7rem 2rem; margin: .4rem 0 1rem;
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: center; }
.fc-head h1 { color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin: .3rem 0 .6rem; }
.fc-head p { max-width: 44rem; }
.fc-head p + p { margin-top: .5rem; }
.fc-small { font-size: .9rem; color: var(--muted); }
.fc-count { background: var(--accent-soft); border-radius: 14px; padding: 1rem 1.1rem; }
.fc-count b { display: block; font-size: 2.2rem; color: var(--navy); font-weight: 800; line-height: 1.05; }
.fc-count span { font-size: .92rem; color: var(--ink); }

.fc-tools { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: end; background: var(--card); border-radius: 14px;
  box-shadow: var(--shadow); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.fc-tools[hidden] { display: none; }
.fc-tools label, .fc-sort legend { display: block; font-size: .86rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; padding: 0; }
.fc-filter { flex: 1 1 320px; }
.fc-filter input { width: 100%; font: inherit; font-size: 1rem; border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .8rem;
  min-height: 44px; color: var(--ink); background: var(--card); }
.fc-filter input:focus-visible { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.fc-sort { border: 0; }
.fc-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; background: var(--thead); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.fc-seg button { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; border-radius: 8px;
  padding: .45rem .85rem; min-height: 38px; cursor: pointer; }
.fc-seg button[aria-pressed="true"] { background: var(--card); color: var(--accent-strong); box-shadow: 0 1px 4px rgba(30,47,77,.14); }
.fc-seg button:hover { color: var(--accent-strong); }
.fc-seg button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.fc-shown { font-size: .9rem; color: var(--muted); margin: 0 0 .8rem .2rem; }
.fc-shown:empty { display: none; }

.fc-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fc-cards li[hidden] { display: none; }
.fc-card { height: 100%; display: flex; flex-direction: column; gap: .5rem; background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 1.05rem 1.15rem 1.15rem; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.fc-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-hover); }
.fc-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fc-card h2 { font-size: 1.1rem; color: var(--accent-strong); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.fc-size { display: grid; gap: .3rem; font-size: .93rem; }
.fc-size b { font-variant-numeric: tabular-nums; color: var(--navy); }
.fc-track { display: block; height: 8px; background: var(--row); border-radius: 0 4px 4px 0; }
.fc-bar { display: block; height: 8px; background: var(--accent); border-radius: 0 4px 4px 0; }
.fc-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .7rem; font-size: .9rem; }
.fc-dl dt { color: var(--muted); }
.fc-terr { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .35rem; }
.fc-terr span { font-size: .84rem; background: var(--thead); border: 1px solid var(--line); border-radius: 8px; padding: .1rem .5rem; }
.fc-go { font-size: .9rem; font-weight: 700; color: var(--accent); }
.fc-none { background: var(--card); border-radius: 14px; padding: 1.4rem; color: var(--muted); text-align: center; box-shadow: var(--shadow); }
.fc-none[hidden] { display: none; }
.fc-all-wrap { text-align: center; margin-top: 1.2rem; }
.fc-all { min-height: 44px; }
.fc-all[hidden] { display: none; }

/* ---------- a collection's page ---------- */
.fc-hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1.8rem; align-items: center; background: var(--card);
  border-radius: 18px; box-shadow: var(--shadow); padding: 1.8rem 2rem; margin: .4rem 0 1rem; overflow: hidden; }
.fc-hero-plain { grid-template-columns: minmax(0, 1fr); }
.fc-hero h1 { color: var(--navy); font-size: clamp(1.9rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; margin: .3rem 0 .35rem; overflow-wrap: anywhere; }
.fc-lifeline { font-size: 1.08rem; color: var(--ink); }
.fc-lifeline span { color: var(--muted); padding: 0 .4rem; }
.fc-dek { margin-top: .8rem; color: var(--muted); max-width: 36rem; }
.fc-article { margin-top: .9rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.fc-article a { font-weight: 700; text-decoration: none; }
.fc-article a:hover { text-decoration: underline; }
.fc-jump { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.fc-jump a { font-size: .88rem; font-weight: 600; text-decoration: none; background: var(--accent-soft); color: var(--accent-strong);
  border-radius: 9px; padding: .35rem .7rem; }
.fc-jump a:hover { text-decoration: underline; }
.fc-fan { position: relative; height: 300px; }
.fc-fan.fc-fan-n2 { height: 240px; }
.fc-fan img { position: absolute; width: 250px; height: auto; border-radius: 6px; box-shadow: 0 10px 26px rgba(30,47,77,.2); background: var(--card); }
.fc-fan img.fc-fan-0 { left: 0; top: 14px; transform: rotate(-6deg); }
.fc-fan img.fc-fan-1 { left: 130px; top: 56px; transform: rotate(4deg); z-index: 2; }
.fc-fan img.fc-fan-2 { left: 70px; top: 118px; transform: rotate(-1.5deg); z-index: 3; width: 230px; }
.fc-fan-n1 img.fc-fan-0 { position: static; transform: none; width: 100%; max-width: 360px; }
.fc-fan.fc-fan-n1 { height: auto; }
.fc-fan-cap { font-size: .82rem; color: var(--muted); text-align: right; margin-top: .4rem; }

.fc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.fc-tile { background: var(--accent-soft); border-radius: 14px; padding: 1rem 1.05rem 1.05rem; }
.fc-tile b { display: block; color: var(--navy); font-size: 1.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fc-tile span { display: block; margin-top: .3rem; font-size: .92rem; color: var(--ink); line-height: 1.4; }
.fc-kinds { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.6rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); align-items: start; }
.fc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.2rem; align-items: start; }

/* bar lists: one blue, the data end rounded */
.fc-bars { list-style: none; display: grid; gap: .4rem; --labw: 190px; }
.fc-bars li, .fc-bars li > a { display: grid; grid-template-columns: var(--labw) minmax(0, 1fr); gap: .8rem; align-items: center; }
.fc-bars li[hidden] { display: none; }
.fc-bars-years { --labw: 3.2rem; }
.fc-lab { font-size: .93rem; color: var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.fc-trk { display: flex; align-items: center; gap: .45rem; min-height: 24px; border-left: 1px solid var(--line); }
.fc-b { display: block; flex: none; height: 16px; background: var(--accent); border-radius: 0 4px 4px 0; width: calc((100% - var(--tipw, 3.2rem)) * var(--p)); min-width: 2px; }
.fc-tip { font-size: .9rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-tip small { font-size: .84rem; font-weight: 500; color: var(--muted); }
.fc-terr-list { --tipw: 8.5rem; --labw: 210px; grid-template-columns: 1fr 1fr; column-gap: 2.2rem; row-gap: .15rem; }
.fc-terr-list li { display: block; }
.fc-terr-list li > a { text-decoration: none; border-radius: 8px; padding: .28rem .35rem; margin: 0 -.35rem; min-height: 36px; }
.fc-terr-list li > a:hover { background: var(--accent-soft); }
.fc-terr-list .fc-lab { color: var(--accent-strong); font-weight: 600; }
.fc-terr-list li > a:hover .fc-lab { text-decoration: underline; }
.fc-terr-more { margin-top: .9rem; min-height: 44px; }

/* the sale days of the busiest year */
.fc-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem 1.2rem; }
.fc-mon { border-top: 2px solid var(--line); padding-top: .55rem; min-width: 0; }
.fc-mon h4 { font-size: .95rem; color: var(--navy); font-weight: 800; display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.fc-mon h4 span { font-size: .84rem; font-weight: 600; color: var(--muted); }
.fc-mon ol { list-style: none; display: grid; gap: .35rem; }
.fc-mon li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: .35rem; align-items: center; font-size: .86rem; }
.fc-mon .fc-trk { min-height: 14px; }
.fc-mon .fc-b { height: 10px; --tipw: 0px; }
.fc-day { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-n { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.fc-house { grid-column: 1 / -1; font-size: .82rem; color: var(--amber-ink); margin-top: -.15rem; }
.fc-other .fc-b { background: var(--card); border: 1.5px solid var(--accent); }

/* photographs */
.fc-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.fc-pic { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.fc-pic-img { position: relative; display: block; background: var(--thead); aspect-ratio: 16 / 10; }
.fc-pic-img img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.fc-pic-img:hover { background: var(--accent-soft); }
.fc-pic-img:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.fc-pic figcaption { padding: .65rem .8rem .75rem; display: flex; flex-direction: column; gap: .05rem; font-size: .88rem; }
.fc-pic figcaption b { color: var(--navy); font-size: .95rem; }
.fc-d { color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-d a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.fc-cr { margin-top: .35rem; font-size: .8rem; color: var(--muted); }

/* the note-by-note table (Pro) and the closed box (everyone else) */
.fc-gate-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .14rem .55rem;
  border-radius: 6px; background: linear-gradient(120deg, #c99a2e, #e7c465); color: #2b2205; vertical-align: middle; }
.fc-notes h2 .fc-gate-tag { margin-left: .4rem; }
.fc-later { font-size: .84rem; line-height: 1.45; white-space: nowrap; }
.fc-later-link { font-weight: 600; }
.fc-pro { background: var(--card); color: var(--ink); border-left: 5px solid var(--amber-line); border-radius: 18px; padding: 1.6rem 1.8rem 1.7rem;
  margin-bottom: 1.4rem; box-shadow: var(--shadow); }
.fc-pro h2 { color: var(--navy); font-size: 1.35rem; font-weight: 800; margin: .55rem 0 .3rem; }
.fc-intro { color: var(--muted); max-width: 46rem; }
.fc-ptable { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .93rem; }
.fc-ptable th { text-align: left; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--thead); padding: .6rem .8rem; }
.fc-ptable td { padding: .7rem .8rem; border-top: 1px solid var(--line); vertical-align: middle; }
.fc-nt b { display: block; color: var(--navy); }
.fc-nt span { font-size: .86rem; color: var(--muted); }
.fc-cover { display: inline-block; min-width: 4.6rem; text-align: center; letter-spacing: .18em; color: var(--amber-ink); font-weight: 800; user-select: none;
  background: repeating-linear-gradient(135deg, var(--amber-bg) 0 6px, var(--card) 6px 12px); border: 1px solid var(--amber-line); border-radius: 6px; padding: .12rem .45rem; }
.fc-adds { margin-top: 1rem; }
.fc-adds b { color: var(--navy); }
.fc-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.fc-acts .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* other collections */
.fc-sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: .9rem; }
.fc-sec-top a { font-weight: 700; text-decoration: none; }
.fc-ocs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.fc-oc { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem .85rem; min-height: 44px; }
.fc-oc:hover { border-color: var(--accent); background: var(--accent-soft); }
.fc-oc b { color: var(--accent-strong); font-size: 1rem; overflow-wrap: anywhere; }
.fc-oc span { font-size: .84rem; color: var(--muted); line-height: 1.35; }

/* ---------- FT24: the pedigree line on a variety page ---------- */
.fc-pedigree { margin: .8rem 0; padding: .65rem .9rem; background: var(--thead); border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; line-height: 1.5; }
.fc-pedigree a { font-weight: 600; }
.fc-pedigree-tag { display: inline-block; margin-right: .45rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 1100px) {
  .fc-ocs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .fc-cards { grid-template-columns: 1fr 1fr; }
  .fc-head { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 980px) {
  .fc-hero { grid-template-columns: 1fr; }
  .fc-fan-wrap { display: none; }
  .fc-kinds, .fc-two { grid-template-columns: 1fr; gap: 1.2rem; }
  .fc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fc-terr-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fc-head, .fc-hero { padding: 1.3rem 1.1rem; }
  .fc-sec { padding: 1.15rem 1rem 1.25rem; }
  .fc-cards { grid-template-columns: 1fr; }
  .fc-tools { padding: .9rem 1rem; }
  .fc-sort, .fc-seg { width: 100%; }
  .fc-seg button { flex: 1 1 0; min-height: 44px; padding: .45rem .4rem; }
  .fc-jump { display: none; }
  .fc-tile b { font-size: 1.45rem; }
  .fc-bars li, .fc-bars li > a { grid-template-columns: 1fr; gap: .15rem; }
  .fc-bars-years li { grid-template-columns: 3.2rem minmax(0, 1fr); gap: .5rem; }
  .fc-terr-list li > a { min-height: 52px; padding: .35rem .4rem; }
  .fc-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .fc-pic figcaption { padding: .55rem .6rem .65rem; font-size: .84rem; }
  .fc-pro { padding: 1.3rem 1rem 1.4rem; }
  .fc-ptable thead { display: none; }
  .fc-ptable, .fc-ptable tbody, .fc-ptable tr, .fc-ptable td { display: block; }
  .fc-ptable tr { border-top: 1px solid var(--line); padding: .6rem .8rem .7rem; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .8rem; }
  .fc-ptable tr:first-child { border-top: 0; }
  .fc-ptable td { border: 0; padding: 0; }
  .fc-ptable td.fc-nt { grid-column: 1 / -1; margin-bottom: .2rem; }
  .fc-ptable td[data-h]::before { content: attr(data-h); display: block; font-size: .82rem; color: var(--muted); }
  .fc-ocs { grid-template-columns: 1fr 1fr; }
  .fc-oc { min-height: 64px; }
  .fc-pedigree a { display: inline-block; min-height: 32px; line-height: 32px; }
  .fc-article a, .fc-sec-top a { min-height: 44px; display: inline-flex; align-items: center; }
}
