/* Shared styles for the exam countdown pages (/exams/) and timer pages (/timers/). */
.t-btn[hidden], .t-clock[hidden] { display: none; }
.t-box { background: var(--st-soft); border-radius: 14px; padding: 20px; margin: 16px 0 20px; text-align: center; }
.t-next { font-weight: 600; color: #333; margin-bottom: 12px; }
.t-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.t-clock div { background: #fff; border-radius: 10px; padding: 10px 2px; }
.t-clock b { display: block; font-size: clamp(1.35rem, 6vw, 2.2rem); color: var(--st-accent); line-height: 1.15; font-variant-numeric: tabular-nums; }
.t-clock span { font-size: 0.72rem; color: #777; text-transform: uppercase; letter-spacing: 0.04em; }
main p.t-tz { font-size: 0.82rem; color: #666; margin-bottom: 14px; }
.t-btn { display: inline-block; font: inherit; font-weight: 600; font-size: 0.95rem; background: var(--st-accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 20px; cursor: pointer; text-decoration: none; }
.t-btn:hover { background: var(--st-accent-dark); }
.t-btn.ghost { background: #fff; color: var(--st-accent); box-shadow: inset 0 0 0 2px var(--st-accent); }
.t-btn.ghost:hover { background: var(--st-soft); }
.t-btn:focus-visible, .t-round:focus-visible { outline: 3px solid #222; outline-offset: 2px; }
.t-note { background: #fff8e1; border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
main .t-note p { margin: 0; color: #5d4a12; font-size: 0.9rem; }
.t-table { overflow-x: auto; margin: 8px 0 14px; }
.t-table table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.t-table th, .t-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; color: #444; }
.t-table th { color: #222; font-weight: 600; }
.t-budget { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 0.97rem; color: #444; }
.t-budget input { width: 76px; font: inherit; padding: 6px 8px; border: 1px solid #ccc; border-radius: 8px; color: #222; }
main p.t-out { font-weight: 600; color: var(--st-accent); }
.t-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
main .t-links li { margin: 0; }
.t-links a { display: inline-block; background: var(--st-soft); padding: 5px 12px; border-radius: 99px; font-size: 0.88rem; text-decoration: none; }

/* Timer widget */
.t-mode { font-weight: 600; color: #333; margin-bottom: 10px; }
.t-ring { position: relative; width: min(250px, 66vw); aspect-ratio: 1; margin: 0 auto 16px; }
.t-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.t-ring .track { stroke: rgba(0, 0, 0, 0.1); }
.t-ring .bar { stroke: var(--st-accent); transition: stroke-dashoffset 0.4s linear; }
.t-digits { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(2.6rem, 13vw, 3.6rem); font-weight: 700; color: var(--st-accent); font-variant-numeric: tabular-nums; }
.t-controls { display: flex; justify-content: center; align-items: center; gap: 10px; }
.t-controls .t-btn { min-width: 130px; letter-spacing: 1px; }
.t-round { font: inherit; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--st-accent); cursor: pointer; font-size: 1rem; }
main p.t-count { font-size: 0.88rem; color: #555; margin: 14px 0 0; }

/* Notion embed builder */
.t-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-bottom: 12px; text-align: left; }
.t-form label { display: block; font-size: 0.85rem; font-weight: 600; color: #333; margin-bottom: 3px; }
.t-form select, .t-url input { width: 100%; font: inherit; font-size: 0.9rem; padding: 8px; border: 1px solid #ccc; border-radius: 8px; color: #222; background: #fff; }
.t-url { display: flex; gap: 8px; margin-bottom: 14px; }
.t-url input { flex: 1; min-width: 0; }
.t-url .t-btn { flex: none; }
.t-preview { width: 100%; height: 400px; border: 0; border-radius: 10px; display: block; }
