/* The "julian" articles' parts (includes/julian.php). Colours are the site's tokens (site.css), so dark mode follows. */

.prose .mtc-jd-today, .prose .mtc-jd-conv, .prose .mtc-jd-doc, .prose .mtc-jd-before, .prose .mtc-jd-zulu, .prose .mtc-jd-three,
.prose .mtc-jd-pad, .prose .mtc-jd-year, .prose .mtc-jd-find, .prose .mtc-jd-months, .prose .mtc-jd-chart, .prose .mtc-jd-starts, .prose .mtc-jd-ring { margin: 20px 0 26px; }
.prose .mtc-jd-doc ol, .prose .mtc-jd-three ul, .prose .mtc-jd-ring ol { list-style: none; margin: 0; padding: 0; }
.prose .mtc-jd-doc li, .prose .mtc-jd-three li, .prose .mtc-jd-ring li { margin: 0; }
.mtc-jd-printhead { display: none; }

/* ---- Today: two clocks, the day number on an amber display ---- */
.mtc-jd-today { padding: 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-jd-today__pair { display: grid; gap: 12px; }
@media (min-width: 600px) { .mtc-jd-today__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mtc-jd-today { padding: 20px; } }
.mtc-jd-today__side { padding: 12px 14px 10px; border: 1px solid #323B2C; border-radius: var(--radius); background: rgba(0, 0, 0, .18); }
.mtc-jd-today.is-split .mtc-jd-today__side[data-side="zulu"] { border-color: var(--amber); }
.mtc-jd-today__tag { margin: 0; font: 700 14px/1.2 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.mtc-jd-today__date { margin: 4px 0 10px; font-size: 15.5px; font-weight: 600; color: var(--dark-ink); min-height: 1.5em; }
.mtc-jd-lcd { position: relative; margin: 0; padding: 12px 14px 10px; border-radius: var(--radius-sm); background: var(--lcd); box-shadow: inset 0 0 0 2px var(--lcd-edge); text-align: center; white-space: nowrap; overflow: hidden; font: 400 clamp(46px, 15vw, 70px)/1 var(--seg); color: var(--amber); font-variant-numeric: normal; }
.mtc-jd-lcd__ghost { position: absolute; left: 0; right: 0; opacity: .07; }
.mtc-jd-lcd__digits { position: relative; }
.mtc-jd-forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; }
.mtc-jd-forms > div { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); min-width: 0; }
.mtc-jd-forms dt { font: 700 11.5px/1.2 var(--cond); letter-spacing: .12em; color: var(--dark-ink-2); }
.mtc-jd-forms dd { margin: 2px 0 0; font: 700 clamp(17px, 5vw, 22px)/1.1 var(--cond); letter-spacing: .04em; overflow-wrap: anywhere; }
.mtc-jd-today__left { margin: 8px 0 0; font-size: 13.5px; color: var(--dark-ink-2); min-height: 1.3em; }
.mtc-jd-today__roll { margin: 12px 0 0; padding: 10px 12px; border-left: 4px solid var(--amber); border-radius: 0 8px 8px 0; background: rgba(255, 176, 31, .1); font-size: 15px; color: var(--dark-ink); }
.mtc-jd-today__astro { margin: 12px 0 0; font-size: 14.5px; color: var(--dark-ink-2); }
.mtc-jd-today__astro b { font: 700 19px/1 var(--cond); letter-spacing: .04em; color: var(--dark-ink); font-variant-numeric: tabular-nums; }
.mtc-jd-today figcaption { margin: 10px 0 0; font-size: 13.5px; color: var(--dark-ink-2); }

/* ---- The converter ---- */
.mtc-jd-conv { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.mtc-jd-conv__example { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-3); }
.mtc-jd-conv__halves { display: grid; gap: 18px; }
@media (min-width: 760px) { .mtc-jd-conv__halves { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } .mtc-jd-conv { padding: 22px; } }
.mtc-jd-conv__half { min-width: 0; }
.mtc-jd-conv__half + .mtc-jd-conv__half { padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .mtc-jd-conv__half + .mtc-jd-conv__half { padding: 0 0 0 22px; border-top: 0; border-left: 1px solid var(--line); } }
.mtc-jd-conv input[type="date"] { min-height: 50px; }
.mtc-jd-conv__row { display: flex; gap: 8px; align-items: flex-end; }
.mtc-jd-conv__row > input { flex: 1 1 auto; min-width: 0; }
.mtc-jd-conv__year { flex: 0 0 6.2em; }
.mtc-jd-conv__year label { display: block; margin-bottom: 4px; font: 700 13px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mtc-jd-out { margin-top: 12px; }
.mtc-jd-out__big { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--lcd); box-shadow: inset 0 0 0 2px var(--lcd-edge); color: var(--amber); }
.mtc-jd-out__big b { font: 400 clamp(36px, 10vw, 50px)/1 var(--seg); font-variant-numeric: normal; }
.mtc-jd-out__tag { font: 700 14px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: #9AA38B; }
.mtc-jd-out__big--date { display: block; font: 700 clamp(22px, 6vw, 28px)/1.15 var(--cond); letter-spacing: .02em; color: var(--lcd-ink); }
.mtc-jd-forms--light > div { background: var(--bg); border: 1px solid var(--line); }
.mtc-jd-forms--light dt { color: var(--ink-3); }
.mtc-jd-out__line { margin: 10px 0 0; font-weight: 600; }
.mtc-jd-out__how { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.mtc-jd-out.is-error .mtc-jd-out__big { opacity: .5; }
.mtc-jd-out.is-error [data-jd="how"], .mtc-jd-out.is-error [data-jd="code-how"] { color: var(--error); font-weight: 600; }

/* ---- A document number, part by part ---- */
.mtc-jd-doc { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mtc-jd-doc__parts { display: grid; gap: 14px; }
@media (min-width: 700px) { .mtc-jd-doc__parts { grid-template-columns: 6fr 4fr 4fr; gap: 10px; } }
.mtc-jd-doc__part { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mtc-jd-doc__chars { display: flex; gap: 3px; padding-bottom: 8px; border-bottom: 4px solid var(--c); }
.mtc-jd-doc__char { flex: 1 1 0; min-width: 0; max-width: 46px; display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.mtc-jd-doc__char b { font: 700 clamp(22px, 6.4vw, 30px)/1 var(--cond); }
.mtc-jd-doc__char small { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); }
.mtc-jd-doc__part.is-0 { --c: var(--line-2); }
.mtc-jd-doc__part.is-1 { --c: var(--amber); }
.mtc-jd-doc__part.is-1 .mtc-jd-doc__char { background: var(--amber-soft); border-color: var(--amber); }
.mtc-jd-doc__part.is-2 { --c: #5B7A3A; }
.mtc-jd-doc__name { font: 700 17px/1.15 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.mtc-jd-doc__note { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.mtc-jd-doc figcaption { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ---- Tables: days before each month, month starts, the Zulu turnover ---- */
.mtc-jd-before tr.is-pick, .mtc-jd-zulu tr.is-yours { background: var(--amber-soft); }
.mtc-jd-before td small, .mtc-jd-starts td small { display: inline-block; margin-left: 8px; font-size: 12.5px; color: var(--ink-3); }
.mtc-jd-before td b, .mtc-jd-starts td b { display: inline; }
.mtc-jd-starts tr.is-shift td:last-child b { color: var(--link); }
.mtc-jd-zulu td span { color: var(--ink-2); }
.mtc-jd-zulu th .mtc-jd-zulu__when { margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.mtc-jd-zulu tr.is-yours th::after { content: "Your zone"; display: inline-block; margin-top: 6px; padding: 2px 6px; border-radius: 5px; background: var(--amber); color: #15171A; font: 700 12px/1.2 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 479px) {
	.mtc-jd-starts td small { display: block; margin: 2px 0 0; }
}
/* A standard's name ("FIPS PUB 4-1") stays on one line. */
.prose abbr.mtc-jd-name, .prose abbr[title^="Federal Information Processing"] { white-space: nowrap; text-decoration: none; }

/* ---- Three things called Julian ---- */
.mtc-jd-three { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mtc-jd-three__date { margin: 0 0 12px; font: 700 19px/1.2 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.mtc-jd-three__cards { display: grid; gap: 10px; }
@media (min-width: 720px) { .mtc-jd-three__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mtc-jd-three__card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; background: var(--bg); border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: var(--radius-sm); min-width: 0; }
.mtc-jd-three__card.is-ordinal { --c: var(--amber); }
.mtc-jd-three__card.is-astro { --c: #3B6E92; }
.mtc-jd-three__card.is-calendar { --c: #5B7A3A; }
.mtc-jd-three__kind { font: 700 12.5px/1.2 var(--cond); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.mtc-jd-three__name { font: 700 19px/1.15 var(--cond); }
.mtc-jd-three__value { margin: 4px 0; font: 700 clamp(26px, 7.4vw, 32px)/1.05 var(--cond); letter-spacing: .02em; overflow-wrap: anywhere; }
.mtc-jd-three__what { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.mtc-jd-three figcaption { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ---- The tear-off pad, in 3D: a paper sheet on a pad of sheets; the top one lifts away over the rings ---- */
.mtc-jd-pad { padding: 22px 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); text-align: center; }
.mtc-jd-pad__stage { perspective: 900px; perspective-origin: 50% 0; padding: 10px 0 4px; }
.mtc-jd-pad__block { position: relative; display: block; width: min(250px, 78%); aspect-ratio: 5 / 6; margin: 0 auto; transform: rotateX(14deg); transform-style: preserve-3d; }
.mtc-jd-pad__under { position: absolute; inset: 0; border-radius: 10px; background: #D9D3C2; box-shadow: 0 4px 0 #C7C0AC, 0 8px 0 #B9B19B, 0 12px 0 #A39B85, 0 26px 30px -10px rgba(0, 0, 0, .8); }
.mtc-jd-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: linear-gradient(#FBF9F3, #EEEADF); color: #15171A; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); transform-origin: 50% 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mtc-jd-sheet__month { padding: 22px 8px 8px; background: var(--amber); font: 700 clamp(17px, 5vw, 21px)/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.mtc-jd-sheet__day { flex: 1; display: grid; place-items: center; font: 700 clamp(84px, 26vw, 118px)/1 var(--cond); }
.mtc-jd-sheet__weekday { font: 700 clamp(15px, 4.4vw, 18px)/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: #464B52; }
.mtc-jd-sheet__num { display: flex; justify-content: center; gap: 14px; margin-top: 10px; padding: 8px 6px; background: #E4DFCF; font: 700 clamp(19px, 5.6vw, 23px)/1 var(--cond); letter-spacing: .04em; }
.mtc-jd-sheet__num small { font: 600 11.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: #4F545A; }
.mtc-jd-pad__rings { position: absolute; left: 18%; right: 18%; top: -9px; z-index: 5; display: flex; justify-content: space-between; transform: translateZ(2px); }
.mtc-jd-pad__rings i { width: 14px; height: 22px; border-radius: 7px; background: linear-gradient(90deg, #6F7766, #D8DCCF 45%, #5B6152); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.mtc-jd-sheet--fly { z-index: 4; transition: transform .6s cubic-bezier(.3, .1, .3, 1), opacity .6s ease-in; }
.mtc-jd-sheet--fly.is-down { transform: rotateX(0); opacity: 1; }
.mtc-jd-sheet--fly.is-up { transform: rotateX(165deg); opacity: 0; }
.mtc-jd-pad__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.mtc-jd-pad__controls .mtc-btn { background: var(--amber); border-color: var(--amber); color: #15171A; }
.mtc-jd-pad__controls .mtc-btn--now { background: transparent; color: var(--dark-ink); border-color: #4A5641; }
.mtc-jd-pad__controls .mtc-btn--now:hover { background: rgba(255, 255, 255, .08); }
.mtc-jd-pad__pick { display: inline-flex; align-items: center; gap: 6px; }
.mtc-jd-pad__pick label { font: 700 14px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--dark-ink-2); }
.mtc-jd-pad__pick input { width: auto; max-width: 11.5em; padding: 7px 8px; }
.mtc-jd-pad figcaption { max-width: 34em; margin: 14px auto 0; font-size: 14px; color: var(--dark-ink-2); }
@media (prefers-reduced-motion: reduce) {
	.mtc-jd-pad__block { transform: none; }
	.mtc-jd-sheet--fly { transition: none; }
}

/* ---- The calendar: the year's facts and the print buttons ---- */
.mtc-jd-year { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--amber); border-radius: var(--radius); box-shadow: var(--shadow); }
.mtc-jd-year__title { margin: 0 0 12px; font: 700 20px/1.1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mtc-jd-year__title b { margin-right: 6px; font-size: 1.6em; color: var(--ink); letter-spacing: .02em; }
.mtc-jd-year__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
@media (min-width: 640px) { .mtc-jd-year__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mtc-jd-year__facts > div { padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; }
.mtc-jd-year__facts dt { font: 700 13px/1.2 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mtc-jd-year__facts dd { margin: 4px 0 0; }
.mtc-jd-year__facts dd b { display: block; font: 700 28px/1.05 var(--cond); }
.mtc-jd-year__facts dd small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
.mtc-jd-year__print { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.mtc-jd-year__plabel { font: 700 15px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.mtc-jd-year__note { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }

/* ---- The calendar: find a day ---- */
.mtc-jd-find { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.mtc-jd-find__row + .mtc-jd-find__row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mtc-jd-find__md { display: inline-flex; gap: 6px; max-width: 100%; }
.mtc-jd-find__md .mtc-select { width: auto; max-width: none; padding-right: 6px; }
.mtc-jd-find__md .mtc-select:first-child { min-width: 0; flex: 1 1 auto; }
.mtc-jd-find__to { display: inline-block; margin: 0 6px; font-weight: 600; color: var(--ink-3); }
[data-find="between"] .mtc-jd-find__md { margin: 4px 0; }
.mtc-jd-find__n { max-width: 6em; }
.mtc-jd-find__out { margin: 10px 0 0; font-size: 17px; }
.mtc-jd-find__out b { font: 700 24px/1.1 var(--cond); letter-spacing: .03em; }
@media (min-width: 600px) { .mtc-jd-find { padding: 22px; } }

/* ---- The calendar: twelve months ---- */
.mtc-jd-months { display: grid; gap: 14px; }
.mtc-jd-months__half { display: contents; }
@media (min-width: 560px) { .mtc-jd-months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 820px) { .mtc-jd-months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prose table.mtc-jd-cal { width: 100%; margin: 0; font-size: 16px; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; }
.prose table.mtc-jd-cal caption { padding: 8px 10px 6px; text-align: left; caption-side: top; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.prose table.mtc-jd-cal caption b { font: 700 19px/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.prose table.mtc-jd-cal caption span { float: right; font: 600 14px/1.4 var(--cond); letter-spacing: .06em; }
.prose table.mtc-jd-cal th { padding: 5px 0 3px; font: 700 12px/1 var(--cond); letter-spacing: .08em; color: var(--ink-3); text-align: center; border-bottom: 1px solid var(--line); }
.prose table.mtc-jd-cal th abbr { text-decoration: none; }
.prose table.mtc-jd-cal td { position: relative; height: 44px; padding: 0; text-align: center; vertical-align: middle; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.prose table.mtc-jd-cal tbody tr:first-child td { border-top: 0; }
.prose table.mtc-jd-cal td:first-child { border-left: 0; }
.prose table.mtc-jd-cal td.is-weekend { background: var(--bg); }
.prose table.mtc-jd-cal td.is-blank { background: transparent; }
.mtc-jd-cal__d { position: absolute; left: 4px; top: 3px; font-size: 11px; line-height: 1; color: var(--ink-3); }
.mtc-jd-cal__n { display: block; padding-top: 9px; font: 700 clamp(15px, 4.4vw, 17px)/1 var(--cond); letter-spacing: .02em; }
.prose table.mtc-jd-cal td.is-today, .prose table.mtc-jd-grid td.is-today { box-shadow: inset 0 0 0 3px var(--amber); }

/* ---- The calendar: the one-page chart ---- */
.mtc-jd-chart__box { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose table.mtc-jd-grid { width: 100%; margin: 0; min-width: 300px; table-layout: fixed; border-collapse: collapse; font: 600 clamp(11px, 3.1vw, 15.5px)/1 var(--cond); letter-spacing: .01em; text-align: center; font-variant-numeric: tabular-nums; }
.prose table.mtc-jd-grid caption { padding: 10px 12px; text-align: left; font: 400 13.5px/1.35 var(--font); color: var(--ink-3); caption-side: bottom; border-top: 1px solid var(--line); }
.prose table.mtc-jd-grid th, .prose table.mtc-jd-grid td { padding: 4px 0; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
.prose table.mtc-jd-grid thead th { padding: 7px 0; background: var(--brand); color: var(--amber); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.prose table.mtc-jd-grid thead th:first-child { color: var(--brand-ink); }
.prose table.mtc-jd-grid th abbr { text-decoration: none; }
.prose table.mtc-jd-grid tbody th { width: 9%; color: var(--ink-3); background: var(--surface-2); }
.prose table.mtc-jd-grid tbody tr:nth-child(5n) > * { border-bottom: 2px solid var(--line-2); }
.prose table.mtc-jd-grid td:nth-child(even) { background: rgba(61, 74, 44, .05); }
.prose table.mtc-jd-grid td.is-blank { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--line) 4px 5px); }

/* ---- The calendar: the month drum, in 3D. Flat cards without the script. ---- */
.mtc-jd-ring { padding: 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-jd-ring__drum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .mtc-jd-ring__drum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mtc-jd-ring__card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; border-radius: var(--radius-sm); background: linear-gradient(#36402F, #232A1E); border: 1px solid #44503B; min-width: 0; }
.mtc-jd-ring__name { font: 700 17px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.mtc-jd-ring__range { font-size: 14px; color: var(--dark-ink-2); }
.mtc-jd-ring__range b { font: 700 22px/1 var(--cond); letter-spacing: .03em; color: var(--dark-ink); }
.mtc-jd-ring__len { font-size: 12.5px; color: var(--dark-ink-2); }
.mtc-jd-ring__bar { position: relative; display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.mtc-jd-ring__bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); border-radius: 3px; background: var(--amber); }
.mtc-jd-ring figcaption { margin: 12px 0 0; font-size: 13.5px; color: var(--dark-ink-2); }
.mtc-jd-ring__controls { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.mtc-jd-ring__controls .mtc-btn { background: var(--amber); border-color: var(--amber); color: #15171A; }
.mtc-jd-ring__controls .mtc-btn--now { background: transparent; color: var(--dark-ink); border-color: #4A5641; }
/* 3D: twelve cards round a drum that turns about its horizontal axis; the card at the front faces the reader. */
.mtc-jd-ring.is-3d .mtc-jd-ring__stage { --h: 106px; --r: 198px; position: relative; height: calc(var(--r) * 2 + 8px); overflow: hidden; perspective: 760px; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.mtc-jd-ring.is-3d .mtc-jd-ring__drum { display: block; position: absolute; left: 0; right: 0; top: 50%; height: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateX(calc(var(--turn, 0) * 30deg)); transition: transform .55s cubic-bezier(.3, .1, .3, 1); }
.mtc-jd-ring.is-3d .mtc-jd-ring__card { position: absolute; left: 50%; top: calc(var(--h) / -2); width: min(330px, 92%); height: var(--h); margin-left: calc(min(330px, 92%) / -2); justify-content: center; cursor: pointer; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateX(calc(var(--i) * -30deg)) translateZ(var(--r)); opacity: .55; transition: opacity .55s; }
.mtc-jd-ring.is-3d .mtc-jd-ring__card.is-front { opacity: 1; border-color: var(--amber); }
@media (prefers-reduced-motion: reduce) { .mtc-jd-ring.is-3d .mtc-jd-ring__drum, .mtc-jd-ring.is-3d .mtc-jd-ring__card { transition: none; } }

/* ---- Print: the calendar page prints its calendars, not the article ---- */
@media print {
	@page { margin: 12mm; }
	.mtc-jd-printhead { display: block; margin: 0 0 4mm; font: 400 9pt/1.3 var(--font); color: #000; }
	.mtc-jd-printhead b { display: block; font: 700 16pt/1.1 var(--cond); letter-spacing: .04em; text-transform: uppercase; }
	main:has(.mtc-jd-months) .page-head, main:has(.mtc-jd-months) .page-meta { display: none !important; }
	.prose:has(.mtc-jd-months) > :not(.mtc-jd-months):not(.mtc-jd-chart) { display: none !important; }
	.prose:has(.mtc-jd-months) { padding: 0; }
	html[data-jd-print="months"] .mtc-jd-chart, html[data-jd-print="chart"] .mtc-jd-months { display: none !important; }
	.mtc-jd-months { display: block !important; margin: 0 !important; }
	.mtc-jd-months__half { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6mm 4mm; }
	.mtc-jd-months__half:first-of-type { break-after: page; page-break-after: always; }
	.mtc-jd-months__half .mtc-jd-printhead { grid-column: 1 / -1; }
	.prose table.mtc-jd-cal { border: .3mm solid #000; border-radius: 0; break-inside: avoid; page-break-inside: avoid; }
	.prose table.mtc-jd-cal caption { padding: 1.4mm 2mm; background: #000 !important; color: #fff !important; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.prose table.mtc-jd-cal caption b { color: #fff !important; font-size: 12pt; }
	.prose table.mtc-jd-cal caption span { font-size: 9pt; }
	.prose table.mtc-jd-cal th { font-size: 7.5pt; color: #000; border-bottom: .3mm solid #000; }
	.prose table.mtc-jd-cal td { height: 12.5mm; border-color: #999; }
	.prose table.mtc-jd-cal td.is-weekend { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.prose table.mtc-jd-cal td.is-today, .prose table.mtc-jd-grid td.is-today { box-shadow: none; }
	.mtc-jd-cal__d { left: .8mm; top: .6mm; font-size: 6.5pt; color: #333; }
	.mtc-jd-cal__n { padding-top: 2mm; font-size: 12pt; color: #000; }
	.mtc-jd-chart { margin: 0 !important; break-before: page; page-break-before: always; }
	.mtc-jd-chart__box { overflow: visible; border: 0; border-radius: 0; }
	.prose table.mtc-jd-grid { min-width: 0; font-size: 10.5pt; color: #000; }
	.prose table.mtc-jd-grid caption { display: none; }
	.prose table.mtc-jd-grid th, .prose table.mtc-jd-grid td { padding: 1.3mm 0; border: .2mm solid #999; }
	.prose table.mtc-jd-grid thead th { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.prose table.mtc-jd-grid tbody th { background: #eee !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.prose table.mtc-jd-grid td:nth-child(even) { background: transparent; }
	.prose table.mtc-jd-grid tbody tr:nth-child(5n) > * { border-bottom: .5mm solid #000; }
	html[data-jd-print="chart"] .mtc-jd-chart { break-before: auto; page-break-before: auto; }
	.mtc-jd-today, .mtc-jd-pad, .mtc-jd-ring { background: #fff !important; color: #000 !important; box-shadow: none !important; border: .3mm solid #000; }
	.mtc-jd-pad__controls, .mtc-jd-ring__controls, .mtc-jd-year__print { display: none !important; }
}
