/* Adminsidans läge "training" (js/admin/training.js). Ägs av lägets paket, se docs/moduler-plan.md.
   Ljust tema: vita kort, blå rubriker, orange handling och streckad orange "kommer". */
.atr { margin-top: 4px; }
.atr-hero { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border-color, #d8dbe0);
    border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.04); margin-bottom: 16px; }
.atr-face { flex-shrink: 0; width: 88px; min-height: 61px; cursor: pointer; transform-origin: 50% 100%; }
.atr-face canvas { display: block; }
.atr-face.in { animation: atr-enter .7s cubic-bezier(.3,0,.3,1); }
.atr-face.hop { animation: atr-hop .6s cubic-bezier(.3,0,.3,1); }
@keyframes atr-enter { 0% { transform: translateY(40px) scale(.6); opacity: 0; } 60% { transform: translateY(-10px) scale(1.04,.96); opacity: 1; } 100% { transform: none; } }
@keyframes atr-hop { 0% { transform: scale(1.08,.9); } 40% { transform: translateY(-18px) scale(.95,1.06); } 75% { transform: scale(1.05,.94); } 100% { transform: none; } }
.atr-hero-text { min-width: 0; flex: 1; }
.atr-hero-text h2 { margin: 0 0 4px; font-size: 22px; color: var(--blue, #015e9f); }
.atr-hero-text p { margin: 0; color: #555; font-size: 15px; line-height: 1.45; }
.atr-bubble { display: inline-block; margin-top: 10px; position: relative; background: #f2f7fb; border: 2px solid var(--blue, #015e9f);
    border-radius: 14px; padding: 7px 12px; font-size: 14px; font-weight: 600; color: #0b2a44; }
.atr-bubble::before { content: ''; position: absolute; left: -9px; top: 12px; width: 12px; height: 12px; background: #f2f7fb;
    border-left: 2px solid var(--blue, #015e9f); border-bottom: 2px solid var(--blue, #015e9f); transform: rotate(45deg); }
.atr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.atr-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; background: #fff;
    border: 1px solid var(--border-color, #d8dbe0); border-radius: 14px; padding: 16px 16px 0; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: transform .15s, box-shadow .15s; }
.atr-card { cursor: pointer; }
.atr-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(1,30,60,.12); }
.atr-card:focus-visible { outline: 3px solid var(--blue, #015e9f); outline-offset: 2px; }
.atr-card.busy { opacity: .7; pointer-events: none; }
.atr-card--featured { border: 2px solid var(--accent, #f0833d); background: linear-gradient(180deg, #fff7f0 0, #fff 120px); }
.atr-card--featured h3 { font-size: 22px; }
.atr-badge.feat { border: 2px solid var(--accent, #f0833d); background: var(--accent, #f0833d); color: #fff; }
.atr-badge.board { border: 2px solid var(--blue, #015e9f); color: #fff; background: var(--blue, #015e9f); }
.atr-sublinks { display: flex; gap: 14px; flex-wrap: wrap; }
.atr-sublink { background: none; border: 0; padding: 6px 0; min-height: 36px; font: inherit; font-size: 14px; font-weight: 700;
    color: var(--blue, #015e9f); text-decoration: none; cursor: pointer; }
.atr-sublink:hover { text-decoration: underline; }
.atr-card-top { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.atr-badge { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
    border: 2px dashed var(--accent, #f0833d); color: #a8531c; background: #fff7f0; }
.atr-badge.done { border: 2px solid var(--blue, #015e9f); color: var(--blue, #015e9f); background: #e7f0f8; }
.atr-card h3 { margin: 0; font-size: 19px; color: var(--blue, #015e9f); line-height: 1.25; }
.atr-sum { margin: 0; font-size: 15px; color: #555; line-height: 1.45; }
.atr-meta { font-size: 14px; color: #666; }
.atr-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 6px 0 12px; font-size: 14px; }
.atr-prog { color: #666; }
.atr-go { color: #c9651f; font-weight: 800; }
.atr-bar { height: 5px; margin: 0 -16px; background: #edf0f3; }
.atr-bar > div { height: 100%; background: var(--accent, #f0833d); }
.atr-muted { color: #666; font-size: 15px; }
.atr-error { color: var(--danger, #d32f2f); font-weight: 700; margin-bottom: 10px; }
@media (max-width: 480px) {
    .atr-hero { padding: 12px; gap: 10px; }
    .atr-face { width: 64px; }
    .atr-face canvas { width: 64px !important; height: auto !important; }
    .atr-hero-text h2 { font-size: 19px; }
    .atr-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .atr-face.in, .atr-face.hop { animation: none; }
    .atr-card { transition: none; }
}
