/* CloudKlass shared header and footer. Self-contained: it does not rely on any page's own styles.
   Plain HTML and CSS, no script: the phone menu is a checkbox, the sign-in menu is a <details>. */
.ck-nav, .ck-foot {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; color: #0f172a; text-align: left;
}
.ck-nav *, .ck-foot * { box-sizing: border-box; }
.ck-nav a, .ck-foot a { text-decoration: none; }

/* ---- header ---- */
header.ck-nav {
  position: sticky; top: 0; z-index: 40; margin: 0; padding: 0;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
.ck-nav-in {
  max-width: 1120px; margin: 0 auto; padding: .6rem 1rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.25rem;
}
.ck-brand { display: inline-flex; align-items: center; gap: .55rem; color: #0f172a; font-weight: 700; font-size: 1rem; margin-right: auto; }
.ck-brand img { display: block; height: 32px; width: 32px; object-fit: contain; }
.ck-links { display: flex; align-items: center; gap: 1.25rem; }
.ck-links a { color: #475569; font-weight: 500; font-size: .9rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.ck-links a:hover, .ck-links a[aria-current="page"] { color: #1d4ed8; }
.ck-links a[aria-current="page"] { border-bottom-color: #2563eb; }
.ck-nav a:focus-visible, .ck-nav summary:focus-visible, .ck-nav-btn:focus-visible, .ck-foot a:focus-visible,
.ck-nav-toggle:focus-visible + .ck-nav-btn { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 4px; }

.ck-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ck-nav-btn { display: none; cursor: pointer; font-weight: 600; font-size: .9rem; color: #0f172a; padding: .4rem .75rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }

.ck-signin { position: relative; }
.ck-signin summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: .9rem; color: #fff; background: #2563eb;
  padding: .45rem .9rem; border-radius: 8px;
}
.ck-signin summary::-webkit-details-marker { display: none; }
.ck-signin summary::after { content: " \25BE"; }
.ck-signin summary:hover { background: #1d4ed8; }
.ck-pop {
  position: absolute; right: 0; top: calc(100% + .4rem); min-width: 13rem; z-index: 50;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: .35rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.ck-pop a { display: block; padding: .55rem .75rem; border-radius: 6px; color: #0f172a; font-size: .9rem; }
.ck-pop a:hover { background: #eff6ff; color: #1d4ed8; }

@media (max-width: 860px) {
  .ck-nav-btn { display: inline-block; order: 2; }
  .ck-signin { order: 3; }
  .ck-links { order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; display: none; border-top: 1px solid #e2e8f0; padding-top: .25rem; }
  .ck-links a { padding: .7rem .25rem; border-bottom: 1px solid #f1f5f9; }
  .ck-nav-toggle:checked ~ .ck-links { display: flex; }
}
@media (max-width: 480px) {
  .ck-nav-in { gap: .5rem .5rem; padding: .5rem .75rem; }
  .ck-brand { gap: .4rem; min-width: 0; }
  .ck-brand span { font-size: .82rem; white-space: nowrap; }
  .ck-nav-btn, .ck-signin summary { padding: .4rem .6rem; font-size: .85rem; }
}

/* ---- footer ---- */
footer.ck-foot { margin: 0; padding: 0; background: #0f172a; color: #cbd5e1; border-top: 0; }
.ck-foot-in { max-width: 1120px; margin: 0 auto; padding: 2.5rem 1rem 1.75rem; }
.ck-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 1.75rem; }
.ck-foot-h { margin: 0 0 .65rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.ck-foot-cols a { display: block; color: #e2e8f0; padding: .2rem 0; font-size: .9rem; overflow-wrap: anywhere; }
.ck-foot-cols a:hover, .ck-social a:hover { color: #fff; text-decoration: underline; }
.ck-foot-bar { padding-right: 4.5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #1e293b; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .85rem; color: #94a3b8; }
.ck-foot-bar p { margin: 0; }
.ck-social { display: flex; gap: 1rem; }
.ck-social a { color: #cbd5e1; }
@media (max-width: 860px) { .ck-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ck-foot-cols { grid-template-columns: 1fr; } }

/* ---- product bar under the header (Teacher AI pages) ---- */
.ck-sub { background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.ck-sub-in { max-width: 1120px; margin: 0 auto; padding: .3rem 1rem; display: flex; align-items: center; gap: .25rem 1.25rem; flex-wrap: wrap; font-size: .85rem; }
.ck-sub-in strong { color: #0f172a; font-weight: 700; margin-right: .25rem; }
.ck-sub-in a { color: #475569; text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.ck-sub-in a:hover, .ck-sub-in a[aria-current="page"] { color: #1d4ed8; }
.ck-sub-in a[aria-current="page"] { border-bottom-color: #2563eb; }
.ck-sub-in a:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; border-radius: 4px; }
