/* Couple anniversary calculator The New workspace — 20260926b */
.tn-ca-page {
	--ca-ink: #1a1208;
	--ca-muted: #5a4a30;
	--ca-line: #b8a888;
	--ca-soft-line: #ddd4be;
	--ca-paper: #faf6ee;
	--ca-wash: #f5efdf;
	--ca-button: #ede6d4;
	--ca-button-hover: #dfd4bb;
	--ca-accent: #c44a00;
	--ca-accent-dark: #6a3b1f;
	--ca-secondary-dark: #2f2115;
	--ca-secondary-dark-hover: #3a2a1b;
	--ca-dark-text: #f7ead1;
	--ca-num: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", system-ui, sans-serif;
	color: var(--ca-ink);
}

.tn-ca-tool,
.tn-ca-tool * {
	box-sizing: border-box;
}

.tn-ca-tool {
	max-width: 1180px;
	margin: 0 auto;
	font-family: Georgia, "Times New Roman", serif;
}

.tn-ca-workspace,
.tn-ca-secondary-panel {
	border-top: 2px solid var(--ca-ink);
	border-bottom: 1px solid var(--ca-line);
	background:
		radial-gradient(circle at 1px 1px, rgba(26, 18, 8, .08) 1px, transparent 0) 0 0 / 12px 12px,
		var(--ca-paper);
}

.tn-ca-workspace {
	display: grid;
	grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
	gap: 0;
	min-height: 302px;
}

.tn-ca-input,
.tn-ca-result {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 18px;
}

.tn-ca-input {
	border-right: 1px solid var(--ca-line);
}

.tn-ca-pane-label {
	margin: 0;
	font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ca-muted);
}

.tn-ca-field {
	display: grid;
	grid-template-columns: minmax(82px, .32fr) minmax(0, 1fr);
	align-items: center;
	gap: 8px 12px;
	margin: 0;
	min-width: 0;
}

.tn-ca-field > span,
.tn-ca-mode legend {
	font: 700 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--ca-ink);
}

.tn-ca-field input {
	width: 100%;
	min-width: 0;
	height: 42px;
	border: 1px solid var(--ca-line);
	border-radius: 0;
	background: #fffaf0;
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
	padding: 0 10px;
	font: 600 15px/42px var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	letter-spacing: normal;
}

.tn-ca-field small {
	grid-column: 2;
	margin: -4px 0 0;
	font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--ca-muted);
}

.tn-ca-mode {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.tn-ca-mode legend {
	grid-column: 1 / -1;
	padding: 0;
}

.mode-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 38px;
	border: 1px solid var(--ca-line);
	background: var(--ca-button);
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
	cursor: pointer;
	text-align: center;
}

.mode-btn input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.mode-btn span {
	display: block;
	padding: 0 4px;
	font: 700 12px/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	overflow-wrap: anywhere;
}

.mode-btn:hover,
.mode-btn.active,
.mode-btn:has(input:checked) {
	background: var(--ca-button-hover);
	border-color: var(--ca-ink);
}

.tn-ca-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

.tn-ca-actions button,
.tn-ca-month-nav button {
	min-width: 0;
	min-height: 40px;
	border: 1px solid var(--ca-line);
	border-radius: 0;
	padding: 0 10px;
	font: 700 13px/40px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	outline: 0;
}

.tn-ca-actions button:focus-visible,
.tn-ca-month-nav button:focus-visible,
.mode-btn:focus-within {
	outline: 2px solid var(--ca-accent);
	outline-offset: 2px;
}

.tn-ca-secondary,
.tn-ca-month-nav button {
	background: var(--ca-button);
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
}

.tn-ca-secondary:hover,
.tn-ca-month-nav button:hover {
	background: var(--ca-button-hover);
}

.tn-ca-status {
	min-height: 34px;
	margin: auto 0 0;
	border-top: 1px dashed var(--ca-line);
	padding-top: 10px;
	font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--ca-muted);
}

.tn-ca-count {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 10px;
	min-height: 86px;
	border-bottom: 3px double var(--ca-line);
	padding-bottom: 13px;
}

.tn-ca-count span,
.tn-ca-count em {
	font: 700 13px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--ca-muted);
	font-style: normal;
	white-space: nowrap;
}

.tn-ca-count strong {
	min-width: 0;
	font: 800 clamp(38px, 7vw, 72px)/1 var(--ca-num);
	letter-spacing: normal;
	font-kerning: normal;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum", "tnum";
	white-space: nowrap;
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
	overflow-wrap: anywhere;
}

.tn-ca-duration {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	gap: 4px 10px;
	margin: 0;
	border: 1px solid var(--ca-soft-line);
	background: rgba(255, 250, 240, .72);
	padding: 10px 12px;
}

.tn-ca-duration span {
	margin: 0;
	font: 700 11px/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ca-muted);
	white-space: nowrap;
}

.tn-ca-duration strong {
	margin: 0;
	min-width: 0;
	font: 800 16px/1.3 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
	overflow-wrap: anywhere;
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-duration,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-duration,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-duration {
	background: rgba(23, 15, 9, .78);
	border-color: var(--ca-line);
	color: var(--ca-dark-text);
	-webkit-text-fill-color: currentColor;
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-duration strong,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-duration strong,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-duration strong {
	color: var(--ca-dark-text);
	-webkit-text-fill-color: var(--ca-dark-text);
}

.tn-ca-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

.tn-ca-facts div,
.tn-ca-nearest,
.anniversary-item,
.tn-ca-milestone {
	min-width: 0;
	border: 1px solid var(--ca-soft-line);
	background: rgba(255, 250, 240, .72);
}

.tn-ca-facts div {
	padding: 10px;
}

.tn-ca-facts dt,
.tn-ca-nearest span,
.anniversary-title,
.tn-ca-milestone span {
	margin: 0 0 4px;
	font: 700 11px/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: .04em;
	color: var(--ca-muted);
}

.tn-ca-facts dd,
.anniversary-date,
.anniversary-days,
.tn-ca-milestone strong {
	margin: 0;
	font: 700 13px/1.3 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
	overflow-wrap: anywhere;
}

.tn-ca-nearest {
	display: grid;
	gap: 5px;
	margin-top: auto;
	padding: 14px;
	border-color: var(--ca-line);
}

.tn-ca-nearest strong {
	font: 800 18px/1.25 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ca-accent);
	-webkit-text-fill-color: var(--ca-accent);
	overflow-wrap: anywhere;
}

.tn-ca-secondary-panel {
	margin-top: 12px;
	padding: 14px;
}

.tn-ca-strip-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.tn-ca-month-nav {
	display: grid;
	grid-template-columns: 38px minmax(130px, 1fr) 38px;
	align-items: center;
	gap: 6px;
	font: 700 13px/1.2 var(--ca-num);
	color: var(--ca-ink);
	text-align: center;
}

.tn-ca-milestone-strip {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	align-items: stretch;
	gap: 8px;
	margin-bottom: 10px;
}

.tn-ca-milestone {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
	min-height: 78px;
	padding: 10px;
}

.tn-ca-milestone span {
	margin-bottom: 0;
	font-size: 12px;
	letter-spacing: .02em;
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
}

.tn-ca-milestone strong {
	font-size: 12px;
	line-height: 1.3;
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
}

.tn-ca-milestone.is-important {
	border-color: var(--ca-accent);
}

.tn-ca-calendar-list {
	display: grid;
	grid-template-columns: minmax(0, .94fr) minmax(230px, .56fr);
	gap: 10px;
	min-width: 0;
}

.tn-ca-calendar {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	min-width: 0;
}

.calendar-day {
	position: relative;
	min-width: 0;
	min-height: 34px;
	border: 1px solid var(--ca-soft-line);
	background: rgba(255, 250, 240, .64);
	padding: 5px;
	font: 600 12px/1 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ca-ink);
}

.calendar-day.other-month {
	opacity: .42;
}

.calendar-day.today {
	border-color: var(--ca-ink);
	background: var(--ca-button-hover);
}

.calendar-day.anniversary {
	border-color: var(--ca-accent);
}

.calendar-day.important {
	background: rgba(196, 74, 0, .12);
}

.anniversary-dot,
.tn-ca-dot {
	display: inline-block;
	inline-size: 7px;
	block-size: 7px;
	background: var(--ca-accent);
}

.anniversary-dot {
	position: absolute;
	right: 4px;
	bottom: 4px;
}

.tn-ca-list {
	display: grid;
	align-content: start;
	gap: 6px;
	min-width: 0;
	max-height: 260px;
	overflow: auto;
}

.anniversary-item {
	padding: 9px;
}

.anniversary-item.important {
	border-color: var(--ca-accent);
}

.empty-message {
	border: 1px dashed var(--ca-line);
	padding: 14px;
	font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--ca-muted);
	text-align: center;
}

.tn-ca-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
	font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--ca-muted);
}

.tn-ca-legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tn-ca-dot--today {
	background: var(--ca-ink);
}

.tn-ca-tool :is(ul, ol),
.tn-ca-tool li {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-page,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-page {
	--ca-ink: #f2e4cf;
	--ca-muted: #d8c5aa;
	--ca-line: #826744;
	--ca-soft-line: #5d4934;
	--ca-paper: #21170f;
	--ca-wash: #2a1d13;
	--ca-button: #2f2115;
	--ca-button-hover: #3a2a1b;
	--ca-accent: #f0a15f;
	color: var(--ca-ink);
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-workspace,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-secondary-panel,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-workspace,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-secondary-panel,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-workspace,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-secondary-panel {
	background:
		radial-gradient(circle at 1px 1px, rgba(247, 234, 209, .08) 1px, transparent 0) 0 0 / 12px 12px,
		var(--ca-paper);
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-field input,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-field input,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-field input {
	background: #170f09;
	color: var(--ca-dark-text);
	-webkit-text-fill-color: var(--ca-dark-text);
	border-color: var(--ca-line);
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-secondary,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .mode-btn,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-month-nav button,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-secondary,
html[data-scheme="dark"] body:not([data-scheme="light"]) .mode-btn,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-month-nav button,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-secondary,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .mode-btn,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-month-nav button {
	background: #2f2115;
	border-color: #826744;
	color: #f7ead1;
	-webkit-text-fill-color: #f7ead1;
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-secondary:hover,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .mode-btn:hover,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .mode-btn.active,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-month-nav button:hover,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-secondary:hover,
html[data-scheme="dark"] body:not([data-scheme="light"]) .mode-btn:hover,
html[data-scheme="dark"] body:not([data-scheme="light"]) .mode-btn.active,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-month-nav button:hover,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-secondary:hover,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .mode-btn:hover,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .mode-btn.active,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-month-nav button:hover {
	background: #3a2a1b;
	color: #f7ead1;
	-webkit-text-fill-color: #f7ead1;
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-facts div,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-nearest,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .anniversary-item,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-milestone,
body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .calendar-day,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-facts div,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-nearest,
html[data-scheme="dark"] body:not([data-scheme="light"]) .anniversary-item,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-milestone,
html[data-scheme="dark"] body:not([data-scheme="light"]) .calendar-day,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-facts div,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-nearest,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .anniversary-item,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-milestone,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .calendar-day {
	background: rgba(23, 15, 9, .78);
	color: var(--ca-dark-text);
	-webkit-text-fill-color: currentColor;
}

@media (max-width: 720px) {
	.tn-ca-tool {
		padding-inline: 0;
	}

	.tn-ca-workspace {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.tn-ca-input {
		border-right: 0;
		border-bottom: 1px solid var(--ca-line);
	}

	.tn-ca-input,
	.tn-ca-result {
		padding: 12px;
		gap: 10px;
	}

	.tn-ca-field {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.tn-ca-field small {
		grid-column: 1;
	}

	.tn-ca-mode {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tn-ca-actions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tn-ca-count {
		grid-template-columns: auto minmax(0, 1fr) auto;
		min-height: 0;
	}

	.tn-ca-count strong {
		font-size: clamp(34px, 17vw, 58px);
	}

	.tn-ca-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tn-ca-secondary-panel {
		padding: 10px;
	}

	.tn-ca-strip-head {
		align-items: start;
		flex-direction: column;
	}

	.tn-ca-month-nav {
		width: 100%;
		grid-template-columns: 36px minmax(0, 1fr) 36px;
	}

	.tn-ca-milestone-strip {
		grid-auto-flow: column;
		grid-auto-columns: minmax(150px, 68vw);
		grid-template-columns: none;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		padding-bottom: 6px;
		contain: layout paint;
	}

	.tn-ca-milestone {
		min-height: 86px;
		scroll-snap-align: start;
	}

	.tn-ca-calendar-list {
		grid-template-columns: 1fr;
	}

	.tn-ca-list {
		max-height: 220px;
	}
}

@media (max-width: 390px) {
	.tn-ca-input,
	.tn-ca-result {
		padding: 10px;
	}

	.mode-btn span,
	.tn-ca-actions button {
		font-size: 11px;
	}

	.tn-ca-milestone-strip {
		grid-auto-columns: minmax(144px, 72vw);
	}

	.tn-ca-milestone {
		min-height: 88px;
	}


	.calendar-day {
		min-height: 30px;
		padding: 4px 3px;
		font-size: 11px;
	}
}


/* 20260924a — nearest + next key milestone, strip status, weekday header */
.tn-ca-next-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: auto;
}

.tn-ca-next-grid .tn-ca-nearest {
	margin-top: 0;
	align-content: start;
}

.tn-ca-nearest small {
	font: 600 13px/1.3 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
}

.tn-ca-nearest small:empty {
	display: none;
}

.tn-ca-milestone em {
	font: 600 12px/1.2 var(--ca-num);
	font-style: normal;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ca-accent);
	-webkit-text-fill-color: var(--ca-accent);
}

.calendar-weekday {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 22px;
	font: 700 11px/1 var(--ca-num);
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
}

/* Optional date lookups follow the primary result on mobile. */
.tn-ca-lookup {
	display: grid;
	gap: 8px;
	margin: 0;
	border-top: 1px solid var(--ca-soft-line);
	padding-top: 12px;
}

.tn-ca-lookup-row {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	align-items: stretch;
	gap: 8px;
}

.tn-ca-lookup-field {
	display: grid;
	gap: 4px;
	margin: 0;
	min-width: 0;
}

.tn-ca-lookup-field span {
	font: 700 12px/1.25 var(--ca-num);
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
}

.tn-ca-tool .tn-ca-lookup-field input {
	width: 100%;
	min-width: 0;
	height: 38px;
	margin: 0;
	border: 1px solid var(--ca-line);
	border-radius: 0;
	background: #fffaf0;
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
	padding: 0 10px;
	font: 600 15px/38px var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	letter-spacing: normal;
	box-shadow: none;
}

.tn-ca-tool .tn-ca-lookup-field input::placeholder {
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
	font-weight: 400;
	opacity: .35;
}

.tn-ca-tool .tn-ca-lookup-field input:focus-visible,
.tn-ca-tool .tn-ca-field input:focus-visible {
	outline: 2px solid var(--ca-accent);
	outline-offset: -1px;
}

.tn-ca-tool .tn-ca-lookup-field input[aria-invalid="true"] {
	border-color: #9b2c1c;
}

.tn-ca-lookup-out {
	display: grid;
	align-content: center;
	gap: 3px;
	min-width: 0;
	border: 1px solid var(--ca-soft-line);
	background: rgba(255, 250, 240, .72);
	padding: 7px 10px;
}

.tn-ca-lookup-out strong {
	font: 800 15px/1.25 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum", "tnum";
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
	overflow-wrap: anywhere;
}

.tn-ca-lookup-out small {
	font: 500 12px/1.3 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
	overflow-wrap: anywhere;
	word-break: keep-all;
}

.tn-ca-lookup-out[data-state="valid"] strong {
	color: var(--ca-accent);
	-webkit-text-fill-color: var(--ca-accent);
}

.tn-ca-lookup-out[data-state="error"] small {
	color: #9b2c1c;
	-webkit-text-fill-color: #9b2c1c;
}

/* Key milestone tables */
.tn-ca-key {
	margin-top: 12px;
	padding: 14px;
	border-top: 2px solid var(--ca-ink);
	border-bottom: 1px solid var(--ca-line);
	background:
		radial-gradient(circle at 1px 1px, rgba(26, 18, 8, .08) 1px, transparent 0) 0 0 / 12px 12px,
		var(--ca-paper);
}

.tn-ca-key-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.tn-ca-tool .tn-ca-key-head button {
	min-height: 36px;
	border: 1px solid var(--ca-line);
	border-radius: 0;
	padding: 0 12px;
	font: 700 12px/34px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
}

.tn-ca-tool .tn-ca-key-head button:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.tn-ca-tool .tn-ca-key-head button:focus-visible {
	outline: 2px solid var(--ca-accent);
	outline-offset: 2px;
}

.tn-ca-key-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 18px;
}

.tn-ca-tool table.tn-ca-key-table {
	width: 100%;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
	background: transparent !important;
	table-layout: fixed;
}

.tn-ca-tool .tn-ca-key-table caption {
	caption-side: top;
	padding: 0 0 6px;
	text-align: left;
	font: 700 12px/1.3 var(--ca-num);
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
}

.tn-ca-tool .tn-ca-key-table :is(th, td) {
	border: 0 !important;
	border-bottom: 1px solid var(--ca-soft-line) !important;
	background: transparent !important;
	padding: 8px 4px !important;
	text-align: left;
	vertical-align: baseline;
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
}

.tn-ca-tool .tn-ca-key-table tbody tr:last-child :is(th, td) {
	border-bottom: 0 !important;
}

.tn-ca-tool .tn-ca-key-table thead th {
	padding-top: 0 !important;
	font: 600 11px/1.3 var(--ca-num);
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
}

.tn-ca-tool .tn-ca-key-table tbody th {
	width: 26%;
	font: 500 14px/1.6 var(--ca-num);
}

.tn-ca-tool .tn-ca-key-table tbody td {
	font: 600 13px/1.6 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	overflow-wrap: anywhere;
}

.tn-ca-tool .tn-ca-key-table :is(thead th, tbody td):nth-child(2) {
	width: 48%;
}

.tn-ca-tool .tn-ca-key-table :is(thead th, tbody td):last-child {
	text-align: right;
}

.tn-ca-tool .tn-ca-key-table tbody td:last-child {
	font-weight: 400;
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
}

.tn-ca-tool .tn-ca-key-row.is-past :is(th, td) {
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
}

.tn-ca-tool .tn-ca-key-row.is-next :is(th, td),
.tn-ca-tool .tn-ca-key-row.is-next td:last-child {
	color: var(--ca-accent);
	-webkit-text-fill-color: var(--ca-accent);
	font-weight: 700;
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-key,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-key,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-key {
	background:
		radial-gradient(circle at 1px 1px, rgba(247, 234, 209, .08) 1px, transparent 0) 0 0 / 12px 12px,
		var(--ca-paper);
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-tool .tn-ca-lookup-field input,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-tool .tn-ca-lookup-field input,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-tool .tn-ca-lookup-field input {
	background: #170f09;
	color: var(--ca-dark-text);
	-webkit-text-fill-color: var(--ca-dark-text);
	border-color: var(--ca-line);
	color-scheme: dark;
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-lookup-out,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-lookup-out,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-lookup-out {
	background: rgba(23, 15, 9, .78);
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-tool :is(.tn-ca-lookup-field input[aria-invalid="true"]),
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-tool .tn-ca-lookup-field input[aria-invalid="true"],
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-tool .tn-ca-lookup-field input[aria-invalid="true"] {
	border-color: #ffb0a2;
}

body:is([data-scheme="dark"], [data-scheme="inverse"], [data-scheme="auto"][data-l="dark"], [data-scheme="auto"][data-d="dark"]) .tn-ca-lookup-out[data-state="error"] small,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ca-lookup-out[data-state="error"] small,
html[data-scheme="inverse"] body:not([data-scheme="light"]) .tn-ca-lookup-out[data-state="error"] small {
	color: #ffb0a2;
	-webkit-text-fill-color: #ffb0a2;
}

@media (max-width: 720px) {
	.tn-ca-key {
		padding: 10px;
	}

	.tn-ca-key-head {
		align-items: stretch;
		flex-direction: column;
	}

	.tn-ca-key-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.tn-ca-lookup-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.tn-ca-next-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.tn-ca-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tn-ca-facts div:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 390px) {
	.tn-ca-lookup-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.tn-ca-tool .tn-ca-key-table tbody th {
		width: 24%;
		font-size: 13px;
	}

	.tn-ca-tool .tn-ca-key-table tbody td {
		font-size: 12px;
	}
}

/* Article comparison list (The New 본문 보조 비교 목록) */
html body .tn-ca-page .tn-info-card ul.tn-ca-compare {
	padding-inline-start: 0 !important;
	margin-inline-start: 0 !important;
	display: grid !important;
	gap: 0 !important;
	margin: 10px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

html body .tn-ca-page .tn-info-card ul.tn-ca-compare > li {
	padding-inline-start: 0 !important;
	margin-inline-start: 0 !important;
	display: grid !important;
	gap: 3px !important;
	margin: 0 !important;
	padding: 10px 0 !important;
	border: 0 !important;
	border-top: 1px solid var(--ca-soft-line) !important;
	background: transparent !important;
	list-style: none !important;
	line-height: 1.6 !important;
}

.tn-ca-page .tn-info-card ul.tn-ca-compare > li:first-child {
	border-top: 0 !important;
}

.tn-ca-page .tn-info-card ul.tn-ca-compare > li::before {
	content: none !important;
	display: none !important;
}

.tn-ca-page .tn-info-card ul.tn-ca-compare b {
	font: 500 14px/1.6 var(--ca-num) !important;
	color: var(--ca-ink) !important;
	-webkit-text-fill-color: var(--ca-ink) !important;
}

.tn-ca-page .tn-info-card ul.tn-ca-compare span {
	font: 400 13px/1.6 var(--ca-num) !important;
	font-variant-numeric: lining-nums tabular-nums !important;
	color: var(--ca-muted) !important;
	-webkit-text-fill-color: var(--ca-muted) !important;
	overflow-wrap: anywhere !important;
	word-break: keep-all !important;
}

.tn-ca-page .tn-info-card ul.tn-ca-compare span em {
	font-style: normal !important;
	white-space: nowrap !important;
}

html body #couple-anniv-body-guide .tn-info-card ul.tn-ca-compare > li {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.tn-ca-day100 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 4px 12px;
	min-width: 0;
	border: 1px solid var(--ca-line);
	padding: 10px 12px;
	background: var(--ca-wash);
}

.tn-ca-day100 span {
	grid-column: 1 / -1;
	font: 700 11px/1.25 var(--ca-num);
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
}

.tn-ca-day100 strong {
	min-width: 0;
	font: 800 19px/1.25 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ca-ink);
	-webkit-text-fill-color: var(--ca-ink);
	overflow-wrap: anywhere;
}

.tn-ca-day100 small {
	font: 600 12px/1.3 var(--ca-num);
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--ca-muted);
	-webkit-text-fill-color: var(--ca-muted);
	text-align: right;
}

.tn-ca-day100 small:empty {
	display: none;
}

@media (max-width: 390px) {
	.tn-ca-day100 {
		grid-template-columns: minmax(0, 1fr);
	}

	.tn-ca-day100 small {
		text-align: left;
	}
}

/* The primary answer follows the start date before optional date lookups. */
.tn-ca-input {
	grid-column: 1;
	grid-row: 1;
	padding-bottom: 8px;
}

.tn-ca-result {
	grid-column: 2;
	grid-row: 1 / span 2;
}

.tn-ca-workspace > .tn-ca-lookup {
	grid-column: 1;
	grid-row: 2;
	align-content: start;
	border-right: 1px solid var(--ca-line);
	padding: 12px 18px 18px;
}

@media (max-width: 720px) {
	.tn-ca-input,
	.tn-ca-result,
	.tn-ca-workspace > .tn-ca-lookup {
		grid-column: 1;
		grid-row: auto;
	}

	.tn-ca-input {
		padding-bottom: 12px;
	}

	.tn-ca-result {
		border-bottom: 1px solid var(--ca-line);
	}

	.tn-ca-workspace > .tn-ca-lookup {
		border-right: 0;
		padding: 12px;
	}
}
