/* The "Today" card and the folded exam breakdown. Uses brand tokens only. */

.hero p.sub{margin-bottom:16px;}

.today{
  background:var(--card); border:1.5px solid var(--card-border); border-radius:var(--radius);
  padding:16px 18px; margin-bottom:18px;
}
.today-top{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px;}
.today-kicker{font-family:'Baloo 2',sans-serif; font-weight:700; font-size:12.5px; letter-spacing:.6px; text-transform:uppercase; color:var(--soft);}
.today-days{font-size:12.5px; font-weight:700; color:var(--soft);}
.today-days b{font-family:'Baloo 2',sans-serif; font-size:15px; color:var(--purple-dark);}
:root[data-theme="dark"] .today-days b{color:var(--purple);}

.today-main{display:flex; align-items:center; gap:14px; margin-bottom:14px;}
.today-ring{position:relative; width:64px; height:64px; flex-shrink:0;}
.today-ring svg{transform:rotate(-90deg); display:block;}
.ring-track{fill:none; stroke:var(--card-border); stroke-width:7;}
.ring-fill{fill:none; stroke:var(--purple); stroke-width:7; stroke-linecap:round; transition:stroke-dashoffset .4s ease;}
.ring-pct{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:'Baloo 2',sans-serif; font-weight:800; font-size:15px; color:var(--purple-dark);}
:root[data-theme="dark"] .ring-pct{color:var(--purple);}
.today-text{display:flex; flex-direction:column; gap:1px; min-width:0;}
.today-text b{font-family:'Baloo 2',sans-serif; font-size:18px; line-height:1.25; color:var(--ink);}
.today-text span{font-size:13.5px; color:var(--soft);}

.today-continue{
  width:100%; display:flex; align-items:center; gap:12px; text-align:left; cursor:pointer;
  background:#6e549a; color:#fff; border:none; border-radius:12px; padding:12px 16px;
  font-family:'Nunito Sans',sans-serif;
}
/* Brand dark purple in both themes: keeps the small white text easy to read. */
.today-continue:hover{background:#5d4685;}
.today-continue:focus-visible{outline:3px solid var(--yellow); outline-offset:2px;}
.tc-text{flex:1; min-width:0; display:flex; flex-direction:column;}
.tc-label{font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; opacity:.85;}
.tc-title{font-family:'Baloo 2',sans-serif; font-weight:700; font-size:17px; line-height:1.25;}
.tc-meta{font-size:12.5px; opacity:.85; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.tc-go{font-size:22px; font-weight:800; background:rgba(255,255,255,.18); width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.today-finished{background:var(--purple-tint); border-radius:12px; padding:12px 14px; font-size:14px;}
.today-finished a{font-weight:800;}

/* Exam breakdown, folded by default */
details.exammeta{padding:0;}
details.exammeta > summary{
  list-style:none; cursor:pointer; padding:14px 18px; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px;
}
details.exammeta > summary::-webkit-details-marker{display:none;}
details.exammeta > summary::after{content:"+"; margin-left:auto; color:var(--purple); font-size:20px; font-weight:700; line-height:1;}
details.exammeta[open] > summary::after{content:"\2212";}
details.exammeta > summary h3{margin:0;}
.exammeta-hint{font-size:12.5px; color:var(--soft);}
details.exammeta[open]{padding-bottom:18px;}
details.exammeta > :not(summary){margin-left:20px; margin-right:20px;}
details.exammeta > summary:focus-visible{outline:2px solid var(--purple); outline-offset:-2px; border-radius:var(--radius);}

@media (max-width:600px){
  .today{padding:14px;}
  .today-text b{font-size:16.5px;}
  details.exammeta > :not(summary){margin-left:14px; margin-right:14px;}
  details.exammeta > summary{padding:12px 14px;}
}
@media (prefers-reduced-motion: reduce){ .ring-fill{transition:none;} }
