/* CAQA ObjectLoans: museum condition report and gallery wall label.
   Original CSS for CAQA. System fonts only. */
:root {
  --paper: #f7f3ea;
  --paper-2: #eee8d8;
  --card: #fdfbf5;
  --ink: #26262b;
  --ink-2: #55524b;
  --mute: #6b665d;
  --rule: #cfc7b3;
  --rule-strong: #9d957f;
  --oxblood: #7b1e2e;
  --oxblood-soft: #f2e4e3;
  --serif: "Sitka Text", Georgia, "Times New Roman", serif;
  --display: "Sitka Heading", "Sitka Display", Georgia, "Times New Roman", serif;
  --caps: "Gill Sans MT", Corbel, "Gill Sans", "Trebuchet MS", sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--serif);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--oxblood); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0 0 .6rem; color: var(--ink); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.25; }
.caqa-lockup { color: var(--ink); }

/* header */
.site-head { border-bottom: 1px solid var(--rule-strong); background: var(--paper); }
.head-row { max-width: 74rem; margin: 0 auto; padding: .6rem var(--gutter) 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.word { font: italic 400 1.45rem/1 var(--display); letter-spacing: .01em; }
.head-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem;
  background: var(--oxblood); color: #fff; text-decoration: none;
  font: 600 .95rem/1 var(--caps); letter-spacing: .1em; text-transform: uppercase;
}
.head-cta:hover { background: var(--ink); }
.pnav { max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 0 1.8rem; }
.pnav a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none;
  font: 500 1rem/1 var(--caps); letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.pnav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.pnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--oxblood); }

main { display: block; }
.kicker, .plate-no, .sheet-no, .console-cap, .fig-no, .tag, .label-sub, .stamp, .cat-no, .t-name {
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .13em; font-size: .86rem; line-height: 1.3;
}

/* opening: catalogue entry */
.opening { max-width: 74rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4.2rem) var(--gutter) clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.opening-solo { grid-template-columns: minmax(0, 46rem); }
.opening .kicker { color: var(--oxblood); margin-bottom: 1.1rem; padding-top: 1rem; position: relative; }
.opening .kicker::before { content: ""; position: absolute; top: 0; left: 0; width: 3rem; height: 2px; background: var(--oxblood); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.15rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.012em; margin: 0 0 1.2rem; max-width: 17em; }
.lede { font-size: 1.28rem; line-height: 1.55; color: var(--ink); max-width: 36rem; }
.honest { color: var(--ink-2); font-style: italic; max-width: 36rem; }
.opening-links { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; background: var(--ink); color: var(--paper);
  text-decoration: none; font: 600 .95rem/1 var(--caps); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink);
}
.btn:hover { background: var(--oxblood); border-color: var(--oxblood); }
.textlink { display: inline-flex; align-items: center; min-height: 44px; }

/* wall label */
.label {
  background: var(--card); border: 1px solid var(--ink); padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px var(--rule-strong);
}
.label img { display: block; margin: 0 0 1rem; width: 4.8rem; height: auto; }
.label-no { font: 600 1.35rem/1.2 var(--caps); letter-spacing: .14em; margin: 0 0 .3rem; }
.label-title { font: italic 400 1.2rem/1.3 var(--display); margin: 0 0 .1rem; }
.label-sub { color: var(--mute); margin: 0 0 1rem; }
.label dl { margin: 0; border-top: 1px solid var(--rule-strong); }
.label dl > div, .label dt, .label dd { }
.label dl { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
.label dt { font: 500 .86rem/1.4 var(--caps); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.label dd { margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; line-height: 1.4; }

/* plates */
.plate { max-width: 74rem; margin: 0 auto; padding: clamp(2rem, 4vw, 3.4rem) var(--gutter); border-top: 1px solid var(--rule-strong); display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 2rem; }
.gutter { align-self: start; position: sticky; top: 1rem; }
.plate-no { color: var(--oxblood); margin: 0 0 .2rem; }
.plate-cap { font: italic 400 1rem/1.35 var(--serif); color: var(--mute); margin: 0; }
.plate-body { min-width: 0; max-width: 62rem; }
.intro { font-size: 1.15rem; color: var(--ink-2); max-width: 40rem; margin-bottom: 1.6rem; }
.fine { font-size: .93rem; line-height: 1.55; color: var(--ink-2); max-width: 44rem; margin-top: 1.2rem; }
.routes { display: flex; flex-wrap: wrap; gap: .2rem 1.8rem; margin-top: 1.6rem; }
.routes a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--caps); letter-spacing: .06em; }

/* condition report widget */
.report { margin-top: .5rem; }
.timeline { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 1.5rem 1.2rem 0 0; border-top: 1px solid var(--rule-strong); counter-increment: step; color: var(--mute); }
.timeline li::before {
  content: counter(step); position: absolute; top: -.95rem; left: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--rule-strong); color: var(--mute); display: grid; place-items: center;
  font: 600 .85rem/1 var(--caps);
}
.t-name { display: block; font-size: .95rem; margin-bottom: .2rem; }
.t-note { display: block; font-size: .95rem; line-height: 1.45; max-width: 16rem; }
.report[data-state="draft"] li[data-step="draft"],
.report[data-state="departed"] li[data-step="draft"], .report[data-state="departed"] li[data-step="departed"],
.report[data-state="returned"] li { color: var(--ink); border-top-color: var(--ink); }
.report[data-state="draft"] li[data-step="draft"]::before,
.report[data-state="departed"] li[data-step="draft"]::before, .report[data-state="departed"] li[data-step="departed"]::before,
.report[data-state="returned"] li::before { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.timeline li[aria-current="step"] { border-top: 3px solid var(--oxblood); }
.timeline li[aria-current="step"]::before { background: var(--oxblood); border-color: var(--oxblood); color: #fff; top: -1.1rem; }
.timeline li[aria-current="step"] .t-name { color: var(--oxblood); }

.console { margin: 0 0 1rem; }
.console-cap { color: var(--ink-2); margin: 0 0 .6rem; }
.console-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.console button {
  min-height: 44px; padding: .5rem 1rem; background: var(--card); color: var(--ink); border: 1px solid var(--ink);
  font: 500 .95rem/1.2 var(--caps); letter-spacing: .05em; cursor: pointer;
}
.console button:hover { background: var(--ink); color: var(--paper); }
.console button.second { border-color: var(--oxblood); color: var(--oxblood); }
.console button.second:hover { background: var(--oxblood); color: #fff; }
.console button.plain { border-color: transparent; text-decoration: underline; text-underline-offset: .18em; background: transparent; }
.console button.plain:hover { background: transparent; color: var(--oxblood); }
.js-only { display: none; }
html.js .js-only { display: block; }

.result { margin: 0 0 1.6rem; padding: .85rem 1.1rem; background: var(--card); border: 1px solid var(--rule-strong); border-left: 4px solid var(--ink); font-size: 1.02rem; line-height: 1.5; }
.result[data-tone="blocked"] { border-left-color: var(--oxblood); background: var(--oxblood-soft); color: #4d121d; }

.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.sheet { background: var(--card); border: 1px solid var(--rule-strong); padding: 1.3rem 1.3rem 1.2rem; min-width: 0; }
.sheet header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem 1rem; margin-bottom: .6rem; }
.sheet header h3 { margin: 0; flex: 1 1 auto; }
.sheet-no { color: var(--mute); flex: 0 0 100%; margin: 0; }
.stamp { margin: 0; padding: .2rem .55rem; border: 1px solid var(--ink); color: var(--ink); }
.stamp-new { border-color: var(--oxblood); color: var(--oxblood); }
.vessel { display: block; width: 100%; max-width: 20rem; margin: 0 auto; }
.ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ln.body { fill: #fffdf7; }
.ln.thin { stroke-width: 1; }
.ln.ground { stroke: var(--rule-strong); stroke-width: 1; }
.cap { font: 500 10px var(--caps); letter-spacing: .08em; fill: var(--ink-2); text-transform: uppercase; }
.mk .feat { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mk .lead { fill: none; stroke: var(--ink); stroke-width: 1; }
.mk .dot { fill: var(--card); stroke: var(--ink); stroke-width: 1.4; }
.mk .num { font: 600 13px var(--serif); fill: var(--ink); }
.mk.carried .feat, .mk.carried .lead, .mk.carried .dot { stroke: var(--mute); }
.mk.carried .feat { stroke-dasharray: 1 0; }
.mk.carried .num { fill: var(--mute); }
.mk.new .feat, .mk.new .lead { stroke: var(--oxblood); }
.mk.new .feat { stroke-width: 3; }
.mk.new .dot { fill: var(--oxblood); stroke: var(--oxblood); }
.mk.new .num { fill: #fff; }
.mk.is-hot .dot { stroke-width: 4; }
.mk.is-hot .feat { stroke-width: 4.5; }
.items { list-style: none; margin: .8rem 0 0; padding: 0; }
.item {
  display: flex; gap: .7rem; align-items: baseline; width: 100%; text-align: left; min-height: 44px; padding: .45rem .6rem; margin: 0 0 .3rem;
  background: transparent; border: 1px solid var(--rule); color: var(--ink); font: 400 1rem/1.4 var(--serif); cursor: pointer;
}
.item:hover, .item[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.item .n { flex: 0 0 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font: 600 .8rem/1 var(--serif); }
.item.carried { color: var(--ink-2); }
.item.carried .n { border-color: var(--mute); color: var(--mute); }
.item.new { color: #4d121d; }
.item.new .n { background: var(--oxblood); border-color: var(--oxblood); color: #fff; }
.facts { margin: .8rem 0 0; font-size: .97rem; line-height: 1.5; }
.facts dt { font: 500 .82rem/1.4 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: .7rem; }
.facts dd { margin: 0; }
.kept-h { color: var(--oxblood); }
.kept { border-left: 3px solid var(--oxblood); padding-left: .8rem; color: var(--ink-2); font-style: italic; }
.pending { padding: 2.2rem 1rem; text-align: center; color: var(--ink-2); border: 1px dashed var(--rule-strong); font-style: italic; }
.no-dep, .no-ret { display: none; }
.report[data-state="none"] .no-dep, .report[data-state="draft"] .no-dep { display: block; }
.report[data-state="none"] .no-ret, .report[data-state="draft"] .no-ret, .report[data-state="departed"] .no-ret { display: block; }
.report[data-state="none"] .has-dep, .report[data-state="draft"] .has-dep,
.report[data-state="none"] .has-ret, .report[data-state="draft"] .has-ret, .report[data-state="departed"] .has-ret { display: none; }
.report[data-state="departed"] .sheet-ret { opacity: .85; }

/* journey */
.journey { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.journey li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.journey li:last-child { border-bottom: 1px solid var(--rule); }
.j-n { font: italic 400 3rem/1 var(--display); color: var(--oxblood); }
.journey h3 { margin-bottom: .3rem; }
.journey p { margin-bottom: .5rem; max-width: 38rem; }
.tag { display: inline-block; margin: 0; padding: .15rem .55rem; border: 1px solid var(--ink); color: var(--ink); }
.tag.soon { border-style: dashed; border-color: var(--oxblood); color: var(--oxblood); }

/* cards, lists, tables */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.2rem; }
.cards article { border-top: 2px solid var(--ink); padding-top: .9rem; }
.cards h3 { margin-bottom: .4rem; }
.cards p { font-size: 1rem; color: var(--ink-2); }
.faq { margin-top: 1rem; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; font: 400 1.15rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--caps); color: var(--oxblood); flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 2rem .9rem 0; color: var(--ink-2); max-width: 42rem; margin: 0; }
.catalogue { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.catalogue li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.catalogue li:last-child { border-bottom: 1px solid var(--rule); }
.cat-no { color: var(--oxblood); padding-top: .35rem; }
.catalogue h3 { margin-bottom: .2rem; }
.catalogue p { margin: 0; color: var(--ink-2); max-width: 38rem; }
.tablewrap { overflow-x: auto; margin-top: 1rem; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1rem; line-height: 1.45; }
th, td { text-align: left; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font: 500 .85rem/1.3 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); }
tbody th { font-weight: 600; }
td.new { color: var(--oxblood); font-weight: 600; }
.scrollhint { display: none; font: italic .9rem var(--serif); color: var(--ink-2); margin: .4rem 0 0; }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 1rem; }
.twocol h3 { padding-bottom: .4rem; border-bottom: 2px solid var(--ink); }
.col-soon h3 { border-bottom: 2px dashed var(--oxblood); color: var(--oxblood); }
.twocol ul, .plain { margin: 0; padding-left: 1.2rem; }
.twocol li, .plain li { margin-bottom: .5rem; }

/* steps and figures */
.steps { list-style: none; margin: 1.2rem 0 0; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 1rem 0 1rem 3.4rem; border-top: 1px solid var(--rule); }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: .85rem; font: italic 400 2.2rem/1 var(--display); color: var(--oxblood); }
.steps h3 { margin-bottom: .4rem; }
.entry { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); margin: .4rem 0 .8rem; background: var(--card); border: 1px solid var(--rule); }
.entry dt { padding: .5rem .8rem; font: 500 .82rem/1.5 var(--caps); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.entry dd { margin: 0; padding: .45rem .8rem; border-bottom: 1px solid var(--rule); }
.entry dt:last-of-type, .entry dd:last-of-type { border-bottom: 0; }
.shot { margin: 1.4rem 0; max-width: 44rem; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-strong); background: #fff; }
.shot figcaption { margin-top: .6rem; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.fig-no { color: var(--oxblood); margin-right: .4rem; }
.shot-block img { border-color: var(--oxblood); }

/* final band: the one dark area */
.band { background: var(--ink); color: var(--paper); padding: clamp(2.4rem, 5vw, 4rem) var(--gutter); margin-top: 1rem; }
.band > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
.band h2 { color: var(--paper); }
.band p { color: #e7e1d1; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; color: var(--oxblood); border-color: #fff; }
.band :where(a, button):focus-visible { outline-color: #fff; }

/* footer */
.site-foot { background: var(--paper-2); border-top: 1px solid var(--rule-strong); }
.foot-in { max-width: 74rem; margin: 0 auto; padding: 1.8rem var(--gutter); display: grid; gap: .8rem; }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.foot-in nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--caps); letter-spacing: .05em; }
.status { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* tablet and phone */
@media (max-width: 980px) {
  .opening { grid-template-columns: minmax(0, 1fr); }
  .label { max-width: 24rem; }
  .plate { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .gutter { position: static; display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .twocol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .sheets { grid-template-columns: minmax(0, 1fr); }
  /* the loan journey leads on a phone: a vertical stepped list */
  .timeline { grid-template-columns: minmax(0, 1fr); gap: .2rem; border-left: 1px solid var(--rule-strong); margin-left: .9rem; }
  .timeline li { border-top: 0; padding: .6rem .5rem .8rem 1.7rem; margin-left: 0; }
  .timeline li:nth-child(2) { margin-left: 1rem; }
  .timeline li:nth-child(3) { margin-left: 2rem; }
  .timeline li::before { top: .55rem; left: -1rem; }
  .timeline li[aria-current="step"] { border-top: 0; border-left: 3px solid var(--oxblood); padding-left: 1.5rem; }
  .timeline li[aria-current="step"]::before { top: .55rem; left: -1.45rem; }
  .t-note { max-width: none; }
  .console-btns button { flex: 1 1 100%; }
  .scrollhint { display: block; }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry dt { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .word { font-size: 1.25rem; }
  .pnav { gap: 0; justify-content: space-between; }
  .pnav a { font-size: .86rem; letter-spacing: .06em; padding: 0 .1rem; }
  .journey li { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .6rem; }
  .j-n { font-size: 2.2rem; }
  .catalogue li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .steps > li { padding-left: 2.6rem; }
  .sheet { padding: 1rem .9rem; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet, .result { transition: opacity .25s ease; }
}
