/* CBC Finder - Unified Light Theme (Mobile burger menu)
   Requires adding <details class="menu">...</details> in header (see instructions).
*/

:root{
  --bg: #f6f7fb;
  --bg2:#eef2ff;
  --surface:#ffffff;
  --surface2:#fbfcff;
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --border:#e2e8f0;

  --brand:#2563eb;      /* blue */
  --brand2:#06b6d4;     /* cyan */
  --ok:#16a34a;
  --warn:#d97706;

  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --shadow2: 0 10px 24px rgba(15, 23, 42, .06);
  --radius: 18px;
  --radius2: 14px;

  --focus: 0 0 0 3px rgba(37, 99, 235, .18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1100px 600px at 12% 0%, rgba(37,99,235,.12), transparent 55%),
    radial-gradient(900px 520px at 88% 10%, rgba(6,182,212,.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 55%, var(--bg) 100%);
}

a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
}

/* HEADER */
.header{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(226,232,240,.8);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  /* desktop: no wrap needed, mobile rules will override */
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  width:38px;
  height:38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37,99,235,1) 0%, rgba(6,182,212,1) 100%);
  box-shadow: var(--shadow2);
  position:relative;
  flex: 0 0 auto;
}
.logo:after{
  content:"";
  position:absolute; inset:10px;
  border-radius:10px;
  background: rgba(255,255,255,.22);
  transform: rotate(12deg);
}
.brand small{
  display:block;
  color:var(--muted2);
  margin-top:2px;
  font-size:12px;
  line-height: 1.25;
}

/* Desktop nav links */
.navlinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
  transition: transform .06s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:hover{
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow2);
  text-decoration:none;
}
.btn:active{ transform: translateY(1px); }
.btn.primary{
  border: 1px solid rgba(37,99,235,.18);
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(6,182,212,.10));
  color: var(--text);
}
.btn.solid{
  border:0;
  color:#fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 26px rgba(37,99,235,.18);
}
.btn.solid:hover{
  box-shadow: 0 18px 40px rgba(37,99,235,.22);
}

/* ---------- Burger menu (no JS) ---------- */
/* Hidden on desktop by default */
.menu{
  display:none;
  position: relative;
}

/* Summary button */
.burger{
  list-style: none;
  cursor: pointer;
  user-select: none;

  display:inline-flex;
  align-items:center;
  gap:10px;

  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(15,23,42,.03);
}
.burger:hover{
  box-shadow: var(--shadow2);
}
.burger:focus{
  outline: none;
  box-shadow: var(--focus);
}

/* Hide the default marker */
.burger::-webkit-details-marker{ display:none; }
.burger::marker{ content:""; }

/* Burger icon */
.burgerIcon{
  width: 18px;
  height: 12px;
  position: relative;
  display:inline-block;
}
.burgerIcon::before,
.burgerIcon::after,
.burgerIcon span{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  background: var(--text);
  border-radius: 2px;
}
.burgerIcon::before{ top:0; }
.burgerIcon::after{ bottom:0; }
.burgerIcon span{ top:5px; }

/* Use pseudo middle line without extra span in HTML */
.burgerIcon{
  background: none;
}
.burgerIcon::before,
.burgerIcon::after{
  opacity: .9;
}
.burgerIcon::after{ opacity: .9; }
.burgerIcon::before{ opacity: .9; }
.burgerIcon{
  --mid: 5px;
}
.burgerIcon::before{ top:0; }
.burgerIcon::after{ bottom:0; }
.burgerIcon{
  /* middle line using box-shadow trick */
}
.burgerIcon::before{
  box-shadow: 0 5px 0 0 var(--text);
}

/* Dropdown panel */
.menuPanel{
  position:absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  max-width: 80vw;

  display:grid;
  gap:10px;

  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);

  z-index: 100;
}

/* When closed, hide panel (details does not remove it automatically from flow for layout issues) */
.menu:not([open]) .menuPanel{
  display:none;
}

/* Make buttons in panel full-width for tapping */
.menuPanel .btn{
  width: 100%;
  justify-content: center;
}

/* Close menu when user clicks outside on mobile is not possible without JS.
   details/summary still works well and is acceptable for a simple site. */

/* MOBILE HEADER RULES: hide navlinks, show burger menu */
@media (max-width: 720px){
  .container{ padding: 14px; }

  .nav{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .logo{
    width:34px;
    height:34px;
    border-radius: 13px;
  }

  .navlinks{
    display:none; /* hide the normal links */
  }

  .menu{
    display:block; /* show burger */
  }
}

/* MAIN / LAYOUT */
main{ padding: 22px 0 34px; }

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card .pad{ padding: 18px; }
.card .pad.topless{ padding-top: 14px; }

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.14);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 650;
}
.kicker .dot{
  width:8px;height:8px;border-radius:999px;background: linear-gradient(135deg, var(--brand), var(--brand2));
}

h1{
  margin: 10px 0 8px;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h2{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
p{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 720px){
  h1{ font-size: 28px; }
}

/* HERO */
.hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
}

.heroArt{
  background:
    radial-gradient(400px 240px at 30% 30%, rgba(37,99,235,.14), transparent 62%),
    radial-gradient(420px 260px at 70% 40%, rgba(6,182,212,.12), transparent 62%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px dashed rgba(148,163,184,.65);
  border-radius: var(--radius2);
  padding: 16px;
  min-height: 180px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.heroArt svg{ width: 100%; max-width: 420px; height:auto; }
.heroArt:before{
  content:"";
  position:absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(37,99,235,.06);
  top: -180px;
  right: -140px;
}

.callout{
  padding: 12px 14px;
  border-radius: var(--radius2);
  border: 1px solid rgba(148,163,184,.45);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  color: var(--text);
}
.callout strong{ color: var(--text); }
.callout p{ margin: 6px 0 0; color: var(--muted); }

.list{
  margin: 10px 0 0 18px;
  color: var(--text);
}
.list li{ margin: 8px 0; color: var(--muted); }

hr.sep{
  border:0;
  height:1px;
  background: var(--border);
  margin: 16px 0;
}

/* FORMS */
.formRow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 680px){
  .formRow{ grid-template-columns: 1fr; }
}

label{
  display:block;
  font-size: 13px;
  color: var(--text);
  margin: 0 0 6px;
  font-weight: 650;
}

input, select, textarea{
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease;
}
textarea{ min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: var(--focus);
}

.hint{
  margin-top:6px;
  font-size:12px;
  color: var(--muted2);
  line-height: 1.55;
}

.checks{
  display:grid;
  gap: 10px;
}
.check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  padding: 12px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #fbfcff);
}
.check input[type="checkbox"]{
  width:18px;
  height:18px;
  margin-top:2px;
}
.check p{
  margin:0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}
.check small{
  display:block;
  margin-top:4px;
  color: var(--muted2);
  font-size:12px;
  line-height:1.45;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size:12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.pill.ok{
  border-color: rgba(22,163,74,.25);
  background: rgba(22,163,74,.06);
}
.pill.warn{
  border-color: rgba(217,119,6,.25);
  background: rgba(217,119,6,.06);
}
.badgeKey{
  display:inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 12px;
}

.error{
  color: #b91c1c;
  font-size: 13px;
  margin-top: 10px;
}

/* TABLES */
.table{
  width:100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow:hidden;
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  vertical-align: top;
  font-size: 14px;
}
.table th{
  width: 210px;
  color: var(--muted);
  font-weight: 700;
  background: #fbfcff;
}
.table tr:last-child th, .table tr:last-child td{ border-bottom: 0; }

@media (max-width: 720px){
  .table th{ width: 150px; }
}

/* FOOTER */
.footer{
  border-top: 1px solid var(--border);
  padding: 18px 0 28px;
}
.footRow{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: var(--muted2);
  font-size: 12px;
}
.footLinks{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
@media (max-width: 520px){
  .footLinks{ justify-content:flex-start; }
}

/* FAQ */
.faq details{
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
}
.faq details + details{ margin-top:10px; }
.faq summary{
  cursor:pointer;
  font-weight: 750;
  color: var(--text);
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary:after{
  content:"+";
  float:right;
  color: var(--muted2);
  font-weight:900;
}
.faq details[open] summary:after{ content:"–"; }

/* Notice bar */
.noticeBar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border: 1px solid rgba(148,163,184,.5);
  background: rgba(255,255,255,.75);
  border-radius: 999px;
}
.noticeBar b{ color: var(--text); }
@media (max-width: 520px){
  .noticeBar{ border-radius: 16px; }
}

/* Replace the old gradient .logo block with an actual image logo */
.logo { display:none; } /* optional: only if your HTML still contains <div class="logo"> somewhere */

.logoImg{
  width:200px;
  height:45px;
  /*border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow2);
  background:#fff;*/
  flex: 0 0 auto;
}

/* Mobile sizing */
@media (max-width: 720px){
  .logoImg{
    width:200px;
  height:45px;
  }
}