/* Free classroom tools (/classroom/): a branded frame built for smart boards and projectors.
   The brand bar and the QR strip stay on screen, including in full screen. */
:root{--navy:#0f1e33;--navy2:#1b2f4a;--line:#3a5272;--orange:#c2410c;--orange-text:#c2410c;--peach:#ffc9a8;--mist:#9fb2cb;
  --display:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif;--body:"Source Sans 3","Segoe UI",system-ui,sans-serif;--mono:"JetBrains Mono",ui-monospace,Menlo,monospace}
*{box-sizing:border-box}
html,body{margin:0}
body{font:16px/1.5 var(--body);background:var(--navy);color:#fff}
a{color:inherit}
button{font:inherit}

/* brand bar */
.cr-bar{display:flex;align-items:center;gap:14px 18px;flex-wrap:wrap;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));background:var(--navy);color:#fff}
.cr-brand{display:flex;align-items:center;gap:10px;font:700 clamp(22px,2vw,32px)/1 var(--display);letter-spacing:.02em;text-decoration:none;color:#fff}
.cr-brand svg{width:1.3em;height:1.3em;flex:none}
.cr-url{font:500 clamp(14px,1.2vw,20px)/1 var(--mono);background:var(--navy2);padding:9px 12px;border-radius:8px;color:var(--peach)}
.cr-ed{font:500 12px/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--mist)}
.cr-tools{display:flex;gap:4px}
.cr-tools a{font-weight:600;text-decoration:none;padding:8px 12px;border-radius:8px;color:var(--mist)}
.cr-tools a:hover{color:#fff;background:var(--navy2)}
.cr-tools a[aria-current]{color:#fff;background:var(--navy2);box-shadow:inset 0 -3px 0 var(--orange)}
.cr-sp{flex:1}
.cr-btn{display:inline-flex;align-items:center;gap:6px;min-height:46px;padding:0 16px;border-radius:8px;border:1px solid var(--line);background:transparent;color:#fff;font-weight:600;font-size:clamp(15px,1.1vw,18px);cursor:pointer}
.cr-btn[aria-pressed="true"]{background:var(--navy2);border-color:var(--peach)}
.cr-cta{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;border-radius:8px;background:var(--orange);color:#fff;font-weight:600;font-size:clamp(16px,1.2vw,20px);text-decoration:none}
.cr-btn:focus-visible,.cr-cta:focus-visible,.cr-tools a:focus-visible,.cr-join:focus-visible,.cr-card:focus-visible{outline:3px solid var(--peach);outline-offset:2px}

/* tool page: bar, tool, strip fill the screen */
.cr-frame{height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.cr-tool{border:0;width:100%;height:100%;display:block;background:#fff}
.cr-foot{display:flex;align-items:center;gap:16px;padding:8px max(16px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left));background:var(--orange);color:#fff}
.cr-qr{background:#fff;padding:4px;border-radius:6px;display:block;image-rendering:pixelated;flex:none}
.cr-msg{flex:1;font-size:clamp(15px,1.15vw,20px);line-height:1.25}
.cr-host{display:block;font:500 .9em/1.4 var(--mono)}
.cr-join{flex:none;font-weight:600;color:var(--orange);background:#fff;border-radius:8px;padding:12px 16px;text-decoration:none}

@media (max-width:900px){
  .cr-ed,.cr-btn span,.cr-url{display:none}
  .cr-foot .cr-qr{width:52px;height:52px}
  .cr-join{display:none}
}
@media (max-width:560px){
  .cr-bar{gap:8px 10px}
  .cr-tools{order:9;width:100%}
  .cr-cta{min-height:42px;padding:0 12px;font-size:15px}
  .cr-btn{min-height:42px;padding:0 10px}
  .cr-foot .cr-qr{display:none}
  .cr-msg{font-size:14px}
}

/* hub page */
.cr-hub{background:#eef2f4;color:#14232f;min-height:100vh}
.cr-main{max-width:1100px;margin:0 auto;padding:36px 16px 48px;display:grid;gap:18px}
.cr-eyebrow{font:500 13px/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--orange-text)}
.cr-hub h1,.cr-hub h2{font-family:var(--display);line-height:1.08;margin:0;text-wrap:balance}
.cr-hub h1{font-size:clamp(34px,6vw,58px)}
.cr-lede{font-size:clamp(18px,1.6vw,21px);color:#4a5b68;max-width:62ch;margin:0}
.cr-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));margin-top:8px}
.cr-card{display:grid;gap:10px;align-content:start;background:#fff;border:1px solid #d3dce2;border-radius:14px;padding:22px;text-decoration:none;color:inherit;transition:border-color .15s,transform .15s}
.cr-card:hover{border-color:var(--orange);transform:translateY(-2px)}
.cr-card h2{font-size:28px}
.cr-card p{margin:0;color:#4a5b68}
.cr-tag{justify-self:start;font:500 11px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;padding:5px 9px;border-radius:999px;background:#dbe7f0;color:#1f5f8b}
.cr-go{font-weight:600;color:var(--orange-text)}
.cr-more{display:flex;gap:24px;align-items:center;justify-content:space-between;background:var(--navy);color:#fff;border-radius:16px;padding:26px;margin-top:10px}
.cr-more h2{font-size:clamp(26px,3vw,34px)}
.cr-more p{color:#d5deea;max-width:62ch}
.cr-more .cr-qr.big{width:160px;height:160px;padding:8px;border-radius:10px}
.cr-row{display:flex;flex-wrap:wrap;gap:10px}
.cr-btn2{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;border-radius:8px;border:1px solid var(--line);color:#fff;font-weight:600;text-decoration:none}
.cr-small{color:#5a6b78;font-size:15px;margin:0}
@media (max-width:700px){.cr-more{flex-direction:column;align-items:flex-start}.cr-more .cr-qr.big{width:120px;height:120px}}
@media (prefers-color-scheme:dark){
  .cr-hub{background:#0f171e;color:#e4ecf1;--orange-text:#f07a45}
  .cr-card{background:#16222c;border-color:#26343f}
  .cr-lede,.cr-card p,.cr-small{color:#93a4b1}
  .cr-tag{background:#1b2c39;color:#7fb4d9}
  .cr-more{background:#16222c}
}

/* Screen-reader-only text (the tool pages' heading), and the tool's wrapper taking the iframe's place in the layout */
.cr-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cr-tool-main{min-height:0;height:100%;overflow:hidden}
