/* ePay public site — the palette and the type of the company documents, nothing new.
 *
 * Colours and fonts are taken as they stand from docs/companies/_build/pdf.css (charcoal
 * #2b2b33 / #393944, teal #55b4b0 / #388c86, the tint #f3fafa) so the site, the briefs and the
 * legal PDFs read as one thing. No restyling of the panels, and no font, stylesheet or script
 * from another origin on any page (S-18-035) — that is why the font stack is the system stack.
 */

:root {
  --ink: #2b2b33;
  --head: #393944;
  --teal: #55b4b0;
  --teal-dark: #388c86;
  --tint: #f3fafa;
  --line: #d9e0e6;
  --sub: #5b6b7a;
  --bad: #b3261e;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.55 "Segoe UI",
    "Noto Sans",
    system-ui,
    -apple-system,
    Arial,
    sans-serif;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  border: 2px solid var(--teal-dark);
  z-index: 2;
}

header.top {
  border-bottom: 3px solid var(--teal);
  background: var(--head);
  color: #fff;
}

header.top .bar {
  max-width: 54rem;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
}

header.top a {
  color: #fff;
  text-decoration: none;
}

header.top .brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

header.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 15px;
}

header.top nav a[aria-current="page"] {
  border-bottom: 2px solid var(--teal);
}

.langs {
  margin-left: auto;
  display: flex;
  gap: 8px;
  font-size: 14px;
}

main {
  max-width: 54rem;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 {
  color: var(--head);
  font-size: 28px;
  line-height: 1.2;
  border-bottom: 3px solid var(--teal);
  padding-bottom: 8px;
  margin: 0.4em 0 0.8em;
}

h2 {
  color: var(--teal-dark);
  font-size: 20px;
  margin: 1.6em 0 0.4em;
}

h3 {
  color: var(--head);
  font-size: 17px;
  margin: 1.2em 0 0.3em;
}

a {
  color: var(--teal-dark);
}

blockquote {
  border-left: 3px solid var(--teal);
  background: var(--tint);
  margin: 0.8em 0;
  padding: 8px 16px;
  color: #4a4a55;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.8em 0;
  font-size: 15px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--tint);
  color: var(--head);
}

dl.contact {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0.8em 0;
}

dl.contact dt {
  color: var(--sub);
  font-size: 14px;
}

dl.contact dd {
  margin: 0;
}

.notice {
  border-left: 4px solid var(--teal);
  background: var(--tint);
  padding: 10px 16px;
  border-radius: 6px;
  margin: 1em 0;
}

.draft {
  display: inline-block;
  border: 1px solid var(--bad);
  color: var(--bad);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

form.epay {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 1em 0;
  background: #fff;
}

form.epay fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

form.epay legend {
  font-weight: 600;
  color: var(--head);
  padding: 0 0 8px;
}

form.epay .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

form.epay .wide {
  grid-column: 1 / -1;
}

form.epay label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--sub);
}

form.epay input,
form.epay textarea {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

form.epay .lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
}

form.epay .lines label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

form.epay .hint {
  color: var(--sub);
  font-size: 14px;
}

form.epay .err {
  color: var(--bad);
  font-size: 14px;
  min-height: 20px;
}

form.epay button {
  margin-top: 14px;
  background: var(--teal-dark);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
}

form.epay button[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* The trap field. Off the screen, out of the tab order, hidden from assistive technology and
 * never labelled with a word a form filler could recognise (S-18-034). */
.offscreen {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.done {
  border-left: 4px solid var(--teal-dark);
  background: #eef7f3;
  padding: 12px 16px;
  border-radius: 8px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1em 0;
}

.stores a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  background: var(--tint);
}

footer.bottom {
  border-top: 1px solid var(--line);
  background: var(--tint);
  color: var(--sub);
  font-size: 14px;
}

footer.bottom .inner {
  max-width: 54rem;
  margin: 0 auto;
  padding: 18px 16px 32px;
}

footer.bottom dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 0 0 10px;
}

footer.bottom dd {
  margin: 0;
  color: var(--ink);
}

.anchor {
  display: block;
  height: 0;
  overflow: hidden;
}

@media (max-width: 560px) {
  form.epay .grid {
    grid-template-columns: 1fr;
  }

  dl.contact,
  footer.bottom dl {
    grid-template-columns: 1fr;
  }
}
