/* Free tools (time zone planner, add-to-calendar generator). Builds on
   style.css and compare.css: same hero, body and FAQ styles as the money pages. */
.tool-card { margin: 8px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg);
  box-shadow: 0 10px 30px rgba(17,101,126,.08); }
.tool-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.tool-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool-field.grow { flex: 1 1 240px; }
.tool-field label, .tool-label { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.tool-card input[type="text"], .tool-card input[type="date"], .tool-card input[type="time"], .tool-card select, .tool-card textarea {
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; min-height: 42px; width: 100%; box-sizing: border-box; }
.tool-card textarea { min-height: 84px; resize: vertical; }
.tool-card textarea.code { font: .8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; min-height: 120px; }
.tool-card input:focus-visible, .tool-card select:focus-visible, .tool-card textarea:focus-visible,
.tool-card button:focus-visible, .tool-card a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tool-check { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; min-height: 42px; }
.tool-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.tool-btn { font: inherit; font-size: .92rem; font-weight: 600; min-height: 42px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.tool-btn:hover { border-color: var(--teal); }
.tool-btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.tool-btn.primary:hover { background: var(--teal-deep); }
.tool-msg { min-height: 1.4em; margin: 10px 0 0; font-size: .9rem; color: var(--teal-deep); }
.tool-err { min-height: 1.4em; margin: 10px 0 0; font-size: .9rem; color: #c2410c; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool-noscript { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }

/* Time zone planner */
.tzp-date { display: flex; gap: 6px; }
.tzp-hours { display: flex; gap: 12px; }
.tzp-hours .tool-field { min-width: 140px; }
.tzp-date .tool-btn { min-width: 42px; padding: 0 10px; }
.tzp-grid { margin: 18px 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.tzp-table { border-collapse: separate; border-spacing: 0; font-size: .82rem; font-variant-numeric: tabular-nums; }
.tzp-table th { position: sticky; left: 0; z-index: 2; min-width: 170px; max-width: 210px; padding: 10px 12px; text-align: left;
  vertical-align: top; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 400; }
.tzp-city { display: block; font-weight: 700; font-size: .92rem; }
.tzp-off { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.tzp-row-tools { display: flex; gap: 6px; margin-top: 6px; }
.tzp-mini { font: inherit; font-size: .72rem; white-space: nowrap; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; }
.tzp-mini:hover { color: var(--teal-deep); border-color: var(--teal); }
.tzp-h { position: relative; min-width: 44px; height: 54px; padding: 0; text-align: center; color: var(--muted);
  border-bottom: 1px solid var(--line); border-left: 1px solid transparent; cursor: pointer; }
.tzp-h span { display: block; line-height: 1.2; }
.tzp-h small { display: block; font-size: .64rem; font-weight: 700; color: var(--teal-deep); text-transform: uppercase; letter-spacing: .04em; }
.tzp-h.night { background: var(--bg-soft); color: color-mix(in srgb, var(--muted) 70%, transparent); }
.tzp-h.work { background: color-mix(in srgb, var(--teal) 13%, transparent); color: var(--ink); }
.tzp-h.all { background: color-mix(in srgb, var(--teal) 32%, transparent); color: var(--ink); font-weight: 700; }
.tzp-h.daystart { border-left: 2px solid var(--periwinkle); }
.tzp-h.close { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--teal) 55%, transparent); }
.tzp-h.picked { box-shadow: inset 0 0 0 3px var(--teal-deep); }
tr:last-child .tzp-h, tr:last-child th { border-bottom: 0; }
.tzp-pick { all: unset; display: flex; flex-direction: column; justify-content: center; width: 100%; height: 54px; box-sizing: border-box; cursor: pointer; }
.tzp-pick:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; border-radius: 6px; }
.tzp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.tzp-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.tzp-best { margin: 14px 0 0; font-size: 1rem; }
.tzp-picked { margin: 16px 0 0; padding: 14px; border-radius: 12px; background: var(--bg-teal-soft); }
.tzp-picked .tool-row { flex-wrap: nowrap; }
.tzp-picked input { font-size: .92rem; }

/* Add-to-calendar generator */
.icsg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.icsg-grid .full { grid-column: 1 / -1; }
.icsg-when { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.icsg-out { margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); transition: opacity .15s; }
.icsg-out.stale { opacity: .45; }
.icsg-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.icsg-link { display: flex; gap: 6px; }
.icsg-link a.tool-btn { flex: 1; }
.icsg-link .tool-btn.copy { flex: 0 0 auto; padding: 0 12px; font-weight: 500; }
.icsg-out h3 { margin: 18px 0 8px; font-size: .95rem; }

/* Soft product section */
.tool-mp { margin: 48px 0 0; padding: 26px; border-radius: 18px; border: 1px solid rgba(45,154,185,.45);
  background: linear-gradient(150deg, var(--bg-teal-soft), var(--bg) 80%); }
.tool-mp h2 { margin-top: 0 !important; }
.tool-mp ul { margin: 10px 0 18px; }
.tool-more { margin: 32px 0 0; font-size: .95rem; }

@media (max-width: 640px) {
  .tool-card { padding: 16px; border-radius: 14px; }
  .icsg-grid { grid-template-columns: 1fr; }
  .tzp-table th { min-width: 118px; max-width: 128px; padding: 8px; }
  .tzp-city { font-size: .84rem; }
  .tzp-h { min-width: 40px; }
  .tzp-picked .tool-row { flex-wrap: wrap; }
  .tzp-hours { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tzp-hours .tool-field { min-width: 0; }
  .tzp-date { width: 100%; }
  .tzp-date input { flex: 1; }
  .tzp-off { font-size: .7rem; }
  .tool-mp { padding: 20px; }
}
