/* ============================================================
   TageCasino.cfd - site-wide overrides
   Compact hero, 18+ top bar, centered "Vårt #1 val" badge, byline
   Loaded via <link> from every page after main.css
   ============================================================ */

/* Thin top disclosure bar - sits between header and hero */
.top-disclosure {
  background: #191A45;
  color: #F7F2E9;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  line-height: 1.4;
}
.top-disclosure-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 20px; flex-wrap: nowrap;
}
.top-disclosure .td-badge {
  background: #B23A48; color: #F7F2E9;
  font-weight: 800; font-size: 12px;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: .04em; flex: 0 0 auto;
}
.top-disclosure .td-full { display: inline; }
.top-disclosure .td-mini { display: none; }
.top-disclosure a {
  color: #F7F2E9; text-decoration: underline;
  text-underline-offset: 2px; font-weight: 700;
}
.top-disclosure a:hover { color: #E9A6AD; }
@media (max-width: 640px) {
  .top-disclosure { font-size: 12px; }
  .top-disclosure-inner { padding: 6px 14px; gap: 8px; }
  .top-disclosure .td-full { display: none; }
  .top-disclosure .td-mini { display: inline; }
}

/* Hero, compact so CTA is on first fold */
.page-hero {
  padding: 18px 0 14px !important;
}
.page-hero h1 {
  line-height: 1.05 !important;
  font-size: clamp(1.6rem, 3vw, 2.3rem) !important;
  margin: 0 0 6px !important;
}
.page-hero .lead {
  font-size: .98rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
.page-hero .breadcrumbs {
  font-size: 11px !important;
  margin-bottom: 4px !important;
}
@media (max-width: 640px) {
  .page-hero { padding: 8px 0 8px !important; }
  .page-hero h1 { font-size: 1.25rem !important; margin: 0 0 4px !important; line-height: 1.1 !important; }
  .page-hero .lead { font-size: .88rem !important; line-height: 1.35 !important; }
  .page-hero .breadcrumbs { font-size: 10.5px !important; margin-bottom: 2px !important; letter-spacing: .08em !important; }
}

/* Byline under lead */
.hero-byline {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
.hero-byline img {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(25,26,69,.15);
  flex: 0 0 auto;
}
.hero-byline .by-sep { opacity: .5; }
.hero-byline a { color: var(--blue-deep); text-decoration: none; font-weight: 700; }
.hero-byline a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .hero-byline { font-size: 11px; margin-top: 5px; gap: 5px; }
  .hero-byline img { width: 18px; height: 18px; }
}

/* H2 list heading, tighter */
.list-heading {
  margin: 14px 0 10px !important;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}
@media (max-width: 640px) {
  .list-heading { margin: 6px 0 20px !important; font-size: 1.08rem !important; padding-bottom: 4px !important; }
  .list-heading::before { height: 2px !important; }
}
/* Ensure the container holding the h2 + cards sits tight to hero on mobile */
@media (max-width: 640px) {
  section.container { padding-top: 6px !important; padding-bottom: 6px !important; }
}

/* Featured cards, compact so CTA is on first fold */
.featured-cards { gap: 12px !important; margin-top: 0 !important; margin-bottom: 10px !important; }
.feat-card {
  padding: 14px 14px 16px !important;
}
.feat-card .feat-thumb { min-height: 72px !important; margin: 2px auto 6px !important; }
.feat-card .feat-thumb img { max-height: 86px !important; }
.feat-card h3 {
  font-size: 1.02rem !important;
  margin: 0 0 6px !important;
  line-height: 1.25 !important;
}
.feat-card .feat-list { margin: 0 0 10px !important; }
.feat-card .feat-list li {
  padding: 1px 0 !important;
  font-size: 13.5px !important;
  gap: 8px !important;
  line-height: 1.35 !important;
}
.feat-card .btn-primary {
  padding: 10px 14px !important;
  font-size: .95rem !important;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px) {
  .feat-card { padding: 12px 12px 14px !important; }
  .feat-card .feat-thumb { min-height: 62px !important; }
  .feat-card .feat-thumb img { max-height: 72px !important; }
  .feat-card h3 { font-size: .98rem !important; }
  .feat-card .feat-list li { font-size: 13px !important; }
}

/* Top-pick card - distinct amber tint + centered badge, NO flame */
.feat-card.is-top-pick {
  background: linear-gradient(180deg, #FBEAEC 0%, #F5D3D7 100%) !important;
  border: 2px solid #B23A48 !important;
  box-shadow: 0 14px 36px rgba(178,58,72,.20), 0 2px 6px rgba(25,26,69,.08) !important;
  position: relative;
  overflow: visible !important;
}
.feat-card.is-top-pick:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 44px rgba(178,58,72,.28), 0 3px 8px rgba(25,26,69,.10) !important;
}
.feat-card.is-top-pick::before {
  background: #B23A48 !important;
  height: 6px !important;
}
.feat-card .feat-flame { display: none !important; }
.feat-card .top-pick-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #191A45;
  color: #FBEAEC;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(25,26,69,.28);
  z-index: 3;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .feat-card .top-pick-badge { font-size: .88rem; padding: 5px 14px; top: -12px; }
}

/* Home-only trust-stats, condensed to save vertical space */
body.home .trust-stats-wrap { padding: 0 20px !important; margin-top: 8px !important; }
body.home .trust-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  max-width: 1000px; margin: 16px auto 24px; padding: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 22px rgba(25,26,69,.06);
  overflow: hidden;
}
body.home .trust-stats .ts-tile {
  background: transparent; border: none;
  border-right: 1px solid var(--line);
  border-radius: 0; padding: 14px 10px; text-align: center;
}
body.home .trust-stats .ts-tile:last-child { border-right: none; }
body.home .trust-stats .ts-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 400; color: var(--yellow-hot);
  line-height: 1.1; margin-bottom: 4px;
}
body.home .trust-stats .ts-lab {
  color: var(--ink-2); font-size: .82rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
}
@media (max-width: 900px) {
  body.home .trust-stats { grid-template-columns: repeat(2, 1fr); }
  body.home .trust-stats .ts-tile { border-right: none; border-bottom: 1px solid var(--line); }
  body.home .trust-stats .ts-tile:nth-child(odd) { border-right: 1px solid var(--line); }
  body.home .trust-stats .ts-tile:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  body.home .trust-stats { grid-template-columns: 1fr; }
  body.home .trust-stats .ts-tile { border-right: none !important; border-bottom: 1px solid var(--line); padding: 12px 10px; }
  body.home .trust-stats .ts-tile:last-child { border-bottom: none; }
}

/* ============================================================
   Author box redesign - editorial contributor card
   Overrides all earlier .author-box layers in main.css
   ============================================================ */
.author-box {
  position: relative;
  display: grid !important;
  grid-template-columns: 168px minmax(0, 1fr) !important;
  gap: 34px !important;
  align-items: start !important;
  padding: 34px 38px 32px !important;
  margin: 30px 0 36px !important;
  background: linear-gradient(135deg, #FFFDF7 0%, #FBF3E3 100%) !important;
  border: 1px solid var(--line) !important;
  border-top: 4px solid var(--yellow) !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 40px rgba(25, 26, 69, .07) !important;
  overflow: hidden;
}
.author-box::after {
  content: "";
  position: absolute;
  right: -70px; top: -90px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 58, 72, .12), rgba(178, 58, 72, 0) 65%);
  pointer-events: none;
}
.author-box .author-avatar {
  position: relative;
  z-index: 1;
  width: 142px !important;
  height: 142px !important;
  max-width: 142px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 5px solid #FFFDF7 !important;
  box-shadow: 0 0 0 2px var(--yellow), 0 14px 30px rgba(25, 26, 69, .16) !important;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 !important;
}
.author-box .author-info { min-width: 0; position: relative; z-index: 1; }
.author-box .author-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  font-size: 11px !important;
  color: var(--yellow-hot) !important;
  text-transform: uppercase;
  letter-spacing: .14em !important;
  font-weight: 800 !important;
  margin: 2px 0 8px !important;
}
.author-box .author-eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--yellow);
  flex: 0 0 auto;
}
.author-box .author-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 8px !important;
}
.author-box h3.author-name {
  margin: 0 !important;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.1rem) !important;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.author-box h3.author-name::before { display: none !important; }
.author-box .author-role {
  display: inline-block !important;
  font-size: 11px !important;
  color: var(--yellow-hot) !important;
  background: var(--yellow-tint);
  border: 1px solid rgba(178, 58, 72, .18);
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 800 !important;
  margin: 0 0 14px !important;
  line-height: 1.4;
}
.author-box .author-email-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--blue-deep) !important;
  color: #FFF8EC !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(25, 26, 69, .18);
  transition: transform .16s ease, background .16s ease;
}
.author-box .author-email-btn:hover {
  background: var(--blue) !important;
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none;
}
.author-box .author-bio {
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: var(--ink-2);
  margin: 16px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  column-count: 2;
  column-gap: 38px;
  orphans: 2;
  widows: 2;
}
@media (max-width: 999px) {
  .author-box .author-bio { column-count: 1; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .author-box {
    grid-template-columns: 140px minmax(0, 1fr) !important;
    gap: 26px !important;
    padding: 28px 30px 26px !important;
  }
  .author-box .author-avatar {
    width: 140px !important; height: 140px !important; max-width: 140px !important;
  }
}
@media (max-width: 760px) {
  .author-box {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 10px 20px !important;
    padding: 24px 20px 22px !important;
    margin: 24px 0 !important;
    border-radius: 16px !important;
  }
  .author-box .author-avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
    border-width: 3px !important;
  }
  .author-box .author-info { display: contents; }
  .author-box .author-eyebrow,
  .author-box .author-name-row,
  .author-box .author-role,
  .author-box .author-bio { position: relative; z-index: 1; }
  .author-box .author-eyebrow {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 10px !important;
    margin: 0 0 2px !important;
    letter-spacing: .12em !important;
  }
  .author-box .author-eyebrow::before { width: 18px; height: 2px; }
  .author-box .author-name-row {
    grid-column: 2;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 0 !important;
  }
  .author-box h3.author-name { font-size: 1.45rem !important; }
  .author-box .author-email-btn {
    padding: 7px 14px !important;
    font-size: 12px !important;
    min-height: 44px;
    box-shadow: none;
  }
  .author-box .author-role {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin: 8px 0 0 !important;
    font-size: 10.5px !important;
  }
  .author-box .author-bio {
    grid-column: 1 / -1;
    grid-row: 4;
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin: 14px 0 0 !important;
    padding-top: 14px;
    column-count: 1 !important;
  }
}

@media (max-width: 360px) {
  .author-box h3.author-name { font-size: 1.3rem !important; }
  .author-box { padding: 20px 16px 18px !important; }
}

/* ============================================================
   Desktop navigation - compact pill bar
   ============================================================ */
@media (min-width: 901px) {
  .site-header .header-inner { gap: 24px !important; }
  .site-header .nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(25, 26, 69, .035);
  }
  .site-header .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 13px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink-2);
    background: transparent;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
  }
  .site-header .nav a::after { display: none !important; }
  .site-header .nav a:hover {
    background: var(--yellow-tint);
    color: var(--blue-deep);
    text-decoration: none;
  }
  .site-header .nav a.active {
    background: var(--blue-deep);
    color: #FFF8EC;
    box-shadow: 0 6px 14px rgba(25, 26, 69, .18);
  }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .site-header .nav a { font-size: 11px; padding: 8px 10px; letter-spacing: .03em; }
}
