/* ==== Game Guide wrapper (shared by all game pages) ==== */
#game-guide {
  text-align: left;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #212121;
  background: #ffffff;
  margin: 0;
  padding: 0 30px 30px;
}

#game-guide h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #212121;
}

#game-guide h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212121;
}

#game-guide h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #212121;
}

#game-guide h4 {
  margin-top: 30px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #212121;
}

/* ==== Bidding-system banner under the game ==== */
#display-bidding-system {
  display: inline-block;
  margin: 0.75rem auto;
  padding: 0.5rem 1.25rem;
  background: #FFF8E1;
  border: 1px solid #FFC107;
  border-radius: 8px;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #212121;
}

/* Nothing to announce yet (script fills it in) — don't show an empty pill */
#display-bidding-system:empty {
  display: none;
}

/* ==== Phones ====
   !important + html/body prefixes beat the per-page inline <style> blocks
   (loaded later in the head) that hardcode 1rem / 1.125rem. */
@media (max-width: 600px) {
  html body #game-guide {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    padding: 0 14px 16px !important;
  }

  html body #game-guide h1 {
    font-size: 1.125rem !important;
  }

  html body #game-guide h2,
  html body #game-guide h3,
  html body #game-guide h4 {
    margin-top: 16px !important;
    font-size: 1rem !important;
  }

  html body #game-guide .glossary-link,
  html body #game-guide .glossary-link a,
  html body #game-guide .glossary-underline,
  html body #game-guide .tooltip-container,
  html body #game-guide .glossary-link *,
  html body #game-guide .glossary-underline *,
  html body #game-guide span.glossary-link,
  html body #game-guide span.glossary-underline,
  html body #game-guide span.tooltip-container {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
  }

  html body #display-bidding-system {
    margin: 0.4rem auto !important;
    padding: 0.3rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  html body #miniMenu {
    min-height: 40px !important;
    gap: 0.6rem !important;
    padding: 0 0.75rem !important;
  }

  html body #miniMenu a,
  html body #miniMenu button,
  html body #miniMenu #change-bidsys-btn,
  html body #miniMenu .display-menu__toggle,
  html body #miniMenu .miniMenu__sep {
    font-size: 0.75rem !important;
  }

  html body #miniMenu #backlink .backlink__icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
  }
}

/* ==== 60secondbridge – contentDiv only (scoped) ==== */
#contentDiv{
  /* local design tokens */
  --brand-amber: #FFC107;
  --brand-orange:#FF9800;
  --accent-teal: #0EA5A4;
  --ink-900:     #222831;
  --ink-700:     #3E4A59;
  --ink-500:     #6B7785;
  --line-200:    #E6ECF1;
  --bg-panel:    #FAFBFC;
  --bg-card:     #FFFFFF;
  --shadow-1:    0 1px 1px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.06);

  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink-700);
  line-height: 1.65;
}

/* Main wrapper card */
#contentDiv .twoGameGuideColumns{
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--line-200);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-1);
}

/* Headings */
#contentDiv h1{
  margin: .25rem 0 .5rem;
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: .5px;
}
#contentDiv h1 + .hotd-subtitle{
  margin-top: .15rem;
  font-size: .95rem;
  color: var(--ink-500);
}
#contentDiv h3{
  position: relative;
  margin: 1.1rem 0 .5rem;
  padding-left: .6rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-900);
}
#contentDiv h3::before{
  content: "";
  position: absolute;
  left: 0; top: .2rem; bottom: .2rem;
  width: 4px;
  border-radius: 3px;
  background: var(--brand-amber);
}

/* Paragraphs & inline text */
#contentDiv p{ margin: .5rem 0; }
#contentDiv em{ color: var(--ink-500); }

/* System callouts */
#contentDiv .saycdiv,
#contentDiv .fivediv,
#contentDiv .acoldiv{
  background: var(--bg-card);
  border: 1px solid var(--line-200);
  border-left: 5px solid var(--brand-amber);
  border-radius: 12px;
  padding: .9rem 1rem;
  box-shadow: var(--shadow-1);
}
#contentDiv .fivediv{ border-left-color: #2E7D32; }   /* five-card majors accent */
#contentDiv .acoldiv{ border-left-color: #546E7A; }   /* ACOL accent (slate) */

#contentDiv .saycdiv h3,
#contentDiv .fivediv h3,
#contentDiv .acoldiv h3{
  margin-top: .25rem;
}

/* Centered blocks */
#contentDiv [style*="text-align: center"] h1{
  text-transform: none;
}
#contentDiv [style*="text-align: center"] .hotd-subtitle{
  font-size: .95rem;
}

/* Links */
#contentDiv a{
  color: var(--accent-teal);
  text-decoration: none;
}
#contentDiv a:hover{
  color: var(--brand-orange);
  text-decoration: underline;
}
/* indicate new-tab links only inside this content */
#contentDiv a[target="_blank"]::after{
  content: " ↗";
  font-size: .95em;
}

/* Section with lesson links */
#contentDiv h3 + a{ display: inline-block; margin: .15rem 0; }

/* Small spacing tweaks for many <br> based lines */
#contentDiv br + br{ line-height: .6; }

/* Responsive comfort */
@media (max-width: 720px){
  #contentDiv .twoGameGuideColumns{ padding: 1rem; }
  #contentDiv h1{ font-size: 1.125rem; }
  #contentDiv h3{ font-size: 1rem; }
}
