/* A clock's own page (tools/templates/clock.html). Tokens from site.css;
   the story reuses the guide's classes from teach.css. */

.crumbs { padding-top: clamp(8px, 2vw, 20px); font-size: .875rem; color: var(--text-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "›"; margin: 0 .55em; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.clock-head { padding-top: clamp(28px, 5vw, 56px); }
.clock-head .headline { margin-bottom: .3em; }

/* Title role (DESIGN.md) */
.sc-title { font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.15;
  letter-spacing: -0.015em; margin: 0 0 12px; text-wrap: balance; }

/* the clock and its four steps */
.clock-teach { padding-block: clamp(32px, 5vw, 56px) 0; }
.teach-grid { display: grid; gap: 32px; align-items: start; }
.clock-stage { background: var(--surface-1); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); }
.clock-big { width: 100%; height: clamp(240px, 72vw, 380px); }
@media (min-width: 900px) {
  .teach-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 72px); }
  .clock-stage { position: sticky; top: 24px; }
  .clock-big { height: clamp(320px, 38vw, 460px); }
}

.howto-hint { margin: 0 0 16px; font-size: .9375rem; color: var(--text-2); }
.howto-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.howto-step {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 16px 16px; margin-inline: -16px; border-radius: var(--radius-md);
  transition: background-color .2s var(--ease);
}
.howto-step[tabindex] { cursor: pointer; }
.howto-step[aria-current] { background: var(--surface-1); }
.howto-step:focus-visible { outline-offset: 0; }
.howto-no {
  width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2); font: 500 .75rem/1 var(--font-mono);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.howto-step[aria-current] .howto-no { background: var(--text); color: var(--bg); font-weight: 700; }
.howto-text { margin: 0; font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.howto-calc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 8px 0 0; }
.howto-calc[hidden] { display: none; }
.howto-calc-label { font-size: .875rem; color: var(--text-3); }
.howto-calc-value { font: 500 1rem/1.4 var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.howto .roman-loc { margin-top: 24px; }

/* the story */
.clock-story { padding-block: clamp(56px, 8vw, 104px) 0; }
.story > * { max-width: calc(var(--measure) + 12rem); }
.story .guide-origin { font-size: 1.0625rem; }

/* the other fourteen */
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 24px;
  grid-template-columns: minmax(0, 1fr); }
@media (min-width: 740px) { .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .more-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more-link { display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--text); }
.more-link:hover { text-decoration: none; }
.more-link img { width: 48px; height: 48px; flex: none; border-radius: 22.4%; }
@supports (corner-shape: superellipse(1.6)) { .more-link img { corner-shape: superellipse(1.6); } }
.more-name { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.more-link:hover .more-name { text-decoration: underline; text-underline-offset: .18em; }
.more-tag { display: block; font-size: .875rem; line-height: 1.35; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  .howto-step, .howto-no { transition: none; }
}
