/* polish.css - calmer motion and small touch fixes. Loaded last, so removing its <link> in index.html undoes all of it. */

/* buttons sit still until pressed: no breathing glow on the main button, no bounce after a tap */
.primary.wide, #next:not([hidden]), #check-online:not([hidden]) { animation: none; }
button, .button, a.other, .ol-opt, .pa, .ptile { transition: transform .12s ease-out, box-shadow .12s ease-out, background-color .2s, border-color .2s; }
.chip.on, .chips button.tagged { animation: none; }

/* empty-state headlines match the weight of every other heading */
.hsc-big, .pg-big { font-weight: 800; }
.hsc-big.muted { font-size: clamp(30px, 6vw, 44px); }

/* phone: all five profile tabs fit without a hidden scroll */
@media (max-width: 640px) { .pf-tabs button { padding: 9px 8px; font-size: .88rem; } }

/* touch screens: the small text buttons get a finger-sized hit area */
@media (pointer: coarse) {
  #fr-open, .daily-mode, #pr-opts-btn, #pred-reset, #tu-end, .atar-x { display: inline-flex; align-items: center; min-height: 40px; }
  #view-practise .tp-more { min-height: 40px; }
}

/* last week card */
.wk-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px 20px; margin: 16px 0; }
.wk-head { display: flex; align-items: center; justify-content: space-between; }
.wk-head .sec { margin: 0; }
.wk-x { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted, #888); cursor: pointer; padding: 4px 8px; min-height: 0; box-shadow: none; }
.wk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin: 12px 0 14px; }
.wk-stats b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.wk-stats b.wk-t { font-size: 1.05rem; line-height: 1.25; }
.wk-stats span { font-size: .85rem; color: var(--muted, #777); }
.wk-up { color: #1e8e5a; font-weight: 700; }
.wk-down { color: #c0392b; font-weight: 700; }
/* fix my mistakes: draw the eye when something is due */
#drill-wrong.fix-due #wrong-sub { color: var(--accent, #e8590c); font-weight: 600; }

/* guests browsing papers with no account */
.guest-top { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.guest-top select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); font: inherit; max-width: 46vw; }
.guest-top .primary, .guest-top .link { padding: 8px 14px; white-space: nowrap; }
.guest-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 14px 16px; margin: 12px 0; }
.guest-cta span { font-size: .95rem; }
@media (max-width: 640px) { .guest-cta { flex-direction: column; align-items: stretch; } .guest-top #guest-in { display: none; } }

/* Settings page: the account menu laid out as a page instead of a dropdown */
#account-menu.as-page { position: static; display: block; min-width: 0; max-width: 560px; box-shadow: none; animation: none; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 10px 14px; margin-top: 8px; }
#account-menu.as-page .menu-sec { padding: 10px 0; }
#account-menu.as-page .menu-label { margin: 2px 4px 6px; }
#account-menu.as-page .menu-item { padding: 12px 10px; font-size: 1rem; }
#account-menu.as-page .menu-email { margin: 4px 4px 8px; }
#account-menu.as-page .menu-email:empty { display: none; }
#account-menu.as-page .menu-email:empty + .menu-sec { border-top: 0; }
