/* ==========================================================================
   Student portal UX round 1 (22 Nov 2026)
   Home: progress + Continue first, then 3 quick actions, then today's tip.
   Everything else stays, folded lower down. Same white + emerald look.
   Loaded after student-dash.css and portal-mobile.css.
   ========================================================================== */

/* ---------- Quick actions: Practice Books · Ask Zena · Classroom ---------- */
body.tp-app .tp-q{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
body.tp-app .tp-q-btn{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 14px;border:1px solid var(--d-line);border-radius:16px;background:#fff;color:var(--d-ink);font-family:var(--body);text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}
body.tp-app .tp-q-btn:hover{border-color:var(--d-em-line);box-shadow:0 10px 24px -20px rgba(10,125,91,.6)}
body.tp-app .tp-q-ic{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--d-em-soft);color:var(--d-em-2)}
body.tp-app .tp-q-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.tp-app .tp-q-t{display:flex;flex-direction:column;gap:2px;min-width:0}
body.tp-app .tp-q-t b{font:800 15px/1.25 var(--body);display:flex;align-items:center;gap:6px}
body.tp-app .tp-q-t b svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
body.tp-app .tp-q-t small{font-size:12.5px;line-height:1.35;color:var(--d-mut)}

/* ---------- Today's QuickBooks tip ---------- */
body.tp-app .tp-tip{background:#fff;border:1px solid var(--d-line);border-left:4px solid var(--d-em);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
body.tp-app .tp-tip[hidden]{display:none}
body.tp-app .tp-tip-k{font:800 12px/1.2 var(--body);letter-spacing:.04em;text-transform:uppercase;color:var(--d-em-ink)}
body.tp-app .tp-tip h3{margin:0;font:800 17px/1.35 var(--body);color:var(--d-ink)}
body.tp-app .tp-tip p{margin:0;font-size:14.5px;line-height:1.6;color:var(--d-ink)}
body.tp-app .tp-tip .tp-tip-why{color:var(--d-mut)}
body.tp-app .tp-tip .tp-d-link{align-self:flex-start;min-height:44px}

/* ---------- Lilly: a small card, not a pop-up ---------- */
body.tp-app .tp-d-news--lilly{background:#fff;border-color:var(--d-line)}
body.tp-app .tp-d-news-pic{background:none!important;overflow:hidden;padding:0}
body.tp-app .tp-d-news-pic img{width:40px;height:40px;object-fit:cover;object-position:center 20%;border-radius:12px;display:block}

/* ---------- Folded sections (progress, calendar, course path) ---------- */
body.tp-app .tp-d-fold{gap:0!important}
body.tp-app .tp-d-fold > summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;border-radius:10px}
body.tp-app .tp-d-fold > summary::-webkit-details-marker{display:none}
body.tp-app .tp-d-fold > summary > span{display:flex;flex-direction:column;gap:3px;min-width:0}
body.tp-app .tp-d-fold > summary b{font:800 16px/1.3 var(--body);color:var(--d-ink)}
body.tp-app .tp-d-fold > summary small{font-size:13px;line-height:1.4;color:var(--d-mut)}
body.tp-app .tp-d-fold > summary::after{content:"";flex:none;width:10px;height:10px;border-right:2px solid var(--d-em-2);border-bottom:2px solid var(--d-em-2);transform:rotate(45deg);margin:-4px 6px 0 0;transition:transform .15s}
body.tp-app .tp-d-fold[open] > summary::after{transform:rotate(-135deg);margin-top:4px}
body.tp-app .tp-d-fold[open] > summary{margin-bottom:14px}
body.tp-app .tp-d-fold .tp-n-track{margin:0}

/* ---------- Keyboard focus: clear emerald ring everywhere in the portal ---------- */
body.tp-app :is(button,a,summary,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--d-em,#12B886)!important;outline-offset:2px!important}
body.tp-app .tp-appbar-nav > button:focus-visible{outline-offset:-3px!important}
body.tp-app .tp-modal .tp-x{min-width:44px;min-height:44px}

/* ---------- Phones ---------- */
@media (max-width:760px){
  body.tp-app .tp-q{gap:8px}
  body.tp-app .tp-q-btn{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;min-height:84px;padding:10px 6px;border-radius:14px}
  body.tp-app .tp-q-ic{flex-basis:auto}
  body.tp-app .tp-q-t b{font-size:13.5px;justify-content:center}
  body.tp-app .tp-q-t small{display:none}
  body.tp-app .tp-tip{padding:14px}
  body.tp-app .tp-tip h3{font-size:16px}
  /* Bottom tab bar: each item is at least 44px wide and tall */
  body.tp-app .tp-appbar-nav > button{min-height:44px;min-width:44px}
}
