/* ============================================================
   AI & Digital Learning Hub styles (Nov 2026)
   Built on the existing Back in the Room design system:
   charcoal #0f1f2b, teal #38b2b2, pale #befaf2, grey #ebeaf0,
   white #fafaf8. Fonts: Cabinet Grotesk + General Sans.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Hub sub-navigation (under the sticky site header) --- */
.hub-nav {
  position: sticky; top: 76px; z-index: 50;
  background: #12303e;
  border-bottom: 1px solid rgba(56,178,178,.35);
}
.hub-nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 40px);
  display: flex; gap: 4px 18px; align-items: center; flex-wrap: wrap;
  overflow-x: auto; scrollbar-width: thin;
}
.hub-hero .eyebrow { color: #7fe0dc; }
.hub-nav-inner a {
  color: #d8e3e7; text-decoration: none; font-weight: 700;
  font-size: .84rem; padding: 6px 4px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.hub-nav-inner a:hover, .hub-nav-inner a:focus { color: var(--teal); }
.hub-nav-inner a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--teal); }
@media (max-width: 1100px) { .hub-nav { top: 0; } }
@media (max-width: 820px) {
  .hub-nav-inner { flex-wrap: nowrap; justify-content: flex-start; gap: 4px 14px; padding: 10px 14px; }
  .hub-nav-inner a { flex: 0 0 auto; padding: 8px 2px; }
}

/* --- Hub hero --- */
.hub-hero {
  padding: clamp(56px, 8vw, 100px) clamp(24px, 7vw, 105px);
  background:
    radial-gradient(circle at 85% 20%, rgba(56,178,178,.25), transparent 30%),
    var(--charcoal);
  color: var(--white);
}
.hub-hero .eyebrow { color: var(--teal); }
.hub-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.2vw, 4.6rem); max-width: 900px; }
.hub-hero .lead { color: #d8e3e7; max-width: 780px; }
.hub-hero .status { background: var(--teal); color: var(--charcoal); display: inline-block; margin-bottom: 18px; }

/* --- Three starting routes --- */
.path-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; max-width: 1250px; margin: clamp(40px, 5vw, 64px) auto 0;
}
.path-card {
  background: #173342; border-top: 6px solid var(--teal);
  padding: 30px 28px; color: var(--white);
  display: flex; flex-direction: column; text-decoration: none;
  border-radius: 8px; transition: transform .2s ease, background .2s ease;
}
.path-card:hover, .path-card:focus { transform: translateY(-5px); background: #1d4050; }
.path-card span { color: var(--teal); font-weight: 900; letter-spacing: .14em; font-size: .76rem; text-transform: uppercase; }
.path-card h2 { color: var(--white); font-size: 1.5rem; margin: 14px 0 10px; }
.path-card p { color: #d8e3e7; margin: 0 0 20px; font-size: .97rem; }
.path-card strong { margin-top: auto; color: var(--teal); font-weight: 900; }

/* --- Section cards grid (landing page) --- */
.hub-sections { padding: clamp(60px, 8vw, 100px) clamp(24px, 7vw, 105px); background: var(--white); }
.hub-sections .section-heading { text-align: center; }
.hub-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; max-width: 1320px; margin: 0 auto;
}
.hub-card {
  min-height: 250px; padding: 26px; background: var(--grey);
  border-top: 6px solid var(--teal); border-radius: 8px;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hub-card:hover, .hub-card:focus { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(15,31,43,.16); }
.hub-card span { color: #157b83; font-weight: 900; letter-spacing: .12em; font-size: .74rem; text-transform: uppercase; }
.hub-card h3 { margin: 14px 0 10px; color: var(--charcoal); font-size: 1.3rem; line-height: 1.15; }
.hub-card p { margin: 0 0 18px; font-size: .94rem; }
.hub-card strong { margin-top: auto; color: #116b72; font-weight: 900; }

/* --- Content page layout --- */
.hub-page { padding: clamp(50px, 6vw, 80px) clamp(20px, 6vw, 60px) clamp(60px, 8vw, 100px); background: var(--white); }
.hub-page .page-wrap { max-width: 900px; margin: 0 auto; }
.hub-page h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.hub-page h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 2.2em; }
.hub-page h3 { font-size: 1.35rem; margin-top: 1.8em; color: var(--charcoal); }
.hub-page .page-wrap > p, .hub-page .page-wrap > ul, .hub-page .page-wrap > ol { max-width: 780px; }
.hub-page .lead { margin-bottom: 1.2em; }
.page-top { border-top: 10px solid var(--teal); }
.breadcrumb { font-size: .85rem; font-weight: 700; margin-bottom: 18px; }
.breadcrumb a { color: #116b72; text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus { text-decoration: underline; }

/* --- Callouts --- */
.callout {
  padding: 20px 24px; margin: 28px 0; border-radius: 8px;
  border-left: 6px solid var(--teal); background: var(--pale);
}
.callout.warn { border-left-color: #c2820e; background: #fdf6e7; }
.callout.safe { border-left-color: #2e8b57; background: #eef7f0; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; display: block; margin-bottom: 6px; color: #116b72; }
.callout.warn strong:first-child { color: #8a5a06; }
.callout.safe strong:first-child { color: #2e6b45; }

/* --- Example / classroom boxes --- */
.example-box {
  background: var(--grey); border-radius: 8px; padding: 22px 26px; margin: 26px 0;
}
.example-box h4 { margin: 0 0 10px; color: var(--charcoal); font-size: 1.1rem; }
.example-box p { margin: 0 0 10px; }
.example-box p:last-child { margin-bottom: 0; }

/* --- Steps --- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 14px 0 14px 62px; border-bottom: 1px solid var(--grey);
}
.steps > li:last-child { border-bottom: none; }
.steps > li:before {
  content: counter(step); position: absolute; left: 0; top: 14px;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--charcoal); color: var(--white); border-radius: 50%;
  font-weight: 900; font-family: 'Cabinet Grotesk', Arial, sans-serif;
}

/* --- Downloads --- */
.download-band { background: var(--grey); border-radius: 8px; padding: 30px clamp(20px, 4vw, 36px); margin: 40px 0; }
.download-band h2, .download-band h3 { margin-top: 0; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.download-item {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--white); padding: 16px 18px; border-radius: 8px;
  border: 1px solid #d9d7e2; text-decoration: none; color: var(--ink);
}
.download-item:hover, .download-item:focus { border-color: var(--teal); box-shadow: 0 8px 20px rgba(15,31,43,.1); }
.download-item .file-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--charcoal); color: var(--teal); border-radius: 8px;
  font-weight: 900; font-size: .68rem; letter-spacing: .04em; text-align: center;
}
.download-item strong { display: block; color: var(--charcoal); }
.download-item span { font-size: .84rem; color: #51616c; }

/* --- Filterable prompt library --- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin: 26px 0 18px;
}
.filter-bar input[type="search"] {
  flex: 1 1 240px; max-width: 340px; padding: 12px 14px;
  border: 2px solid var(--charcoal); border-radius: 8px;
  font: inherit; font-size: .95rem; background: var(--white);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 8px 14px; border: 2px solid var(--charcoal); border-radius: 999px;
  background: var(--white); font: inherit; font-size: .82rem; font-weight: 700;
  cursor: pointer;
}
.filter-chip[aria-pressed="true"] { background: var(--charcoal); color: var(--white); }
.filter-count { font-size: .85rem; color: #51616c; font-weight: 700; margin: 0 0 18px; }

.prompt-card {
  background: var(--white); border: 1px solid #d9d7e2; border-radius: 8px;
  padding: 22px 24px; margin: 0 0 18px; scroll-margin-top: 150px;
}
.prompt-card h3 { margin: 0 0 6px; font-size: 1.12rem; }
.prompt-card .prompt-meta { font-size: .8rem; color: #51616c; font-weight: 700; margin: 0 0 12px; }
.prompt-card .prompt-meta .cat { color: #116b72; text-transform: uppercase; letter-spacing: .08em; }
.prompt-text {
  background: var(--grey); border-radius: 8px; padding: 16px 18px;
  font-size: .95rem; line-height: 1.6; margin: 0 0 12px; white-space: pre-wrap;
}
.prompt-card .prompt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-btn {
  padding: 9px 16px; background: var(--teal); color: var(--charcoal);
  border: 2px solid #2e9c9c; border-radius: 8px; font: inherit;
  font-weight: 800; font-size: .85rem; cursor: pointer;
}
.copy-btn:hover { background: var(--pale); }
.copy-btn.copied { background: #2e8b57; border-color: #2e8b57; color: white; }
.prompt-check { font-size: .82rem; color: #8a5a06; font-weight: 700; margin: 10px 0 0; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; margin: 26px 0; }
table.hub-table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 640px; }
.hub-table th, .hub-table td { text-align: left; padding: 12px 14px; border: 1px solid #d9d7e2; vertical-align: top; }
.hub-table th { background: var(--charcoal); color: var(--white); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.hub-table tr:nth-child(even) td { background: #f4f3f7; }

/* --- Audits --- */
.audit-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.audit-tab {
  flex: 1 1 240px; text-align: left; padding: 18px 22px;
  background: var(--grey); border: 2px solid transparent; border-radius: 8px;
  font: inherit; cursor: pointer; color: var(--ink);
}
.audit-tab[aria-selected="true"] { background: var(--white); border-color: var(--teal); box-shadow: 0 10px 26px rgba(15,31,43,.12); }
.audit-tab strong { display: block; color: var(--charcoal); font-size: 1.05rem; }
.audit-tab span { font-size: .85rem; color: #51616c; }
.audit-section { margin: 34px 0; }
.audit-section > h3 { margin-top: 0; padding-bottom: 8px; border-bottom: 3px solid var(--teal); }
.statement-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--grey);
}
.statement-row p { margin: 0; font-weight: 600; }
.rating-group { display: flex; gap: 4px; flex-wrap: wrap; }
.rating-group label {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  border: 2px solid #b9b7c6; border-radius: 8px; cursor: pointer;
  font-weight: 800; font-size: .78rem; background: var(--white);
}
.rating-group label:hover { border-color: var(--teal); }
.rating-group input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rating-group input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.rating-group input:checked + span { color: #116b72; }
.rating-group label:has(input:checked) { border-color: #116b72; background: var(--pale); }
.statement-row .na-label { font-size: .78rem; font-weight: 800; color: #51616c; }
.audit-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; align-items: center; }
.audit-results { background: var(--grey); border-radius: 8px; padding: 28px clamp(20px, 4vw, 34px); margin: 30px 0; }
.audit-results h3 { margin-top: 0; }
.band-badge {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--charcoal); color: var(--white); font-weight: 900; margin: 6px 0 14px;
}
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 18px 0; }
.score-box { background: var(--white); border-radius: 8px; padding: 16px 18px; border-top: 4px solid var(--teal); }
.score-box strong { display: block; color: var(--charcoal); font-size: 1.3rem; }
.score-box span { font-size: .84rem; color: #51616c; font-weight: 700; }
.progress-note { font-size: .88rem; color: #51616c; }

/* --- Research sources list --- */
.source-list { list-style: none; padding: 0; margin: 26px 0; }
.source-list > li {
  background: var(--white); border: 1px solid #d9d7e2; border-left: 6px solid var(--teal);
  border-radius: 8px; padding: 18px 22px; margin-bottom: 14px;
}
.source-list h3 { margin: 0 0 6px; font-size: 1.1rem; }
.source-list p { margin: 0 0 6px; font-size: .93rem; }
.source-list .checked { font-size: .8rem; font-weight: 800; color: #116b72; }
.source-list a { color: #116b72; font-weight: 700; overflow-wrap: anywhere; }

/* --- Review footer note --- */
.review-note {
  font-size: .84rem; color: #51616c; border-top: 1px solid var(--grey);
  padding-top: 16px; margin-top: 48px;
}

/* --- Mobile --- */
@media (max-width: 1000px) { .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .path-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .statement-row { grid-template-columns: 1fr; }
  .rating-group { justify-content: flex-start; }
}
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .path-card, .hub-card, .prompt-card { transition: none; }
}
