@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --blue: #075ee8;
  --blue-dark: #0739b5;
  --blue-deep: #052a8f;
  --blue-soft: #eaf2ff;
  --page: #fafdff;
  --surface: rgba(255,255,255,.92);
  --ink: #101b35;
  --muted: #66718a;
  --line: #d9e4f4;
  --red: #e31f39;
  --club: #106b35;
  --spade: #0d1730;
  --shadow-sm: 0 7px 20px rgba(23,73,150,.08);
  --shadow-md: 0 20px 54px rgba(23,73,150,.12);
  --radius: 19px;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 2% 28%, rgba(79,145,255,.12), transparent 30rem),
    radial-gradient(circle at 100% 46%, rgba(83,220,197,.09), transparent 32rem),
    radial-gradient(circle at 74% 100%, rgba(148,108,255,.07), transparent 35rem),
    linear-gradient(145deg, #ffffff 0%, #fbfdff 48%, #f5f9ff 100%);
  background-attachment: fixed;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #fff;
  background:
    radial-gradient(circle at 20% -90%, rgba(61,217,255,.9), transparent 18rem),
    linear-gradient(110deg, #0638b8 0%, #075ee8 54%, #0645c4 100%);
  box-shadow: 0 8px 26px rgba(4,55,160,.22);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .27;
  background: repeating-radial-gradient(ellipse at 24% 140%, transparent 0 18px, rgba(255,255,255,.24) 19px 20px);
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-monogram {
  position: relative;
  display: grid;
  width: 58px;
  height: 50px;
  place-items: center;
  border: 1.5px solid rgba(255,255,255,.95);
  border-radius: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
}
.brand-monogram::before, .brand-monogram::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.74);
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}
.brand-monogram::before { top: -9px; }
.brand-monogram::after { bottom: -9px; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.05; }
.brand-copy small { margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; opacity: .9; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }
.header-search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 43vw);
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  background: #fff;
  color: #77839a;
  padding: 0 17px;
  box-shadow: 0 8px 22px rgba(1,28,90,.17);
  text-align: left;
}
.search-icon { color: var(--blue); font-size: 25px; line-height: 1; }
.search-placeholder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-link, .book-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 14px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(1,28,90,.17);
}
.header-link { gap: 8px; padding: 0 17px; }
.book-button { width: 50px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; }
.grid-icon { font-size: 21px; }

.search-panel { border-bottom: 1px solid rgba(255,255,255,.16); background: #073cbb; color: white; }
.search-inner { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 24px 0; }
.search-inner label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-row input { width: 100%; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; background: rgba(255,255,255,.13); color: white; padding: 13px 14px; outline: none; }
.search-row input::placeholder { color: rgba(255,255,255,.7); }
.search-row button { border: 0; border-radius: 12px; background: white; color: var(--blue-dark); padding: 0 16px; font-weight: 750; }
.search-results { display: grid; gap: 7px; margin-top: 12px; }
.search-result { display: grid; grid-template-columns: minmax(78px, auto) 1fr auto; align-items: center; gap: 12px; width: 100%; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: rgba(255,255,255,.09); color: white; padding: 10px 12px; text-align: left; }
.search-result:hover { background: rgba(255,255,255,.15); }
.search-result span { color: rgba(255,255,255,.82); }
.search-result i { font-style: normal; opacity: .68; }
.search-empty { color: rgba(255,255,255,.76); font-size: 14px; }

#app { width: min(var(--content), calc(100% - 40px)); min-height: calc(100vh - 162px); margin: 0 auto; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: 38px;
  min-height: 276px;
  margin: 40px 0 24px;
  padding: 42px 48px;
  overflow: hidden;
  border: 1px solid rgba(187,207,235,.8);
  border-radius: 25px;
  background:
    radial-gradient(circle at 80% 55%, rgba(64,199,186,.1), transparent 22rem),
    radial-gradient(circle at 95% 20%, rgba(60,139,235,.14), transparent 20rem),
    rgba(255,255,255,.82);
  box-shadow: var(--shadow-md);
}
.kicker, .section-eyebrow { display: inline-block; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.home-hero h1 { margin: 12px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 5.3vw, 68px); line-height: .98; letter-spacing: -.045em; }
.home-hero p { max-width: 590px; margin: 0; color: #59657d; font-size: clamp(16px, 1.55vw, 19px); }
.hero-suits { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.5vw, 34px); padding-top: 14px; }
.hero-suits span { position: relative; display: inline-block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(55px, 6vw, 83px); line-height: 1; filter: drop-shadow(0 18px 9px rgba(45,87,165,.14)); }
.hero-club { color: #3da461; }
.hero-diamond { color: #3478e8; }
.hero-heart { color: #ff4e67; }
.hero-spade { color: #123474; }

.opening-catalogue { padding-bottom: 35px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 30px 0 15px; }
.section-title h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 3.3vw, 43px); line-height: 1; letter-spacing: -.035em; }
.section-title p { max-width: 480px; margin: 0; color: var(--muted); font-size: 13px; }
.opening-groups { display: grid; gap: 12px; }
.opening-group { overflow: hidden; border: 1px solid rgba(211,224,243,.88); border-radius: 18px; background: rgba(255,255,255,.52); box-shadow: 0 7px 25px rgba(32,82,155,.05); }
.opening-group-head { padding: 13px 16px 5px; }
.opening-group-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.opening-index { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 12px; padding: 8px 14px 14px; }
.opening-entry {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  overflow: hidden;
  border: 1px solid #d8e4f5;
  border-radius: 13px;
  background: rgba(255,255,255,.9);
  padding: 10px 14px 10px 18px;
  box-shadow: 0 6px 17px rgba(35,79,151,.055);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.opening-entry:hover { transform: translateY(-2px); border-color: #b9cff2; background: #fff; box-shadow: 0 11px 25px rgba(35,79,151,.11); }
.opening-entry-wide { grid-column: auto; }
.opening-entry-accent { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.opening-entry-bid { min-width: 58px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 750; line-height: 1; white-space: nowrap; }
.homepage-bid-black { color: #111827; }
.opening-entry-copy { min-width: 0; }
.opening-entry-title { display: block; margin-bottom: 2px; color: #111827; font-size: 14px; font-weight: 800; line-height: 1.2; }
.opening-entry-summary { display: block; overflow: hidden; color: #53617a; font-size: 11.5px; line-height: 1.36; white-space: pre-line; }
.opening-entry-arrow { color: #005cff; font-size: 21px; font-weight: 700; transition: transform .18s ease; }
.opening-entry:hover .opening-entry-arrow { transform: translateX(3px); }

.opening-page { padding: 34px 0 72px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); }
.back-link { display: inline-flex; margin-bottom: 20px; color: var(--blue-dark); font-size: 14px; font-weight: 700; }
.opening-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.83); box-shadow: var(--shadow-sm); }
.opening-head h1 { margin: 8px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(35px, 4.5vw, 54px); line-height: 1; }
.opening-head p { max-width: 740px; margin: 0; color: var(--muted); white-space: pre-line; }
.hero-symbol { display: grid; width: 82px; height: 82px; place-items: center; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 760; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.toolbar-left, .toolbar-right { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar button { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 9px 12px; font-size: 13px; font-weight: 700; }
.toolbar button:hover { border-color: #b9cff2; background: #f7faff; }
.toolbar .primary-action { border-color: var(--blue); background: var(--blue); color: white; }
.schema { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.schema-row { border-top: 1px solid var(--line); }
.schema > .schema-row:first-child { border-top: 0; }
.schema-children { margin-left: 24px; border-left: 1px solid #d6e2f2; }
.schema-button { display: grid; grid-template-columns: 20px minmax(58px,auto) 1fr; gap: 10px; align-items: center; width: 100%; min-height: 53px; border: 0; background: transparent; color: var(--ink); padding: 12px 16px; text-align: left; }
.schema-button:hover { background: #f7faff; }
.schema-button[aria-expanded="true"] { background: #edf4ff; }
.chevron { color: var(--blue); text-align: center; }
.bid { font-weight: 800; white-space: nowrap; }
.meaning { min-width: 0; }
.empty-state { padding: 30px; color: var(--muted); text-align: center; }
.search-focus { animation: focusPulse 1.8s ease; }
@keyframes focusPulse { 0%,100% { box-shadow: inset 0 0 0 0 rgba(7,94,232,0); } 35% { box-shadow: inset 0 0 0 3px rgba(7,94,232,.25); } }

.suit { font-family: Georgia, "Times New Roman", serif; font-weight: 750; }
.suit-club { color: var(--club); }
.suit-heart, .suit-diamond { color: var(--red); }
.suit-spade { color: var(--spade); }

.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 24px 0 32px; border-top: 1px solid var(--line); color: #62708a; font-size: 12px; }
.footer-links { display: flex; gap: 28px; color: var(--blue-dark); }

@media (max-width: 880px) {
  .header-inner { min-height: 72px; }
  .brand-copy strong { font-size: 21px; }
  .brand-monogram { width: 48px; height: 42px; font-size: 19px; }
  .book-button { display: none; }
  .header-search-trigger { width: min(350px, 45vw); }
  .home-hero { grid-template-columns: 1fr; min-height: 0; padding: 35px; }
  .hero-suits { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .header-inner, #app, .search-inner, .site-footer { width: min(100% - 28px, var(--content)); }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 18px; }
  .header-link { display: none; }
  .header-search-trigger { width: 48px; padding: 0; justify-content: center; }
  .search-placeholder { display: none; }
  .home-hero { margin-top: 20px; padding: 28px 22px; border-radius: 20px; }
  .hero-suits { gap: 18px; }
  .hero-suits span { font-size: 48px; }
  .section-title { display: block; }
  .section-title p { margin-top: 9px; }
  .opening-index { grid-template-columns: 1fr; }
  .opening-entry-wide { grid-column: auto; }
  .opening-entry { grid-template-columns: 54px minmax(0,1fr) 20px; min-height: 74px; padding-left: 15px; }
  .opening-entry-bid { min-width: 50px; font-size: 25px; }
  .opening-head { grid-template-columns: 1fr auto; padding: 20px; }
  .hero-symbol { width: 62px; height: 62px; font-size: 29px; }
  .toolbar, .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar button { flex: 1; }
  .schema-children { margin-left: 12px; }
  .schema-button { grid-template-columns: 18px minmax(50px,auto) 1fr; gap: 7px; padding: 11px; }
  .site-footer { display: block; }
  .footer-links { margin-top: 8px; gap: 15px; flex-wrap: wrap; }
}



/* =========================================================
   TARZAN & JANE â€” DONKERE HEADER + STANDAARD BRIDGEKLEUREN
   Deze regels staan bewust onderaan zodat de bestaande
   lay-out, grids, kaarten en responsive styling intact blijven.
   ========================================================= */

:root {
  --blue: #0f806f;
  --blue-dark: #0b665a;
  --blue-deep: #081b33;
  --blue-soft: #e9f5f2;

  --page: #f4f7fa;
  --surface: rgba(255,255,255,.96);
  --ink: #101a2d;
  --muted: #697487;
  --line: #dfe6ed;

  --bridge-black: #111827;
  --bridge-red: #d32027;

  --club: var(--bridge-black);
  --spade: var(--bridge-black);
  --red: var(--bridge-red);

  --shadow-sm: 0 4px 14px rgba(13,31,55,.06);
  --shadow-md: 0 14px 38px rgba(13,31,55,.09);
}

body,
button,
input {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(circle at 3% 31%, rgba(30,128,111,.055), transparent 30rem),
    radial-gradient(circle at 97% 55%, rgba(46,105,190,.055), transparent 32rem),
    #f4f7fa;
}

/* Donkere bovenbalk */
.site-header {
  color: #fff;
  background: linear-gradient(180deg, #0d223f 0%, #091a31 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 20px rgba(8,25,49,.18);
}

.site-header::after {
  opacity: .08;
}

.brand-copy strong {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
}

.brand-copy small {
  font-weight: 700;
}

.header-search-trigger {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  box-shadow: none;
}

.header-link,
.book-button {
  min-height: 46px;
  border-radius: 10px;
  box-shadow: none;
}

.book-button {
  width: 46px;
}

/* Zoekpaneel */
.search-panel {
  background: #102947;
  border-bottom-color: rgba(255,255,255,.09);
}

/* Typografie */
.home-hero h1,
.section-title h2,
.opening-head h1 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
}

.kicker,
.section-eyebrow {
  color: var(--blue);
}

.opening-group-head h3,
.opening-entry-title,
.bid,
.toolbar button {
  font-weight: 700;
}

/* Hoofdpanelen en kaarten */
.home-hero {
  border-color: var(--line);
  background:
    radial-gradient(circle at 83% 48%, rgba(22,128,111,.07), transparent 21rem),
    radial-gradient(circle at 96% 20%, rgba(41,102,187,.08), transparent 20rem),
    rgba(255,255,255,.94);
  box-shadow: var(--shadow-md);
}

.opening-group {
  border-color: var(--line);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-sm);
}

.opening-entry {
  border-color: var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 13px rgba(13,31,55,.045);
}

.opening-entry:hover {
  border-color: #aecfc7;
  background: #fff;
  box-shadow: 0 9px 22px rgba(13,31,55,.09);
}

.opening-entry-accent {
  background: var(--blue);
}

.opening-entry-arrow,
.search-icon,
.chevron {
  color: var(--blue);
}

.opening-head,
.hero-symbol,
.schema {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.schema-button:hover {
  background: #f5faf8;
}

.schema-button[aria-expanded="true"] {
  background: var(--blue-soft);
}

.toolbar button:hover {
  border-color: #aecfc7;
  background: #f5faf8;
}

.toolbar .primary-action {
  border-color: var(--blue);
  background: var(--blue);
}

.toolbar .primary-action:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13,31,55,.12);
}

.footer-links,
.back-link {
  color: var(--blue-dark);
}

/* =========================================================
   STANDAARD BRIDGEKLEUREN
   â™  en â™£ zwart â€” â™¥ en â™¦ rood
   ========================================================= */

.suit-club,
.suit-spade,
.hero-club,
.hero-spade {
  color: var(--bridge-black) !important;
}

.suit-heart,
.suit-diamond,
.hero-heart,
.hero-diamond {
  color: var(--bridge-red) !important;
}

/* Voor eventuele extra biedingsklassen */
.bid-club,
.bid-spade,
.club,
.spade {
  color: var(--bridge-black) !important;
}

.bid-heart,
.bid-diamond,
.heart,
.diamond {
  color: var(--bridge-red) !important;
}

/* Bodnummer blijft zwart; alleen het tekensymbool krijgt kleur */
.homepage-bid-black {
  color: var(--bridge-black) !important;
}

/* Kaartsymbolen behouden een iets klassiekere vorm */
.suit,
.hero-suits span {
  font-family: Georgia, "Times New Roman", serif;
}


@media print {
  .site-header, .search-panel, .toolbar, .back-link, .breadcrumb, .site-footer { display: none !important; }
  body { background: white; }
  #app { width: 100%; }
  .opening-page { padding: 0; }
  .opening-head { box-shadow: none; }
  .schema { box-shadow: none; }
  
/* Verwijder ongewenste focusrand */
html,
body,
#app {
    outline: none !important;
}

*:focus {
    outline: none;
}  
}
/* =========================================================
   OPENINGSPAGINA MET ZIJMENU, BIEDVERLOOP EN INFORMATIE
   ========================================================= */

body:not(.is-home) #app {
  width: 100%;
  max-width: none;
  margin: 0;
}

.opening-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  width: min(1480px, 100%);
  min-height: calc(100vh - 84px);
  margin: 0 auto;
}

.opening-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 84px);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  padding: 18px 14px;
  z-index: 20;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line);
}

.sidebar-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-close {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.sidebar-nav {
  padding: 12px 0;
}

.sidebar-group + .sidebar-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sidebar-group h2 {
  margin: 0 8px 8px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sidebar-opening {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 42px;
  margin: 2px 0;
  border-radius: 9px;
  padding: 7px 9px;
  color: #47556e;
  font-size: 13px;
  transition: background .16s ease, color .16s ease;
}

.sidebar-opening:hover {
  background: #f3f8f7;
  color: var(--ink);
}

.sidebar-opening.is-active {
  background: #e7f3f0;
  color: #075f53;
  font-weight: 700;
}

.sidebar-opening.is-active::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--blue);
}

.sidebar-bid {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.sidebar-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-analysis {
  display: grid;
  gap: 2px;
  margin-top: auto;
  border: 1px solid #83bfb5;
  border-radius: 11px;
  padding: 12px;
  color: var(--blue-dark);
  background: rgba(255,255,255,.8);
}

.sidebar-analysis strong {
  font-size: 13px;
}

.sidebar-analysis span {
  color: var(--muted);
  font-size: 10px;
}

.opening-main {
  min-width: 0;
}

.opening-page {
  width: min(1080px, calc(100% - 52px));
  margin: 0 auto;
  padding-top: 30px;
}

.opening-title-row {
  margin-bottom: 22px;
}

.opening-title-row h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
  font-family: "Inter", sans-serif;
  font-size: clamp(34px, 4.1vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
}

.opening-title-row h1 > span {
  color: var(--ink);
}

.opening-title-row p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  white-space: pre-line;
}

.opening-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.opening-context.context-single {
  grid-template-columns: minmax(0, 1fr);
}

.context-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  padding: 17px;
  box-shadow: var(--shadow-sm);
}

.context-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.context-card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.context-icon {
  color: var(--ink);
  font-size: 20px;
}

.context-info-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue-dark);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
}

.auction-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.auction-heading,
.auction-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auction-heading span {
  display: grid;
  min-height: 39px;
  place-items: center;
  background: linear-gradient(180deg, #0e8372, #0a6e61);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.auction-heading span + span,
.auction-values span + span {
  border-left: 1px solid var(--line);
}

.auction-values span {
  display: grid;
  min-height: 48px;
  place-items: center;
  background: white;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.auction-question {
  color: var(--blue-dark) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.auction-caption {
  margin: 12px 0 0;
  border: 1px solid #e0e7ec;
  border-radius: 8px;
  background: #f7f9fb;
  padding: 10px 12px;
  color: #5d687a;
  font-size: 12px;
}

.info-card {
  background: rgba(255,255,255,.96);
}

.info-list {
  margin: 0;
  border: 1px solid #cfe1dd;
  border-radius: 9px;
  background: #eef7f5;
  padding: 13px 14px 13px 31px;
  color: #344255;
  font-size: 13px;
}

.info-list li + li {
  margin-top: 5px;
}

.mobile-menu-button,
.sidebar-backdrop {
  display: none;
}

@media (max-width: 820px) {
  .opening-layout {
    display: block;
  }

  .opening-page {
    width: min(100% - 32px, 900px);
    padding-top: 18px;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 16px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--ink);
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
  }

  .opening-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(310px, 86vw);
    height: 100vh;
    padding-top: 18px;
    transform: translateX(-104%);
    transition: transform .22s ease;
    box-shadow: 16px 0 45px rgba(8,25,49,.18);
    z-index: 80;
  }

  .sidebar-close {
    display: grid;
    place-items: center;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(4,16,32,.42);
    z-index: 70;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .opening-sidebar {
    transform: translateX(0);
  }
}

@media (max-width: 680px) {
  .opening-page {
    width: min(100% - 22px, 900px);
    padding-bottom: 42px;
  }

  .mobile-menu-button {
    margin: 11px 11px 0;
  }

  .back-link {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .opening-title-row {
    margin-bottom: 16px;
  }

  .opening-title-row h1 {
    gap: 8px;
    font-size: 30px;
  }

  .opening-title-row p {
    font-size: 12px;
    line-height: 1.45;
  }

  .opening-context {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .context-card {
    border-radius: 12px;
    padding: 13px;
  }

  .context-card-head {
    margin-bottom: 10px;
  }

  .context-card-head h2 {
    font-size: 13px;
  }

  .auction-heading span {
    min-height: 34px;
    font-size: 10px;
  }

  .auction-values span {
    min-height: 43px;
    font-size: 13px;
  }

  .auction-caption,
  .info-list {
    font-size: 11px;
  }

  .toolbar {
    margin-top: 12px;
  }
}

@media print {
  .opening-sidebar,
  .mobile-menu-button,
  .sidebar-backdrop,
  .opening-context {
    display: none !important;
  }

  .opening-layout {
    display: block;
  }

  .opening-page {
    width: 100%;
  }
}


/* Extra zekerheid: zijmenu altijd zichtbaar op normale desktopbreedte */
@media (min-width: 821px) {
  .opening-layout {
    display: grid !important;
    grid-template-columns: 270px minmax(0, 1fr) !important;
  }

  .opening-sidebar {
    display: flex !important;
    visibility: visible !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .mobile-menu-button,
  .sidebar-backdrop {
    display: none !important;
  }
}


/* =========================================================
   OPENINGSPAGINA ZONDER SIDEBAR
   ========================================================= */

.opening-main-full {
  width: 100%;
  min-width: 0;
}

.opening-main-full .opening-page {
  width: min(1080px, calc(100% - 52px));
  margin: 0 auto;
  padding-top: 30px;
}

.opening-sidebar,
.mobile-menu-button,
.sidebar-backdrop {
  display: none !important;
}

@media (max-width: 680px) {
  .opening-main-full .opening-page {
    width: min(100% - 22px, 900px);
    padding-top: 18px;
  }
}


/* =========================================================
   FIX: COMPLETE BIEDING OP Ã‰Ã‰N REGEL
   ========================================================= */

/* Alleen de vier biedcellen zijn flexcontainers. */
.auction-values > span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  white-space: nowrap;
}

/* Het kaartsymbool erbinnen mag NIET de algemene celopmaak erven. */
.auction-values > span > .suit {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  vertical-align: baseline !important;
}


/* =========================================================
   MEERDERE BIEDSITUATIES OP Ã‰Ã‰N PAGINA
   ========================================================= */
.opening-parts {
  display: grid;
  gap: 24px;
}

.opening-part + .opening-part {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.opening-part-title {
  margin-bottom: 14px;
}

.opening-part-title h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.opening-part-title p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--muted, #64748b);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.page-print-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

/* Houd bod en symbool altijd op Ã©Ã©n regel, bijvoorbeeld 1â™¦. */
.auction-values > span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.auction-values > span > .suit {
  display: inline !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin-left: 2px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  line-height: 1 !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* =========================================================
   KENNISPAGINA: VERDEDIGING TEGEN ZWAKKE NT
   Gebruikt de bestaande globale styles.css.
   ========================================================= */
.article-page { padding-bottom: 72px; }
.article-title-row { margin-bottom: 18px; }
.article-title-row h1 { margin-top: 7px; }
.article-title-row p { width: 100%; max-width: none; line-height: 1.65; }

.article-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-sm);
}
.article-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #d7e5e1;
  border-radius: 9px;
  background: #f6faf9;
  color: var(--blue-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}
.article-toc a:hover { border-color: #a9cec6; background: var(--blue-soft); }
.article-sections { display: grid; gap: 14px; }
.article-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-sm);
}
.article-section > summary {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 26px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.article-section > summary::-webkit-details-marker { display: none; }
.article-section > summary:hover { background: #f7faf9; }
.article-section[open] > summary { border-bottom: 1px solid var(--line); background: #f2f8f6; }
.article-section-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 800;
}
.article-section-title { font-size: 16px; font-weight: 800; }
.article-section-chevron { color: var(--blue-dark); font-size: 19px; text-align: center; transition: transform .18s ease; }
.article-section:not([open]) .article-section-chevron { transform: rotate(-90deg); }
.article-section-content { padding: 20px; }
.article-paragraph { max-width: none; margin: 0; color: #46536a; font-size: 14px; line-height: 1.75; }
.article-paragraph + .article-paragraph,
.article-paragraph + .article-list,
.article-list + .article-paragraph,
.article-callout + .article-paragraph,
.article-paragraph + .article-callout { margin-top: 14px; }
.article-list { margin: 12px 0 0; padding-left: 22px; color: #46536a; font-size: 14px; line-height: 1.65; }
.article-list li + li { margin-top: 5px; }
.article-subheading { margin: 24px 0 10px; font-size: 15px; font-weight: 800; }
.article-block-title { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.article-divider { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }
.article-callout {
  margin: 16px 0;
  border: 1px solid #badbd4;
  border-left: 4px solid var(--blue);
  border-radius: 11px;
  background: #eff8f6;
  padding: 14px 15px;
}
.article-callout strong { display: block; margin-bottom: 4px; font-size: 13px; }
.article-callout p { margin: 0; color: #46536a; font-size: 13px; line-height: 1.6; white-space: pre-line;}
.article-callout-warning { border-color: #ead39b; border-left-color: #c98b00; background: #fff8e7; }
.article-callout-danger { border-color: #efb5b9; border-left-color: #cf2634; background: #fff2f3; }
.article-auction-wrap,
.article-schema-wrap { margin-top: 18px; }
.article-auction {
  max-width: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.article-auction-head,
.article-auction-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.article-auction-head span {
  display: grid;
  min-height: 38px;
  place-items: center;
  background: linear-gradient(180deg, #0e8372, #0a6e61);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.article-auction-row span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.article-auction-head span + span,
.article-auction-row span + span { border-left: 1px solid var(--line); }
.article-auction-row + .article-auction-row { border-top: 1px solid var(--line); }
.article-auction-row:nth-child(even) span { background: #f8fafb; }
.article-schema {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.article-schema-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0,1fr);
  min-height: 48px;
  align-items: stretch;
}
.article-schema-row + .article-schema-row { border-top: 1px solid var(--line); }
.article-schema-bid,
.article-schema-meaning { display: flex; align-items: center; padding: 11px 14px; }
.article-schema-bid { background: #f6f9fa; color: var(--ink); font-weight: 800; }
.article-schema-bid.depth-1 { padding-left: 34px; }
.article-schema-bid.depth-2 { padding-left: 54px; }
.article-schema-bid.depth-3 { padding-left: 74px; }
.article-schema-meaning { border-left: 1px solid var(--line); color: #46536a; font-size: 13px; line-height: 1.5; }

/* Afdrukknop in dezelfde stijl als de rest van de site. */
.page-print-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(13,31,55,.10);
}
.page-print-toolbar button::before { content: "⎙"; margin-right: 8px; font-size: 17px; line-height: 1; }
.page-print-toolbar button:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }

@media (max-width: 680px) {
  .article-toc { padding: 10px; }
  .article-toc a { flex: 1 1 150px; }
  .article-section > summary { grid-template-columns: 35px minmax(0,1fr) 20px; gap: 8px; padding: 10px 11px; }
  .article-section-number { width: 30px; height: 30px; }
  .article-section-title { font-size: 14px; }
  .article-section-content { padding: 14px 12px; }
  .article-paragraph, .article-list { font-size: 12px; }
  .article-schema-row { grid-template-columns: 92px minmax(0,1fr); }
  .article-schema-bid, .article-schema-meaning { padding: 10px; }
  .article-schema-bid.depth-1 { padding-left: 22px; }
  .article-schema-bid.depth-2 { padding-left: 34px; }
  .article-schema-bid.depth-3 { padding-left: 46px; }
  .page-print-toolbar button { width: 100%; }
}

@media print {
  .article-toc, .page-print-toolbar { display: none !important; }
  .article-section { break-inside: avoid; box-shadow: none; }
  .article-section > summary { border-bottom: 1px solid var(--line); }
  .article-section-content { display: block !important; }
}


/* =========================================================
   HOMEPAGE – HOOFDCATEGORIEËN
   ========================================================= */
.catalogue-section + .catalogue-section {
  margin-top: 58px;
  padding-top: 10px;
  border-top: 1px solid rgba(211, 224, 243, .78);
}

.catalogue-section .section-title {
  margin-top: 30px;
}

.catalogue-section + .catalogue-section .section-title {
  margin-top: 26px;
}

@media (max-width: 700px) {
  .catalogue-section + .catalogue-section {
    margin-top: 42px;
    padding-top: 2px;
  }
}

/* Toelichting die vanuit de drie centrale tekstbestanden boven een biedschema wordt geplaatst. */
.opening-explanation {
  margin: 0 0 1.5rem;
}

.opening-explanation-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid #cfe1dd;
  border-radius: 10px;
  background: #eef7f5;
  color: var(--blue-dark);
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.opening-explanation-button:hover {
  border-color: #a9cec6;
  background: var(--blue-soft);
}

.opening-entry-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.opening-entry-copy.no-summary {
    justify-content: center;
}
