/* Hyde SciOly Prep: the home page's look ("light and airy", the owner's
   pick, 2026-10-27). Loaded after lab.css by index.html only, so the other
   hub pages keep lab.css's look until they move over.

   Lexend headings and Public Sans text on a pale blue-gray page; white
   cards with soft borders and no shadows; the banner in the team's color
   (--hero-bg, the team look's); each course's own color on its icon,
   progress and button (--accent, from accentStyle() in home.js). */

:root{
  --f-display:'Lexend', 'Public Sans', system-ui, sans-serif;
  --f-mono:var(--f-body);
  --bg:#F5F8FD; --paper:#FFFFFF; --paper-alt:#F0F4FB; --line:#D3DBEB;
  --line-soft:#E0E6F1; --line-faint:#E9EDF4; --head-bg:#F0F4FB; --bar-bg:#E6EBF3;
  --ink:#0F1A33; --ink-2:#33405E; --muted:#525D78;
  --on-accent:#FFFFFF;
  --tag-trial-bg:#FBF0D2; --tag-trial:#6B5000;
  --tag-none-bg:#ECF0F7; --tag-none:#3E4A66;
  --note-bg:#FFF6DB; --note-ink:#5C4300; --note-line:#F2E3B0;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0A0F22; --paper:#111936; --paper-alt:#16204A; --line:#2A3866;
    --line-soft:#223058; --line-faint:#1B2650; --head-bg:#16204A; --bar-bg:#223058;
    --ink:#EEF1FB; --ink-2:#CDD5EE; --muted:#9AA6CA;
    --on-accent:#0A0F22;
    --tag-trial-bg:rgba(242,179,61,.16); --tag-trial:#F7C760;
    --tag-none-bg:#1F2A50; --tag-none:#B9C3E0;
    --note-bg:rgba(242,179,61,.14); --note-ink:#F7D88A; --note-line:rgba(242,179,61,.35);
  }
  :root:not([data-theme="light"]) .ev-row{--accent:var(--accent-dark, var(--muted));}
}
:root[data-theme="dark"]{
  --bg:#0A0F22; --paper:#111936; --paper-alt:#16204A; --line:#2A3866;
  --line-soft:#223058; --line-faint:#1B2650; --head-bg:#16204A; --bar-bg:#223058;
  --ink:#EEF1FB; --ink-2:#CDD5EE; --muted:#9AA6CA;
  --on-accent:#0A0F22;
  --tag-trial-bg:rgba(242,179,61,.16); --tag-trial:#F7C760;
  --tag-none-bg:#1F2A50; --tag-none:#B9C3E0;
  --note-bg:rgba(242,179,61,.14); --note-ink:#F7D88A; --note-line:rgba(242,179,61,.35);
}
:root[data-theme="dark"] .ev-row{--accent:var(--accent-dark, var(--muted));}

.wrap{max-width:1200px; padding:20px 32px 56px;}
@media (max-width:600px){ .wrap{padding:16px 16px 48px;} }

/* ---------- header: only the Sign in (or account) button ---------- */
.topbar{margin-bottom:20px;}
.signin-btn{min-height:42px; padding:0 18px; color:var(--brand); background:var(--paper); border:1px solid var(--line);}
.signin-btn:hover{border-color:var(--brand);}
/* What's new: a light bulb beside Sign in (or the account button). */
.wn-btn{display:inline-flex; align-items:center; justify-content:center; flex:none; width:32px; height:42px; margin-right:-8px; border-radius:8px; color:var(--brand); text-decoration:none;}
.wn-btn:hover{color:var(--ink);}
.wn-btn{position:relative;}
.wn-btn.wn-new::after{content:""; position:absolute; top:7px; right:2px; width:9px; height:9px; border-radius:50%; background:#D93F3F; box-shadow:0 0 0 2px var(--bg);}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .wn-btn.wn-new::after{background:#FF6B6B;}}
:root[data-theme="dark"] .wn-btn.wn-new::after{background:#FF6B6B;}
.wn-btn:focus-visible{outline:2px solid var(--focus); outline-offset:2px;}
.wn-btn .icon{width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;}

/* ---------- banner: the team's color, no pattern ---------- */
.hero{background:var(--hero-bg); box-shadow:none; padding:26px 32px; gap:20px; margin:0;}
.hero-logo{width:76px;}
.team-logo{height:76px;}
.hero-kicker{font-family:var(--f-body); font-size:14px; font-weight:600; letter-spacing:0; text-transform:none; margin-bottom:2px;}
.hero h1{font-family:var(--f-display); font-weight:700; font-size:40px; line-height:1.1; letter-spacing:-.01em;}
.hero p{margin:4px 0 0; font-size:18px;}
.hero-acts{right:20px; bottom:18px; gap:10px;}
.hero-cal{width:40px; height:40px; border-color:rgba(255,255,255,.35); background:rgba(255,255,255,.14);}
.hero-cal .icon{width:20px; height:20px; stroke-width:1.8;}
.hero-link{min-height:40px; padding:0 16px; border-color:rgba(255,255,255,.35); background:rgba(255,255,255,.14); font-size:15px;}
@media (max-width:600px){
  .hero{padding:20px 18px; gap:14px;}
  .hero-logo{width:56px;}
  .team-logo{height:56px;}
  .hero-kicker{font-size:13px;}
  .hero h1{font-size:26px;}
  .hero p{font-size:16px;}
  .hero-acts{right:12px; bottom:12px; gap:8px;}
  .hero-link{width:40px; height:40px; padding:0;}
  .hero-link .icon{flex:none; width:20px; height:20px;}
}
.lede{margin:20px 0 0; font-size:17px; color:var(--ink-2); max-width:none;}
.lede + .team-promo{margin-top:16px;}
.team-promo{margin:0; background:var(--paper); border-color:var(--line-soft);}
.family-banner{margin:24px 0 0;}

/* ---------- section headings ---------- */
section + section, main > section:first-of-type{margin-top:52px;}
#mineSec{margin-top:28px;}
.section-label{margin:0; font-family:var(--f-display); font-size:26px; font-weight:600; letter-spacing:0; text-transform:none; color:var(--ink); line-height:1.25;}
.section-label .dot{display:none;}
.section-sub{margin:4px 0 0; font-size:16px; color:var(--muted);}
.section-sub:empty{display:none;}
.section-row{margin:0;}
.section-row + .section-sub{margin-bottom:0;}
#eventGrid, #mineOut .pin-add{margin-top:16px;}
.arrange-hint{margin:12px 0 0;}
.arrange-btn{border-radius:10px; border-color:var(--line);}
.all-fold{gap:8px; margin:0 0 0 -6px; min-height:0; padding:0 6px;}
.all-fold .chev{width:20px; height:20px; color:var(--muted);}
.all-head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px 20px;}
.all-head > div{flex:1; min-width:0;}
.all-head .pin-mode{margin-top:4px;}
#allSec:has(#allBody[hidden]) .pin-mode{display:none;}
.pin-mode{min-height:38px; padding:0 14px; border-radius:10px; border-color:var(--line); color:var(--ink); font-size:15px;}
.pin-say{margin:12px 0 0;}
.signin-note{margin:6px 0 0; color:var(--muted);}
.signin-note a{font-weight:600; color:var(--brand);}

/* ---------- Announcements and the calendar tile, the same height ---------- */
#mineSec > .home-top:has(> :not([hidden])){margin:0 0 52px;}
.home-top{gap:20px;}
.home-top.has-cal-tile{grid-template-columns:minmax(0,3fr) minmax(0,2fr); align-items:stretch;}
.home-top.has-cal-tile:has(> .news[hidden]){grid-template-columns:minmax(0,480px);}
.home-top.has-cal-tile > .news:has(> .news-box:not([open])){align-self:start;}
@media (max-width:759px){ .home-top.has-cal-tile{grid-template-columns:minmax(0,1fr);} }
.news{max-height:400px; overflow:hidden; border-color:var(--line-soft); border-radius:16px;}
.news:has(.news-pop:not([hidden])), .news.reordering{max-height:none; overflow:visible;}
.news-top{padding:14px 18px; background:var(--head-bg); border-radius:15px; grid-template-columns:20px auto auto 1fr 18px; gap:10px;}
.news-box[open] > .news-top{border-radius:15px 15px 0 0; border-bottom-color:var(--line-soft);}
.news-title{font-family:var(--f-display); font-size:18px; font-weight:600; letter-spacing:0; text-transform:none;}
.news-count{justify-self:start; min-width:22px; padding:1px 7px; border-radius:999px; background:color-mix(in srgb, var(--brand) 12%, var(--paper)); color:var(--brand); font-family:var(--f-body); font-size:13px; font-weight:600; letter-spacing:0; text-align:center; box-sizing:border-box;}
.news-top .chev{grid-column:5;}
.news-list{max-height:346px; padding:0 18px;}
.news-item + .news-item{border-top:1px solid var(--line-faint);}
.news-d > summary, .news-row{padding:11px 0;}
.news-item b{font-weight:600;}
.news-when{font-size:13px;}
.news-det{padding:0 0 12px 32px; font-size:14.5px; line-height:1.55; color:var(--ink-2);}
.news-head-menu{top:9px; right:46px;}
@media (max-width:759px){ .news{max-height:360px;} .news-list{max-height:306px;} }

.cal-slot{display:flex; min-width:0;}
.cal-slot[hidden]{display:none;}
.cal-tile{flex:1; min-width:0; max-height:400px; gap:0; padding:0; overflow:hidden; border:1px solid var(--line-soft); border-radius:16px;}
a.cal-tile:hover{box-shadow:none; border-color:var(--brand);}
.ct-head{padding:14px 18px; gap:10px; background:var(--head-bg); border-bottom:1px solid var(--line-soft);}
.ct-head .icon{width:20px; height:20px; stroke-width:1.8;}
.ct-name{font-family:var(--f-display); font-weight:600;}
.ct-chev{color:var(--muted);}
.ct-k{padding:10px 18px 2px; font-family:var(--f-body); font-size:13px; letter-spacing:0; text-transform:none;}
.ct-list{flex:1; max-height:none; padding:0 18px 4px; overflow-y:auto; gap:0;}
.ct-row{grid-template-columns:44px minmax(0,1fr); gap:12px; padding:9px 0;}
.ct-row + .ct-row{border-top:1px solid var(--line-faint);}
.ct-date{height:auto; padding:4px 0; border-radius:10px; background:var(--brand); color:var(--paper); font-family:var(--f-display); font-weight:600; font-size:18px; line-height:1.1;}
.ct-date small{font-family:var(--f-body); font-size:11px; letter-spacing:0; text-transform:none;}
.ct-row.off .ct-date{background:color-mix(in srgb, var(--brand) 14%, var(--paper)); color:var(--ink);}
.ct-txt b{font-size:14.5px;}
.ct-txt span{font-size:14px;}
.ct-note{margin-top:auto; padding:10px 18px; border-radius:0; background:var(--note-bg); color:var(--note-ink); border-top:1px solid var(--note-line);}
.ct-groups{padding:0 18px 8px;}
.ct-groups li:first-child a{border-top:0;}
.cal-tile.multi .ct-head{color:var(--brand);}
@media (max-width:759px){ .cal-tile{max-height:360px;} }

/* ---------- Your events: white cards, the course's color on its icon ---------- */
.event-grid{grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:16px;}
/* A tile with no course color (a pinned event with no course yet) takes the brand blue, so its button shows. */
.home-tile{--accent-light:var(--brand); --accent-dark:var(--brand);}
.event{gap:12px; padding:20px; border:1px solid var(--line-soft); border-radius:16px; box-shadow:none;}
.event.linked:hover{transform:none; box-shadow:none; border-color:var(--accent);}
.event-head{align-items:center; gap:12px;}
.event-head h3{flex:1; min-width:0; margin:0; font-family:var(--f-display); font-size:18px; font-weight:500; line-height:1.25;}
.event-mark{width:40px; height:40px; border:0; border-radius:12px; background:color-mix(in srgb, var(--accent) 14%, var(--paper));}
.event-mark svg{width:22px; height:22px;}
.event-mark.has-logo{background:var(--paper-alt);}
.home-tile .pin-btn{position:absolute; top:8px; right:8px; z-index:4; width:32px; height:32px; margin:0; color:var(--accent); opacity:1; pointer-events:auto;}
.home-tile:has(.event-head .pin-btn) .event-head h3{padding-right:24px;}
.home-tile .pin-btn[aria-pressed="true"]{color:var(--accent);}
.home-tile .tile-tags{margin:-4px 0 0;}
.tile-body{gap:12px; flex:1;}
.home-tile .tile-blurb{font-size:14.5px; line-height:1.45; color:var(--muted);}
.explore-line{font-size:13.5px;}
.prog{display:flex; align-items:center; gap:10px;}
.prog .bar{flex:1; height:6px; background:var(--bar-bg); box-shadow:none;}
.prog-v{font-size:13.5px; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums;}
.go-btn{align-self:flex-start; margin-top:auto; gap:6px; padding:9px 14px 9px 16px; border:0; border-radius:10px; background:var(--accent); color:var(--on-accent); font-size:15px; font-weight:600;}
.go-btn > span{flex:none;}
.go-btn .icon{width:16px; height:16px; color:currentColor;}
.go-btn:hover{filter:brightness(1.08);}
.inside-btn{font-size:14.5px; font-weight:600;}
.home-tile .inside{padding:20px 20px 52px; border-radius:15px;}
.home-tile .inside h4{font-family:var(--f-display); font-size:18px; font-weight:500;}
.home-tile .inside .go-btn{display:inline-flex;}
.welcome-card{margin:0 0 28px; border:1px solid var(--line-soft); border-radius:16px; padding:20px;}
.welcome-card h2{font-family:var(--f-display); font-weight:600;}
.pin-add{margin-top:16px; border-radius:16px;}

/* The next two meetings: a date block (month over day) and when and where. */
.event-meet{margin:0; padding:0; border:0; gap:8px; min-width:0;}
.event-meet > *{min-width:0;}
.em-row{display:flex; align-items:center; gap:12px;}
.em-date{flex:none; display:flex; flex-direction:column; align-items:center; width:44px; padding:4px 0; border-radius:10px; background:color-mix(in srgb, var(--accent) 14%, var(--paper)); color:var(--ink); font-family:var(--f-display); font-weight:600; font-size:18px; line-height:1.1;}
.em-row.next .em-date{background:var(--accent); color:var(--on-accent);}
.em-date small{font-family:var(--f-body); font-size:11px; font-weight:600;}
.em-txt{min-width:0; display:flex; flex-direction:column; font-size:14.5px; line-height:1.35;}
.em-txt b{font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.em-txt .em-where{color:var(--muted);}
.event .event-meet .em-note, .event .event-meet .em-memo{margin:-2px 0 0 56px; font-size:13px; color:var(--muted);}
.event-meet a{color:var(--accent);}

/* ---------- All events: light subject headings, one panel of rows each ---------- */
#allOut{margin-top:22px; display:flex; flex-direction:column; gap:26px;}
#allOut:empty{min-height:100vh;}
.subj-h{display:flex; align-items:center; gap:10px; margin:0; font-family:var(--f-display); font-size:19px; font-weight:500; color:var(--ink-2);}
.subj-h img{flex:none; width:40px; height:40px; border-radius:10px; object-fit:cover;}
.ev-panel{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:2px; margin-top:8px; padding:6px; background:var(--paper); border:1px solid var(--line-soft); border-radius:14px;}
@media (max-width:979px){ .ev-panel{grid-template-columns:repeat(2, minmax(0, 1fr));} }
@media (max-width:639px){ .ev-panel{grid-template-columns:minmax(0, 1fr);} }
.ev-row{--accent:var(--accent-light, var(--muted)); position:relative; display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px;}
.ev-row:hover{background:var(--bg);}
.ev-row:has(.dlink:focus-visible){outline:2px solid var(--focus); outline-offset:-2px;}
.ev-mark{flex:none; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:10px; color:var(--accent); background:color-mix(in srgb, var(--accent) 14%, var(--paper));}
.ev-mark .icon{width:20px; height:20px;}
.ev-mark.has-logo{background:var(--paper-alt);}
.ev-mark .tile-logo{width:28px; height:28px;}
.ev-row.no-content .ev-mark{color:var(--muted); background:var(--tag-none-bg);}
.ev-text{min-width:0; display:flex; flex-direction:column;}
.ev-text b{font-family:var(--f-display); font-size:16px; font-weight:500; line-height:1.25;}
.ev-desc{font-size:13.5px; line-height:1.4; color:var(--muted);}
.ev-tag{display:inline-block; margin-left:6px; padding:1px 7px; border-radius:6px; font-family:var(--f-body); font-size:12px; font-weight:600; vertical-align:2px; white-space:nowrap;}
.ev-tag.trial{background:var(--tag-trial-bg); color:var(--tag-trial);}
.ev-tag.dev{background:var(--dev-bg); color:var(--dev-ink);}
.ev-tag.none{background:var(--tag-none-bg); color:var(--tag-none);}
/* Pins: on hover or keyboard focus, in pin mode, always when pinned, and
   faintly on touch screens (no hover). */
.ev-row .pin-btn{position:relative; z-index:2; flex:none; margin-left:auto; opacity:0; pointer-events:none; transition:opacity .15s;}
.ev-row:hover .pin-btn, .ev-row:focus-within .pin-btn, .pinning .ev-row .pin-btn{opacity:1; pointer-events:auto;}
.ev-row .pin-btn[aria-pressed="true"]{color:var(--brand);}
@media (prefers-reduced-motion: reduce){ .ev-row .pin-btn{transition:none;} }

/* ---------- Also on the site ---------- */
.two-links{grid-template-columns:repeat(auto-fit, minmax(250px, 1fr)); gap:16px; margin-top:16px;}
.link-card{align-items:flex-start; gap:14px; padding:20px; border:1px solid var(--line-soft); border-radius:16px; box-shadow:none;}
.link-card:hover{transform:none; box-shadow:none; border-color:var(--brand);}
.link-card .event-mark{width:40px; height:40px; color:var(--brand); background:color-mix(in srgb, var(--brand) 12%, var(--paper));}
.link-card b{font-family:var(--f-display); font-size:17px; font-weight:500; line-height:1.25;}
.link-card .lc-text > span:last-child{margin-top:4px; font-size:14.5px; line-height:1.45; color:var(--muted);}
@media (max-width:600px){ .two-links{grid-template-columns:minmax(0, 1fr); gap:10px;} .link-card{padding:16px;} }

footer{margin-top:56px; border-top-color:var(--line-soft);}
