/* A time's page (mtc-time.php): its own look, worked out from the time. The band of the sky
   (.tp--dawn, .tp--dusk …) and the layout (.tp--watch, .tp--desk, .tp--pocket, .tp--station) come
   as classes; the colours, the sun's place, the light and the clock's pose as custom properties on
   <main> (mtc_tp_style()). Words always sit on a plain panel; gradients only ever paint skies,
   metal, wood and glass. Nothing here moves for a reader who asks for less motion. */

.tp { --ink-2: #3F444A; --ink-3: #464B52; --plate-r: 6px; }
@media (prefers-color-scheme: dark) { .tp { --ink-2: #CDD2C4; --ink-3: #C2C8B8; } }

/* ---- Hero: the band's own colour, the sky in one of three places --------------------------- */

.tp-hero { position: relative; background: var(--hero); color: var(--h-ink); padding: 0 0 26px; overflow: hidden; }
.tp-hero__in { position: relative; padding-top: 18px; }
.tp-hero .crumbs ol { font-size: 15px; color: var(--h-ink2); }
.tp-hero .crumbs a { color: var(--h-ink2); text-decoration: underline; text-decoration-thickness: 1px; }
.tp-hero .crumbs li + li::before { color: var(--h-ink2); }
.tp-hero__head { display: flex; gap: 16px 22px; align-items: flex-start; }
.tp-hero__words { flex: 1 1 auto; min-width: 0; }
.tp-eyebrow { margin: 6px 0 4px; font: 700 15px/1.2 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--h-ink2); }
.tp-title { color: var(--h-ink); font-size: clamp(36px, 9.6vw, 74px); line-height: .98; margin: 0; }
.tp-kicker { margin: 14px 0 0; max-width: 34em; font-size: 19px; line-height: 1.45; color: var(--h-ink); padding-left: 14px; border-left: 4px solid var(--acc); }
.tp-lede.lede { color: var(--h-ink2); font-size: 18px; margin-top: 12px; }
.tp-hero .mtc-figure { margin: 18px 0 0; border: 0; border-radius: var(--plate-r); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .7); }
.tp-hero .mtc-figure figcaption, .tp .mtc-figure figcaption { font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) {
	.tp-hero__in { max-width: 980px; }
	.tp-hero .mtc-figure { max-width: 880px; }
	.tp-lede.lede { font-size: 20px; }
}

/* The sky: flat layers, top to horizon, like a printed poster; the ground; the sun on its path. */
.tp-sky { position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--sky1) 0 26%, var(--sky2) 26% 47%, var(--sky3) 47% 64%, var(--sky4) 64% 100%); }
.tp-sky__ground { position: absolute; left: -20%; right: -20%; bottom: 0; height: 24%; background: var(--ground); border-radius: 50% 50% 0 0 / 34% 34% 0 0; z-index: 2; }
.tp-sky__path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.tp-sky__path path { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.5; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.tp-sun { position: absolute; left: var(--sun-x); bottom: 0; top: 0; width: 0; z-index: 1; transition: left 1.7s cubic-bezier(.45, 0, .3, 1); }
.tp-sun__b { position: absolute; left: 0; bottom: var(--sun-b); transition: bottom 1.7s cubic-bezier(.15, .75, .3, 1); }
.tp-sun__disc { position: absolute; width: 34px; height: 34px; left: -17px; bottom: -17px; border-radius: 50%; background: var(--sun);
	box-shadow: 0 0 0 7px color-mix(in srgb, var(--sun) 32%, transparent), 0 0 0 15px color-mix(in srgb, var(--sun) 14%, transparent); }
.tp-sky.is-down .tp-sky__path path { stroke: rgba(233, 227, 204, .26); }
/* The moon after dark: a full moon where it would be, opposite the sun, lit pale with its seas. */
.tp-moon { left: var(--moon-x); }
.tp-moon .tp-sun__b { bottom: var(--moon-b); }
.tp-moon__disc { position: absolute; width: 30px; height: 30px; left: -15px; bottom: -15px; border-radius: 50%;
	background: radial-gradient(circle at 64% 38%, rgba(150, 142, 116, .45) 0 11%, transparent 12%), radial-gradient(circle at 40% 62%, rgba(150, 142, 116, .38) 0 15%, transparent 16%), radial-gradient(circle at 34% 34%, #FFFCEF 0 22%, #ECE6CF 58%, #CDC3A2 100%);
	box-shadow: 0 0 0 6px rgba(236, 230, 207, .1), 0 0 0 13px rgba(236, 230, 207, .05); }
.tp-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #EDE6CC; opacity: .7; }
.tp-star.is-big { width: 3px; height: 3px; opacity: .95; box-shadow: 0 0 3px rgba(237, 230, 204, .6); }

.tp-sky--band { height: 118px; }
.tp-sky--port { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; margin-top: 30px; box-shadow: 0 0 0 5px var(--h-ink2), 0 0 0 11px color-mix(in srgb, var(--hero) 70%, #000); }
.tp-sky--port .tp-sun__disc, .tp-sky--port .tp-moon__disc { width: 22px; height: 22px; left: -11px; bottom: -11px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--sun) 30%, transparent); }
/* An arched window (the desk clock's pages): a wide pane with a round top, in a wooden frame. */
.tp-sky--arch { height: 112px; margin: 14px 0 4px; border-radius: 160px 160px 5px 5px / 112px 112px 5px 5px; box-shadow: 0 0 0 5px #6C462A, 0 0 0 8px #3D2614, 0 12px 26px -16px rgba(0, 0, 0, .7); }
.tp-sky--arch::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #6C462A; z-index: 4; }
/* A dome (the pocket watch's pages): half a sky, beside the big digits. */
.tp-sky--dome { flex: 0 0 auto; width: min(92px, 25vw); aspect-ratio: 23 / 12.5; align-self: flex-end; border-radius: 999px 999px 4px 4px; box-shadow: 0 0 0 4px var(--lcd), 0 0 0 6px var(--lcd-edge); }
/* In a round frame the sun and moon keep clear of the curved edge. */
.tp-sky--dome .tp-sun, .tp-sky--port .tp-sun { left: calc(14% + var(--sun-x) * .72); }
.tp-sky--dome .tp-moon, .tp-sky--port .tp-moon { left: calc(14% + var(--moon-x) * .72); }
.tp-sky--dome .tp-sun__disc, .tp-sky--dome .tp-moon__disc { width: 18px; height: 18px; left: -9px; bottom: -9px; }
@media (min-width: 900px) {
	.tp-sky--band { height: 150px; }
	.tp-sky--port { width: 210px; height: 210px; margin-top: 10px; }
	.tp-sky--port .tp-sun__disc, .tp-sky--port .tp-moon__disc { width: 34px; height: 34px; left: -17px; bottom: -17px; }
	.tp-sky--arch { flex: 0 0 250px; order: 2; height: 300px; margin: 6px 6px 0 0; border-radius: 125px 125px 6px 6px; }
	.tp-sky--dome { width: 250px; }
	.tp-sky--dome .tp-sun__disc, .tp-sky--dome .tp-moon__disc { width: 30px; height: 30px; left: -15px; bottom: -15px; }
}

/* Layouts of the hero. */
.tp--desk .tp-hero__head { flex-direction: column; gap: 10px; }
.tp--desk .tp-sky--arch { align-self: stretch; }
.tp--desk .tp-hero__words { padding-left: 16px; border-left: 8px solid var(--acc); }
.tp--desk .tp-kicker { border-left: 0; padding-left: 0; }
@media (min-width: 900px) { .tp--desk .tp-hero__head { flex-direction: row; align-items: flex-start; gap: 34px; } .tp--desk .tp-sky--arch { align-self: flex-start; } }
.tp--station .tp-hero__head { display: block; }
.tp--station .tp-sky--port { float: right; width: 92px; height: 92px; margin: 26px 2px 8px 14px; }
@media (min-width: 900px) {
	.tp--station .tp-hero__head { display: flex; align-items: center; }
	.tp--station .tp-sky--port { float: none; order: 2; width: 210px; height: 210px; margin: 10px 8px 0 0; }
}
.tp--station .tp-title { font-size: clamp(34px, 8.6vw, 70px); }
.tp-bigdigits { display: none; }
.tp--pocket .tp-hero__head { flex-direction: column; gap: 6px; }
.tp-hero__face { display: flex; align-items: flex-end; gap: 12px; margin: 8px 0 2px; }
.tp--pocket .tp-hero__face .tp-bigdigits { margin: 0; font-size: clamp(46px, 14.5vw, 132px); }
.tp--pocket .tp-bigdigits { display: inline-flex; gap: .18em; margin: 8px 0 2px; padding: 10px 16px 8px; background: var(--lcd); border-radius: 8px; font: 400 clamp(54px, 17vw, 132px)/1 var(--seg); color: var(--amber); box-shadow: inset 0 0 0 2px var(--lcd-edge); }
.tp-bigdigits span { display: inline-block; transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s; }
.tp-bigdigits__m { color: #EDE8D6; transition-delay: .12s; }
@media (min-width: 900px) {
	.tp--pocket .tp-hero__head { gap: 14px; }
	.tp-hero__face { gap: 24px; }
	.tp--watch .tp-title { font-size: clamp(48px, 6.6vw, 82px); }
}

/* ---- The answer --------------------------------------------------------------------------- */

.tp-answer { padding: 22px 0 6px; }
.tp .mtc-conv__hint { font-size: 15px; color: var(--ink-2); }
.tp .mtc-tag { font-size: 15px; color: var(--ink-2); }
.tp .mtc-readout__mil .mtc-tag { color: #B5BCA6; }
.tp .mtc-readout__facts dt, .tp .mtc-daybar__ticks, .tp .mtc-btn--say { font-size: 15px; color: var(--ink-2); }
.tp .mtc-btn--say { color: var(--link); }

/* ---- Body: the rail of small maps beside the parts ------------------------------------------- */

.tp-body { padding-top: 18px; padding-bottom: 40px; }
@media (min-width: 1080px) {
	.tp-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
	.tp-rail { grid-column: 1; align-self: stretch; }
	.tp-flow { grid-column: 2; min-width: 0; }
}
.tp-rail__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; }
@media (min-width: 1080px) { .tp-rail__in { position: sticky; top: 14px; grid-template-columns: 1fr; gap: 12px; } }
.tp-mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--plate-r); padding: 12px; font-size: 15px; line-height: 1.35; color: var(--ink); }
.tp-mini p { margin: 8px 0 0; }
.tp-mini a { color: var(--link); }
.tp-mini--day { grid-row: span 1; text-align: center; }
.tp-mini--world { grid-column: 1; }
.tp-mini--read { grid-column: 2; grid-row: 1 / span 2; }
@media (min-width: 1080px) { .tp-mini--read, .tp-mini--world { grid-column: 1; grid-row: auto; } }
.tp-ring { display: block; margin: 0 auto; width: 128px; height: 128px; }
@media (min-width: 1080px) { .tp-ring { width: 156px; height: 156px; } }
.tp-ring__pin { fill: var(--ink); }
.tp-ring circle.tp-ring__day { fill: none; stroke: #F0C66A; stroke-width: 14; }
.tp-ring .tp-ring__night { fill: none; stroke: #263039; stroke-width: 14; }
.tp-ring text { font: 700 19px/1 var(--cond); fill: var(--ink); text-anchor: middle; }
.tp-ring__hand { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.tp-ring__dot { fill: var(--amber); stroke: var(--ink); stroke-width: 3; }
.tp-wmini { display: grid; grid-template-columns: repeat(25, 1fr); gap: 1px; height: 30px; }
.tp-wmini i { display: block; background: #2B3540; border-radius: 1px; }
.tp-wmini i.is-day { background: #F0C66A; }
.tp-wmini i.is-z { outline: 2px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; }
.tp-mini__title { margin: 0 0 6px !important; font: 700 15px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.tp-mini--read ol { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.tp-mini--read li { counter-increment: r; }
.tp-mini--read a { display: flex; gap: 8px; align-items: stretch; padding: 3px 0; color: var(--ink); text-decoration: none; }
.tp-mini--read a:hover span { text-decoration: underline; }
.tp-mini--read i { flex: 0 0 6px; min-height: 18px; height: var(--h, 18px); border-radius: 2px; background: var(--line-2); transition: height .4s; }
.tp-mini--read span::before { content: counter(r, decimal-leading-zero) " "; font: 700 15px/1 var(--cond); color: var(--ink-2); }
.tp-mini--read a.is-here span { font-weight: 700; }
.tp-mini--read i { background: var(--rc, var(--line-2)); box-shadow: inset 0 0 0 1px rgba(21, 23, 26, .4); }
@media (prefers-color-scheme: dark) { .tp-mini--read i { box-shadow: inset 0 0 0 1px rgba(236, 238, 230, .45); } }
.tp-mini--read a.is-here i { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 2px var(--ink); }

/* ---- The parts: each on its own plate of colour --------------------------------------------- */

.tp-sec { margin: 0 0 18px; padding: 22px 16px 24px; border-radius: var(--plate-r); background: var(--surface); color: var(--ink); scroll-margin-top: 12px; }
@media (min-width: 600px) { .tp-sec { padding: 32px 34px 34px; margin-bottom: 22px; } }
.tp-sec h2 { font-size: clamp(28px, 6.6vw, 44px); text-transform: uppercase; letter-spacing: .005em; margin: 0 0 14px; color: inherit; }
.tp-sec__num { margin: 0 0 6px; font: 700 15px/1 var(--cond); letter-spacing: .16em; color: inherit; }
.tp-sub { font-size: 25px; text-transform: uppercase; margin: 28px 0 10px; color: inherit; }
.tp-intro { max-width: 40em; font-size: 17px; }
.tp-fine { font-size: 15px; }
.tp-sec p { max-width: 42em; }
.tp-sec a { color: inherit; }
.tp-sec a:hover { color: inherit; text-decoration-thickness: 2px; }

.tp-sec--object { background: var(--hero); color: var(--h-ink); }
.tp-sec--object .tp-fine { color: var(--h-ink2); }
/* Every other part sits on its own plate, chosen from the time (mtc_time_look()): its panel and two
   inks come as --pl, --pi and --pi2, each ink 7:1 or better on its panel. What a part draws inside
   (cards, tables, the zone tray) keeps its own panel, so it reads on any plate. */
.tp-plate { background: var(--pl); color: var(--pi); --ink: var(--pi); --ink-2: var(--pi2); --ink-3: var(--pi2); --link: var(--pi);
	--line: color-mix(in srgb, var(--pi) 24%, var(--pl)); --line-2: color-mix(in srgb, var(--pi) 34%, var(--pl)); }
.tp-plate .tp-fine, .tp-plate .tp-intro { color: var(--pi2); }

/* ---- The lit clock ---------------------------------------------------------------------------- */

.tp-object { display: grid; gap: 18px; }
@media (min-width: 760px) { .tp-object { grid-template-columns: minmax(300px, 1.15fr) minmax(0, 1fr); align-items: center; gap: 30px; } }
.tp-object__words .tp-object__time { margin: 0 0 12px; }
.tp-object__time b { display: block; font: 700 44px/1 var(--cond); }
.tp-object__time span { display: block; font: 600 17px/1.3 var(--font); color: var(--h-ink2); }
.tp-object__words p { font-size: 17px; }

.tp-stage { position: relative; height: 310px; border-radius: var(--plate-r); overflow: hidden; perspective: 900px; background: #E5DAC0; touch-action: pan-y; }
.tp-stage.is-lamp { background: #22241E; }
.tp-stage__pool { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at calc(50% + var(--lx) * 38%) calc(50% + var(--ly) * 42%), rgba(255, 246, 220, calc(var(--lp) * .9)), transparent 72%); }
.tp-stage.is-lamp .tp-stage__pool { background: radial-gradient(ellipse 65% 70% at calc(50% + var(--lx) * 46%) calc(48% + var(--ly) * 40%), rgba(255, 196, 120, .42), transparent 70%); }
.tp--dusk .tp-stage__pool { background: radial-gradient(ellipse 70% 60% at calc(50% + var(--lx) * 40%) calc(52% + var(--ly) * 40%), rgba(255, 170, 100, .55), transparent 72%); }
@media (min-width: 760px) { .tp-stage { height: 380px; } }

.tp-obj { --s: 188px; position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
	transform-style: preserve-3d; transform: rotateX(calc(var(--rx) + var(--py, 0) * -8deg)) rotateY(calc(var(--ry) + var(--px, 0) * 12deg)) rotateZ(var(--rz)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 760px) { .tp-obj { --s: 236px; } }
.tp-obj > span, .tp-obj > svg { position: absolute; display: block; }
.tp-obj__case, .tp-obj__rim { inset: 0; border-radius: 50%; }
.tp-obj__case { transform: translateZ(0); background:
	radial-gradient(circle at calc(50% + var(--lx) * 36%) calc(50% + var(--ly) * 36%), #FFF6D6 0, #F4CF74 9%, #CE9A3E 30%, #8C6020 62%, #4E350D 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 238, 190, .5), inset 0 -3px 6px rgba(0, 0, 0, .35); }
.tp-obj__rim--1 { transform: translateZ(-4px); background: #7C5718; }
.tp-obj__rim--2 { transform: translateZ(-8px); background: #64460F; }
.tp-obj__rim--3 { transform: translateZ(-12px); background: #46310A; }
.tp-obj__dial { inset: 9%; border-radius: 50%; overflow: hidden; transform: translateZ(3px);
	box-shadow: inset calc(var(--lx) * -7px) calc(var(--ly) * -7px) 9px rgba(0, 0, 0, .5), 0 0 0 2px rgba(60, 40, 10, .5); }
.tp-obj__dial .tp-dial { width: 100%; height: 100%; }
.tp-obj__glass { inset: 9%; border-radius: 50%; transform: translateZ(13px); pointer-events: none;
	background: radial-gradient(ellipse 34% 22% at calc(50% + var(--lx) * 30%) calc(50% + var(--ly) * 30%), rgba(255, 255, 255, calc(.25 + var(--lp) * .35)), rgba(255, 255, 255, 0) 100%),
		linear-gradient(calc(135deg + var(--lx) * 40deg), rgba(255, 255, 255, .14) 0 38%, rgba(255, 255, 255, 0) 40%); }
.tp-obj__shadow { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%; background: rgba(20, 16, 8, .55); filter: blur(16px);
	transform: translate(calc(var(--lx) * -52px), calc(var(--ly) * -34px + 26px)) scale(.92, .82); opacity: calc(.35 + var(--lp) * .5); }
.tp-stage.is-lamp .tp-obj__shadow { background: rgba(0, 0, 0, .8); }
@media (min-width: 760px) { .tp-obj__shadow { width: 236px; height: 236px; margin: -118px 0 0 -118px; } }

/* Field watch: olive canvas strap, crown. */
.tp-obj__strap { left: 30%; width: 40%; height: 64%; transform: translateZ(-10px); border-radius: 6px;
	background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .1) 0 2px, rgba(0, 0, 0, 0) 2px 4px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 2px, rgba(255, 255, 255, 0) 2px 4px),
		linear-gradient(90deg, #3E4A2B, #5C6A40 30%, #556239 70%, #39442A);
	outline: 1.5px dashed rgba(236, 230, 205, .45); outline-offset: -8px; }
.tp-obj__strap--top { top: -52%; }
.tp-obj__strap--bot { bottom: -52%; }
.tp-obj__crown { right: -6%; top: 43%; width: 9%; height: 14%; border-radius: 3px; transform: translateZ(-5px);
	background: repeating-linear-gradient(0deg, #6E4C14 0 2px, #E3B65A 2px 4px); }
.tp-obj__crown--top { right: auto; left: 44.5%; top: -8%; width: 11%; height: 10%; background: repeating-linear-gradient(90deg, #6E4C14 0 2px, #E3B65A 2px 4px); }
/* Desk clock: walnut case and foot. */
.tp-obj--desk .tp-obj__case, .tp-obj--desk .tp-obj__rim { border-radius: 16%; }
.tp-obj--desk .tp-obj__case { background:
	radial-gradient(circle at calc(50% + var(--lx) * 40%) calc(50% + var(--ly) * 40%), rgba(255, 220, 170, .42), rgba(255, 220, 170, 0) 58%),
	repeating-linear-gradient(97deg, #5A3820 0 3px, #6C462A 3px 8px, #573521 8px 10px, #62402A 10px 15px); }
.tp-obj--desk .tp-obj__rim--1 { background: #4A2E19; }
.tp-obj--desk .tp-obj__rim--2 { background: #3D2614; }
.tp-obj--desk .tp-obj__rim--3 { background: #2E1C0E; }
.tp-obj--desk .tp-obj__dial { inset: 11%; box-shadow: 0 0 0 5px #C99B45, 0 0 0 7px #6E4C14, inset calc(var(--lx) * -6px) calc(var(--ly) * -6px) 9px rgba(0, 0, 0, .35); }
.tp-obj__foot { left: 12%; right: 12%; bottom: -11%; height: 13%; border-radius: 0 0 8px 8px; transform: translateZ(-6px); background: linear-gradient(#3D2614, #2A190C); }
/* Pocket watch: bow, crown and chain. */
.tp-obj__bow { left: 40%; top: -22%; width: 20%; height: 20%; border-radius: 50%; border: 5px solid #C9973F; transform: translateZ(-4px); box-shadow: inset 0 0 0 1px #6E4C14; }
.tp-obj__chain { left: 50%; top: -15%; width: 62%; height: 72%; transform: translateZ(-14px); overflow: visible; }
.tp-obj__chain path { fill: none; stroke: #B8893A; stroke-width: 5; stroke-dasharray: 7 4; stroke-linecap: round; }
.tp-obj--pocket .tp-obj__dial { inset: 7%; }
.tp-obj--pocket .tp-obj__glass { inset: 7%; }
/* Station clock: olive enamel rim, iron arm. */
.tp-obj--station .tp-obj__case { background: radial-gradient(circle at calc(50% + var(--lx) * 36%) calc(50% + var(--ly) * 36%), #8C9C6A 0, #56663D 26%, #3D4A2C 58%, #232B18 100%); }
.tp-obj--station .tp-obj__rim--1 { background: #2E381F; }
.tp-obj--station .tp-obj__rim--2 { background: #263019; }
.tp-obj--station .tp-obj__rim--3 { background: #1C2412; }
.tp-obj--station .tp-obj__dial { inset: 8%; }
.tp-obj__arm { left: 46%; top: -30%; width: 8%; height: 32%; transform: translateZ(-16px); background: linear-gradient(90deg, #1E211C, #4C5148 50%, #1E211C); border-radius: 2px; }

/* Dials (SVG). */
.tp-dial { display: block; }
.tp-dial__face { fill: #F2E9D2; }
.tp-dial__tick { stroke: #1B1D1A; stroke-width: 1; }
.tp-dial__tick.is-major { stroke-width: 3; }
.tp-dial__num { font: 700 23px/1 var(--cond); fill: #1B1D1A; text-anchor: middle; }
.tp-dial__num24 { font: 700 11px/1 var(--cond); fill: #FFB01F; text-anchor: middle; }
.tp-dial__pin { fill: #C9973F; stroke: #4E350D; stroke-width: 1; }
.tp-hand { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(var(--a)); transition: transform 1.9s cubic-bezier(.25, .9, .25, 1); }
.tp-hand--m { transition-duration: 2.3s; }
.tp-hand path, .tp-hand circle { fill: #1B1D1A; }
.tp-hand--s path, .tp-hand--s circle { fill: #C8442A; }
.tp-dial--watch .tp-dial__face { fill: #141912; }
.tp-dial--watch .tp-dial__tick { stroke: #D9D3BC; }
.tp-dial--watch .tp-dial__num { fill: #EDE8D6; font-size: 21px; }
.tp-dial--watch .tp-hand path { fill: #EDE8D6; stroke: #141912; stroke-width: .8; }
.tp-dial--watch .tp-hand--s path, .tp-dial--watch .tp-hand--s circle { fill: #FFB01F; }
.tp-dial--pocket .tp-dial__face { fill: #FBF8F0; }
.tp-dial--pocket .tp-hand path { fill: #1F3B66; }
.tp-dial--station .tp-dial__face { fill: #FFFFFF; }
.tp-dial--station .tp-dial__tick.is-major { stroke-width: 7; }
.tp-dial--station .tp-hand path { fill: #111; }
.tp-dial--plain12 .tp-dial__face, .tp-dial--plain24 .tp-dial__face { fill: #FFF8E6; stroke: #15171A; stroke-width: 3; }
.tp-dial--plain24 .tp-hand--h path { fill: #7A2E1D; }

/* ---- The four digits, the two dials, the gauge (amber plate) -------------------------------- */

.tp-anat { display: grid; gap: 16px; }
@media (min-width: 760px) { .tp-anat { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; } }
.tp-anat__digits { display: inline-flex; margin: 0; padding: 14px 18px 10px; background: #11150F; border-radius: 8px; font: 400 clamp(56px, 17vw, 96px)/1 var(--seg); box-shadow: inset 0 0 0 2px #2A3224; }
.tp-anat__digits span { display: inline-block; transition: transform .7s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * .09s), opacity .7s calc(var(--i) * .09s); }
.tp-anat__digits .is-h { color: #FFB01F; }
.tp-anat__digits .is-m { color: #EDE8D6; }
.tp-anat__digits span:nth-child(3) { margin-left: .22em; }
.tp-anat__keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tp-anat__keys li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 17px; line-height: 1.35; }
.tp-anat__keys b { display: block; text-align: center; padding: 6px 4px; border-radius: 5px; background: #15171A; color: #FFB01F; font: 700 26px/1 var(--cond); }
.is-dark-plate .tp-anat__keys b, .is-dark-plate .tp-anat__digits { box-shadow: inset 0 0 0 2px var(--pi2); }
.tp-anat__keys .k-m b { color: #EDE8D6; }
.tp-anat__keys .k-x b { background: #FFF8E6; color: #15171A; box-shadow: inset 0 0 0 2px #15171A; }
.tp-anat__keys .k-ap b { background: #7A2E1D; color: #FFF4EA; }
.tp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 6px; }
.tp-pair__one { margin: 0; }
.tp-pair__one .tp-dial { width: 100%; max-width: 230px; margin: 0 auto 8px; }
.tp-pair__one figcaption { font-size: 15px; line-height: 1.35; }
.tp-pair__one figcaption b { display: block; font: 700 19px/1.15 var(--cond); text-transform: uppercase; letter-spacing: .03em; }
.tp-gauge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; padding-top: 16px; border-top: 2px solid var(--pi, #15171A); }
.tp-gauge__svg { width: 190px; height: auto; flex: 0 0 auto; }
.tp-gauge__track { fill: none; stroke: color-mix(in srgb, var(--pi, #15171A) 22%, var(--pl, #FFB01F)); stroke-width: 16; stroke-linecap: round; }
.tp-gauge__fill { fill: none; stroke: var(--pi, #15171A); stroke-width: 16; stroke-linecap: round; }
.tp-gauge__needle { stroke: var(--acc); stroke-width: 5; stroke-linecap: round; transform-box: view-box; transform-origin: 100px 100px; transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.tp-gauge__pin { fill: var(--pi, #15171A); }
.tp-gauge__words { flex: 1 1 14em; margin: 0; font-size: 18px; }
.tp-gauge__words b { font: 700 34px/1 var(--cond); margin-right: 4px; }

/* ---- Tools (olive plate) ----------------------------------------------------------------------- */

.tp-tools { display: grid; gap: 12px; }
@media (min-width: 760px) {
	.tp-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "shift zone" "until zone"; align-items: stretch; }
	.tp-tool--shift { grid-area: shift; } .tp-tool--until { grid-area: until; } .tp-tool--zone { grid-area: zone; }
}
.tp-tool { margin: 0; padding: 16px; background: #F3F1EA; color: #15171A; border-radius: var(--plate-r);
	box-shadow: inset 0 -4px 0 #2B3520, 0 0 0 2px color-mix(in srgb, var(--pi, #15171A) 22%, transparent); }
.tp-tool h3 { font-size: 22px; line-height: 1.1; text-transform: uppercase; margin: 0 0 12px; }
.tp-tool__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.tp-tool__f { display: flex; flex-direction: column; gap: 4px; flex: 1 1 6em; min-width: 0; }
.tp-tool label { font: 700 15px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.tp-tool input, .tp-tool select { font: 600 18px/1.2 var(--font); color: #15171A; background: #FFFFFF; border: 2px solid #3D4A2C; border-radius: 5px; padding: 7px 9px; min-width: 0; }
.tp-tool input, .tp-tool select { width: 100%; }
.tp-tool__out { margin: 14px 0 0; font-size: 17px; line-height: 1.45; }
.tp-tool--shift .tp-tool__out { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.tp-tool--shift .tp-tool__out > span:first-child { flex: 1 0 100%; font: 700 15px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; }
.tp-tool__out b { font-weight: 700; }
.tp-lcdnum { display: inline-block; padding: 6px 10px 4px; background: #11150F; color: #FFB01F; border-radius: 5px; font: 400 26px/1 var(--seg); vertical-align: middle; }
.tp-tool__fine { margin: 10px 0 0; font-size: 15px; color: #33373C; }

/* ---- Mind map (sand plate) ---------------------------------------------------------------------- */

.tp-map { position: relative; }
.tp-map__lines { display: none; }
.tp-map__hub { margin: 0 0 12px; display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 16px; background: #15171A; color: #F3F1EA; border-radius: 6px; }
.is-dark-plate .tp-map__hub { outline: 2px solid var(--pi2); }
.tp-map__hub b { font: 400 34px/1 var(--seg); color: #FFB01F; }
.tp-map__hub span { font: 700 20px/1 var(--cond); }
.tp-map__nodes { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--pi, #15171A); display: grid; gap: 8px; }
.tp-node { position: relative; transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.tp-node__in { display: block; background: #FFFDF6; color: #15171A; border-radius: 6px; padding: 8px 12px; border-left: 6px solid var(--k); text-decoration: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--pi, #15171A) 25%, transparent); }
a.tp-node__in { color: #15171A; }
.tp-node::before { content: ""; position: absolute; left: -17px; top: 50%; width: 14px; border-top: 3px solid var(--k); }
.tp-node__lab { display: block; font: 700 15px/1.2 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: #33373C; }
.tp-node b { font: 700 19px/1.2 var(--cond); }
.tp-node a:hover b { text-decoration: underline; }
.k-std { --k: #3D4A2C; } .k-say { --k: #7A2E1D; } .k-part { --k: #C78400; } .k-zulu { --k: #1F5F5B; } .k-near { --k: #44505A; } .k-who { --k: #9C4A1A; }
/* The drawn map needs room for its boxes: it is drawn only when its own part is wide enough, and
   is a plain list of branches below that (phones, tablets, narrow windows). */
.tp-sec--map { container-type: inline-size; }
@container (min-width: 780px) {
	.tp-map { aspect-ratio: 16 / 10.5; margin-top: 4px; }
	.tp-map__lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
	.tp-map__lines path { fill: none; stroke: color-mix(in srgb, var(--k) 60%, var(--pi, #15171A)); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: opacity .9s; }
	.tp-map__lines .tp-map__trunk { stroke: var(--pi, #15171A); stroke-width: 5; }
	.tp-map--sides .tp-map__lines path, .tp-map--tree .tp-map__lines path { stroke-linejoin: round; }
	.tp-map__hub { position: absolute; left: var(--hx); top: var(--hy); transform: translate(-50%, -50%); margin: 0; z-index: 2; flex-direction: column; align-items: center; gap: 4px; padding: 14px 18px; box-shadow: 0 0 0 6px var(--pl, #EADFC6); }
	.tp-map__nodes { position: absolute; inset: 0; padding: 0; border: 0; display: block; }
	.tp-node { position: absolute; left: var(--x); top: var(--y); width: min(21%, 180px); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px var(--pl, #EADFC6); border-radius: 6px; }
	.tp-node::before { display: none; }
}

/* ---- The world (dark plate) --------------------------------------------------------------------- */

.tp-world { margin: 6px 0 4px; }
.tp-world__hint { margin: 0 0 8px; font-size: 15px; }
/* The strip and its date row sit in one dark tray; on a phone the tray scrolls sideways, so the 25
   zones stay in one row with the date row under them. */
.tp-world__scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 6px; scrollbar-width: thin; }
.tp-world__track { min-width: 880px; padding: 5px; background: #11150F; border-radius: 6px; }
.tp-world__strip { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 2px; }
@media (min-width: 700px) { .tp-world__hint { display: none; } .tp-world__scroll { overflow: visible; } .tp-world__track { min-width: 0; } }
.tp-zone { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 84px; padding: 0 0 6px; border: 0; border-radius: 3px; cursor: pointer; font: 700 16px/1 var(--cond); background: #2B3540; color: #F3F1EA; }
.tp-zone.is-day { background: #F0C66A; color: #15171A; }
.tp-zone.is-z { box-shadow: inset 0 0 0 3px #FFFFFF; }
.tp-zone[aria-pressed="true"] { box-shadow: inset 0 0 0 4px #FFB01F; }
.tp-zone:focus-visible { outline: 3px solid #8FC1FF; outline-offset: -3px; }
.tp-zone__d { position: absolute; left: 3px; right: 3px; top: 3px; height: 6px; border-radius: 2px; }
.tp-zone__d.is-after { background: #E8742F; }
.tp-zone__d.is-before { background: transparent; box-shadow: inset 0 0 0 2px #9FB1C2; }
.tp-zone.is-day .tp-zone__d.is-before { box-shadow: inset 0 0 0 2px #44505A; }
@media (min-width: 700px) { .tp-zone { height: 118px; } }
.tp-world__days { display: flex; gap: 2px; margin-top: 4px; }
.tp-world__days span { padding: 5px 4px; border-radius: 3px; text-align: center; font: 700 15px/1.1 var(--cond); letter-spacing: .04em; white-space: nowrap; overflow: clip; }
/* On a phone the label keeps to the part of its bar in view as the strip scrolls. */
.tp-world__days b { display: inline-block; position: sticky; left: 6px; right: 6px; font: inherit; }
.tp-world__days .d0 { background: #3A4652; color: #F3F1EA; }
.tp-world__days .d1 { background: #EDE8D6; color: #15171A; }
.tp-world__days .d2 { background: #F4A46A; color: #15171A; }
.tp-world__out { margin: 12px 0 0; padding: 10px 14px; border-radius: 5px; background: #F3F1EA; color: #15171A; box-shadow: 0 0 0 2px color-mix(in srgb, var(--pi, #15171A) 22%, transparent); font-size: 18px; font-weight: 600; max-width: none !important; }
.tp-world__key { font-size: 15px; margin: 8px 0 0; }
.tp-sec .mtc-zulu__table { --surface: #FFFDF6; --surface-2: #EFE9D8; --ink: #15171A; --ink-2: #33373C; --ink-3: #33373C; --line: #C6C0AF; --line-2: #B3AC98;
	background: var(--surface); color: var(--ink); border-radius: var(--plate-r); overflow-x: auto; }
.tp-sec--world .mtc-table thead th, .tp-sec--world .mtc-table thead th span { font-size: 15px; }
.tp-sec--world .mtc-zulu__foot { font-size: 15px; color: var(--pi2); margin-top: 10px; }
.tp-sec--world .mtc-table small, .tp-sec--world .mtc-table td span { font-size: 15px; }

/* ---- Convert (sky plate), story, around, questions ---------------------------------------------- */

.tp-steps { margin: 0 0 12px; }
.tp-sec--convert .steps > li { border-color: var(--line-2); font-size: 17px; }
/* The time handed along a chain, one form to the next: military, 24-hour, standard, then the part of
   the day under it. Arrows down on a phone, across on a wide screen. */
.tp-chain { margin: 22px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.tp-chain__one { position: relative; margin: 0; padding: 0 0 0 16px; border-left: 5px solid var(--acc); }
.tp-chain__one dt { margin: 0; font: 700 15px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--pi2); }
.tp-chain__one dd { margin: 2px 0 0; font: 700 34px/1 var(--cond); }
.tp-chain__one.is-mil dd { display: inline-block; padding: 6px 10px 4px; background: #11150F; color: #FFB01F; border-radius: 5px; font: 400 30px/1 var(--seg); }
.tp-chain__one + .tp-chain__one:not(.is-part)::before { content: "↓"; position: absolute; left: -15px; top: -25px; font: 700 22px/1 var(--font); color: var(--pi); }
.tp-chain__one.is-part { border-left-style: dotted; }
.tp-chain__one.is-part dd { font-size: 24px; }
@media (min-width: 760px) {
	.tp-chain { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 14px 46px; }
	.tp-chain__one + .tp-chain__one:not(.is-part)::before { content: "→"; left: -40px; top: auto; bottom: 4px; font-size: 26px; }
	.tp-chain__one.is-part { flex: 1 0 100%; }
}
.tp-story p { font-size: 18px; line-height: 1.7; }
.tp-story p:first-child { font-size: 20px; line-height: 1.6; }
.tp-scenes { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--pi, var(--hero)); display: grid; gap: 14px; }
.tp-scenes li { position: relative; font-size: 17px; line-height: 1.5; }
.tp-scenes li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--pl, var(--surface)), inset 0 0 0 2px var(--pi, var(--ink)); }
.tp-scenes b { display: block; font: 700 20px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.tp-slips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tp-slips li { display: grid; gap: 4px; }
@media (min-width: 640px) { .tp-slips li { grid-template-columns: 1fr 1fr; gap: 8px; } }
.tp-slips p { margin: 0; padding: 10px 12px; border-radius: 5px; font-size: 17px; color: #15171A; }
.tp-slips span { display: block; font: 700 15px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.tp-slips__wrong { background: #F8DDD5; }
.tp-slips__wrong span { color: #7A1F10; }
.tp-slips__right { background: #DCEBD1; }
.tp-slips__right span { color: #234516; }
.tp-near { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.tp-near li > a, .tp-near li > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-radius: 5px; border: 1px solid rgba(21, 23, 26, .28); text-decoration: none; color: #15171A; background: #FFFDF6; }
.tp-near b { font: 700 24px/1 var(--cond); }
.tp-near span span { font-size: 15px; color: #33373C; }
.tp-near a span { font-size: 15px; color: #33373C; }
.tp-near .is-here > span { background: var(--hero); color: var(--h-ink); border-color: var(--hero); }
.tp-near .is-here > span span { color: var(--h-ink2); }
.tp-sec--around .near__line, .tp-sec--around .more-line { color: var(--ink); margin-top: 14px; }
.tp-sec--around .near__line a, .tp-sec--around .more-line a { color: var(--pi); }
.tp-qa { display: grid; gap: 4px 30px; }
@media (min-width: 760px) { .tp-qa { grid-template-columns: 1fr 1fr; } }
.tp-qa__one { padding: 14px 0; border-top: 2px solid color-mix(in srgb, var(--pi, currentColor) 45%, transparent); }
.tp-qa__one h3 { font-size: 23px; line-height: 1.15; margin: 0 0 8px; }
.tp-qa__one p { margin: 0; font-size: 17px; line-height: 1.55; }

/* ---- Motion: only when the reader allows it (<html class="tp-anim">, set before the page draws) -- */

.tp-anim [data-tp-anim]:not(.is-in) .tp-hand { transform: rotate(0deg); }
.tp-anim .tp-sky.is-up[data-tp-anim]:not(.is-in) .tp-sun { left: 4%; }
.tp-anim .tp-sky.is-up[data-tp-anim]:not(.is-in) .tp-sun__b { bottom: 24%; }
.tp-anim .tp-sky.is-down[data-tp-anim]:not(.is-in) .tp-star { opacity: 0; }
.tp-star { transition: opacity 1.4s; }
.tp-anim .tp-bigdigits:not(.is-in) span, .tp-anim .tp-anat__digits:not(.is-in) span { transform: translateY(45%); opacity: 0; }
.tp-anim .tp-chain[data-tp-anim]:not(.is-in) .tp-chain__one { opacity: 0; transform: translateY(10px); }
.tp-chain__one { transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.tp-chain__one:nth-child(2) { transition-delay: .15s; } .tp-chain__one:nth-child(3) { transition-delay: .3s; } .tp-chain__one:nth-child(4) { transition-delay: .45s; }
.tp-anim .tp-gauge__needle[data-tp-anim]:not(.is-in) { transform: rotate(calc(var(--a) * -1)); }
.tp-anim .tp-map[data-tp-anim]:not(.is-in) .tp-node { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
.tp-anim .tp-map[data-tp-anim]:not(.is-in) .tp-map__lines path { opacity: 0; }
@container (max-width: 779px) { .tp-anim .tp-map[data-tp-anim]:not(.is-in) .tp-node { transform: translateX(-12px); } }
.tp-node:nth-child(2) { transition-delay: .06s; } .tp-node:nth-child(3) { transition-delay: .12s; } .tp-node:nth-child(4) { transition-delay: .18s; }
.tp-node:nth-child(5) { transition-delay: .24s; } .tp-node:nth-child(6) { transition-delay: .3s; } .tp-node:nth-child(n+7) { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
	.tp *, .tp *::before { transition: none !important; animation: none !important; }
}
