body.gddt-hub-page .entry-header,
body.gddt-hub-page .entry-title,
body.gddt-hub-page h1.entry-title,
body.gddt-hub-page .page-header,
body.gddt-hub-page .page-title,
body.gddt-hub-page .ast-archive-description,
body.gddt-hub-page h1.wp-block-post-title,
body.gddt-hub-page .wp-block-post-title{
  display:none!important;
}

/* Blocksy adds ~105px vertical padding on .ct-container-full — pull hub pages up. */
body.gddt-hub-page #main > .ct-container-full,
body.gddt-hub-page .site-main > .ct-container-full{
  padding-top:16px!important;
  padding-bottom:24px!important;
}
/* Teacher Math Quiz Workspace: flush under site nav (0 gap) + full bleed */
body.gddt-hub-page.mq-ws-front #main > .ct-container-full,
body.gddt-hub-page.mq-ws-front .site-main > .ct-container-full,
body.gddt-hub-page.mq-ws-front .ct-container,
body.gddt-hub-page.mq-ws-front .ct-container-full{
  padding:0!important;
  max-width:none!important;
  width:100%!important;
  margin:0!important;
}
body.gddt-hub-page article.page,
body.gddt-hub-page article.type-page{
  padding-top:0!important;
  padding-bottom:0!important;
}
body.gddt-hub-page .hero-section{
  margin-bottom:0!important;
  min-height:0!important;
}
body.gddt-hub-page.mq-ws-front .hero-section,
body.gddt-hub-page.mq-ws-front .ct-page-title-container{
  display:none!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
}

/* Mobile hub: compact Blocksy branding — logo must not dwarf / overlap title */
@media (max-width:768px){
  body.gddt-hub-page #header{
    overflow:hidden;
  }
  body.gddt-hub-page #header [data-device="mobile"] [data-row]{
    height:auto!important;
    min-height:56px!important;
  }
  body.gddt-hub-page #header [data-device="mobile"] .ct-container{
    min-height:56px;
    align-items:center;
    padding-block:6px;
  }
  body.gddt-hub-page #header .site-branding{
    align-items:center;
    gap:8px;
    max-width:calc(100% - 52px);
    overflow:hidden;
  }
  body.gddt-hub-page #header .site-logo-container{
    flex-shrink:0;
    width:36px!important;
    height:36px!important;
    overflow:hidden;
  }
  body.gddt-hub-page #header .site-logo-container img,
  body.gddt-hub-page #header .default-logo{
    width:36px!important;
    height:36px!important;
    max-width:36px!important;
    max-height:36px!important;
    object-fit:contain;
  }
  body.gddt-hub-page #header .site-title,
  body.gddt-hub-page #header .site-title a{
    font-size:15px!important;
    line-height:1.25!important;
    --theme-font-size:15px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  body.gddt-hub-page #header .site-description{
    display:none!important;
  }
  body.gddt-hub-page #header .ct-header-trigger{
    min-width:44px;
    min-height:44px;
  }
  body.gddt-hub-page .gddt-hub{
    padding-top:0;
  }
  body.gddt-hub-page .gddt-hub-hero{
    padding:18px 16px;
    margin-bottom:14px;
    border-radius:16px;
  }
  body.gddt-hub-page .gddt-hub-hero h1{
    font-size:1.35rem;
  }
}
.gddt-hub{
  --ink:#0b1220;
  --muted:#334155;
  --line:#d7deea;
  --paper:#fff;
  --soft:#f4f7fb;
  --brand:#1d4ed8;
  --brand-ink:#fff;
  max-width:980px;
  margin:0 auto 28px;
  padding:0 16px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:var(--ink);
}
/* Student hub: edge-near layout + color-coded sections */
.gddt-hub.gddt-hub-student{
  max-width:none;
  width:100%;
  margin:0 0 20px;
  padding:0 8px;
}
.gddt-hub-hero-student{
  background:linear-gradient(145deg,#0f3d2e 0%,#0f766e 55%,#14b8a6 100%);
  margin-bottom:14px;
  padding:22px 18px;
  border-radius:18px;
}
.gddt-hub-section{
  margin:0 0 14px;
  padding:16px 14px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--paper);
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.gddt-hub-section-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
}
.gddt-hub-section-head h2{
  margin:0;
  font-size:1.2rem;
  letter-spacing:-.02em;
}
.gddt-hub-badge{
  display:inline-block;
  padding:4px 9px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.08em;
}
.gddt-hub-section-lead,
.gddt-hub-empty{
  margin:0 0 12px;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.5;
}
/* Assigned = teal/emerald */
.gddt-hub-section-assigned{
  border-color:#99f6e4;
  background:linear-gradient(180deg,#f0fdfa 0%,#fff 42%);
}
.gddt-hub-section-assigned .gddt-hub-badge{
  background:#ccfbf1;
  color:#0f766e;
}
.gddt-hub-section-assigned .gddt-hub-section-head h2{color:#115e59}
.gddt-hub-section-assigned .gddt-hub-exam-card a{
  border-color:#99f6e4;
  background:#fff;
}
.gddt-hub-section-assigned .gddt-hub-exam-card a:hover{
  border-color:#2dd4bf;
  background:#ecfdf5;
}
/* Done / review = amber/violet contrast */
.gddt-hub-section-done{
  border-color:#fde68a;
  background:linear-gradient(180deg,#fffbeb 0%,#fff 42%);
}
.gddt-hub-section-done .gddt-hub-badge{
  background:#fef3c7;
  color:#b45309;
}
.gddt-hub-section-done .gddt-hub-section-head h2{color:#92400e}
.gddt-hub-section-done .gddt-hub-btn{
  background:#b45309;
  border-color:#92400e;
}
.gddt-hub-section-done .gddt-hub-btn:hover{
  background:#92400e;
}
.gddt-hub-section-done .gddt-hub-score{color:#b45309}
@media (max-width:800px){
  .gddt-hub.gddt-hub-student{padding:0 4px}
  .gddt-hub-hero-student{border-radius:14px;padding:18px 14px}
  .gddt-hub-section{border-radius:14px;padding:14px 10px}
}
/* Quiz take: flush to phone edges */
body.gddt-hub-page .gddt-hub-take,
.gddt-hub-take{
  max-width:none;
  width:100%;
  margin:0;
  padding:0;
}
.gddt-hub-take .gddt-quiz-wrapper{
  max-width:none !important;
  width:100% !important;
  margin:0 !important;
  padding:10px 6px 24px !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
.gddt-hub-take .gddt-timer-bar{
  background:rgba(15,118,110,.2) !important;
  color:#0f172a !important;
  border:1px solid rgba(15,118,110,.28) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
@media (max-width:900px){
  body.gddt-hub-page #main > .ct-container-full,
  body.gddt-hub-page .site-main > .ct-container-full,
  body.gddt-hub-page .ct-container,
  body.gddt-hub-page .entry-content{
    padding-left:0 !important;
    padding-right:0 !important;
    max-width:none !important;
  }
  body.gddt-hub-page .gddt-hub.gddt-hub-student{
    padding-left:4px;
    padding-right:4px;
  }
}
.gddt-hub *{box-sizing:border-box}
.gddt-hub-hero{
  position:relative;
  overflow:hidden;
  padding:32px 34px;
  border-radius:24px;
  background:linear-gradient(145deg,#0f1b3d 0%,#1e3a8a 55%,#2563eb 100%);
  color:#fff;
  margin-bottom:20px;
  box-shadow:0 18px 40px rgba(15,23,42,.18);
}
.gddt-hub-hero h1,
.gddt-hub-hero p,
.gddt-hub-kicker{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.gddt-hub-kicker{
  display:block;
  margin:0 0 10px;
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#fde68a!important;
  -webkit-text-fill-color:#fde68a!important;
}
.gddt-hub-hero h1{
  margin:0 0 10px;
  font-size:clamp(1.85rem,4vw,2.55rem);
  letter-spacing:-.04em;
  line-height:1.12;
  font-weight:800;
}
.gddt-hub-hero p{
  margin:0;
  max-width:42rem;
  font-size:1.05rem;
  line-height:1.65;
  color:#fff!important;
  opacity:1;
}
.gddt-hub-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:0 0 18px;
}
.gddt-hub-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
a.gddt-hub-btn{text-decoration:none;display:inline-block;text-align:center}
a.gddt-hub-btn:not(.gddt-hub-btn-ghost){
  color:#fff!important;
  -webkit-text-fill-color:#fff;
}
.gddt-hub-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:148px;
  padding:20px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper);
  text-decoration:none!important;
  color:var(--ink)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.gddt-hub-card:hover{
  border-color:#93c5fd;
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(37,99,235,.12);
}
.gddt-hub-card span{
  display:inline-block;
  width:fit-content;
  margin:0 0 4px;
  padding:4px 8px;
  border-radius:999px;
  background:#e8eefc;
  color:#1e3a8a;
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.08em;
}
.gddt-hub-card strong{
  display:block;
  font-size:1.18rem;
  line-height:1.3;
  color:#0b1220;
}
.gddt-hub-card em{
  display:block;
  margin-top:auto;
  font-style:normal;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.45;
}
.gddt-hub-box{
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--paper);
  margin-bottom:16px;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}
.gddt-hub-box h2{
  margin:0 0 8px;
  font-size:1.28rem;
  color:#0b1220;
}
.gddt-hub-box>p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.55;
}
.gddt-hub-box a{font-weight:750;color:var(--brand);text-decoration:none}
.gddt-hub-samples{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0 0 18px;
}
.gddt-hub-sample{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:16px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--soft);
  color:var(--ink);
  text-decoration:none!important;
}
.gddt-hub-sample:hover{border-color:#93c5fd;background:#fff}
.gddt-hub-sample b{font-size:1rem;color:#0b1220}
.gddt-hub-sample small{color:var(--muted);line-height:1.45}
.gddt-hub-sample span{
  margin-top:auto;
  font-weight:800;
  color:var(--brand);
}
.gddt-hub-import{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.gddt-hub-import input[type=file]{
  flex:1 1 240px;
  padding:10px;
  border:1px dashed #94a3b8;
  border-radius:12px;
  background:#fff;
  color:#0b1220;
}
.gddt-hub-btn{
  border:0;
  border-radius:12px;
  background:#1d4ed8;
  color:#fff;
  font-weight:800;
  padding:12px 18px;
  cursor:pointer;
}
.gddt-hub-btn:hover{background:#1e40af}
.gddt-hub-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.gddt-hub-actions .gddt-hub-btn{text-decoration:none;display:inline-block}
.gddt-hub-fields{
  display:grid;
  grid-template-columns:1fr 140px minmax(220px,1.4fr);
  gap:12px;
  margin:0 0 12px;
}
.gddt-hub-fields label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-weight:700;
  color:#0b1220;
  font-size:.92rem;
}
.gddt-hub-fields input,
.gddt-hub-fields select{
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:10px 12px;
  font-weight:600;
}
.gddt-hub-back{margin:0 0 14px}
.gddt-hub-back a{font-weight:750;color:var(--brand);text-decoration:none}
.gddt-hub-take .gddt-quiz-wrapper{max-width:none;width:100%}
.gddt-hub-draft{
  margin-left:8px;
  font-style:normal;
  font-size:.78rem;
  font-weight:800;
  color:#92400e;
  background:#fef3c7;
  border-radius:999px;
  padding:2px 8px;
}
.gddt-hub-btn-ghost{
  background:#fff;
  color:#1d4ed8;
  border:1px solid #93c5fd;
}
.gddt-hub-btn-ghost:hover{background:#eff6ff;color:#1e40af}
.gddt-hub-box a.gddt-hub-btn:not(.gddt-hub-btn-ghost){
  background:#1d4ed8;
  color:#fff!important;
  border:1px solid #1e3a8a;
  -webkit-text-fill-color:#fff;
}
.gddt-hub-box a.gddt-hub-btn:not(.gddt-hub-btn-ghost):hover{
  background:#1e3a8a;
  color:#fff!important;
  -webkit-text-fill-color:#fff;
}
.gddt-hub-option{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:0 0 12px;
  padding:12px 14px;
  border:1px solid #bfdbfe;
  border-radius:14px;
  background:#eff6ff;
  color:#1e3a8a;
  font-weight:650;
  line-height:1.45;
  cursor:pointer;
}
.gddt-hub-option input{margin-top:3px;flex:0 0 auto}
.gddt-hub-preview{
  white-space:pre-wrap;
  word-break:break-word;
  max-height:420px;
  overflow:auto;
  padding:14px 16px;
  margin:0 0 16px;
  border-radius:14px;
  border:1px solid #c7d2fe;
  background:#0b1220;
  color:#e2e8f0;
  font-size:.92rem;
  line-height:1.55;
}
.gddt-hub-sample-new{
  border-color:#93c5fd;
  background:linear-gradient(180deg,#eff6ff,#fff);
}
.gddt-hub-note,.gddt-hub-error,.gddt-hub-ok{
  padding:13px 15px;
  border-radius:14px;
  margin-bottom:14px;
  font-weight:650;
  line-height:1.5;
}
.gddt-hub-note{background:#eff6ff;color:#1e3a8a;border:1px solid #bfdbfe}
.gddt-hub-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.gddt-hub-ok{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}
.gddt-hub-ok .gddt-hub-actions form{display:inline-block;margin:0 6px 0 0;vertical-align:middle}
.gddt-tikz-pending{margin:10px 0;padding:10px 12px;border:1px dashed #cbd5e1;background:#f8fafc;border-radius:8px}
.gddt-tikz-pending-msg{margin:0;color:#64748b;font-size:13px}
.gddt-tikz-src{display:none!important}
.gddt-hub-list{margin:0;padding:0;list-style:none;color:var(--ink)}
.gddt-hub-list li{margin:8px 0}
.gddt-hub-quiz-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.gddt-hub-quiz-row:last-child{border-bottom:0}
.gddt-hub-export{display:flex;flex-wrap:wrap;gap:6px}
.gddt-hub-export .gddt-hub-btn{
  padding:7px 12px;
  font-size:.85rem;
  border-radius:10px;
}
.gddt-hub-attempt{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.gddt-hub-attempt:last-child{border-bottom:0}
.gddt-hub-attempt-meta{margin-top:4px;color:var(--muted);font-size:.92rem;line-height:1.45}
.gddt-hub-attempts{margin:8px 0 0;padding:0;list-style:none;font-size:.92rem}
.gddt-hub-attempts li{margin:4px 0}
.gddt-hub-attempt-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}
.gddt-hub-score{font-weight:800;color:#15803d;font-size:1.15rem;white-space:nowrap}
.gddt-hub-rules{
  margin:0 0 16px;
  padding:14px 16px 14px 32px;
  background:#fffbeb;
  border:1px solid #fde68a;
  border-radius:14px;
  color:#78350f;
}
.gddt-hub-rules li{margin:6px 0}
.gddt-guide-need{margin:0;padding-left:1.2em;color:var(--muted);line-height:1.55}
.gddt-guide-need li{margin:8px 0}
.gddt-guide-steps{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:gddt-step;
}
.gddt-guide-steps>li{
  position:relative;
  margin:0 0 16px;
  padding:16px 16px 16px 64px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--soft);
}
.gddt-guide-steps>li:last-child{margin-bottom:0}
.gddt-guide-steps>li::before{
  counter-increment:gddt-step;
  content:counter(gddt-step);
  position:absolute;
  left:16px;top:16px;
  width:32px;height:32px;
  border-radius:50%;
  background:#1d4ed8;
  color:#fff;
  font-weight:800;
  font-size:1rem;
  line-height:32px;
  text-align:center;
}
.gddt-guide-steps strong{display:block;margin:0 0 6px;color:#0b1220;font-size:1.05rem}
.gddt-guide-steps p{margin:0 0 8px;color:var(--muted);line-height:1.55}
.gddt-guide-steps p:last-child{margin-bottom:0}
.gddt-guide-mini{margin:0;padding-left:1.2em;color:var(--muted);line-height:1.55}
.gddt-guide-mini li{margin:6px 0}
.gddt-guide kbd{
  display:inline-block;
  padding:1px 6px;
  border:1px solid #cbd5e1;
  border-bottom-width:2px;
  border-radius:6px;
  background:#fff;
  font-size:.85em;
}
@media(max-width:800px){
  .gddt-hub-hero{padding:24px 20px}
  .gddt-hub-grid,.gddt-hub-grid-3,.gddt-hub-samples,.gddt-hub-fields{grid-template-columns:1fr}
  .gddt-hub-attempt{flex-direction:column}
  .gddt-hub-attempt-side{align-items:flex-start}
}

/* UI-6B student attempt gate + exam cards */
.gddt-attempt-gate{max-width:720px;margin:0 auto}
.gddt-gate-card{
  background:#fff;
  border:1px solid var(--line,#e2e8f0);
  border-radius:16px;
  padding:24px 20px;
  box-shadow:0 8px 28px rgba(15,23,42,.06);
}
.gddt-gate-card h1{margin:8px 0 16px;font-size:1.45rem;line-height:1.3}
.gddt-gate-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:0 0 18px;
}
.gddt-gate-meta div{
  background:var(--soft,#f8fafc);
  border-radius:10px;
  padding:10px 12px;
}
.gddt-gate-meta dt{
  margin:0;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted,#64748b);
  font-weight:700;
}
.gddt-gate-meta dd{margin:4px 0 0;font-size:1rem;font-weight:650;color:#0b1220}
.gddt-gate-note{color:var(--muted,#64748b);font-size:.95rem;line-height:1.5}
.gddt-gate-ac-notice{
  margin:0 0 14px;
  padding:10px 12px;
  background:#f8fafc;
  border-left:3px solid #64748b;
  border-radius:8px;
  color:#334155;
  font-size:.92rem;
  line-height:1.5;
}
.gddt-gate-blocked{
  padding:12px;
  background:#fef3f2;
  border:1px solid #fecdca;
  border-radius:10px;
  color:#b42318;
  font-weight:650;
}
.gddt-gate-start{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 20px;
  font-size:1.05rem;
}
.gddt-hub-exam-cards{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.gddt-hub-exam-card a{
  display:block;
  padding:14px 16px;
  border:1px solid var(--line,#e2e8f0);
  border-radius:12px;
  text-decoration:none;
  color:inherit;
  background:#fff;
  min-height:52px;
}
.gddt-hub-exam-card a:hover{border-color:#93c5fd;background:#eff6ff}
.gddt-hub-exam-meta{display:block;margin-top:6px;font-size:.9rem;color:var(--muted,#64748b)}
.gddt-hub-mode-badge{
  display:inline-block;margin-top:6px;padding:2px 8px;border-radius:999px;
  font-size:.78rem;font-weight:700;letter-spacing:.02em;
  background:#eef2f7;color:#334155;border:1px solid #dbe3ef
}
.gddt-hub-exam-card.is-practice .gddt-hub-mode-badge{background:#ecfdf5;color:#166534;border-color:#bbf7d0}
.gddt-hub-exam-card.is-exam .gddt-hub-mode-badge{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}
@media(max-width:430px){
  .gddt-gate-meta{grid-template-columns:1fr}
  .gddt-gate-start{width:100%}
  .gddt-hub-take .gddt-options-list{grid-template-columns:1fr !important}
  .gddt-hub-take .gddt-option-label{min-height:44px;font-size:1rem}
  .gddt-hub-take .gddt-submit-btn{min-height:48px;font-size:1.05rem}
  .gddt-hub-take .gddt-timer-bar{font-size:.95rem;padding:8px 10px}
  .gddt-hub-take .gddt-quiz-wrapper{padding:8px 4px 20px !important}
  .gddt-hub.gddt-hub-student{padding:0 2px}
}
