:root {
  --t35-canvas-width: 853px;
  --t35-gold: #f7b900;
  --t35-ink: #10111b;
  --t35-muted: #555a6c;
  --t35-line: #e8e9ed;
}

html {
  background: #fff;
  overflow-x: hidden;
}

body[data-template="35"] {
  width: var(--t35-canvas-width);
  min-width: var(--t35-canvas-width);
  margin: 0 auto;
  padding: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--t35-ink);
  transform-origin: top left;
}

body[data-template="35"] .app-shell {
  width: var(--t35-canvas-width);
  max-width: none;
  margin: 0;
  padding-bottom: 0;
}

.source-icon-button {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
}

.source-icon-button img,
.source-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.source-brand {
  width: 164px;
  height: 64px;
  display: block;
}

.source-country {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 0 8px !important;
}

.source-country img {
  width: 32px;
  height: 36px;
  object-fit: contain;
}

.source-country b {
  font-size: 17px;
}

.source-country span {
  font-size: 18px;
}

.t35-source-nav {
  width: var(--t35-canvas-width);
  height: 75px;
  background: #fff;
  border-top: 1px solid #e8e8eb;
  backdrop-filter: none;
}

.t35-source-nav a {
  gap: 1px;
  color: #5c6070;
  font-size: 13px;
  font-weight: 500;
}

.t35-source-nav a.active {
  color: var(--t35-gold);
}

.t35-source-nav img {
  width: 48px;
  height: 48px;
  margin-bottom: -8px;
  object-fit: contain;
}

/* Home source board height corrections. */
/* Leave enough scroll room for the last content row to clear the fixed nav. */
body[data-template="35"] main.t35-home,
body[data-template="35"] main.t35-review-page,
body[data-template="35"] main.t35-bonus-page,
body[data-template="35"] main.t35-app-page,
body[data-template="35"] main.t35-more-page {
  padding-bottom: 100px;
}

.t35-home .t35-trust {
  min-height: 188px;
  max-height: 188px;
  overflow: hidden;
}

.t35-home .t35-bottom {
  min-height: 190px;
  max-height: none;
  overflow: visible;
}

.t35-home .t35-faq summary {
  min-height: 44px;
}

.t35-home .t35-offer img {
  right: 221px;
  bottom: 0;
  width: 222px;
  height: 145px;
  object-fit: contain;
}

.t35-home .t35-quick img {
  width: 50px;
  height: 52px;
  margin-bottom: -9px;
}

.t35-home .t35-trust img {
  width: 62px;
  height: 64px;
}

/* Reviews source board compression keeps the disclaimer above the fixed nav. */
.t35-review-page .t35-review-hero {
  height: 337px;
  overflow: hidden;
}

.t35-review-page .t35-promo {
  height: 217px;
}

.t35-review-page .t35-review-faq {
  height: auto;
  overflow: visible;
}

/* The Bonuses board is the one dark-header state in Template 35. */
.t35-bonus-page .t35-header {
  height: 92px;
  background: #000;
}

.t35-bonus-page .source-country,
.t35-bonus-page .source-icon-button {
  border-color: #282828;
  background: #000;
  color: #fff;
}

.t35-bonus-page .t35-top-bonus article > span {
  display: none;
}

.t35-bonus-page .t35-top-bonus article > img {
  width: 148px;
  height: 140px;
  margin-left: -17px;
  object-fit: contain;
}

.t35-bonus-page .t35-bonus-how img {
  width: 94px;
  height: 98px;
}

.t35-bonus-page .t35-bonus-tips img {
  width: 64px;
  height: 72px;
}

/* App board spacing and height are measured from its independent 862 x 1824 source. */
.t35-app-page .t35-header {
  height: 100px;
}

.t35-app-page .t35-qr {
  margin-bottom: 51px;
}

.t35-app-page .t35-availability {
  height: 772px;
}

.t35-app-page .t35-app-hero li::before {
  content: '';
  width: 52px;
  height: 52px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.t35-app-page .t35-app-hero li:nth-child(1)::before {
  background-image: url('./public/assets/source-300ui/app-perk-alert.png');
}

.t35-app-page .t35-app-hero li:nth-child(2)::before {
  background-image: url('./public/assets/source-300ui/app-perk-bonus.png');
}

.t35-app-page .t35-app-hero li:nth-child(3)::before {
  background-image: url('./public/assets/source-300ui/app-perk-safe.png');
}

/* Template 35 More page — exact 853 x 1844 source geometry. */
.t35-more-page {
  min-height: 1769px;
  height: auto;
  overflow: visible;
}

.t35-more-page .t35-header {
  position: relative;
  height: 87px;
  padding: 0 20px;
  grid-template-columns: 54px 1fr auto;
}

.t35-more-page .source-brand {
  margin-left: 7px;
}

.t35-more-hero {
  height: 226px;
  padding: 31px 43px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.t35-more-hero > div {
  position: relative;
  z-index: 1;
}

.t35-more-hero h1 {
  margin: 0 0 16px;
  color: #101222;
  font-size: 41px;
  line-height: 1.08;
  letter-spacing: -1.6px;
}

.t35-more-hero p {
  margin: 0;
  color: #30354a;
  font-size: 18px;
  line-height: 1.55;
}

.t35-more-hero > img {
  position: absolute;
  right: 29px;
  top: -13px;
  width: 362px;
  height: 240px;
  object-fit: contain;
}

.t35-more-card {
  margin: 0 40px 18px;
  border: 1px solid var(--t35-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 13px rgba(21, 30, 50, .02);
  overflow: hidden;
}

.t35-more-card .section-title {
  height: 58px;
  margin: 0;
  padding: 0 23px;
}

.t35-more-card h2,
.t35-more-bonus h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.4px;
}

.t35-more-card .section-title a {
  color: #33384d;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.t35-tools {
  height: 288px;
}

.t35-tools > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 229px;
  padding: 0 22px 20px;
}

.t35-tools a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--t35-ink);
  text-align: center;
  text-decoration: none;
}

.t35-tools img {
  width: 102px;
  height: 103px;
  margin-bottom: 5px;
  object-fit: contain;
}

.t35-tools b {
  font-size: 16px;
}

.t35-tools span {
  margin-top: 6px;
  color: var(--t35-muted);
  font-size: 14px;
  line-height: 1.35;
}

.t35-support {
  height: 340px;
}

.t35-support nav,
.t35-about nav {
  padding: 0 22px;
}

.t35-support nav > *,
.t35-about nav > * {
  width: 100%;
  height: 67px;
  display: grid;
  grid-template-columns: 64px 1fr 20px;
  align-items: center;
  gap: 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--t35-line);
  background: transparent;
  color: var(--t35-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.t35-support nav > *:last-child,
.t35-about nav > *:last-child {
  border-bottom: 0;
}

.t35-support img,
.t35-about img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.t35-support span,
.t35-about span {
  display: grid;
  gap: 2px;
}

.t35-support b,
.t35-about b {
  font-size: 16px;
}

.t35-support small,
.t35-about small {
  color: var(--t35-muted);
  font-size: 13px;
}

.t35-support i,
.t35-about i {
  font-size: 26px;
  font-style: normal;
}

.t35-stay {
  height: 272px;
  padding: 19px 22px;
}

.t35-stay > h2 {
  margin-bottom: 11px;
}

.t35-stay > div {
  height: 205px;
  display: grid;
  grid-template-columns: 225px 1fr;
  align-items: center;
  padding: 0 25px 0 5px;
  border: 1px solid #d8e5fb;
  border-radius: 11px;
  background: linear-gradient(90deg, #f5f9ff, #f0f6ff);
}

.t35-stay > div > img {
  width: 212px;
  height: 168px;
  object-fit: contain;
}

.t35-stay label {
  display: grid;
  gap: 7px;
}

.t35-stay label > b {
  font-size: 20px;
}

.t35-stay label > span:not(.email-row) {
  color: #33384a;
  font-size: 15px;
  line-height: 1.4;
}

.email-row {
  height: 43px;
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 14px;
  margin-top: 2px;
}

.email-row input,
.email-row button {
  border-radius: 7px;
  font: inherit;
}

.email-row input {
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #d9dde6;
  background: #fff;
  font-size: 14px;
}

.email-row button {
  border: 0;
  background: #2f7df4;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.t35-about {
  height: 295px;
  padding: 17px 22px 8px;
}

.t35-about > h2 {
  margin-bottom: 4px;
}

.t35-about nav {
  padding: 0;
}

.t35-about nav > * {
  height: 62px;
}

.t35-more-bonus {
  height: 165px;
  margin: 0 40px;
  display: grid;
  grid-template-columns: 222px 1fr 174px;
  align-items: center;
  gap: 9px;
  border: 1px solid #f1d58a;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(90deg, #fffdf7, #fff8e6);
}

.t35-more-bonus > img {
  width: 209px;
  height: 150px;
  object-fit: contain;
}

.t35-more-bonus small {
  font-size: 14px;
  font-weight: 650;
}

.t35-more-bonus h2 {
  margin: 8px 0;
  font-size: 24px;
}

.t35-more-bonus p {
  margin: 0;
  color: #34394a;
  font-size: 14px;
  line-height: 1.45;
}

.t35-more-bonus > a {
  width: 174px;
  height: 53px;
  display: grid;
  place-items: center;
  border: 1px solid var(--t35-gold);
  border-radius: 8px;
  color: #e69b00;
  font-size: 16px;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
