/* Ottelut.com – site-wide styles (enqueued on every page, functions.php).
   Sections: colours · buttons & badges · [top_bookmakers] banner and top list (unchanged design, from
   dev/tasks/ottelut-optimizations) · header (header.php) · casino article pages (incl/content.php).
   Redesign 2026-11: dev/tasks/design-change. All classes are prefixed "ot-". Mobile layout below 720px.
   The game feed has its own file: template-parts/blocks/sport-feed/sport-feed.css. */


:root {
  --ot-orange: #C2500A;        /* buttons, active day, live dot; white text on it passes WCAG AA (4.7:1) */
  --ot-orange-dark: #A84300;
  --ot-orange-shadow: #7A3000;
  --ot-orange-bright: #F58220; /* focus ring on the black header */
  --ot-link: #A84300;
  --ot-ink: #111111;
  --ot-text: #222222;
  --ot-muted: #4A4A4A;
  --ot-line: #DDDDDD;
  --ot-line-soft: #E6E6E6;
  --ot-radius: 8px;
}

/* ---------- buttons & badges ---------- */

.ot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  box-sizing: border-box;
  background: var(--ot-orange);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: background-color .15s ease;
}
.ot-btn:hover,
.ot-btn:focus-visible { background: var(--ot-orange-dark); color: #FFFFFF; }
.ot-btn:focus-visible { outline: 3px solid var(--ot-ink); outline-offset: 2px; }
.entry-content a.ot-btn, .entry-content a.ot-btn:hover { color: #FFFFFF; } /* the content link colour is orange */
.ot-btn--lg {
  min-height: 60px;
  padding: 0 24px;
  font-size: 20px;
  box-shadow: 0 2px 0 var(--ot-orange-shadow);
}

.ot-btn--dark { background: var(--ot-ink); }
.ot-btn--dark:hover,
.ot-btn--dark:focus-visible { background: #333333; color: #FFFFFF; }

.ot-badge {
  display: inline-block;
  background: var(--ot-ink);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}

.ot-only-mobile { display: none; }

/* ---------- banner ---------- */

.ot-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ot-ink);
}

.ot-banner__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.ot-banner__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 84px;
  background: #FFFFFF;
  border: 1px solid var(--ot-line);
  border-radius: 6px;
}
.ot-banner__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96px;
  max-height: 80px;
}

.ot-banner__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ot-banner__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ot-banner__brand { font-size: 14px; color: var(--ot-muted); }
.ot-banner__offer {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.01em;
}

.ot-banner__cta { flex: 0 0 260px; }

.ot-banner__more {
  display: flex;
  justify-content: flex-end;
}
.ot-banner__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ot-link);
}
.ot-banner__more a:hover { color: #7A3000; }

/* ---------- mobile ---------- */

@media (max-width: 719px) {
  .ot-only-desktop { display: none; }
  .ot-only-mobile { display: inline; }

  .ot-banner { gap: 4px; }

  .ot-banner__card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .ot-banner__body { flex: 1 1 0; gap: 5px; }
  .ot-banner__brand { display: none; }
  .ot-banner__meta .ot-badge { font-size: 11px; padding: 3px 7px; }
  .ot-banner__offer { font-size: 22px; }

  .ot-banner__cta {
    flex: 1 1 100%;
    min-height: 54px;
    font-size: 19px;
  }

  .ot-banner__more a { font-size: 15px; gap: 6px; }
}


.ot-toplist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ot-ink, #111111);
}

.ot-toplist__head { display: flex; flex-direction: column; gap: 8px; }
.ot-toplist__title {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ot-toplist__intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #333333;
}

.ot-toplist__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- one casino row ---------- */

.ot-casino {
  display: grid;
  grid-template-columns: 36px 128px minmax(0, 1.25fr) minmax(0, 1fr) 220px;
  align-items: center;
  column-gap: 24px;
  padding: 12px 20px;
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  border-radius: 8px;
}

.ot-casino__rank {
  font-size: 22px;
  font-weight: 800;
  color: var(--ot-muted, #4A4A4A);
}

.ot-casino__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 68px;
  box-sizing: border-box;
  border: 1px solid var(--ot-line, #E2E2E2);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ot-ink, #111111);
}
.ot-casino__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 104px;
  max-height: 56px;
}
.ot-casino__logo-text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ot-casino__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ot-casino__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.ot-casino__name { font-size: 14px; color: var(--ot-muted, #4A4A4A); }
.ot-casino__offer {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.ot-casino__points {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #222222;
}

/* ---------- #1 row ---------- */

.ot-casino--top {
  grid-template-columns: 36px 128px minmax(0, 1.8fr) minmax(0, 1fr) 220px;
  padding: 18px 20px;
  border: 2px solid var(--ot-orange, #F58220);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.ot-casino--top .ot-casino__rank { font-size: 26px; color: var(--ot-ink, #111111); }
.ot-casino--top .ot-casino__logo { height: 92px; }
.ot-casino--top .ot-casino__logo img { max-width: 96px; max-height: 80px; }
.ot-casino--top .ot-casino__name { font-size: 15px; }
.ot-casino--top .ot-casino__offer { font-size: 30px; line-height: 1.1; letter-spacing: -.01em; }
.ot-casino--top .ot-casino__points { font-size: 15px; line-height: 1.55; }
.ot-casino--top .ot-casino__cta { min-height: 58px; font-size: 19px; padding: 0 20px; }

/* ---------- below the list ---------- */

.ot-toplist__more {
  display: none; /* only used on mobile, see below */
  height: 50px;
  background: #FFFFFF;
  color: var(--ot-ink, #111111);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--ot-ink, #111111);
  border-radius: 8px;
  cursor: pointer;
}

.ot-toplist .ot-toplist__note {
  margin: 0;
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ot-muted, #4A4A4A);
  text-align: center;
}
.ot-toplist__note a { color: var(--ot-link, #A84300); }

/* ---------- tablet: bullets drop under the offer ---------- */

@media (max-width: 1023px) and (min-width: 720px) {
  .ot-casino,
  .ot-casino--top {
    grid-template-columns: 36px 128px minmax(0, 1fr) 200px;
    row-gap: 8px;
  }
  .ot-casino__points { grid-column: 3; grid-row: 2; }
  .ot-casino__rank,
  .ot-casino__logo,
  .ot-casino__cta { grid-row: 1 / span 2; }
}

/* ---------- mobile cards ---------- */

@media (max-width: 719px) {
  .ot-toplist { gap: 12px; }
  .ot-toplist__head { gap: 6px; }
  .ot-toplist__title { font-size: 28px; }
  .ot-toplist__intro { font-size: 14px; line-height: 1.4; }
  .ot-toplist__list { gap: 12px; }

  .ot-casino {
    grid-template-columns: 22px 64px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 10px;
    padding: 12px;
  }
  .ot-casino__rank { font-size: 18px; }
  .ot-casino__logo { width: 64px; height: 52px; }
  .ot-casino__logo img { max-width: 54px; max-height: 44px; }
  .ot-casino__logo-text { font-size: 11px; letter-spacing: .04em; }
  .ot-casino__main { gap: 3px; }
  .ot-casino__name { font-size: 12px; }
  .ot-casino__offer { font-size: 17px; }
  .ot-casino__points,
  .ot-casino__cta { grid-column: 1 / -1; }
  .ot-casino__cta { min-height: 46px; font-size: 16px; }

  /* #1 card: no separate rank number, "#1" moves into the badge */
  .ot-casino--top {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    padding: 14px;
  }
  .ot-casino--top .ot-casino__rank { display: none; }
  .ot-casino--top .ot-casino__logo { width: 76px; height: 68px; }
  .ot-casino--top .ot-casino__logo img { max-width: 90px; max-height: 58px; }
  .ot-casino--top .ot-casino__main { gap: 5px; }
  .ot-casino--top .ot-casino__meta { flex-direction: column; align-items: flex-start; gap: 5px; }
  .ot-casino--top .ot-casino__badge::before { content: "#1 "; }
  .ot-casino--top .ot-casino__name { font-size: 13px; }
  .ot-casino--top .ot-casino__offer { font-size: 23px; }
  .ot-casino--top .ot-casino__points { font-size: 14px; line-height: 1.5; }
  .ot-casino--top .ot-casino__cta { min-height: 54px; }

  /* collapse to the first five until the button is pressed (class set by toplist.js) */
  .ot-toplist.is-collapsed .ot-casino:nth-child(n+6) { display: none; }
  .ot-toplist.is-collapsed .ot-toplist__more { display: block; }

  .ot-toplist .ot-toplist__note { font-size: 12px; padding-top: 0; }
}

/* ---------- site context ---------- */

/* banner is printed by Ad Inserter (block 1) in a centred .code-block-1 wrapper above the content */
.ot-banner { text-align: left; padding: 16px 20px 0; }

/* undo parent theme defaults for sections (5rem/8rem padding), links, lists and buttons */
.ot-toplist { padding: 0; }
.ot-banner a,
.ot-toplist a,
.ot-banner a:hover,
.ot-toplist a:hover { text-decoration: none; }
.ot-toplist .ot-toplist__list { margin: 0; }
.ot-toplist .ot-casino { margin: 0; font-size: 16px; line-height: 1.4; }
.ot-toplist .ot-casino__points { margin: 0; }
.ot-toplist .ot-casino__points li { margin: 0; font-size: inherit; line-height: inherit; }
.ot-toplist .ot-toplist__more { padding: 0; text-transform: none; letter-spacing: normal; text-decoration: none; }
.entry-content .ot-toplist__alt { margin: 0 auto; color: var(--ot-text); font-size: 15px; line-height: 1.5; text-align: center; }
.entry-content .ot-toplist + .ot-toplist__alt { margin-top: 14px; }

/* "Päivitetty 26.11.2026" under the page H1 (incl/page-updated.php) */
#page-title .entry-content p.ot-updated { margin: 6px 0 0; color: var(--ot-muted, #4A4A4A); font-size: 14px; line-height: 1.4; }


/* ---------- header (header.php) ---------- */

#site-header.ot-header { background: #000000; }
.ot-header__inner {
  max-width: 101rem;
  margin: 0 auto;
  padding: 8px 20px;
  box-sizing: border-box;
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.ot-logo { display: flex; align-items: center; min-height: 44px; }
.ot-logo .site-logo { margin: 0; }
.ot-logo img { display: block; width: auto; height: 28px; margin: 0; }

.ot-search {
  flex: 1 1 260px;
  max-width: 420px;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border-radius: 22px;
  color: var(--ot-muted);
  cursor: text;
}
.ot-search svg { flex: none; }
.ot-header input.search-input {
  flex: 1;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  outline: none;
  color: var(--ot-ink);
  font-family: inherit;
  font-size: 15px;
}
.ot-header input.search-input::placeholder { color: #6B6B6B; opacity: 1; }
.ot-search:focus-within { outline: 3px solid var(--ot-orange-bright); outline-offset: 2px; }

.ot-header .ot-nav { width: auto; margin-left: auto; } /* the parent theme sets width:100% from 1000px */
.ot-header ul.primary-menu { margin: 0; gap: 4px 24px; font-size: 16px; font-weight: 400; letter-spacing: normal; }
.ot-header .primary-menu > li { margin: 0; }
.ot-header .primary-menu > li > a { padding: 12px 0; }
.ot-header .primary-menu > li.menu-item-has-children > a { padding-right: 20px; }
/* dropdown arrow: a small chevron instead of the parent theme's two wide bars */
.ot-header .primary-menu > li > .icon { right: 3px; top: calc(50% - 5px); width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; color: #FFFFFF; transform: rotate(45deg); pointer-events: none; }
.ot-header .primary-menu > li > .icon::before,
.ot-header .primary-menu > li > .icon::after { display: none; }
.ot-header .primary-menu > li > a:hover,
.ot-header .primary-menu > li > a:focus { text-decoration: underline; text-underline-offset: 6px; }

#site-header .ot-iconbtn {
  display: none;
  position: static;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: #FFFFFF !important; /* custom.css sets .header-footer-group button to black with !important */
  cursor: pointer;
}
#site-header .ot-iconbtn svg { width: 24px; height: 24px; } /* the parent theme squeezes .nav-toggle svg to 0.8rem */
#site-header .ot-iconbtn.nav-toggle svg { width: 26px; height: 26px; }
#site-header .ot-iconbtn:focus-visible { outline: 3px solid var(--ot-orange-bright); outline-offset: -3px; }

@media (min-width: 720px) {
  .ot-header .primary-menu-wrapper { display: block; } /* the parent theme shows it only from 1000px */
}

@media (max-width: 719px) {
  .ot-header__inner { min-height: 56px; padding: 0 4px 0 16px; gap: 0 4px; }
  .ot-logo { margin-right: auto; }
  .ot-logo img { height: 26px; }
  #site-header .ot-iconbtn { display: flex; }
  .ot-search { display: none; order: 10; flex: 1 1 100%; max-width: none; margin: 4px 12px 10px 0; }
  .ot-header.is-search-open .ot-search { display: flex; }
  .ot-header .ot-nav { display: none; }
}


/* ---------- casino article pages (classes added by incl/content.php; the text is unchanged) ---------- */

.entry-content > .ot-prose { max-width: 840px !important; margin-left: max(20px, calc((100% - 970px) / 2)) !important; margin-right: auto !important; display: flex; flex-direction: column; gap: 16px; padding-top: 14px; color: var(--ot-ink); }
.entry-content .ot-prose > * { margin-top: 0; margin-bottom: 0; }
/* the site CSS shrinks headings to their text and centres them */
.entry-content .ot-prose > h2, .entry-content .ot-prose > h3, .entry-content .ot-review > h3 { width: auto; margin-left: 0; margin-right: 0; text-align: left; }
/* heading sizes carry !important: the Customizer CSS (wp-custom-css) sets h2/h3 font-size with !important */
.entry-content .ot-prose > h2 { padding-top: 28px; border-top: 1px solid var(--ot-line); font-size: 28px !important; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.entry-content .ot-prose > h3 { padding-top: 8px; font-size: 22px !important; font-weight: 800; line-height: 1.2; }
.entry-content .ot-prose > p { color: var(--ot-text); font-size: 17px; line-height: 1.6; }
.entry-content .ot-prose > ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.entry-content .ot-prose > ul li { margin: 0; color: var(--ot-text); font-size: 17px; line-height: 1.5; }

.entry-content .ot-table-wrap { margin: 0; overflow-x: auto; background: #FFFFFF; border: 1px solid var(--ot-line); border-radius: var(--ot-radius); }
.entry-content .ot-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: auto; }
.entry-content .ot-table th { padding: 11px 14px; background: #222222; border: 0; color: #FFFFFF; font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; }
.entry-content .ot-table td { padding: 11px 14px; border: 0; border-top: 1px solid var(--ot-line-soft); font-size: 15px; }
.entry-content .ot-table td:first-child { font-weight: 700; }
.entry-content .ot-table tbody tr { background: #FFFFFF; }
.entry-content .ot-table tbody tr:nth-child(even) { background: #F7F7F7; }
.entry-content .ot-table a { color: var(--ot-link); font-weight: 700; }

.entry-content .ot-review { margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 20px; background: #FFFFFF; border: 1px solid var(--ot-line); border-radius: 10px; }
.entry-content .ot-review > * { margin: 0; }
.entry-content .ot-review h3 { margin: 0; font-size: 22px !important; font-weight: 800; line-height: 1.25; }
.entry-content .ot-review p { margin: 0; color: var(--ot-text); font-size: 17px; line-height: 1.6; }
.entry-content .ot-review .wp-block-image, .entry-content .ot-review figure { margin: 0 auto !important; } /* beats the parent's .wp-block-image:not(...) chain */
.entry-content .ot-review__img { display: block; width: 100%; max-width: 514px; height: auto; margin: 0 auto; background: #E3E3E3; border-radius: var(--ot-radius); }
.entry-content .ot-facts-wrap { width: 100%; max-width: 514px; margin: 0 auto; box-sizing: border-box; overflow: hidden; border: 1px solid var(--ot-line); border-radius: var(--ot-radius); }
.entry-content .ot-facts { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.entry-content .ot-facts th { padding: 11px 16px; background: #222222; border: 0; color: #FFFFFF; font-size: 14px; font-weight: 700; text-align: left; }
.entry-content .ot-facts td { padding: 11px 16px; border: 0; border-top: 1px solid var(--ot-line-soft); font-size: 15px; vertical-align: top; }
.entry-content .ot-facts td:first-child { width: 46%; color: var(--ot-muted); }
.entry-content .ot-facts td:last-child { font-weight: 700; }
.entry-content .ot-facts tbody tr { background: #FFFFFF; }
.entry-content .ot-facts tbody tr:nth-child(even) { background: #F7F7F7; }
.entry-content .ot-pros, .entry-content .ot-cons { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--ot-radius); }
.entry-content .ot-pros { background: #F1F8F3; }
.entry-content .ot-cons { background: #FBF1F0; }
.entry-content .ot-review .ot-pros p, .entry-content .ot-review .ot-cons p { font-weight: 800; line-height: 1.4; }
.entry-content .ot-pros ul, .entry-content .ot-cons ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.entry-content .ot-pros li, .entry-content .ot-cons li { position: relative; margin: 0; padding-left: 26px; color: var(--ot-text); font-size: 17px; line-height: 1.45; }
.entry-content .ot-pros li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 11px; height: 6px; border-left: 3px solid #1F6F3A; border-bottom: 3px solid #1F6F3A; transform: rotate(-45deg); }
.entry-content .ot-cons li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 3px; background: #8A1C12; }
.entry-content .ot-faq { margin: 0 0 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; border: 1px solid var(--ot-line); border-radius: var(--ot-radius); }
.entry-content .ot-faq:last-child { margin-bottom: 0; }
.entry-content .ot-faq strong { font-size: 17px; line-height: 1.3; }
.entry-content .ot-faq p { margin: 0; color: var(--ot-text); font-size: 16px; line-height: 1.6; }

@media (max-width: 719px) {
  .entry-content > .ot-prose { gap: 14px; padding-top: 6px; }
  .entry-content .ot-prose > h2 { padding-top: 24px; font-size: 24px !important; }
  .entry-content .ot-prose > h3 { font-size: 20px !important; }
  .entry-content .ot-prose > p, .entry-content .ot-prose > ul li { font-size: 16px; }
  .entry-content .ot-table td { font-size: 14px; }
  .entry-content .ot-review { gap: 16px; padding: 16px 14px; }
  .entry-content .ot-review h3 { font-size: 19px !important; }
  .entry-content .ot-review p, .entry-content .ot-pros li, .entry-content .ot-cons li { font-size: 16px; }
  .entry-content .ot-facts th, .entry-content .ot-facts td { padding: 10px 12px; }
  .entry-content .ot-pros, .entry-content .ot-cons { padding: 14px; }
  .entry-content .ot-faq strong { font-size: 16px; }
  .entry-content .ot-faq p { font-size: 15px; }
  .entry-content .ot-toplist__alt { font-size: 14px; }
}
