/* LoxlTools calculators — follows the skin: accent = --ltool-accent (plugin setting) → --c-accent → --accent → dark grey.
   Every rule lives under .ltool so the skin is not touched. */
.ltool {
	--lt-accent: var(--ltool-accent, var(--c-accent, var(--accent, #3d3d3d)));
	--lt-text: var(--c-text, var(--c-ink, #1a1a1a));
	--lt-muted: var(--c-muted, #8a8a8a);
	--lt-line: var(--c-line, #e6e6e6);
	--lt-soft: var(--c-soft, #f7f7f6);
	--lt-warn: #c0533e;
	--lt-good: #3b8a5a;
	margin: 2.5em 0; border: 1px solid var(--lt-line); border-radius: 12px; background: #fff; color: var(--lt-text);
	font-size: 1rem; line-height: 1.6; overflow: hidden;
}
.ltool *, .ltool *::before, .ltool *::after { box-sizing: border-box; }
.ltool p { margin: 0; }
/* no b / strong / em / small / i inside: every text piece is a span with its own class, so the blog's own highlight styles never reach the calculator */
.ltool__head { padding: 22px 24px 18px; border-bottom: 1px solid var(--lt-line); }
.ltool__kicker { color: var(--lt-accent); font-size: .8rem !important; font-weight: 700; letter-spacing: .14em; }
.ltool__title { margin-top: 4px !important; font-size: 1.4rem !important; font-weight: 800; line-height: 1.35; }
.ltool__lead { margin-top: 8px !important; color: var(--lt-muted); font-size: 1.05rem !important; line-height: 1.6; }

.ltool__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ltool__form { padding: 22px 24px; }
.ltool__result { padding: 22px 24px; background: var(--lt-soft); border-left: 1px solid var(--lt-line); }

/* inputs */
.ltool__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.ltool__field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.ltool__field--wide { grid-column: 1 / -1; }
.ltool__label { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.ltool__hint { color: var(--lt-muted); font-size: .95rem; line-height: 1.45; }
.ltool__input { display: flex; align-items: center; min-width: 0; height: 48px; padding: 0 12px; border: 1px solid var(--lt-line); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ltool__input:focus-within { border-color: var(--lt-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lt-accent) 15%, transparent); }
.ltool__input input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0 !important; outline: 0; background: transparent; box-shadow: none !important; color: var(--lt-text); font: inherit; font-size: 1.1rem; text-align: right; -moz-appearance: textfield; }
.ltool__input input[type=date] { text-align: left; }
.ltool__input input::-webkit-outer-spin-button, .ltool__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ltool__input input::placeholder { color: #c3c3c3; }
.ltool__unit { flex: 0 0 auto; margin-left: 6px; color: var(--lt-muted); font-size: .95rem; }
.ltool__check { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 1rem; cursor: pointer; }
.ltool__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--lt-accent); }

/* group table (축의금) */
.ltool__table { display: grid; gap: 8px; }
.ltool__thead, .ltool__trow { display: grid; grid-template-columns: minmax(84px, .9fr) 1fr 1fr; gap: 8px; align-items: center; }
.ltool__thead span { color: var(--lt-muted); font-size: .95rem; font-weight: 600; }
.ltool__trow .ltool__input { height: 44px; padding: 0 10px; }

/* results */
.ltool__big { padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--lt-line); }
.ltool__big > span:first-child { display: block; color: var(--lt-muted); font-size: 1rem; }
.ltool__big-num { display: block; margin-top: 2px; color: var(--lt-accent); font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; word-break: keep-all; }
.ltool__big.is-good .ltool__big-num { color: var(--lt-good); }
.ltool__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--lt-line); font-size: 1.05rem; }
.ltool__row > span:first-child { color: var(--lt-muted); font-size: 1rem; }
.ltool__val { color: var(--lt-text); font-weight: 700; white-space: nowrap; }
.ltool__row.is-warn .ltool__val { color: var(--lt-warn); }
.ltool__row.is-good .ltool__val { color: var(--lt-good); }
.ltool__msg { margin: 12px 0 4px !important; padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--lt-line); font-size: 1rem !important; line-height: 1.6; }
.ltool__msg.is-warn { border-color: color-mix(in srgb, var(--lt-warn) 35%, #fff); background: color-mix(in srgb, var(--lt-warn) 6%, #fff); }
.ltool__msg.is-good { border-color: color-mix(in srgb, var(--lt-good) 35%, #fff); background: color-mix(in srgb, var(--lt-good) 6%, #fff); }

.ltool__bars { margin: 16px 0 0 !important; padding: 0 !important; list-style: none !important; display: grid; gap: 9px; }
.ltool__bars li { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; margin: 0 !important; padding: 0 !important; font-size: 1rem; }
.ltool__bars li::before, .ltool__bars li::marker { content: none !important; }
.ltool__bar-label { color: var(--lt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltool__bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--lt-accent) 12%, #fff); overflow: hidden; }
.ltool__fill { display: block; height: 100%; border-radius: inherit; background: var(--lt-accent); }
.ltool__bar-val { white-space: nowrap; font-weight: 600; }
.ltool__bar-pct { margin-left: 4px; color: var(--lt-muted); font-weight: 400; font-size: .9rem; }
.ltool__meter { height: 10px; margin-top: 14px; border-radius: 99px; background: color-mix(in srgb, var(--lt-accent) 12%, #fff); overflow: hidden; }
.ltool__meter .ltool__fill { display: block; height: 100%; background: var(--lt-accent); }

/* 실부담금: pull results */
.ltool__link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.ltool__pullmsg { color: var(--lt-muted); font-size: 1rem; }

/* schedule */
.ltool__steps { margin: 12px 0 0 !important; padding: 0 !important; list-style: none !important; }
.ltool__steps li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 0 !important; padding: 14px 0 !important; border-bottom: 1px dashed var(--lt-line); }
.ltool__steps li::before, .ltool__steps li::marker { content: none !important; }
.ltool__step-when { grid-column: 1; color: var(--lt-muted); font-size: 1rem; }
.ltool__step-d { margin-left: 8px; opacity: .75; }
.ltool__step-what { grid-column: 1; display: flex; flex-direction: column; }
.ltool__step-title { color: var(--lt-text); font-size: 1.155rem; font-weight: 700; line-height: 1.45; }
.ltool__step-desc { margin-top: 2px; color: var(--lt-muted); font-size: 1rem; line-height: 1.55; }
.ltool__badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--lt-line); background: #fff; color: var(--lt-muted); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.ltool__steps .is-now .ltool__badge { border-color: var(--lt-accent); background: var(--lt-accent); color: #fff; }
.ltool__steps .is-now .ltool__step-title { color: var(--lt-accent); }
.ltool__steps .is-past { opacity: .55; }

/* footer */
.ltool__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 14px 24px; border-top: 1px solid var(--lt-line); }
.ltool__note { flex: 1 1 260px; color: var(--lt-muted); font-size: .95rem !important; line-height: 1.55; }
.ltool__btns { display: flex; gap: 8px; }
.ltool__btn { height: 42px; padding: 0 16px; border: 1px solid var(--lt-line); border-radius: 8px; background: #fff; color: var(--lt-text); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.ltool__btn:hover { border-color: var(--lt-accent); color: var(--lt-accent); }
.ltool__btn--main { border-color: var(--lt-accent); background: var(--lt-accent); color: #fff; }
.ltool__btn--main:hover { color: #fff; filter: brightness(1.08); }

/* the schedule has only one input: result gets the room */
.ltool[data-tool="wedding-schedule"] .ltool__body { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
.ltool[data-tool="wedding-schedule"] .ltool__fields { grid-template-columns: 1fr; }

@media (max-width: 760px) {
	.ltool__body, .ltool[data-tool="wedding-schedule"] .ltool__body { grid-template-columns: 1fr; }
	.ltool__result { border-left: 0; border-top: 1px solid var(--lt-line); }
}
@media (max-width: 480px) {
	.ltool { border-radius: 10px; }
	.ltool__head, .ltool__form, .ltool__result { padding: 18px 16px; }
	.ltool__foot { padding: 12px 16px; }
	.ltool__fields { grid-template-columns: 1fr; }
	.ltool__big-num { font-size: 1.9rem; }
	.ltool__bars li { grid-template-columns: 76px 1fr auto; }
	.ltool__thead, .ltool__trow { grid-template-columns: 76px 1fr 1fr; }
	.ltool__btns { width: 100%; }
	.ltool__btn { flex: 1; }
}

/* [frame:url] — landing page under the top menu bar, full width, scrolls inside the iframe */
.lframe { position: fixed; top: var(--lframe-top, 0px); left: 0; right: 0; bottom: 0; z-index: 40; width: auto; max-width: none; margin: 0 !important; padding: 0 !important; background: #fff; }
.lframe iframe { display: block; width: 100%; height: 100%; border: 0; }
html.has-lframe, html.has-lframe body { overflow: hidden !important; height: 100%; }
.lframe-link a { display: inline-block; padding: 10px 16px; border: 1px solid currentColor; border-radius: 8px; text-decoration: none; }

/* [expo] wedding fair list — cards in the post column, accent follows the skin like the calculators */
.lexpo { --lt-accent: var(--ltool-accent, var(--c-accent, var(--accent, #3d3d3d))); --lt-line: var(--c-line, #e6e6e6); --lt-muted: var(--c-muted, #8a8a8a); margin: 2em 0; }
.lexpo * { box-sizing: border-box; }
.lexpo p { margin: 0; }
.lexpo__tabs { position: sticky; top: var(--header-h, 72px); z-index: 5; display: flex; gap: 8px; margin: 0 0 14px; padding: 10px 0; overflow-x: auto; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); scrollbar-width: none; }
.lexpo__tabs::-webkit-scrollbar { display: none; }
.lexpo__tabs a { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--lt-line); border-radius: 99px; background: #fff; color: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s; }
.lexpo__tabs a:hover { border-color: var(--lt-accent); color: var(--lt-accent); }
.lexpo__tabs a span { margin-left: 2px; color: var(--lt-muted); font-weight: 400; font-size: .9rem; }
.lexpo__meta { margin-bottom: 8px !important; color: var(--lt-muted); font-size: .95rem !important; }
.lexpo__region { scroll-margin-top: calc(var(--header-h, 72px) + 70px); margin-top: 2.2em; }
.lexpo__title { border-left: 0.5rem solid var(--c-pink) !important; background-color: var(--c-pinkbg) !important; margin: 2rem 0; }
.lexpo__title::before, .lexpo__title::after { content: none !important; }
.lexpo__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.lexpo__card { display: flex; flex-direction: column; border: 1px solid var(--lt-line); border-radius: 12px; background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.lexpo__card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.lexpo__thumb { position: relative; display: block; aspect-ratio: 4 / 4; background: #f4f4f4; overflow: hidden; }
.lexpo__thumb img { color: transparent; display: block; width: 100%; height: 100%; margin: 0 !important; object-fit: cover; border-radius: 0 !important; }
.lexpo__district { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.62); color: #fff; font-size: .85rem; font-weight: 600; }
.lexpo__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 16px; }
.lexpo__name { font-size: 1.155rem; font-weight: 700; line-height: 1.4; word-break: keep-all; }
.lexpo__when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--c-pink); font-size: 1rem; font-weight: 700; }
.lexpo__state { padding: 2px 8px; border-radius: 99px; border: 1px solid var(--lt-accent); background-color: var(--lt-accent); font-size: .8rem; font-weight: 700; }
.lexpo__state.is-now { border-color: var(--c-pink); background: var(--c-pink); color: #fff; }
.lexpo__place { color: var(--lt-muted); font-size: 1rem; line-height: 1.5; word-break: keep-all; }
.lexpo__btn { display: block; margin-top: auto; padding: 11px 12px; border-radius: 8px; background: var(--lt-accent); color: #fff !important; font-size: 1rem; font-weight: 700; text-align: center; text-decoration: none !important; transition: filter .15s; }
.lexpo__body .lexpo__btn { margin-top: 10px; }
.lexpo__btn:hover { filter: brightness(1.08); }
.lexpo__admin { margin: 0 0 12px !important; padding: 10px 12px; border: 1px dashed #c0533e; border-radius: 8px; color: #c0533e; font-size: .95rem; }
.lexpo__empty { padding: 24px; border: 1px solid var(--lt-line); border-radius: 12px; color: var(--lt-muted); text-align: center; }
@media (max-width: 640px) {
	/* phones: every region visible at once (wrapped, not a sideways strip), one card per row */
	.lexpo__tabs { position: static; flex-wrap: wrap; overflow: visible; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.lexpo__tabs a { padding: 7px 12px; }
	.lexpo__region { scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
	.lexpo__grid { grid-template-columns: 1fr; gap: 14px; }
}
