/* ==========================================================================
   Dojo Family Martial Arts — Member Portal
   Refined theme (Dec 2026): charcoal, slate navy, muted brass accent.
   The variable NAMES are kept from the original brand build so nothing
   else breaks: --yellow is now the brass accent, --blue is navy, etc.
   ========================================================================== */

:root {
  --yellow: #B08D57;      /* muted brass accent (was bright yellow) */
  --blue: #1F3A5F;        /* slate navy (primary) */
  --blue-dark: #162A45;
  --red: #8C2F2F;         /* deep brick, used sparingly */
  --red-dark: #6E2424;
  --black: #1B1D21;       /* charcoal */
  --white: #FFFFFF;
  --gray-bg: #F6F5F2;     /* warm off-white */
  --gray-text: #55595F;
  --line: #E4E1DB;
  --nav-h: 64px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(20, 24, 30, .06), 0 1px 2px rgba(20, 24, 30, .04);
  --shadow-lg: 0 10px 30px rgba(20, 24, 30, .14);
  --font-display: 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  padding-top: var(--nav-h);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); }

a { color: var(--blue); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons (44px+ tap targets) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 28px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
  border: none; border-radius: 8px; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 3px solid var(--white); }
.btn-outline-blue { background: transparent; color: var(--blue); border: 3px solid var(--blue); }
.btn-block { width: 100%; }

/* ---------- Sticky Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  background: var(--black);
  border-bottom: 4px solid var(--yellow);
  display: flex; align-items: center;
}
.nav-inner {
  width: min(1320px, 100% - 24px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px;
}
.nav-logo .logo-mark {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
  background: conic-gradient(var(--yellow) 0 33%, var(--red) 33% 66%, var(--blue) 66% 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.nav-logo img.logo-img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
.nav-logo .logo-text {
  font-family: var(--font-display); color: var(--white); font-size: 1.25rem; font-weight: 700;
  text-transform: uppercase; line-height: 1;
}
.nav-logo .logo-text small { display: block; color: var(--yellow); font-size: .68rem; letter-spacing: 1.5px; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-item {
  display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 10px 13px;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: .92rem;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  border-radius: 6px; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links button.nav-item:hover { background: rgba(253, 184, 19, .18); color: var(--yellow); }
.nav-links a.active { color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }

.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--white); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); border-top: 4px solid var(--red);
  list-style: none; padding: 8px 0; display: none; z-index: 1001;
}
.dropdown-menu.open { display: block; }
.dropdown-menu a {
  display: flex; min-height: 44px; align-items: center; padding: 10px 18px;
  color: var(--black); font-weight: 600; border-radius: 0;
}
.dropdown-menu a:hover { background: var(--gray-bg); color: var(--blue); }
.caret { font-size: .65rem; }

/* Location pill + language toggle */
.nav-tools { display: flex; align-items: center; gap: 8px; }
.loc-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  background: var(--blue); color: var(--white); border: none; border-radius: 999px;
  font-weight: 700; font-size: .85rem; cursor: pointer; font-family: var(--font-body);
}
.loc-pill:hover { background: var(--blue-dark); }
.lang-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  background: transparent; color: var(--white); border: 2px solid var(--yellow);
  border-radius: 999px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: var(--font-body);
}
.lang-toggle:hover { background: var(--yellow); color: var(--black); }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-burger span { display: block; height: 3px; background: var(--white); border-radius: 2px; transition: .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--black); flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px; overflow-y: auto; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button.nav-item { width: 100%; font-size: 1.15rem; min-height: 52px; }
  .dropdown-menu { position: static; box-shadow: none; background: #161616; border-top: 2px solid var(--red); border-radius: 0; }
  .dropdown-menu a { color: var(--white); padding-left: 32px; }
  .dropdown-menu a:hover { background: rgba(253,184,19,.15); color: var(--yellow); }
  .nav-tools .loc-pill span.loc-label-full { display: none; }
}

/* ---------- Diagonal sections ---------- */
.diag { position: relative; padding: 64px 0; }
.diag-yellow { background: var(--yellow); color: var(--black); }
.diag-blue { background: var(--blue); color: var(--white); }
.diag-red { background: var(--red); color: var(--white); }
.diag-black { background: var(--black); color: var(--white); }
.clip-down { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); padding-bottom: 96px; }
.clip-up { clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%); padding-top: 96px; margin-top: -48px; }
.clip-both { clip-path: polygon(0 48px, 100% 0, 100% calc(100% - 48px), 0 100%); padding-block: 96px; margin-top: -48px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(0,0,0,.88) 0%, rgba(0,87,168,.85) 100%),
    repeating-linear-gradient(-45deg, #111 0 18px, #181818 18px 36px);
  color: var(--white); text-align: center; padding: 72px 0 96px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}
.hero .tagline {
  color: var(--yellow); font-family: var(--font-display); font-size: clamp(1.3rem, 4vw, 2rem);
  text-transform: uppercase; letter-spacing: 2px; margin-top: 8px;
}
.hero-logo { width: 130px; height: 130px; margin: 0 auto 20px; border-radius: 50%;
  background: conic-gradient(var(--yellow) 0 33%, var(--red) 33% 66%, var(--blue) 66% 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.6rem; color: var(--white); font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,.6); box-shadow: var(--shadow-lg); }
.hero-logo img { width: 130px; height: 130px; object-fit: contain; border-radius: 50%; }

/* ---------- Location cards ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .loc-grid { grid-template-columns: 1fr; } }
.loc-card {
  background: var(--white); color: var(--black); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; cursor: pointer; border: 4px solid transparent;
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s; min-height: 96px;
}
.loc-card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.loc-card.selected { border-color: var(--red); background: var(--yellow); }
.loc-card h3 { color: var(--blue); font-size: 1.45rem; }
.loc-card.selected h3 { color: var(--black); }
.loc-card p { font-size: .8rem; color: var(--gray-text); margin-top: 4px; }
.loc-card.selected p { color: var(--black); }

/* ---------- Announcements ---------- */
.announce-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.announce-card {
  border-radius: var(--radius); padding: 24px; color: var(--white);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.announce-card::before {
  content: ''; position: absolute; top: 0; right: -20px; width: 90px; height: 100%;
  background: rgba(255,255,255,.08); transform: skewX(-18deg);
}
.announce-card:nth-child(3n+1) { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.announce-card:nth-child(3n+2) { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.announce-card:nth-child(3n+3) { background: linear-gradient(135deg, #d99c05, var(--yellow)); color: var(--black); }
.announce-card .a-date { font-size: .8rem; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: 1px; }
.announce-card h3 { margin: 6px 0 8px; }
.announce-quote {
  text-align: center; padding: 36px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--black), #222); color: var(--white); box-shadow: var(--shadow);
}
.announce-quote .q { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--yellow); text-transform: uppercase; }

/* ---------- Quick access grid ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .quick-grid { grid-template-columns: 1fr; } }
.quick-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 130px; padding: 20px 12px; border-radius: var(--radius); text-decoration: none;
  text-align: center; color: var(--white); font-family: var(--font-display); font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: 1px; box-shadow: var(--shadow);
  transition: transform .15s; position: relative; overflow: hidden;
}
.quick-card:hover { transform: translateY(-4px) scale(1.02); }
.quick-card .qi { font-size: 2.2rem; line-height: 1; }
.qc-blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.qc-red { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.qc-yellow { background: linear-gradient(135deg, #e8a505, var(--yellow)); color: var(--black); }
.qc-black { background: linear-gradient(135deg, #000, #2a2a2a); }

/* ---------- Page header band ---------- */
.page-head {
  background: linear-gradient(120deg, var(--black) 40%, var(--blue));
  color: var(--white); padding: 48px 0 64px; margin-bottom: -24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%);
}
.page-head .accent { color: var(--yellow); }
.page-head p.sub { max-width: 640px; opacity: .92; margin-top: 8px; }

/* ---------- Content blocks ---------- */
.section { padding: 48px 0; }
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 22px;
}
.card h2, .card h3 { color: var(--blue); margin-bottom: 12px; }
.card h2 { border-bottom: 4px solid var(--yellow); display: inline-block; padding-bottom: 4px; }
.card p + p { margin-top: 12px; }
.bg-gray { background: var(--gray-bg); }

.belt-stripe { height: 10px; border-radius: 5px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--yellow) 0 25%, var(--blue) 25% 50%, var(--red) 50% 75%, var(--black) 75% 100%); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
table.dojo-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 480px; }
.dojo-table th {
  background: var(--blue); color: var(--white); font-family: var(--font-display);
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: 1px; padding: 14px 16px; text-align: left;
}
.dojo-table td { padding: 13px 16px; border-bottom: 1px solid #e6e6e6; }
.dojo-table tr:nth-child(even) td { background: #f8f9fb; }
.dojo-table tr:last-child td { border-bottom: none; }

/* ---------- Belt colors ---------- */
.belt-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: -3px; margin-right: 8px; border: 2px solid #ccc; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); margin-top: 64px;
  clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-display); color: var(--yellow); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 12px; }
.footer a { color: #ddd; text-decoration: none; display: inline-block; padding: 5px 0; min-height: 32px; }
.footer a:hover { color: var(--yellow); }
.footer .tagline-f { font-family: var(--font-display); font-size: 1.4rem; color: var(--yellow); text-transform: uppercase; }
.footer-bottom { border-top: 1px solid #333; margin-top: 32px; padding-top: 18px; font-size: .85rem; color: #999; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1200;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--red); color: var(--white); font-size: 1.6rem;
  box-shadow: var(--shadow-lg); transition: transform .15s, background .15s;
  display: flex; align-items: center; justify-content: center;
}
.chat-fab:hover { transform: scale(1.08); background: var(--red-dark); }
.chat-panel {
  position: fixed; right: 18px; bottom: 90px; z-index: 1200;
  width: min(360px, calc(100vw - 36px)); background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; display: none;
}
.chat-panel.open { display: block; }
.chat-head { background: var(--blue); color: var(--white); padding: 16px 18px; }
.chat-head h3 { font-size: 1.2rem; }
.chat-head p { font-size: .8rem; opacity: .9; }
.chat-body { padding: 16px 18px; }
.chat-body label { font-size: .85rem; font-weight: 700; display: block; margin: 10px 0 4px; }
.chat-body input, .chat-body textarea, .chat-body select {
  width: 100%; padding: 12px; min-height: 44px; border: 2px solid #ddd; border-radius: 8px;
  font-family: var(--font-body); font-size: .95rem;
}
.chat-body textarea { min-height: 90px; resize: vertical; }
.chat-success { display: none; text-align: center; padding: 24px 12px; }
.chat-success .big { font-size: 2.4rem; }

/* ---------- Forms / modals ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 1300;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius); width: min(440px, 100%);
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-head { background: var(--black); color: var(--white); padding: 18px 22px; border-bottom: 4px solid var(--yellow);
  display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { color: var(--yellow); }
.modal-close { background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.modal-body { padding: 22px; }
.modal-body label { font-weight: 700; font-size: .9rem; display: block; margin: 12px 0 4px; }
.modal-body input, .modal-body select {
  width: 100%; min-height: 48px; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; font-family: var(--font-body);
}
.form-error { color: var(--red); font-size: .85rem; font-weight: 600; margin-top: 8px; display: none; }
.form-link { background: none; border: none; color: var(--blue); font-weight: 700; cursor: pointer; text-decoration: underline; font-size: .9rem; padding: 10px 0; }

/* ---------- Quiz / Knowledge game ---------- */
.kg-level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kg-level {
  border: none; border-radius: var(--radius); padding: 18px 12px; min-height: 110px; cursor: pointer;
  font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--white); box-shadow: var(--shadow); transition: transform .15s; display: flex; flex-direction: column; align-items: center; gap: 8px; justify-content: center;
}
.kg-level:hover { transform: translateY(-4px); }
.kg-level .belt-bar { width: 70%; height: 14px; border-radius: 7px; border: 2px solid rgba(255,255,255,.5); }
.kg-q-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; }
.kg-opt {
  display: block; width: 100%; text-align: left; margin: 10px 0; padding: 15px 18px; min-height: 52px;
  background: var(--gray-bg); border: 3px solid transparent; border-radius: 10px;
  font-size: 1rem; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: border-color .12s, background .12s;
}
.kg-opt:hover { border-color: var(--blue); }
.kg-opt.correct { background: #e6f6e9; border-color: #1d9b46; }
.kg-opt.wrong { background: #fdebed; border-color: var(--red); }
.kg-progress { height: 12px; background: #e3e3e3; border-radius: 6px; overflow: hidden; margin: 14px 0; }
.kg-progress > div { height: 100%; background: linear-gradient(90deg, var(--blue), var(--red)); transition: width .3s; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.badge-item { text-align: center; padding: 14px 8px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.badge-item .bi { font-size: 2.2rem; }
.badge-item.locked { opacity: .35; filter: grayscale(1); }
.badge-item p { font-size: .75rem; font-weight: 700; margin-top: 6px; }

/* ---------- Calendar embed ---------- */
.cal-frame-wrap { position: relative; padding-bottom: 75%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
@media (min-width: 768px) { .cal-frame-wrap { padding-bottom: 56%; } }
.cal-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.loc-tabs a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px;
  background: var(--white); color: var(--blue); font-weight: 700; text-decoration: none; box-shadow: var(--shadow); font-size: .92rem;
}
.loc-tabs a.active { background: var(--blue); color: var(--white); }
.loc-tabs a:hover:not(.active) { background: var(--yellow); color: var(--black); }

/* ---------- Schedule ---------- */
.sched-img-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); padding: 12px; }
.note-box { background: #fff8e1; border-left: 6px solid var(--yellow); border-radius: 8px; padding: 16px 18px; margin: 18px 0; font-size: .92rem; }

/* ---------- Bday ---------- */
.party-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .party-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.party-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.party-card .party-top { padding: 26px 22px; color: var(--white); text-align: center; }
.party-card .party-top .pi { font-size: 3rem; }
.party-card .party-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.party-card .price { font-family: var(--font-display); font-size: 2.6rem; color: var(--red); text-align: center; margin: 10px 0; }
.party-card .party-body p { flex: 1; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 24px; }
.hidden { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--black); padding: 12px 18px; z-index: 2000; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }
.creed-card { border-left: 10px solid var(--yellow); }
.creed-card blockquote { font-size: 1.15rem; font-style: italic; color: #222; }
.creed-card.adv { border-left-color: var(--red); }
.creed-card.blk { border-left-color: var(--black); }
.creed-card.int { border-left-color: var(--blue); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.account-banner { background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 18px 22px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}


/* ==========================================================================
   REFINED THEME OVERRIDES (Dec 2026)
   Calmer, more professional look: no diagonal cuts, no bright gradients,
   sentence-case headings, white cards with thin borders.
   ========================================================================== */
body { color: #24272C; background: var(--white); }
h1, h2, h3, .display { text-transform: none; letter-spacing: -.01em; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); }

/* Buttons */
.btn { font-size: .95rem; font-weight: 600; text-transform: none; letter-spacing: 0; border-radius: 6px; min-height: 44px; padding: 10px 22px; }
.btn:hover { transform: none; box-shadow: none; filter: brightness(1.08); }
.btn-yellow { background: var(--yellow); color: var(--white); }
.btn-red, .btn-blue { background: var(--blue); color: var(--white); }
.btn-outline { border-width: 1px; border-color: rgba(255,255,255,.6); }
.btn-outline-blue { border-width: 1px; }
.btn:disabled { opacity: .4; cursor: default; filter: none; }

/* Nav */
.nav { background: var(--black); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-logo .logo-mark { background: var(--blue); text-shadow: none; font-size: 1.1rem; }
.nav-logo .logo-text { font-size: 1.05rem; text-transform: none; letter-spacing: 0; }
.nav-logo .logo-text small { color: #B9BDC4; font-size: .66rem; letter-spacing: .5px; text-transform: none; font-weight: 400; }
.nav-links a, .nav-links button.nav-item { color: #E6E7E9; font-weight: 500; }
.nav-links a:hover, .nav-links button.nav-item:hover { background: rgba(255,255,255,.07); color: var(--white); }
.nav-links a.active { color: var(--white); box-shadow: inset 0 -2px 0 var(--yellow); }
.dropdown-menu { border-top: 2px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); }
.dropdown-menu a { font-weight: 500; }
.loc-pill { background: transparent; border: 1px solid rgba(255,255,255,.3); font-weight: 600; }
.loc-pill:hover { background: rgba(255,255,255,.08); }
.lang-toggle { border: 1px solid rgba(255,255,255,.3); font-weight: 600; }
.lang-toggle:hover { background: rgba(255,255,255,.08); color: var(--white); }
@media (max-width: 1080px) {
  .dropdown-menu { background: #23262B; border-top: 1px solid rgba(255,255,255,.08); }
  .dropdown-menu a:hover { background: rgba(255,255,255,.06); color: var(--white); }
}

/* Sections: no diagonal cuts, muted bands */
.clip-down, .clip-up, .clip-both { clip-path: none; margin-top: 0; padding-block: 56px; }
.diag { padding: 56px 0; }
.diag-yellow { background: var(--gray-bg); color: #24272C; }
.diag-blue { background: var(--gray-bg); color: #24272C; }
.diag-blue h2, .diag-blue h3 { color: var(--black); }
.diag-red, .diag-black { background: var(--black); color: var(--white); }

/* Hero + page headers */
.hero { background: linear-gradient(180deg, var(--black), #23272E); clip-path: none; padding: 64px 0 72px; }
.hero .tagline { color: #C9CDD3; font-family: var(--font-body); font-size: clamp(1rem, 2.6vw, 1.2rem); text-transform: none; letter-spacing: 0; font-weight: 400; }
.hero-logo { background: var(--blue); text-shadow: none; box-shadow: none; }
.page-head { background: var(--black); clip-path: none; padding: 44px 0 40px; margin-bottom: 0; border-bottom: 3px solid var(--yellow); }
.page-head .accent { color: var(--white); }
.page-head p.sub { color: #C9CDD3; opacity: 1; }

/* Cards & content */
.card { box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h2, .card h3 { color: var(--black); }
.card h2 { border-bottom: 2px solid var(--yellow); padding-bottom: 6px; }
.belt-stripe { height: 3px; background: var(--yellow); border-radius: 2px; }
.note-box { background: #F8F4EC; border-left: 4px solid var(--yellow); }

/* Quick links: quiet white tiles */
.quick-card, .qc-blue, .qc-red, .qc-yellow, .qc-black {
  background: var(--white); color: var(--black); border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0;
  box-shadow: var(--shadow);
}
.quick-card:hover { transform: none; border-color: var(--blue); box-shadow: var(--shadow-lg); }
.quick-card .qi { font-size: 1.6rem; filter: grayscale(.35); }

/* Locations */
.loc-card { border: 1px solid var(--line); }
.loc-card:hover { transform: none; border-color: var(--blue); }
.loc-card.selected { border: 2px solid var(--blue); background: #EEF2F7; }
.loc-card h3 { color: var(--blue); font-size: 1.15rem; }

/* Announcements */
.announce-card, .announce-card:nth-child(3n+1), .announce-card:nth-child(3n+2), .announce-card:nth-child(3n+3) {
  background: var(--white); color: #24272C; border: 1px solid var(--line); border-top: 3px solid var(--blue);
}
.announce-card::before { display: none; }
.announce-card .a-date { color: var(--gray-text); opacity: 1; letter-spacing: .5px; }
.announce-quote { background: var(--blue); }
.announce-quote .q { color: var(--white); font-family: var(--font-body); text-transform: none; font-weight: 600; font-size: clamp(1.2rem, 3vw, 1.6rem); }

/* Tables */
.dojo-table th { font-family: var(--font-body); font-size: .85rem; font-weight: 600; text-transform: none; letter-spacing: .2px; }
.dojo-table td { border-bottom-color: #ECEAE5; }
.dojo-table tr:nth-child(even) td { background: #FAF9F7; }

/* Footer */
.footer { clip-path: none; padding: 48px 0 28px; margin-top: 56px; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: .95rem; font-weight: 600; text-transform: none; }
.footer a { color: #B9BDC4; }
.footer a:hover { color: var(--white); }
.footer .tagline-f { color: #C9CDD3; font-family: var(--font-body); font-size: 1rem; text-transform: none; font-style: italic; }
.footer-bottom { border-top-color: rgba(255,255,255,.1); }

/* Chat, modals, forms */
.chat-fab { background: var(--blue); width: 54px; height: 54px; font-size: 1.35rem; }
.chat-fab:hover { background: var(--blue-dark); transform: none; }
.modal-head { background: var(--black); border-bottom: 0; }
.modal-head h3 { color: var(--white); }
.modal-body input, .modal-body select, .chat-body input, .chat-body textarea, .chat-body select { border-width: 1px; border-color: #D5D2CC; }
.loc-tabs a { box-shadow: none; border: 1px solid var(--line); font-weight: 600; }
.loc-tabs a:hover:not(.active) { background: var(--gray-bg); color: var(--blue); }
.creed-card { border-left-width: 4px; }

/* Knowledge game */
.kg-level { font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.kg-level:hover { transform: none; filter: brightness(1.15); }
.kg-opt { border-width: 1px; border-color: var(--line); }
.kg-progress > div { background: var(--blue); }

/* Birthday parties */
.party-card { border: 1px solid var(--line); }
.party-card .price { color: var(--blue); font-family: var(--font-body); font-weight: 700; }

/* ---------- Video library (free) ---------- */
.vl-sub { color: var(--gray-text); margin-top: -4px; }
.vl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 18px; }
.vl-item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; text-align: left; color: #24272C;
  transition: border-color .15s, background .15s;
}
.vl-item:hover, .vl-item:focus-visible { border-color: var(--blue); background: #F4F6F9; }
.vl-num { font-size: .8rem; font-weight: 600; color: var(--yellow); min-width: 20px; }
.vl-title { flex: 1; font-weight: 600; }
.vl-play { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: var(--white); font-size: .7rem; padding-left: 2px; flex: 0 0 30px; }
.modal.vl-player { width: min(960px, 100%); }
.vl-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vl-player-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--gray-text); font-size: .9rem; }

/* Nav: keep each item on one line */
.nav-links a, .nav-links button.nav-item { white-space: nowrap; padding: 10px 10px; font-size: .88rem; }
.loc-pill, .lang-toggle { white-space: nowrap; font-size: .8rem; }
@media (max-width: 1080px) { .nav-links a, .nav-links button.nav-item { font-size: 1.05rem; } }
@media (min-width: 1081px) and (max-width: 1240px) { .lang-toggle { padding: 8px 10px; } .nav-logo .logo-text { display: none; } }

/* Knowledge Game name builder */
.kg-name-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--gray-bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; margin: 14px 0 4px; }
#kgNamePreview { font-size: 1.25rem; font-weight: 700; color: var(--blue); }
#kgLbTable td { white-space: nowrap; }

/* Posters: same size, aligned, no extra frame */
.poster-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto 22px; }
@media (max-width: 640px) { .poster-pair { grid-template-columns: 1fr; max-width: 460px; } }
.poster { border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg); background: #000; line-height: 0; }
.poster img { width: 100%; height: auto; aspect-ratio: 1400 / 2062; object-fit: cover; }
.poster-single { max-width: 480px; margin-inline: auto; }

/* Dropdown menus: dark text on the white panel (desktop) */
@media (min-width: 1081px) {
  .nav-links .dropdown-menu a { color: #24272C; font-weight: 500; }
  .nav-links .dropdown-menu a:hover { background: var(--gray-bg); color: var(--blue); }
}
@media (max-width: 1080px) {
  .nav-links .dropdown-menu a { color: #E6E7E9; }
}

/* ---------- Family tree ---------- */
.ft-masters { display: flex; flex-direction: column; align-items: center; margin: 24px 0 8px; }
.ft-master { background: var(--blue); color: var(--white); border-radius: 8px; padding: 12px 28px; text-align: center; min-width: min(320px, 100%); }
.ft-master strong { display: block; font-size: 1.05rem; }
.ft-master span { font-size: .85rem; opacity: .85; font-style: italic; }
.ft-line { width: 2px; height: 18px; background: #9AA0A8; }
.ft-search { max-width: 420px; margin: 24px auto 8px; text-align: center; }
.ft-search label { font-weight: 600; display: block; margin-bottom: 6px; }
.ft-search input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #D5D2CC; border-radius: 6px; font: inherit; }
.ft-count { color: var(--gray-text); font-size: .85rem; margin-top: 6px; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 18px; align-items: start; }
.ft-col { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.ft-col h3 { background: var(--black); color: var(--white) !important; font-size: .98rem; padding: 12px 14px; margin: 0 !important;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ft-col h3 small { background: var(--yellow); color: var(--white); border-radius: 999px; padding: 1px 9px; font-size: .75rem; }
.ft-col ul { list-style: none; padding: 6px 0; margin: 0; }
.ft-col li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #F0EEEA; font-size: .92rem; }
.ft-col li:last-child { border-bottom: 0; }
.ft-col li span { color: var(--gray-text); font-size: .82rem; white-space: nowrap; }
.ft-col li.ft-empty { color: var(--gray-text); font-style: italic; justify-content: center; }

/* ---------- Patch finder ---------- */
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.pf-chip { min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font: 600 .9rem var(--font-body); cursor: pointer; color: #24272C; }
.pf-chip:hover { border-color: var(--blue); }
.pf-chip.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pf-wrap { display: grid; grid-template-columns: 3fr 2fr; gap: 22px; align-items: start; }
@media (max-width: 800px) { .pf-wrap { grid-template-columns: 1fr; } }
.pf-view { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: 8px; overflow: hidden; }
.pf-view img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; transition: transform .45s ease, width .45s ease; }
.pf-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 3px solid #FFD54A; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,0,0,.35); opacity: 0; transition: opacity .3s .35s; pointer-events: none; }
.pf-ring.on { opacity: 1; animation: pfPulse 1.6s ease-in-out .5s infinite; }
@keyframes pfPulse { 50% { box-shadow: 0 0 0 10px rgba(255,213,74,.25); } }
.pf-info .pf-where { font-size: 1.35rem; font-weight: 700; color: var(--black); }
.pf-info .pf-req { display: inline-block; background: #F8F4EC; border-left: 3px solid var(--yellow); padding: 4px 10px; font-size: .85rem; font-weight: 600; margin: 8px 0; }
.pf-info p + p { margin-top: 10px; }
@media (max-width: 480px) { .nav-logo .logo-text { display: none; } }

/* ---------- Mobile fixes (Dec 4) ---------- */
/* Groups of buttons: lay them out with real spacing so they never overlap */
p:has(> .btn + .btn), div:has(> .btn + .btn) {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center;
}
p.center:has(> .btn + .btn) { justify-content: center; }
.btn { line-height: 1.25; text-align: center; }
@media (max-width: 600px) {
  p:has(> .btn + .btn) > .btn, div:has(> .btn + .btn):not(.vl-player-foot) > .btn { flex: 1 1 100%; }
}
/* Leave room at the bottom so the chat bubble never covers footer links */
.footer { padding-bottom: 110px; }
@media (min-width: 900px) { .footer { padding-bottom: 40px; } .footer-bottom { padding-right: 90px; } }
/* Hide the chat bubble while the phone menu is open, and leave room at the bottom of the menu */
body.nav-open elevenlabs-convai, body.nav-open .chat-fab, body.nav-open .chat-panel { display: none !important; }
@media (max-width: 1080px) { .nav-links { padding-bottom: 120px; } }
