/* ATARium navigation - shared by every header, sidebar and footer rendered by atarium-nav.js.
   Builds on atarium-ui.css tokens (Plus Jakarta Sans, navy/blue palette). */

[data-atarium-public-header], [data-atarium-public-footer] { display: contents; }
.an-topbar [hidden], .an-footer [hidden], .sidebar [hidden] { display: none !important; }

/* Skip link */
.an-skip { position: absolute; top: 8px; left: -9999px; z-index: 200; padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--navy); font-size: 13px; font-weight: 750; }
.an-skip:focus { left: 12px; }

/* Announcement banner */
.an-announce { color: #e3effa; background: var(--navy); font-size: 12.5px; }
.an-announce-inner { position: relative; display: flex; min-height: 38px; align-items: center; justify-content: center; padding: 7px 44px; }
.an-announce p { margin: 0; line-height: 1.45; text-align: center; font-weight: 600; }
.an-announce-dot { display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(131,200,244,.22); vertical-align: middle; }
.an-announce-link { margin-left: 6px; color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.an-announce-link:focus-visible, .an-announce-close:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.an-announce-close { position: absolute; top: 50%; right: 0; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 10px; color: #cfe3f5; background: transparent; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.an-announce-close:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Public header */
.an-public-nav { display: flex; align-items: center; gap: 2px; }
.an-link { display: inline-flex; min-height: 44px; align-items: center; padding: 0 13px; border-radius: 12px; color: #425b74; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.an-link:hover { color: var(--navy); background: var(--ice); }
.an-link.active { color: var(--navy); background: var(--ice); box-shadow: inset 0 -2px 0 var(--blue); }
.an-link:focus-visible, .an-actions .btn:focus-visible, .an-panel-actions .btn:focus-visible, .an-toggle:focus-visible { outline: 3px solid rgba(49,150,230,.4); outline-offset: 2px; }
.an-panel-actions { display: none; }
.an-actions .btn { white-space: nowrap; }
.an-cta { padding: 0 19px; }
.an-toggle { display: none; }

@media (max-width: 1040px) {
  .an-public-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 24px 40px rgba(8,43,85,.12); }
  .an-public-nav.open { display: flex; }
  .an-link { min-height: 50px; padding: 0 14px; font-size: 15px; }
  .an-link.active { box-shadow: inset 3px 0 0 var(--blue); }
  .an-panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
  .an-panel-actions .btn { min-height: 50px; }
  .an-actions .an-login { display: none; }
  .an-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .an-actions .an-cta { display: none; }
  .an-panel-actions { grid-template-columns: 1fr; }
  .an-announce { font-size: 11.5px; }
  .an-announce-inner { padding: 7px 40px 7px 14px; justify-content: flex-start; }
  .an-announce p { text-align: left; }
}

/* Public footer */
.an-footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px; }
.an-footer-tag { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.an-footer-links { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.an-footer-links a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 10px; border-radius: 10px; color: #425b74; font-size: 13px; font-weight: 650; }
.an-footer-links a:hover { color: var(--navy); background: var(--ice); }

/* App sidebar */
.sidebar { overflow-y: auto; }
.side-link:focus-visible { outline: 3px solid rgba(49,150,230,.4); outline-offset: 2px; }
.an-soon-link, .an-soon-link:hover { color: #8a9bab; background: transparent; cursor: default; }
.an-soon { margin-left: auto; padding: 2px 7px; border-radius: 999px; color: #6e7d8b; background: #edf2f5; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.an-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.an-nav-loading { margin: 8px 12px; color: var(--muted); font-size: 12px; }
@media (max-width: 840px) {
  .sidebar.open { box-shadow: 0 0 0 100vmax rgba(8,43,85,.34); }
}

/* Simple content pages (About, For Teachers, Resources) */
.page-main { min-height: calc(100vh - 220px); }
.page-hero { padding: 54px 0 26px; }
.page-hero h1 { max-width: 820px; margin: 12px 0 14px; color: var(--navy); font-size: clamp(34px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -.05em; }
.page-hero p { max-width: 690px; margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.page-body { padding: 8px 0 80px; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.page-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.page-card h2, .page-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; letter-spacing: -.03em; }
.page-card p, .page-card li { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.page-card ul { margin: 8px 0 0; padding-left: 18px; }
.page-card .page-kicker { display: block; margin-bottom: 10px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.page-section-title { margin: 46px 0 16px; color: var(--navy); font-size: 23px; letter-spacing: -.035em; }
.page-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.page-note { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: #fff; font-size: 13px; line-height: 1.6; }
.resource-list { display: grid; gap: 22px; }
.resource-topic h2 { margin: 0 0 10px; color: var(--navy); font-size: 16px; letter-spacing: -.02em; }
.resource-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.resource-item { display: block; min-height: 44px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: #fff; text-decoration: none; }
a.resource-item:hover { border-color: var(--bright); }
.resource-item b { display: block; color: var(--navy); font-size: 13.5px; }
.resource-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.resource-item .resource-where { color: var(--navy-2); font-size: 13px; font-weight: 600; }
.resource-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .page-grid, .page-grid.two { grid-template-columns: 1fr; } .page-hero { padding: 34px 0 18px; } }
