/* class3-math-GM-ch13-t7.css : Tier 7 "The year" only (month tiles, week blocks, year cards).
   Shared look (pictures, chips, drag-and-drop cards): class3-math-GM-ch13-common.css */

/* ---------------- A Year at a Glance: tap the month tiles ---------------- */
.tg-overlay .tg-mt { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tg-overlay .tg-mt rect:first-of-type { transition: fill .15s ease, stroke .15s ease; }
.tg-overlay .tg-mt.on rect:first-of-type, .tg-overlay .tg-mt.ok rect:first-of-type { fill: #9BEBB9; stroke: #2FB36A; }
.tg-overlay .tg-mt.bad rect:first-of-type { fill: #FFB8AA; stroke: #E5604D; }
.tg-overlay .tg-mt.hl rect:first-of-type { fill: #FFE27A; stroke: #E5A100; }

/* ---------------- Weeks in a Year: week blocks pop in one by one ---------------- */
.tg-overlay .tg-wkpop { animation: tgWkPop .35s ease both; transform-box: fill-box; transform-origin: center; }
@keyframes tgWkPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tg-overlay .tg-wkpop { animation: none; } }
.tg-overlay .tg-qrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px auto 2px; max-width: 600px; }
.tg-overlay .tg-qbtn {
    min-height: 46px; padding: 4px 2px; border-radius: 12px; border: 2px solid #3F8FE0; cursor: pointer; touch-action: manipulation;
    font: inherit; font-weight: 800; font-size: clamp(11px, 3.2vw, 15px); line-height: 1.1; color: #fff;
    background: linear-gradient(180deg, #7CC6FF, #3F8FE0); box-shadow: 0 3px 0 #2F86D6;
}
.tg-overlay .tg-qbtn:disabled, .tg-overlay .tg-qbtn.on { background: linear-gradient(180deg, #DDFBE8, #9BEBB9); border-color: #2FB36A; color: #145A36; box-shadow: 0 3px 0 #2FB36A; cursor: default; }

/* ---------------- Two Calendars: the two year cards above the Same / Changes boxes ---------------- */
.tg-overlay .tg-yrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.tg-overlay .tg-yr { padding: 8px 6px; border-radius: 16px; text-align: center; border: 2px solid #CFC6F5; box-shadow: 0 3px 0 #CFC6F5; display: flex; flex-direction: column; gap: 2px; }
.tg-overlay .tg-yr.a { background: linear-gradient(180deg, #E6F4FF, #BFE3FF); border-color: #69BBFF; box-shadow: 0 3px 0 #69BBFF; }
.tg-overlay .tg-yr.b { background: linear-gradient(180deg, #E4FBEF, #B6F0CF); border-color: #62D9B8; box-shadow: 0 3px 0 #62D9B8; }
.tg-overlay .tg-yr b { font-size: 22px; color: #2A2858; }
.tg-overlay .tg-yr span { font-size: 12.5px; font-weight: 800; color: #3E3480; line-height: 1.2; }
