@font-face {
  font-family: BesleyLocal;
  src: url("../fonts/Besley/Besley-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: MyTypewriter;
  src: url("../fonts/typewriter.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --name-bar-h: 108px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.name,
.link-text,
.card-footer {
  font-family: MyTypewriter, BesleyLocal, Georgia, serif;
}

.law-content h2,
.law-content h3 {
  font-family: BesleyLocal, Besley, Georgia, serif;
}

.home-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 650px);
  margin: 0 auto;
}

.home-links .link-button {
  justify-content: flex-start;
  width: 100%;
  min-height: 54px;
}

.home-links .link-icon {
  flex: 0 0 auto;
  display: grid;
  width: 26px;
  height: 26px;
  margin-right: 0 !important;
  place-items: center;
}

.home-links .link-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-footer a,
.return-link {
  font-weight: 700;
}

.card-footer {
  position: relative;
  padding-right: 92px;
  min-height: 72px;
}

.front-qr-download {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 58px;
  padding: 0.3rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  line-height: 0;
}

.front-qr-download img {
  display: block;
  width: 100%;
  height: auto;
}

.front-qr-download:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .business-card .card-footer {
    position: relative !important;
    padding-right: 20px !important;
    padding-bottom: 82px !important;
    min-height: 132px;
  }

  .front-qr-download {
    position: absolute;
    right: 16px;
    left: auto;
    top: auto;
    bottom: 14px;
    display: block;
    width: 58px;
    margin-top: 0;
    padding: 0.3rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform: none;
  }

  .front-qr-download img {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

.page-title {
  margin: 0 0 0.6em;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  text-align: center;
  text-transform: lowercase;
}

.content-page {
  max-width: 820px;
  margin: 0 auto;
}

.content-page p {
  margin: 0 0 1rem;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.7;
}

.content-page p:last-child {
  margin-bottom: 0;
}

.lead-copy {
  color: var(--muted);
  font-family: BesleyLocal, Besley, Georgia, serif;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.38;
  text-align: center;
}

.address-chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.address-chain li {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.58rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: #fffaf5;
  color: var(--ink);
  font-family: BesleyLocal, Besley, Georgia, serif;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.28;
  text-align: center;
}

.address-chain li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.38rem;
  width: 0.38rem;
  height: 1px;
  background: rgba(0, 0, 0, 0.28);
}

.address-chain li:last-child::after {
  display: none;
}

.address-note {
  margin: 1rem 0 1.4rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #fffaf5;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.62;
}

.address-note p {
  margin: 0;
}

.content-section {
  margin: 0 0 1.65rem;
}

.content-section h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(23px, 3.1vw, 31px);
  line-height: 1.15;
  text-transform: lowercase;
}

#uk-title {
  text-transform: none;
}

.sources {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 16px);
  line-height: 1.55;
}

.sources li + li {
  margin-top: 0.35rem;
}

.sources a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.sources a:hover {
  opacity: 0.78;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.test-grid li,
.notice-box {
  padding: 0.8rem 0.9rem;
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.45;
}

.label {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.02rem 0.3rem 0.04rem;
  background: var(--accent-tint);
  border-radius: 3px;
  color: var(--accent);
  font-family: BesleyLocal, Besley, Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
}

.fraud-oed-source {
  width: 100%;
  margin: 1.25rem 0 1.35rem;
}

.fraud-oed-source img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.crown-figure {
  margin: 1.4rem auto 1.8rem;
  text-align: center;
}

.crown-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.crown-figure--wide {
  max-width: 720px;
}

.crown-figure--narrow {
  max-width: 420px;
}

.crown-note {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: #fffaf5;
}

@media (max-width: 720px) {
  .home-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 430px);
  }

  .address-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .address-chain li {
    min-height: 60px;
  }

  .address-chain li::after {
    display: none;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    margin-bottom: 1.35rem;
  }

  .content-page p {
    line-height: 1.62;
  }
}

@media (max-width: 480px) {
  .home-links {
    grid-template-columns: 1fr;
    width: min(100%, 320px);
  }

  .business-card .card-footer {
    gap: 0.28rem;
    font-size: 14px;
    padding-right: 20px !important;
    padding-bottom: 76px !important;
  }

  .front-qr-download {
    width: 52px;
    bottom: 12px;
  }
}

.card-action-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
}
.card-qr-download {
  display: block;
  width: 92px;
  padding: 0.38rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  line-height: 0;
}
.card-qr-download img { display: block; width: 100%; height: auto; }
.address-evidence { margin: 1.2rem 0 1.35rem; }
.address-evidence img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.address-evidence--small { max-width: 620px; margin-right: auto; margin-left: auto; }
.address-evidence figcaption {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.45;
  text-align: center;
}
@media (max-width: 600px) { .card-action-row { align-items: center; } .card-qr-download { width: 72px; } }
