/* ShardTale — blocks, written from the bottom of the page upwards */

/* ---- baseboard ------------------------------------------------------- */

.st4-baseboard {
  background: var(--st4-plate-soft);
  padding: var(--st4-step-6) 0 var(--st4-step-4);
  margin-top: var(--st4-step-6);
}

.st4-baseboard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--st4-step-5);
  align-items: start;
}

.st4-reach h2 { margin-bottom: var(--st4-step-2); }

.st4-reach__who {
  font-family: var(--st4-face-display);
  font-size: 1.0625rem;
  font-weight: 500;
  margin: 0 0 6px;
}

.st4-reach__lines {
  font-style: normal;
  color: var(--st4-mute);
  font-size: 1rem;
  line-height: 1.75;
}

.st4-reach__lines a { word-break: break-word; }

.st4-baseboard h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--st4-face-text);
  font-weight: 400;
  color: var(--st4-mute);
  margin-bottom: var(--st4-step-2);
}

.st4-baseboard__list li { margin-bottom: 10px; }

.st4-baseboard__list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--st4-ink);
  text-decoration-color: var(--st4-rule-firm);
}

.st4-baseboard__list a:hover { color: var(--st4-flag); }

.st4-baseboard__say {
  color: var(--st4-mute);
  font-size: 0.9375rem;
  max-width: 420px;
}

.st4-baseboard__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--st4-step-2);
  margin-top: var(--st4-step-6);
  color: var(--st4-mute);
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .st4-baseboard { padding-top: var(--st4-step-5); margin-top: var(--st4-step-5); }
  .st4-baseboard__grid { grid-template-columns: 1fr; gap: var(--st4-step-4); }
  .st4-baseboard__base { margin-top: var(--st4-step-4); }
}

/* ---- consent notice -------------------------------------------------- */

.st4-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--st4-ink);
  color: var(--st4-paper);
  padding: 16px 0;
}

.st4-consent__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--st4-step-2);
}

.st4-consent__say {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  flex: 1 1 420px;
}

.st4-consent__say a {
  color: var(--st4-paper);
  text-decoration-thickness: 1px;
}

.st4-consent__say a:hover { color: var(--st4-paper); text-decoration-thickness: 2px; }

.st4-consent__acts { display: flex; gap: 12px; flex-wrap: wrap; }

.st4-consent .st4-plate--solid {
  background: var(--st4-paper);
  color: var(--st4-ink);
}

.st4-consent .st4-plate--solid:hover { background: var(--st4-flag); color: var(--st4-paper); }

.st4-consent .st4-plate--flat {
  background: transparent;
  color: var(--st4-paper);
  box-shadow: inset 0 0 0 1px var(--st4-rule-firm);
}

.st4-consent .st4-plate--flat:hover { background: var(--st4-paper); color: var(--st4-ink); box-shadow: none; }

.st4-consent .st4-plate:focus-visible {
  background: var(--st4-flag);
  color: var(--st4-paper);
  box-shadow: inset 0 0 0 3px var(--st4-paper), inset 0 0 0 5px var(--st4-flag);
}

/* ---- gauge (comparison) ---------------------------------------------- */

.st4-gauge__head {
  max-width: 760px;
  margin-bottom: var(--st4-step-4);
}

.st4-gauge__head h2 { margin-bottom: var(--st4-step-2); }

.st4-grid {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.st4-grid:focus-visible { outline: 3px solid var(--st4-flag); outline-offset: 4px; }

.st4-ledger {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.st4-ledger caption {
  caption-side: top;
  text-align: left;
  color: var(--st4-mute);
  font-size: 0.875rem;
  padding-bottom: var(--st4-step-2);
}

.st4-ledger th,
.st4-ledger td {
  padding: 18px 20px 18px 0;
  vertical-align: top;
}

.st4-ledger thead th {
  font-family: var(--st4-face-text);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st4-mute);
  border-bottom: 2px solid var(--st4-ink);
  padding-top: 0;
}

.st4-ledger tbody th {
  font-family: var(--st4-face-display);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--st4-ink);
  border-bottom: 1px solid var(--st4-rule);
  min-width: 190px;
}

.st4-ledger tbody td {
  color: var(--st4-mute);
  border-bottom: 1px solid var(--st4-rule);
  font-size: 0.9375rem;
}

.st4-ledger tbody tr:last-child th,
.st4-ledger tbody tr:last-child td { border-bottom: 0; }

.st4-ledger .st4-figure {
  font-family: var(--st4-face-display);
  font-weight: 500;
  color: var(--st4-ink);
  font-size: 1rem;
}

.st4-tick {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--st4-flag);
  stroke-width: 1.8;
  stroke-linecap: square;
}

.st4-tick--off { stroke: var(--st4-mute); }

.st4-gauge__sign {
  max-width: 720px;
  margin-top: var(--st4-step-3);
  color: var(--st4-mute);
  font-size: 0.9375rem;
}

.st4-till {
  margin-top: var(--st4-step-5);
  background: var(--st4-plate-soft);
  padding: var(--st4-step-4);
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--st4-step-4);
  align-items: start;
}

.st4-till h3 { margin-bottom: 10px; }

.st4-till__say { font-size: 0.9375rem; }

.st4-till__say p + p { margin-top: var(--st4-step-2); }

@media (max-width: 860px) {
  .st4-till { grid-template-columns: 1fr; gap: var(--st4-step-3); padding: var(--st4-step-3); }
}

/* ---- vault (catalogue) ----------------------------------------------- */

.st4-vault__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--st4-step-5);
  align-items: end;
  margin-bottom: var(--st4-step-5);
}

.st4-vault__head p { color: var(--st4-mute); }

.st4-entry {
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  gap: var(--st4-step-4);
  align-items: start;
  margin-top: 72px;
}

.st4-entry:first-of-type { margin-top: 0; }

.st4-entry__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--st4-rule);
}

.st4-entry__crumb {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.st4-entry__no {
  font-family: var(--st4-face-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--st4-flag);
  letter-spacing: -0.01em;
}

.st4-entry__kind {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st4-mute);
}

.st4-entry__maker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: var(--st4-step-2) 0 var(--st4-step-3);
}

.st4-entry__maker img {
  width: 56px;
  height: 56px;
  flex: none;
}

.st4-entry__maker span {
  font-size: 0.9375rem;
  color: var(--st4-mute);
  line-height: 1.4;
}

.st4-entry__maker b {
  display: block;
  font-family: var(--st4-face-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--st4-ink);
}

.st4-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st4-step-3) var(--st4-step-4);
  margin: 0 0 var(--st4-step-3);
}

.st4-facts > div { min-width: 92px; }

.st4-facts dt {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st4-mute);
  margin-bottom: 4px;
}

.st4-facts dd {
  margin: 0;
  font-family: var(--st4-face-display);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--st4-ink);
}

.st4-entry__read { color: var(--st4-mute); }

.st4-verdict {
  margin-top: var(--st4-step-3);
  background: var(--st4-plate-soft);
  padding: 20px 24px;
}

.st4-verdict__tag {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st4-flag);
  margin-bottom: 6px;
}

.st4-verdict p { font-size: 0.9375rem; }

.st4-shift {
  margin-top: var(--st4-step-3);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 6px var(--st4-step-2);
  font-size: 0.9375rem;
}

.st4-shift dt {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st4-mute);
  padding-top: 4px;
}

.st4-shift dd { margin: 0; color: var(--st4-ink); }

.st4-tag {
  font-family: var(--st4-face-display);
  font-weight: 700;
  color: var(--st4-flag);
}

@media (max-width: 900px) {
  .st4-vault__head { grid-template-columns: 1fr; gap: var(--st4-step-3); margin-bottom: var(--st4-step-4); }
  .st4-entry { grid-template-columns: 1fr; gap: var(--st4-step-3); margin-top: var(--st4-step-5); }
  .st4-shift { grid-template-columns: 104px minmax(0, 1fr); }
}

/* ---- lead (opening) -------------------------------------------------- */

.st4-lead {
  padding-top: var(--st4-step-4);
  padding-bottom: var(--st4-step-6);
}

.st4-lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--st4-step-6);
  align-items: start;
}

.st4-lead h1 { margin-bottom: var(--st4-step-3); }

.st4-lead__lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--st4-mute);
  max-width: 620px;
}

.st4-lead__acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--st4-step-2);
  margin-top: var(--st4-step-4);
}

.st4-lead__foot {
  margin-top: var(--st4-step-4);
  font-size: 0.9375rem;
  color: var(--st4-mute);
  max-width: 560px;
}

.st4-lead__aside h2 {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--st4-face-text);
  font-weight: 400;
  color: var(--st4-mute);
  margin-bottom: var(--st4-step-2);
}

.st4-index li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--st4-step-2);
  align-items: center;
  padding: 14px 0;
}

.st4-index img { width: 48px; height: 48px; }

.st4-index b {
  display: block;
  font-family: var(--st4-face-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.25;
}

.st4-index span {
  font-size: 0.8125rem;
  color: var(--st4-mute);
}

@media (max-width: 980px) {
  .st4-lead { padding-bottom: var(--st4-step-5); }
  .st4-lead__grid { grid-template-columns: 1fr; gap: var(--st4-step-4); }
  .st4-lead__aside { max-width: 460px; }
}

/* ---- topline --------------------------------------------------------- */

.st4-topline {
  padding: var(--st4-step-3) 0;
}

.st4-topline__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--st4-step-2);
}

.st4-mark {
  font-family: var(--st4-face-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--st4-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.st4-mark:hover { color: var(--st4-ink); }

.st4-mark em { font-style: normal; color: var(--st4-flag); }

.st4-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.st4-routes a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  font-family: var(--st4-face-display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st4-ink);
  text-decoration: none;
}

.st4-routes a:hover {
  color: var(--st4-flag);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ---- document pages -------------------------------------------------- */

.st4-doc { padding-bottom: var(--st4-step-6); }

.st4-doc__head {
  padding-top: var(--st4-step-3);
  margin-bottom: var(--st4-step-5);
  max-width: 780px;
}

.st4-doc__head h1 { margin-bottom: var(--st4-step-2); }

.st4-doc__stamp {
  color: var(--st4-mute);
  font-size: 0.9375rem;
}

.st4-doc__body { max-width: 780px; }

.st4-doc__body h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.2;
  margin: var(--st4-step-5) 0 var(--st4-step-2);
}

.st4-doc__body h3 {
  font-size: 1.0625rem;
  margin: var(--st4-step-3) 0 var(--st4-step-1);
}

.st4-doc__body p,
.st4-doc__body li { color: var(--st4-mute); }

.st4-doc__body strong { color: var(--st4-ink); font-weight: 400; }

.st4-doc__body ul { margin: 0 0 var(--st4-step-2); }

.st4-doc__body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.st4-doc__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--st4-flag);
}

.st4-doc__body .st4-ledger { min-width: 620px; margin-top: var(--st4-step-2); }

.st4-doc__body .st4-ledger td,
.st4-doc__body .st4-ledger th { font-size: 0.9375rem; }

.st4-slab {
  background: var(--st4-plate-soft);
  padding: var(--st4-step-3);
  margin: var(--st4-step-3) 0;
}

.st4-slab p { color: var(--st4-mute); font-size: 0.9375rem; }

/* ---- error page ------------------------------------------------------ */

.st4-lost {
  padding: var(--st4-step-6) 0;
  max-width: 640px;
}

.st4-lost h1 { margin-bottom: var(--st4-step-3); }

.st4-lost p { color: var(--st4-mute); }

.st4-lost .st4-lead__acts { margin-top: var(--st4-step-3); }

/* ---- page state ------------------------------------------------------ */

body.st4-consent-on { padding-bottom: 168px; }

@media (min-width: 780px) {
  body.st4-consent-on { padding-bottom: 116px; }
}

.st4-entry__maker i {
  display: block;
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--st4-mute);
  word-break: break-word;
  margin-top: 2px;
}

.st4-index span b { margin-bottom: 2px; }

.st4-index__stamp {
  margin-top: var(--st4-step-3);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--st4-mute);
}

/* ---- flow corrections ------------------------------------------------ */

.st4-vault { padding-bottom: var(--st4-step-6); }

.st4-entry__maker span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.st4-entry__maker i { word-break: normal; overflow-wrap: anywhere; }

.st4-reach__lines a { word-break: normal; overflow-wrap: anywhere; }

.st4-baseboard .st4-reach h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.1;
}

.st4-baseboard__say { margin-top: var(--st4-step-2); }

.st4-ledger td.st4-figure { white-space: nowrap; }

@media (max-width: 900px) {
  .st4-vault { padding-bottom: var(--st4-step-5); }
}

.st4-gauge .st4-ledger { min-width: 880px; }

.st4-grid { position: relative; }
