/* The "basics" articles' parts (includes/basics.php). Loaded after site.css; colours are its tokens, so dark mode follows. */

.prose .mtc-tl, .prose .mtc-dial, .prose .mtc-btable, .prose .mtc-sum, .prose .mtc-anat, .prose .mtc-quiz { margin: 20px 0 26px; }
.prose .mtc-tl ol, .prose .mtc-sum ol, .prose .mtc-flip__all { padding-left: 0; }
.prose .mtc-tl li, .prose .mtc-flip__all li { margin: 0; }

/* ---- The timeline ---- */

.mtc-tl { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.mtc-tl__line { position: relative; height: 54px; margin: 0 10px 6px; }
.mtc-tl__line::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; border-top: 3px solid var(--line-2); border-radius: 2px; }
.mtc-tl__year { position: absolute; top: 28px; transform: translateX(-50%); font: 700 13px/1 var(--cond); letter-spacing: .06em; color: var(--ink-3); }
.mtc-tl__year::before { content: ""; position: absolute; left: 50%; top: -12px; height: 8px; border-left: 2px solid var(--line-2); }
.mtc-tl__dot { position: absolute; top: 7px; width: 17px; height: 17px; margin-left: -8.5px; border-radius: 50%; background: var(--c, var(--ink-3)); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.mtc-tl.is-live .mtc-tl__dot { cursor: pointer; }
.mtc-tl__dot.is-on { transform: scale(1.35); box-shadow: 0 0 0 2px var(--ink); z-index: 2; }
.mtc-tl .is-world { --c: #3B6E92; }
.mtc-tl .is-us { --c: #8A5A9E; }
.mtc-tl .is-navy { --c: #1F4E79; }
.mtc-tl .is-army { --c: #5B7A3A; }
.mtc-tl .is-today { --c: #C98400; }
.mtc-tl__nav { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8px 10px; margin: 6px 0 12px; }
.mtc-tl__nav .mtc-btn { width: 100%; }
.mtc-tl__count { grid-column: 1 / -1; order: -1; min-width: 0; text-align: center; font: 700 15px/1.2 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mtc-tl__nav .mtc-btn[disabled] { opacity: .45; cursor: default; }
.mtc-tl__all { grid-column: 1 / -1; margin: 0; padding: 4px 0; border: 0; background: none; color: var(--link); font: 600 15px/1.3 var(--font); text-decoration: underline; cursor: pointer; }
.mtc-tl__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mtc-tl__step { position: relative; padding: 10px 14px 12px 16px; background: var(--bg); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--line-2)); border-radius: var(--radius-sm); }
.mtc-tl.is-live .mtc-tl__step.is-on { box-shadow: 0 10px 22px -18px rgba(0, 0, 0, .55); }
.mtc-tl__step p { margin: 0; }
.mtc-tl__when b { font: 700 20px/1.15 var(--cond); letter-spacing: .03em; }
.mtc-tl__when span { margin-left: 6px; font: 700 12.5px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.mtc-tl__what { margin-top: 4px !important; font-size: 16px; line-height: 1.5; }
.mtc-tl__src { margin-top: 6px !important; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.mtc-tl figcaption, .mtc-dial figcaption, .mtc-anat figcaption { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ---- The 24-hour dial, in 3D ---- */

.mtc-dial { display: grid; gap: 16px; padding: 20px 16px 16px; background: radial-gradient(120% 90% at 50% 0%, #2A3323, var(--dark) 70%); color: var(--dark-ink); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.mtc-dial__stage { perspective: 900px; display: grid; place-items: center; padding: 6px 0 14px; }
.mtc-dial__case { position: relative; width: min(78vw, 300px); aspect-ratio: 1; border-radius: 50%; padding: 5.5%;
	background: radial-gradient(circle at 30% 25%, #7E8E63, #3D4A2C 45%, #12160E 100%);
	box-shadow: inset 0 2px 1px rgba(255, 255, 255, .25), inset 0 -6px 10px rgba(0, 0, 0, .55), 0 2px 0 #0B0E09, 0 5px 0 #080A07, 0 26px 34px -14px rgba(0, 0, 0, .9);
	transform: rotateX(24deg) rotateZ(-4deg); transform-style: preserve-3d; transition: transform .6s ease; }
.mtc-dial:hover .mtc-dial__case { transform: rotateX(14deg) rotateZ(-2deg); }
.mtc-dial__face { position: relative; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FBF9F2, #ECE7D8 70%, #DCD5C1);
	box-shadow: inset 0 3px 8px rgba(0, 0, 0, .45), inset 0 0 0 3px #2A3224; overflow: hidden; }
.mtc-dial__face::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, 0) 60%); pointer-events: none; }
.mtc-dial__tick { position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: 50% 100%; }
.mtc-dial__tick::before { content: ""; position: absolute; left: -.5px; top: 4%; width: 1px; height: 4%; background: #62676E; }
.mtc-dial__tick.is-hour::before { left: -1.5px; width: 3px; height: 7%; background: #15171A; }
.mtc-dial__num { position: absolute; transform: translate(-50%, -50%); font: 700 clamp(13px, 4.2vw, 17px)/1 var(--cond); color: #3D4A2C; }
.mtc-dial__num.is-quarter { font-size: clamp(17px, 5.6vw, 23px); color: #15171A; }
.mtc-dial__hand { position: absolute; left: 50%; top: 23%; width: 8px; height: 27%; margin-left: -4px; border-radius: 4px 4px 2px 2px; background: linear-gradient(90deg, #A56C00, #FFB01F 45%, #C98400); transform-origin: 50% 100%; box-shadow: 2px 4px 5px rgba(0, 0, 0, .35); transition: transform .9s cubic-bezier(.3, 1.2, .5, 1); }
.mtc-dial__hand::after { content: ""; position: absolute; left: 50%; top: -9px; margin-left: -6px; border: 6px solid transparent; border-bottom: 10px solid #FFB01F; border-top: 0; }
.mtc-dial__cap { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFD27A, #C98400 60%, #6B4A00); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.mtc-dial__read { text-align: center; }
.mtc-dial__read p { margin: 0; }
.mtc-dial__lcd { display: inline-block; padding: 10px 16px 8px; border-radius: 10px; background: var(--lcd); box-shadow: inset 0 0 0 2px var(--lcd-edge); font: 400 clamp(34px, 10vw, 46px)/1 var(--seg); color: var(--amber); }
.mtc-dial__std { margin-top: 8px !important; font: 700 22px/1.1 var(--cond); letter-spacing: .04em; }
.mtc-dial__what { max-width: 30em; margin: 8px auto 0 !important; font-size: 16px; line-height: 1.45; }
.mtc-dial__src { max-width: 34em; margin: 6px auto 0 !important; font-size: 13px; line-height: 1.4; color: var(--dark-ink-2); }
.mtc-dial__picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.mtc-dial__pick { min-width: 64px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 2px solid #4A5640; background: #252D20; color: var(--dark-ink); font: 700 18px/1 var(--cond); letter-spacing: .06em; cursor: pointer; }
.mtc-dial__pick[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #15171A; }
.mtc-dial__pick:focus-visible, .mtc-tl__dot:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mtc-dial figcaption { color: var(--dark-ink-2); text-align: center; max-width: 40em; margin: 0 auto; }
@media (min-width: 600px) {
	.mtc-tl__nav { grid-template-columns: auto minmax(0, 1fr) auto; }
	.mtc-tl__count { grid-column: 2; grid-row: 1; order: 0; }
	.mtc-tl__nav [data-tl="prev"] { grid-column: 1; grid-row: 1; }
	.mtc-tl__nav [data-tl="next"] { grid-column: 3; grid-row: 1; }
}
@media (max-width: 599px) { .mtc-tl__dot { width: 14px; height: 14px; margin-left: -7px; top: 8.5px; border-width: 2px; } }
@media (min-width: 760px) {
	.mtc-dial { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 26px 24px 20px; }
	.mtc-dial figcaption { grid-column: 1 / -1; }
}
.mtc-dial.is-calm .mtc-dial__hand, .mtc-dial.is-calm .mtc-dial__case { transition: none; }
@media (prefers-reduced-motion: reduce) {
	.mtc-dial__hand, .mtc-dial__case { transition: none; }
	.mtc-dial:hover .mtc-dial__case { transform: rotateX(24deg) rotateZ(-4deg); }
}

/* ---- Tables (1942 examples, the day's range) ---- */

.mtc-btable { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mtc-btable caption { caption-side: top; padding: 12px 14px 4px; text-align: left; font-size: 14px; color: var(--ink-3); }
.mtc-table--b42 td:first-child { white-space: nowrap; }
.mtc-table--ranges th, .mtc-table--ranges td { padding-left: 12px; padding-right: 12px; }
.mtc-table--ranges tbody th { font: 600 16px/1.25 var(--font); letter-spacing: 0; }
.mtc-table--ranges tbody th small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.mtc-table--ranges tbody th span { display: block; margin-top: 4px; font-weight: 400; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.mtc-table--ranges td { font: 700 21px/1.1 var(--cond); letter-spacing: .03em; white-space: nowrap; }
.mtc-table--ranges td.is-none { font: 400 14.5px/1.3 var(--font); letter-spacing: 0; color: var(--ink-3); white-space: normal; }
.mtc-btable__note { margin-top: 8px; font-size: 14px; color: var(--ink-3); }

/* ---- The 1945 sum ---- */

.mtc-sum { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.mtc-sum__in { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mtc-sum__in p { margin: 0; }
.mtc-sum__in .mtc-conv__input { width: 100%; }
.mtc-sum__err { margin: 10px 0 0; color: var(--error); font-weight: 600; }
.mtc-sum__ways { display: grid; gap: 12px; margin-top: 14px; }
.mtc-sum__way { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); border-top: 4px solid var(--c); }
.mtc-sum__way.is-mil { --c: var(--amber); }
.mtc-sum__way.is-std { --c: var(--ink-3); }
.mtc-sum__head { margin: 0 0 6px; font: 700 15px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.mtc-sum__head span { display: block; margin-top: 3px; font-size: 21px; letter-spacing: .03em; color: var(--ink); }
.mtc-sum__way ol { margin: 0; padding-left: 1.3em !important; font-size: 15.5px; line-height: 1.5; }
.mtc-sum__way li { margin: .25em 0; }
.mtc-sum__way li:last-child { font-weight: 700; }
.mtc-sum__note { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }
@media (min-width: 700px) { .mtc-sum__ways { grid-template-columns: 1fr 1fr; } }

/* ---- One time taken apart ---- */

.mtc-anat { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.mtc-anat__pick .mtc-conv__input { max-width: 12em; }
.mtc-anat__examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.mtc-anat__ex { min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: 700 17px/1 var(--cond); letter-spacing: .05em; cursor: pointer; }
.mtc-anat__ex:hover { background: var(--surface-2); }
.mtc-anat__err { margin: 8px 0 0; color: var(--error); font-weight: 600; }
.mtc-anat__body { margin-top: 14px; }
.mtc-anat__digits { display: flex; justify-content: center; gap: clamp(8px, 3vw, 18px); padding: 16px 12px 12px; border-radius: var(--radius); background: var(--lcd); box-shadow: inset 0 0 0 2px var(--lcd-edge); }
.mtc-anat__digits > span { display: grid; justify-items: center; gap: 8px; }
.mtc-anat__digits b { font: 400 clamp(54px, 17vw, 96px)/1 var(--seg); color: var(--amber); }
.mtc-anat__mm b { color: var(--lcd-ink); }
.mtc-anat__digits small { width: 100%; padding-top: 6px; border-top: 3px solid var(--c); text-align: center; font: 700 14px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--dark-ink-2); }
.mtc-anat__hh { --c: var(--amber); }
.mtc-anat__mm { --c: var(--lcd-ink); }
.mtc-anat__facts { display: grid; gap: 0; margin: 14px 0 0; }
.mtc-anat__facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0 9px 10px; border-top: 1px solid var(--line); border-left: 4px solid transparent; }
.mtc-anat__facts > div.is-hh { border-left-color: var(--amber); }
.mtc-anat__facts > div.is-mm { border-left-color: var(--ink-3); }
.mtc-anat__facts dt { font: 700 13.5px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mtc-anat__facts dd { margin: 0; font-size: 16.5px; font-weight: 600; }
.mtc-anat__rule { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--amber-soft); font-size: 15.5px; }
@media (min-width: 560px) { .mtc-anat__facts > div { grid-template-columns: 11em minmax(0, 1fr); gap: 12px; align-items: baseline; } }
@media (min-width: 760px) { .mtc-anat__facts { grid-template-columns: 1fr 1fr; column-gap: 22px; } .mtc-anat__facts > div { grid-template-columns: 9.5em minmax(0, 1fr); } }

/* ---- The flip clock that steps through the day (the cards are site.css's) ---- */

.prose .mtc-flip--basics { margin: 20px 0 26px; }
.mtc-flip--basics .mtc-flip__card:nth-child(3) { margin-left: clamp(6px, 2.4vw, 14px); }
.mtc-flip__std { margin: 14px 0 0; font: 700 clamp(19px, 5.4vw, 24px)/1.2 var(--cond); letter-spacing: .04em; color: var(--dark-ink); }
.mtc-flip__note { max-width: 30em; min-height: 2.9em; margin: 8px auto 0; font-size: 16px; line-height: 1.45; color: var(--dark-ink-2); }
.mtc-flip__count { min-width: 5.5em; font: 700 15px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--dark-ink-2); }
.mtc-flip--basics .mtc-btn[disabled] { opacity: .45; cursor: default; }
.mtc-flip__all { list-style: none; margin: 14px auto 0; max-width: 34em; text-align: left; font-size: 15px; color: var(--dark-ink); }
.mtc-flip__all li { padding: 5px 0; border-top: 1px solid rgba(236, 234, 223, .14); }
.mtc-flip__all b { display: inline-block; min-width: 3.4em; font: 700 18px/1 var(--cond); color: var(--amber); }

/* ---- The self-check ---- */

.mtc-quiz { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.mtc-quiz__q { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); min-width: 0; }
.mtc-quiz__q.is-right { border-left-color: #5B7A3A; }
.mtc-quiz__q.is-wrong { border-left-color: var(--error); }
.mtc-quiz__q legend { padding: 0 4px; font: 700 19px/1.25 var(--cond); letter-spacing: .02em; }
.mtc-quiz__q legend span { color: var(--ink-3); }
.mtc-quiz__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mtc-quiz__opt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); font: 700 18px/1 var(--cond); letter-spacing: .04em; cursor: pointer; }
.mtc-quiz__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.mtc-quiz__opt:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.mtc-quiz__why { margin-top: 10px; font-size: 15.5px; }
.mtc-quiz__why summary { cursor: pointer; color: var(--link); font-weight: 600; }
.mtc-quiz__why p { margin: 6px 0 0; }
.mtc-quiz__end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mtc-quiz__score { flex: 1 0 100%; margin: 4px 0 0; font-weight: 700; font-size: 17px; }
.mtc-quiz__note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }

@media (prefers-color-scheme: dark) {
	.mtc-tl .is-world { --c: #6FA3CC; }
	.mtc-tl .is-us { --c: #B88BCB; }
	.mtc-tl .is-navy { --c: #5E8FC0; }
	.mtc-tl .is-army { --c: #8DB15F; }
	.mtc-quiz__q.is-right { border-left-color: #8DB15F; }
}
