@import url("fonts.css");

/* Maasdelta Concentrates B.V. - own stylesheet.
   A company constituted under Netherlands law, holding a revocable licence
   under Article 21 to trade in the Republic. */

:root {
  --paper:  #ffffff;
  --ground: #e9ebed;
  --ink:    #131a20;
  --ink-2:  #48545e;
  --ink-3:  #7b8791;
  --rule:   #ced4d8;
  --rule-2: #e3e7e9;

  --band:   #1b242c;
  --accent: #c1531f;
  --accent-d: #8f3c14;
  --accent-p: #fbeee7;

  --ok:   #2f6b45;
  --stop: #a8231b;
  --hold: #8a6a1f;

  --sans: "Noto Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- ground ---------- */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent-d);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  z-index: 40;
}

.skip:focus {
  left: 0;
  top: 0;
}

.wrap {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- masthead ---------- */

.head {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1.5rem;
  padding-top: 1.35rem;
  padding-bottom: 1.15rem;
}

.head .co {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0-.02em;
}

.head .co a {
  color: inherit;
  text-decoration: none;
}

.head .co b {
  font-weight: 700;
}

.head .co span {
  font-weight: 400;
  color: var(--ink-2);
}

/* ---------- navigation ---------- */

.nav {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.nav .wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.nav a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: .7rem 1rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.nav a:hover {
  color: var(--ink);
  background: var(--rule-2);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ---------- sheet ---------- */

main {
  display: block;
}

.sheet {
  background: var(--paper);
  max-width: 66rem;
  margin: 0 auto;
  padding: 1.9rem 1.5rem 2.6rem;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.sheet > *:first-child {
  margin-top: 0;
}

.sheet > *:last-child {
  margin-bottom: 0;
}

.kicker {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .45rem;
}

h1.title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0-.03em;
  line-height: 1.12;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0-.01em;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 0.96rem;
  font-weight: 700;
  margin: 1.4rem 0 0.35rem;
}

p, li {
  margin: 0 0 0.95rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-2);
}

/* ---------- lot strip: the trading unit, drummed, assayed and consigned ---------- */

.lot {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  margin: 1.3rem 0;
}

.lot .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  border-bottom: 1px solid var(--rule-2);
}

.lot .row:last-child {
  border-bottom: 0;
}

.lot .f {
  padding: 0.6rem 0.8rem;
  border-right: 1px solid var(--rule-2);
}

.lot .f:last-child {
  border-right: 0;
}

.lot .f dt {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .2rem;
}

.lot .f dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.lot .f dd.big {
  font-size: 1.1rem;
  font-weight: 600;
}

.lot .bar {
  background: var(--band);
  color: #c3ccd3;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .45rem .8rem;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.2rem;
}

.lot .bar b {
  color: #fff;
  font-weight: 500;
}

/* ---------- figure band ---------- */

.figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  border: 1px solid var(--rule);
  margin: 1.4rem 0;
}

.figs div {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--rule-2);
}

.figs div:last-child {
  border-right: 0;
}

.figs dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.25rem;
}

.figs dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.16rem;
  font-weight: 600;
}

.figs .sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0;
}

/* ---------- specification grid ---------- */

.spec {
  border: 1px solid var(--rule);
  margin: 1.3rem 0;
}

.spec div {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  border-bottom: 1px solid var(--rule-2);
}

.spec div:last-child {
  border-bottom: 0;
}

.spec dt {
  padding: 0.55rem 0.85rem;
  background: #f5f7f8;
  font-size: 0.86rem;
  color: var(--ink-2);
  border-right: 1px solid var(--rule-2);
}

.spec dd {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
}

.spec dd.mono {
  font-family: var(--mono);
  font-size: 0.86rem;
}

/* ---------- notices ---------- */

.note {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink);
  padding: 0.9rem 1.05rem;
  font-size: 0.95rem;
  background: #f5f7f8;
}

.note.lic {
  border-left-color: var(--accent);
  background: var(--accent-p);
}

.note.stop {
  border-left-color: var(--stop);
  background: #fbf1f0;
}

.note h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.note p {
  margin: 0 0 0.5rem;
}

.note p:last-child, .note ul:last-child {
  margin: 0;
}

.note ul {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
}

.note li {
  margin: 0 0 0.25rem;
}

/* ---------- tables ---------- */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0 0 1.2rem 0;
}

.tbl caption {
  text-align: left;
  font-size: 0.8rem;
  color: var(--ink-2);
  padding-bottom: 0.45rem;
}

.tbl th, .tbl td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: top;
}

.tbl thead th {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink);
}

.tbl th.num, .tbl td.num {
  text-align: right;
}

.tbl td.num {
  font-family: var(--mono);
  white-space: nowrap;
}

.tbl td.mono {
  font-family: var(--mono);
  font-size: 0.84rem;
}

.tbl tbody tr:hover {
  background: #f5f7f8;
}

.scroll {
  overflow-x: auto;
}

.st {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.st.done {
  color: var(--ok);
}

.st.open {
  color: var(--hold);
}

.st.no {
  color: var(--stop);
}

/* ---------- controls ---------- */

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
  margin: 1.1rem 0 0.4rem;
}

.field {
  flex: 1 1 11rem;
  font-size: 0.88rem;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.2rem;
}

.field input, .field select {
  font: inherit;
  width: 100%;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}

button.act {
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 0.42rem 0.9rem;
}

button.act:hover {
  background: var(--ink);
  color: var(--paper);
}

.count {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-2);
  margin: 0.3rem 0 0;
}

.empty {
  font-size: 0.9rem;
  color: var(--ink-2);
  padding: 1rem 0;
}

/* ---------- footer ---------- */

.foot {
  background: var(--band);
  color: #a9b4bc;
  font-size: 0.84rem;
  margin-top: 2.2rem;
}

.foot .wrap {
  display: grid;
  gap: 1.4rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  padding-top: 2rem;
  padding-bottom: 2.3rem;
}

.foot h2 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.5rem;
  border: 0;
  padding: 0;
}

.foot p {
  margin: 0 0 0.3rem;
  line-height: 1.45;
}

.foot a {
  color: #a9b4bc;
}

.foot a:hover {
  color: #fff;
}

.foot .fine {
  color: #78858e;
  font-size: 0.78rem;
}

/* ---------- narrow screens and print ---------- */

@media (max-width: 46rem) {
  body { font-size: 15px;
}

h1.title {
  font-size: 1.5rem;
}

.head .reg {
  margin-left: 0;
  text-align: left;
}

.sheet {
  border-left: 0;
  border-right: 0;
}

.spec div {
  grid-template-columns: 1fr;
}

.spec dt {
  border-right: 0;
  border-bottom: 1px solid var(--rule-2);
}

.nav a:first-child {
  padding-left: 1rem;
}
}

@media print {
  .nav, .foot { display: none;
}

body {
  background: #fff;
  font-size: 10.5pt;
}

.sheet {
  border: 0;
}
}
