:root {
	--lc-ink: #182a24;
	--lc-forest: #122c25;
	--lc-paper: #f3eddf;
	--lc-white: #fffdf8;
	--lc-coral: #c65b42;
	--lc-gold: #dda343;
	--lc-sage: #78917d;
	--lc-line: rgba(24, 42, 36, .16);
	--wikipress-primary: #9b4937;
	--wikipress-primary-hover: #713326;
}

body.page-long-count-calculator { background: #e5ddcc; }
.page-long-count-calculator .site { max-width: none; background: var(--lc-paper); }
.page-long-count-calculator .content-wrapper { max-width: none; display: block; }
.long-count-page.site-main { padding: 0; color: var(--lc-ink); background: linear-gradient(rgba(24,42,36,.032) 1px, transparent 1px), linear-gradient(90deg, rgba(24,42,36,.025) 1px, transparent 1px), var(--lc-paper); background-size: 32px 32px; font-family: var(--wikipress-font-ui); }
.lc-shell { max-width: 1180px; margin: 0 auto; padding: 26px 34px 84px; }
.lc-breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 36px; color: #727b73; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.lc-breadcrumbs a { color: inherit; text-decoration: none; }.lc-breadcrumbs a:hover { color: var(--lc-coral); }
.lc-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--lc-coral); font-size: .68rem; line-height: 1; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.lc-eyebrow > span { width: 28px; height: 2px; background: currentColor; }

.lc-hero { min-height: 340px; display: grid; grid-template-columns: minmax(0,1fr) 350px; align-items: center; gap: 48px; }
.lc-hero h1 { margin: 0; padding: 0; border: 0; color: var(--lc-ink); font: 400 clamp(3.5rem,7.1vw,6.65rem)/.88 Georgia,serif; letter-spacing: -.055em; }
.lc-hero h1 em { color: var(--lc-coral); font-weight: 400; }
.lc-hero-copy > p:last-child { max-width: 675px; margin: 28px 0 0; color: #536159; font: 400 1.1rem/1.65 Georgia,serif; }
.lc-hero-scale { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 9px; height: 235px; padding: 22px; border-bottom: 1px solid var(--lc-line); }
.lc-hero-scale::before { content: ""; position: absolute; inset: 9px 0 0; border: 1px dashed rgba(198,91,66,.28); border-radius: 50%; }
.lc-hero-scale > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lc-hero-scale i { display: block; width: 34px; height: calc(var(--size) * 28px); border-radius: 18px 18px 2px 2px; background: linear-gradient(var(--lc-coral), var(--lc-gold)); opacity: calc(.42 + var(--size) * .1); }
.lc-hero-scale span { font-size: .5rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.lc-hero-scale b { color: #6d766f; font-size: .48rem; font-weight: 500; }

.lc-tool { margin-top: 32px; overflow: hidden; border-radius: 3px; background: var(--lc-white); box-shadow: 0 24px 80px rgba(28,37,28,.15); }
.lc-mode-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 18px 15px 28px; border-bottom: 1px solid var(--lc-line); }
.lc-mode-bar > p { margin: 0; color: #7b837c; font-size: .65rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.lc-tabs { display: flex; padding: 4px; border-radius: 3px; background: #eae4d7; }
.lc-tabs button { min-width: 190px; padding: 10px 15px; border: 0; border-radius: 2px; background: transparent; color: #677168; cursor: pointer; font: 700 .68rem/1 var(--wikipress-font-ui); letter-spacing: .04em; }
.lc-tabs button[aria-selected="true"] { background: var(--lc-forest); color: #fff; box-shadow: 0 3px 8px rgba(18,44,37,.2); }
.lc-tabs button span { margin-left: 6px; color: var(--lc-gold); }
.lc-tool-grid { display: grid; grid-template-columns: minmax(390px,.92fr) minmax(520px,1.08fr); min-height: 650px; }
.lc-controls { padding: 42px 38px 34px; background: var(--lc-white); }
.lc-step { display: flex; align-items: center; gap: 10px; margin: 0; color: #7b837c; font-size: .65rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.lc-step > span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid currentColor; border-radius: 50%; font-size: .58rem; }
.lc-controls h2 { margin: 31px 0 8px; padding: 0; border: 0; font: 400 clamp(1.9rem,3vw,2.5rem)/1.1 Georgia,serif; letter-spacing: -.025em; }
.lc-panel-intro { margin: 0 0 27px; color: #6c756e; font-size: .84rem; }

.lc-count-inputs { display: grid; grid-template-columns: repeat(9,auto); align-items: end; gap: 6px; }
.lc-count-inputs label { min-width: 0; }
.lc-count-inputs label span, #total-days-form > label { display: block; margin-bottom: 6px; font-size: .56rem; font-weight: 750; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.lc-count-inputs input { width: 54px; min-height: 51px; padding: 8px 4px; border: 1px solid #cec5b2; border-radius: 2px; background: #fff; color: var(--lc-ink); text-align: center; font: 650 1rem/1 var(--wikipress-font-ui); }
.lc-count-inputs input:focus, .lc-days-row input:focus { outline: 2px solid var(--lc-gold); outline-offset: -2px; }
.lc-count-inputs > i { padding-bottom: 15px; color: var(--lc-coral); font: 400 1.1rem/1 Georgia,serif; }
.lc-submit { width: 100%; min-height: 48px; margin-top: 13px; border: 0; border-radius: 2px; background: var(--lc-coral); color: #fff; cursor: pointer; font: 700 .74rem/1 var(--wikipress-font-ui); }
.lc-submit:hover, .lc-days-row button:hover { background: #a94734; }.lc-submit span, .lc-days-row button span { margin-left: 8px; }
.lc-error { margin: 8px 0 0; color: #a12e27; font-size: .75rem; }
.lc-presets { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; color: #7b837c; font-size: .68rem; }
.lc-presets button { padding: 7px 9px; border: 1px solid var(--lc-line); border-radius: 99px; background: transparent; color: var(--lc-ink); cursor: pointer; font: 650 .63rem/1 var(--wikipress-font-ui); }
.lc-presets button:hover { border-color: var(--lc-coral); color: var(--lc-coral); }

#total-days-form > label { text-align: left; font-size: .66rem; }
.lc-days-row { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.lc-days-row input { min-width: 0; width: 100%; min-height: 53px; padding: 14px; border: 1px solid #cec5b2; border-right: 0; border-radius: 3px 0 0 3px; background: #fff; color: var(--lc-ink); font: 650 1rem/1 var(--wikipress-font-ui); }
.lc-days-row button { padding: 0 19px; border: 0; border-radius: 0 3px 3px 0; background: var(--lc-coral); color: #fff; cursor: pointer; font: 700 .73rem/1 var(--wikipress-font-ui); }
.lc-correlation-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 76px; padding-top: 20px; border-top: 1px solid var(--lc-line); }
.lc-correlation-note > span { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border: 1px solid var(--lc-coral); border-radius: 50%; color: var(--lc-coral); font: 700 .67rem/1 Georgia,serif; }
.lc-correlation-note p { margin: 0; color: #68726b; font-size: .73rem; line-height: 1.55; }.lc-correlation-note strong { color: var(--lc-ink); }

.lc-output { position: relative; overflow: hidden; padding: 40px 44px 32px; background: radial-gradient(circle at 82% 10%,rgba(221,163,67,.1),transparent 30%),linear-gradient(145deg,#193b31,var(--lc-forest)); color: #fff9eb; }
.lc-output::before { content: ""; position: absolute; inset: 0; opacity: .11; pointer-events: none; background: radial-gradient(#fff .6px,transparent .7px); background-size: 13px 13px; }.lc-output > * { position: relative; z-index: 1; }
.lc-output-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.lc-step-light { color: rgba(255,255,255,.52); }.lc-output-top > div { text-align: right; }.lc-output-top small { display: block; color: rgba(255,255,255,.42); font-size: .56rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }.lc-output-top strong { display: block; margin-top: 3px; color: var(--lc-gold); font: 400 1.05rem/1.2 Georgia,serif; }
.lc-primary-result { margin: 32px 0 26px; }.lc-primary-result p { margin: 0 0 3px; color: rgba(255,255,255,.5); font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }.lc-primary-result > strong { display: block; font: 400 clamp(2.7rem,5.2vw,4.4rem)/1 Georgia,serif; letter-spacing: .035em; }.lc-primary-result > span { color: rgba(255,255,255,.42); font-size: .66rem; }
.lc-unit-breakdown { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); }
.lc-unit-item { min-width: 0; padding: 15px 4px 13px; border-right: 1px solid rgba(255,255,255,.1); text-align: center; }.lc-unit-item:last-child { border-right: 0; }.lc-unit-item > strong,.lc-unit-item > span,.lc-unit-item > small { display: block; }.lc-unit-item > strong { color: var(--lc-gold); font: 400 1.08rem/1 Georgia,serif; }.lc-unit-item > span { margin-top: 3px; font-size: .59rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }.lc-unit-item > small { color: rgba(255,255,255,.35); font-size: .5rem; }
.lc-unit-glyph { display: grid; place-items: center; height: 28px; margin-bottom: 5px; }.lc-numeral { display: flex; flex-direction: column; align-items: center; gap: 2px; }.lc-dots { display: flex; gap: 2px; min-height: 5px; }.lc-dots i { width: 5px; height: 5px; border-radius: 50%; background: #f1e2bb; }.lc-bars { display: flex; flex-direction: column; gap: 2px; }.lc-bars i { width: 25px; height: 3px; border-radius: 3px; background: #f1e2bb; }.lc-zero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 28px; height: 17px; border: 1px solid #f1e2bb; border-radius: 50%; }.lc-zero i { width: 16px; height: 1px; background: rgba(241,226,187,.68); }
.lc-calendar-position { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: 10px; margin-top: 21px; }.lc-calendar-position > div { padding: 12px 13px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.025); }.lc-calendar-position small,.lc-calendar-position strong { display: block; }.lc-calendar-position small { color: rgba(255,255,255,.38); font-size: .53rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }.lc-calendar-position strong { margin-top: 3px; font: 400 .92rem/1.2 Georgia,serif; }
.lc-equation { margin-top: 11px; padding: 13px 15px; background: var(--lc-gold); color: var(--lc-forest); }.lc-equation small { display: block; color: rgba(18,44,37,.6); font-size: .52rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }.lc-equation p { margin: 2px 0 0; font: 400 .78rem/1.4 Georgia,serif; }
.lc-output-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 17px; }.lc-day-nav { display: flex; align-items: center; gap: 9px; }.lc-day-nav button { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }.lc-day-nav button:hover { border-color: var(--lc-gold); color: var(--lc-gold); }.lc-day-nav span { color: rgba(255,255,255,.4); font-size: .58rem; }.lc-output-actions > button { padding: 9px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 2px; background: transparent; color: #fff; cursor: pointer; font: 700 .61rem/1 var(--wikipress-font-ui); }.lc-output-actions > button:hover { border-color: var(--lc-gold); color: var(--lc-gold); }

.lc-context { margin: 21px auto 0; color: #657068; text-align: center; font: 400 .78rem/1.5 Georgia,serif; }.lc-context em { color: var(--lc-coral); }
.lc-units { padding: 95px 0 76px; }.lc-section-title { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; align-items: end; margin-bottom: 28px; }.lc-section-title .lc-eyebrow { margin-bottom: 8px; }.lc-section-title h2,.lc-method h2,.lc-related h2,.lc-sources h2 { margin: 0; padding: 0; border: 0; font: 400 clamp(2rem,4.1vw,3.65rem)/1.02 Georgia,serif; letter-spacing: -.035em; }
.lc-unit-cards { display: grid; grid-template-columns: repeat(5,1fr); border: 1px solid var(--lc-line); background: rgba(255,253,248,.62); }.lc-unit-cards article { min-width: 0; padding: 25px 20px; border-right: 1px solid var(--lc-line); }.lc-unit-cards article:last-child { border-right: 0; }.lc-unit-cards article > span { color: var(--lc-coral); font-size: .59rem; font-weight: 750; }.lc-unit-cards h3 { margin: 30px 0 3px; font: 400 1.5rem/1.1 Georgia,serif; }.lc-unit-cards article > strong { color: var(--lc-coral); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }.lc-unit-cards p { margin: 17px 0 0; color: #5c6860; font: 400 .79rem/1.58 Georgia,serif; }.lc-unit-cards .lc-unit-exception { position: relative; background: var(--lc-forest); color: #fff; }.lc-unit-exception::after { content: "18 × 20"; position: absolute; right: 11px; top: 11px; color: var(--lc-gold); font-size: .52rem; letter-spacing: .08em; }.lc-unit-exception h3 { color: #fff; }.lc-unit-exception p { color: rgba(255,255,255,.67); }.lc-unit-exception article > strong { color: var(--lc-gold); }
.lc-method { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; padding: 62px 0; border-top: 1px solid var(--lc-line); border-bottom: 1px solid var(--lc-line); }.lc-method-copy { columns: 2; column-gap: 34px; }.lc-method-copy p { break-inside: avoid; margin: 0; color: #526059; font: 400 .87rem/1.72 Georgia,serif; }.lc-method-copy p + p { margin-top: 1.2em; }
.lc-related,.lc-sources { display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; padding-top: 64px; }.lc-related-links,.lc-source-list { border-top: 1px solid var(--lc-line); }.lc-related-links a,.lc-source-list a { display: grid; grid-template-columns: .8fr 1.2fr auto; align-items: center; gap: 20px; padding: 19px 4px; border-bottom: 1px solid var(--lc-line); color: var(--lc-ink); text-decoration: none; }.lc-related-links span,.lc-source-list span { color: #788078; font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }.lc-related-links strong,.lc-source-list strong { font: 400 1rem/1.2 Georgia,serif; }.lc-related-links i,.lc-source-list i { color: var(--lc-coral); }.lc-related-links a:hover strong,.lc-source-list a:hover strong { color: var(--lc-coral); }

@media (max-width: 980px) {
	.lc-hero { grid-template-columns: 1fr 270px; }.lc-hero-scale { transform: scale(.86); transform-origin: center; }
	.lc-tool-grid { grid-template-columns: 1fr; }.lc-controls { display: grid; grid-template-columns: 1fr .8fr; gap: 34px; }.lc-correlation-note { margin-top: 0; }
	.lc-unit-cards { grid-template-columns: repeat(3,1fr); }.lc-unit-cards article { border-bottom: 1px solid var(--lc-line); }.lc-unit-cards article:nth-child(3) { border-right: 0; }.lc-unit-cards article:nth-child(4),.lc-unit-cards article:nth-child(5) { border-bottom: 0; }
}

@media (max-width: 680px) {
	.page-long-count-calculator .site-branding { min-width: 0; flex: 1 1 100%; }.page-long-count-calculator .site-title a,.page-long-count-calculator .site-description { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.lc-shell { padding: 20px 18px 60px; }.lc-breadcrumbs { margin-bottom: 42px; }.lc-hero { position: relative; display: block; min-height: 440px; }.lc-hero-scale { position: absolute; right: -7px; bottom: 2px; width: 195px; height: 175px; transform: scale(.82); transform-origin: bottom right; opacity: .74; }
	.lc-tool { margin-left: -18px; margin-right: -18px; border-radius: 0; }.lc-mode-bar { display: block; padding: 16px 18px; }.lc-mode-bar > p { margin-bottom: 10px; }.lc-tabs { display: grid; grid-template-columns: 1fr 1fr; }.lc-tabs button { min-width: 0; padding: 10px 5px; font-size: .58rem; }
	.lc-controls { display: block; padding: 34px 22px; }.lc-count-inputs { gap: 3px; justify-content: space-between; }.lc-count-inputs input { width: 49px; }.lc-count-inputs label span { font-size: .49rem; }.lc-correlation-note { margin-top: 38px; }
	.lc-output { padding: 33px 21px 27px; }.lc-output-top { align-items: flex-start; }.lc-output-top > div { max-width: 160px; }.lc-primary-result > strong { font-size: 2.45rem; letter-spacing: .015em; }.lc-unit-item > small { display: none; }.lc-calendar-position { grid-template-columns: 1fr 1fr; }.lc-calendar-position > div:last-child { grid-column: 1 / -1; }.lc-equation p { font-size: .68rem; }.lc-day-nav span { display: none; }
	.lc-section-title,.lc-method,.lc-related,.lc-sources { grid-template-columns: 1fr; gap: 22px; }.lc-units { padding: 72px 0 56px; }.lc-unit-cards { grid-template-columns: 1fr; }.lc-unit-cards article,.lc-unit-cards article:nth-child(3),.lc-unit-cards article:nth-child(4),.lc-unit-cards article:nth-child(5) { border-right: 0; border-bottom: 1px solid var(--lc-line); }.lc-unit-cards article:last-child { border-bottom: 0; }.lc-method { padding: 50px 0; }.lc-method-copy { columns: 1; }.lc-related,.lc-sources { padding-top: 50px; }.lc-related-links a,.lc-source-list a { grid-template-columns: 1fr auto; gap: 4px 15px; }.lc-related-links span,.lc-related-links strong,.lc-source-list span,.lc-source-list strong { grid-column: 1; }.lc-related-links i,.lc-source-list i { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 390px) {
	.lc-count-inputs input { width: 45px; }.lc-days-row { grid-template-columns: 1fr; gap: 8px; }.lc-days-row input { border-right: 1px solid #cec5b2; border-radius: 3px; }.lc-days-row button { min-height: 46px; border-radius: 3px; }.lc-primary-result > strong { font-size: 2.2rem; }
}

@media print { .page-long-count-calculator .site-header,.page-long-count-calculator .site-footer,.lc-controls,.lc-units,.lc-method,.lc-related,.lc-sources { display: none; }.lc-tool-grid { grid-template-columns: 1fr; }.lc-output { background: #fff; color: #000; }.lc-shell { padding: 0; } }
