/* On Easy app — the student's home site. The bottom-left button (footer of the home column) and the
   full-screen page it opens. Uses the app's tokens (member.css / os.css): --bg, --panel, --ink, --dim,
   --rule, --accent, --rim, --rim-hot, --focus, --radius, --pill. Reuses hud.css for the numbers and the sparkline. */

/* the button: footer of the home column. Laptop: bottom of the left column. Phone: bottom of the home screen,
   above the safe-area inset; it leaves with the home screen when a thread opens, so it never sits on the compose bar. */
.oe-home-foot { flex: none; padding: 0.5rem 1rem calc(0.75rem + var(--oe-sab)); border-top: 1px solid var(--rule); background: var(--bg); }
.oe-home-site-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%; min-height: 2.5rem; cursor: pointer;
  border: 1px solid var(--rule); background: var(--panel); color: var(--ink); border-radius: var(--pill);
  padding: 0.3rem 0.95rem 0.3rem 0.35rem; font: inherit; font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em;
}
.oe-home-site-btn img { width: 1.75rem; height: 1.75rem; border-radius: 50%; flex: none; }
.oe-home-site-btn span { min-width: 0; max-width: 13rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oe-home-site-btn:hover { border-color: #f4f4f72e; }
.oe-home-site-btn[aria-expanded="true"] { border-color: var(--rim-hot); color: #fff; box-shadow: 0 0 18px #7c5cff33; }
.oe-home-site-btn:focus-visible, #home-site :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* the page: takes the whole screen, over the shell and the course column, under nothing */
#home-site {
  position: fixed; inset: 0; z-index: 25; overflow: auto; background: var(--bg); color: var(--ink);
  padding: calc(0.9rem + var(--oe-sat)) max(1rem, var(--oe-sar)) calc(1.5rem + var(--oe-sab)) max(1rem, var(--oe-sal));
}
.oe-site-wrap { max-width: 40rem; margin: 0 auto; display: grid; gap: 1rem; }
.oe-site-head { display: flex; align-items: flex-start; gap: 0.75rem; }
.oe-site-titles { flex: 1; min-width: 0; display: grid; gap: 0.3rem; }
.oe-site-eyebrow { margin: 0; color: var(--dim); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }
.oe-site-title { margin: 0; font-size: clamp(1.6rem, 6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.oe-site-progress { margin: 0; }
.oe-site-close { flex: none; width: 2.15rem; height: 2.15rem; font-size: 1.15rem; }

.oe-site-section { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); padding: 0.9rem 1rem; display: grid; gap: 0.5rem; min-width: 0; }
.oe-site-section .kicker { margin: 0; }
.oe-site-h3 { margin: 0.4rem 0 0; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.oe-site-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.85rem; margin: 0; font-size: 0.94rem; line-height: 1.45; }
.oe-site-dl dt { color: var(--dim); font-size: 0.8rem; padding-top: 0.15rem; }
.oe-site-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.oe-site-lines, .oe-site-facts { margin: 0; padding-left: 1.3rem; font-size: 0.92rem; line-height: 1.5; }
.oe-site-lines li, .oe-site-facts li { margin: 0 0 0.25rem; overflow-wrap: anywhere; }
.oe-site-table-wrap { overflow-x: auto; max-width: 100%; }
.oe-site-table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.oe-site-table th, .oe-site-table td { text-align: left; padding: 0.35rem 0.55rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.oe-site-table th { color: var(--dim); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.oe-site-counts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.oe-site-count { display: flex; flex-direction: column; gap: 0.1rem; min-width: 5rem; padding: 0.5rem 0.7rem; border: 1px solid var(--rule); border-radius: 0.85rem; }
.oe-site-count strong { font-size: 1.15rem; line-height: 1.1; }
.oe-site-count span { color: var(--dim); font-size: 0.75rem; }
.oe-site-publish { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.25rem 0.15rem; min-width: 0; }
.oe-site-publish .oe-hint { margin: 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: no-preference) {
  #home-site { animation: oe-site-in 0.18s ease-out; }
  @keyframes oe-site-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .oe-home-site-btn { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
}
@media (min-width: 900px) {
  .oe-site-dl { grid-template-columns: 8rem 1fr; }
}
