/* Private-view chrome shared by the Studio office and the Teacher Portal (Amber 2026-10-17: "carry the
   style and themes from the site but clearly as a private view"). The public site's palette, logo, type
   with the site's dark header (Amber 2026-10-17: no brown, no curved swag), marked by a teal "Private" tag, who is
   signed in, Home and Sign out. No public nav, no events banner, no marketing footer.
   Built by ofx.privateHeader() in office-ui.js. Also: toast, inline confirm, busy buttons. */

.ry-priv, .ry-priv-foot, .ofx-toast, .ofx-confirm, .ofx-ask {
  --pv-brown: #61534b; --pv-dark: #283232; --pv-cream: #E9E5E3; --pv-teal: #6EB4BD; --pv-deep: #1f5e66; --pv-red: #D63A39;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; box-sizing: border-box;
}
.ry-priv *, .ry-priv-foot * { box-sizing: border-box; }

/* header */
.ry-priv { background: #1e2828; color: #E9E5E3; position: relative; z-index: 20; text-align: left; border-bottom: 3px solid #6EB4BD; }
.ry-priv-in { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 64px; }
.ry-priv-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.ry-priv-brand img { height: 60px; width: auto; display: block; margin: -6px 0; }
.ry-priv-name { font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 600; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.ry-priv-lock { display: inline-flex; align-items: center; gap: 6px; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: #6EB4BD; border: 1.5px solid #6EB4BD; border-radius: 999px; padding: 2px 12px 2px 10px; white-space: nowrap; }
.ry-priv-lock svg { width: 15px; height: 15px; }
.ry-priv-sp { flex: 1 1 auto; }
.ry-priv-who { font-size: .9rem; color: #efe9e6; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.ry-priv-who b { color: #fff; font-weight: 600; }
.ry-priv-act { display: flex; gap: 8px; align-items: center; }
.ry-priv a.ry-priv-home, .ry-priv button.ry-priv-out {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 10px;
  font: 600 .98rem/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ry-priv a.ry-priv-home { background: #6EB4BD; color: #1a2626; border: 1px solid #6EB4BD; }
.ry-priv a.ry-priv-home:hover { background: #8ccbd3; border-color: #8ccbd3; color: #1a2626; }
.ry-priv button.ry-priv-out { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.ry-priv button.ry-priv-out:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.ry-priv a:focus-visible, .ry-priv button:focus-visible, .ry-priv-foot a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ry-priv svg.i { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) {
  .ry-priv-in { padding: 8px 16px 10px; gap: 8px 10px; }
  .ry-priv-brand img { height: 48px; margin: -4px 0; }
  .ry-priv-name { font-size: 1.1rem; }
  .ry-priv-sp { display: none; }
  .ry-priv-who { order: 5; flex: 1 1 100%; max-width: none; font-size: .85rem; }
  .ry-priv-act { order: 4; margin-left: auto; }
  .ry-priv a.ry-priv-home, .ry-priv button.ry-priv-out { padding: 0 12px; font-size: .92rem; }
}

/* curved hand-off from the header to the cream band, and from the band to the footer (as on the public site) */
.ry-curve { display: block; width: 100%; height: 40px; }
@media (max-width: 700px) { .ry-curve { height: 24px; } }

/* small private footer */
.ry-priv-foot { background: #283232; color: #c5cccb; text-align: center; padding: 20px 16px 28px; font-size: .9rem; line-height: 1.5; }
.ry-priv-foot a { color: #8ccbd3; }
.ry-priv-foot .lk { display: inline-flex; align-items: center; gap: 6px; font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #E9E5E3; }
.ry-priv-foot .lk svg { width: 14px; height: 14px; }

/* toast */
.ofx-toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); z-index: 60;
  display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 24px)); text-align: left;
  background: #283232; color: #E9E5E3; border-radius: 14px; padding: 8px 8px 8px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28); font-size: 1rem; line-height: 1.4; transition: transform .2s ease; visibility: hidden;
}
.ofx-toast.on { transform: translate(-50%, 0); visibility: visible; }
.ofx-toast.bad { box-shadow: inset 5px 0 0 #D63A39, 0 8px 28px rgba(0,0,0,.28); }
.ofx-toast .m { flex: 1; min-width: 0; }
.ofx-toast button { font: 600 .98rem/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; min-height: 44px; border-radius: 10px; cursor: pointer; margin: 0; }
.ofx-toast .u { background: #6EB4BD; border: 0; color: #1a2626; padding: 0 16px; }
.ofx-toast .x { background: none; border: 0; color: #c5cccb; font-size: 1.5rem; min-width: 44px; padding: 0; }
@media (prefers-reduced-motion: reduce) { .ofx-toast { transition: none; } }

/* inline confirm and inline ask */
.ofx-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 12px; background: #FBE3E2; color: #4a1515; vertical-align: middle; }
.ofx-confirm .q { font-weight: 600; }
.ofx-confirm button { min-height: 44px; border-radius: 10px; padding: 0 16px; font: 600 .98rem/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; cursor: pointer; margin: 0; }
.ofx-confirm .y { background: #1f5e66; color: #fff; border: 1px solid #1f5e66; }
.ofx-confirm .y.danger-fill { background: #D63A39; border-color: #D63A39; }
.ofx-confirm .n { background: #fff; color: #283232; border: 1px solid #8c9594; }
.ofx-ask { background: #EFEBE8; border-radius: 12px; padding: 12px; margin: 8px 0; text-align: left; color: #283232; }
.ofx-ask label span { display: block; font-weight: 600; margin-bottom: 6px; }
.ofx-ask textarea { width: 100%; font: inherit; font-size: 16px; border: 1px solid #8c9594; border-radius: 10px; padding: 8px 12px; min-height: 88px; }
.ofx-ask .btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ofx-ask .btns button { min-height: 44px; border-radius: 10px; padding: 0 16px; font: 600 .98rem/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; cursor: pointer; }
.ofx-ask .btns .s { background: #1f5e66; color: #fff; border: 1px solid #1f5e66; }
.ofx-ask .btns .c { background: transparent; color: #283232; border: 1px solid #8c9594; }

/* busy: the pressed button while its request runs */
button.is-busy { cursor: progress; }
button.is-busy::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .45em; vertical-align: -.1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ofx-spin .7s linear infinite; }
@keyframes ofx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button.is-busy::after { animation-duration: 2.5s; } }

.ry-has-ask .ofx-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

html:has(#ry-private-foot) { background: #283232; }

[hidden] { display: none !important; }

.ry-has-ask .ry-priv-foot { padding-bottom: 88px; }

/* Teacher Portal intro (sign-in screen), in the cream band */
.hero.tp-intro { background: none; padding: 8px 0 24px; text-align: center; overflow: visible; }
.hero.tp-intro .eyebrow { color: #1f5e66; }
.hero.tp-intro h1 { color: #283232; font-size: clamp(2rem, 6vw, 2.8rem); margin: 4px 0 12px; }
.hero.tp-intro .subtitle { color: #3d4a4a; opacity: 1; max-width: 600px; margin: 0 auto; }
body:has(#ry-private) main.band-cream.section { padding-top: 24px; }

/* the Teacher Portal has its own Sign out button; the private header carries it now */
body:has(#ry-private .ry-priv-out:not([hidden])) #tp-out { display: none !important; }
