/* Time-lapse Calculator (lib/timelapse-page.js, theme/timelapse.js). Prefix tx-. Builds on tools.css and pricing.css. */
body.tx-page main { min-width: 0; }
.tx .label { margin: 0; }
.tx-app { margin-top: clamp(40px, 6vw, 72px); min-width: 0; }
.tx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tx-work { min-width: 0; }
.tx-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 26px; scrollbar-width: none; }
.tx-tabs button { flex: none; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); padding: 12px 14px; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.tx-tabs button.on { color: var(--fg); border-bottom-color: var(--ember); }
.tx-intro { margin: 0 0 20px; color: var(--muted); line-height: 1.65; max-width: 68ch; } .tx-intro b { color: var(--fg); font-weight: 500; }
.tx-row { margin-bottom: 8px; }
.tx-f { min-width: 0; }
.tx-f select, .tx-f input:not([type=checkbox]) { width: 100%; }
.tx-in { display: flex; align-items: stretch; border: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.tx-in input { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 12px 14px; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--fg); }
.tx-in input:focus { outline: none; } .tx-in:focus-within { border-color: var(--wheat); }
.tx-in em { font-style: normal; align-self: center; padding: 0 12px; color: var(--muted); font-size: 0.85rem; }
.tx .tx-f select, .tx .tx-f input[type=date], .tx .tx-place input { padding: 12px 14px; border: 1px solid var(--line); background: rgba(0,0,0,0.2); color: var(--fg); font: inherit; }
.tx .tx-f select:focus, .tx .tx-f input[type=date]:focus { outline: none; border-color: var(--wheat); }
.tx-f select option { background: var(--char); }
.tx-tip { margin: 6px 0 18px; padding: 12px 14px; border-left: 2px solid var(--wheat); color: var(--muted); line-height: 1.55; background: rgba(227,154,76,0.04); }
.tx-solve, .tx-fps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 14px; } .tx-solve .tl-help, .tx-fps .tl-help { margin: 0 6px 0 0; }
.tx-solve button, .tx-fps button { border: 1px solid var(--line); background: none; color: var(--fg); padding: 8px 14px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.tx-solve button.on, .tx-fps button.on { border-color: var(--wheat); background: color-mix(in srgb, var(--wheat) 12%, transparent); }
.tx-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; margin-bottom: 14px; }
.tx-solved b i { font-style: normal; }
.tx-solved b { display: flex; align-items: baseline; gap: 6px; padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--ember) 60%, var(--line)); font: 400 1.6rem/1 var(--display); color: var(--wheat); font-weight: 400; } .tx-solved em { font: 400 0.85rem var(--body, inherit); color: var(--muted); font-style: normal; }
.tx-out { margin-top: 18px; min-width: 0; }
.tx-bigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tx-big { display: grid; gap: 4px; padding: 18px 16px 18px 0; } .tx-big + .tx-big { padding-left: 16px; border-left: 1px solid var(--line); }
.tx-big span { font: 500 0.58rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tx-big b { font: 400 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); font-weight: 400; font-variant-numeric: tabular-nums; }
.tx-big em { font-style: normal; font-size: 0.82rem; color: var(--muted); }
.tx-sent { margin: 16px 0 0; line-height: 1.65; max-width: 70ch; } .tx-sent b { font-weight: 500; color: var(--wheat); }
.tx-warn { margin: 12px 0 0; color: var(--wheat); font-size: 0.92rem; }
.tx-note { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; }
.tx-strip { margin-top: 22px; } .tx-strip > div { display: flex; gap: 2px; height: 26px; padding: 4px; background: #121110; border-radius: 2px; overflow: hidden; }
.tx-strip i { flex: 1 1 0; min-width: 1px; max-width: 14px; background: color-mix(in srgb, var(--wheat) 55%, #2b2620); border-radius: 1px; }
.tx-strip p { margin: 6px 0 0; font: 500 0.56rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tx-sub { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); } .tx-sub h3 { margin: 0 0 4px; font-size: 1.35rem; } .tx-sub .tl-help { margin: 0 0 14px; }
.tx-notes { margin: 18px 0 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--muted); line-height: 1.55; max-width: 72ch; } .tx-notes b { color: var(--fg); font-weight: 500; }
.tx-act { margin: 18px 0 0; }

/* day to night */
.tx-place { display: grid; gap: 6px; margin-bottom: 14px; } .tx-place .tl-mrow { display: flex; gap: 6px; } .tx-place input { flex: 1; min-width: 0; }
.tx-place .tl-link { justify-self: start; }
.tx-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tx-res button { width: 100%; text-align: left; border: 1px solid var(--line); background: rgba(0,0,0,0.25); color: var(--fg); font: inherit; font-size: 0.9rem; padding: 9px 12px; cursor: pointer; } .tx-res button:hover { border-color: var(--wheat); }
.tx-tz { max-width: 360px; margin-bottom: 6px; } .tx-chk { font-style: normal; font-size: 0.8rem; color: var(--ember); }
.tx-chart { margin: 20px 0 0; } .tx-chart svg { display: block; width: 100%; height: 130px; background: #121110; }
.tx-chart .b-g { fill: rgba(227,154,76,0.22); } .tx-chart .b-b { fill: rgba(77,111,180,0.35); } .tx-chart .b-t { fill: rgba(38,48,84,0.5); }
.tx-chart .hz { stroke: rgba(239,231,216,0.35); stroke-dasharray: 3 4; } .tx-chart polyline { fill: none; stroke: var(--wheat); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tx-chart figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font: 500 0.56rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tx-tw { overflow-x: auto; margin-top: 18px; }
.tx-rt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.tx-rt th { text-align: left; font: 500 0.56rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.tx-rt td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); } .tx-rt td b { font-weight: 500; }
.tx-rt td.ch { color: var(--wheat); font-weight: 500; }
.tx-rt i { font-style: normal; font: 500 0.56rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: rgba(239,231,216,0.08); }
.tx-rt .l-golden i { background: rgba(227,154,76,0.2); color: #e9a865; } .tx-rt .l-blue i { background: rgba(77,111,180,0.28); color: #9fb5e6; } .tx-rt .l-twilight i { background: rgba(60,70,120,0.3); color: #b6bde6; } .tx-rt .l-night i { background: rgba(255,255,255,0.05); color: var(--muted); }
.tx-und { font-style: normal; font-size: 0.78rem; color: var(--ember); }

/* the shot card */
.tx-card { position: sticky; top: calc(var(--head-h, 64px) + 24px); display: grid; gap: 14px; padding: 22px; border: 1px solid color-mix(in srgb, var(--ember) 40%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--ember) 8%, transparent), transparent 70%); }
.tx-name { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: 400 1.5rem/1.2 var(--display); padding: 4px 0 8px; }
.tx-name:focus { outline: none; border-bottom-color: var(--wheat); }
.tx-card dl { margin: 0; display: grid; }
.tx-card dl > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.tx-card dt { color: var(--muted); font-size: 0.85rem; } .tx-card dd { margin: 0; text-align: right; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tx-cardb { display: flex; flex-wrap: wrap; gap: 6px; } .tx-cardb .btn { padding: 10px 12px; }
.tx-mail { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); } .tx-mail .tl-fine { margin: 0; }
.tx-saved ul { list-style: none; margin: 8px 0 0; padding: 0; } .tx-saved li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.tx-saved li button:first-child { flex: 1; text-align: left; border: 0; background: none; color: var(--fg); padding: 9px 0; font: inherit; font-size: 0.92rem; cursor: pointer; } .tx-saved li button:first-child:hover { color: var(--wheat); }

/* interval guide */
.tx-guide { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); margin-top: clamp(72px, 10vw, 130px); }
.tx-guide h2 { margin: 8px 0 10px; font-size: clamp(2rem, 3.4vw, 3rem); } .tx-guide h2 em, .tx h1 em { color: var(--wheat); }
.tx-gt { width: 100%; border-collapse: collapse; }
.tx-gt th, .tx-gt td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.tx-gt thead th { font: 500 0.56rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tx-gt tbody th { font-weight: 400; width: 30%; } .tx-gt tbody th button { border: 0; background: none; color: var(--fg); font: 400 1.1rem/1.3 var(--display); padding: 0; text-align: left; cursor: pointer; } .tx-gt tbody th button:hover { color: var(--wheat); }
.tx-gt td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--wheat); }
.tx-gt td:last-child { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

@media print {
  body.tx-printing > *:not(main), body.tx-printing main > *:not(.tx), body.tx-printing .tx-hero, body.tx-printing .tl-hero, body.tx-printing .tx-work, body.tx-printing .tx-guide, body.tx-printing .ps-faq, body.tx-printing .tl-end, body.tx-printing .tl-more, body.tx-printing .tx-cardb, body.tx-printing .tx-mail, body.tx-printing .tx-saved { display: none !important; }
  body.tx-printing { background: #fff !important; }
  body.tx-printing .tx-layout { display: block; } body.tx-printing .tx-card { position: static; border: 1px solid #ccc; background: none; color: #1b1916; max-width: 520px; }
  body.tx-printing .tx-card * { color: #1b1916 !important; } body.tx-printing .tx-name { font-family: Georgia, serif; border-color: #ccc; }
}
@media (max-width: 1100px) { .tx-layout { grid-template-columns: 1fr; } .tx-card { position: static; } }
@media (max-width: 760px) {
  .tx-grid3 { grid-template-columns: 1fr 1fr; } .tx-guide { grid-template-columns: 1fr; }
  .tx-gt thead { display: none; } .tx-gt tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); } .tx-gt th, .tx-gt td { border: 0; padding: 2px 0; } .tx-gt tbody th { width: auto; } .tx-gt td:last-child { grid-column: 1 / -1; }
  .tx-big + .tx-big { border-left: 0; padding-left: 0; } .tx-bigs { grid-template-columns: 1fr 1fr; } .tx-big { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); }
}
