/* TourMan — the few styles Tailwind classes don't cover */
.tm-input {
    display: block;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 9px 12px;
    font: 500 14px/1.3 Outfit, system-ui, sans-serif;
    color: #0f172a;
}
.tm-input:focus { outline: 2px solid #6d5dfc; outline-offset: 1px; border-color: #6d5dfc; }
.tm-input[aria-invalid="true"] { border-color: #e11d48; }
.dark .tm-input { background: #111a2e; border-color: rgba(255, 255, 255, .12); color: #e2e8f0; color-scheme: dark; }
select.tm-input { padding-right: 32px; }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.tm-table th { white-space: nowrap; }
.tm-table tbody tr:hover { background: rgba(109, 93, 252, .05); }
.tm-table td, .tm-table th { vertical-align: middle; }

/* Crosstable cells */
.tm-cross td.cell { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-cross .self { background: repeating-linear-gradient(45deg, rgba(100,116,139,.12) 0 4px, transparent 4px 8px); }

/* Colour dots for white / black */
.tm-col { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.tm-col.w { background: #fff; border: 1px solid #94a3b8; }
.tm-col.b { background: #0f172a; border: 1px solid #0f172a; }
.dark .tm-col.b { border-color: #64748b; }

/* ---------- Landing page ---------- */
/* Faint chessboard squares that fade out towards the edges */
.tm-board-bg {
    background-image: conic-gradient(rgba(255,255,255,.06) 25%, transparent 0 50%, rgba(255,255,255,.06) 0 75%, transparent 0);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.tm-faq summary::-webkit-details-marker { display: none; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Print / Save as PDF ---------- */
@page { size: A4; margin: 14mm 12mm 16mm; }
.tm-print { font: 11px/1.35 Outfit, 'Segoe UI', Arial, 'Noto Sans', 'Microsoft YaHei', 'PingFang SC', sans-serif; color: #000; background: #fff; }
.tm-print h1 { font-size: 17px; margin: 0 0 2px; }
.tm-print .meta { color: #333; margin-bottom: 10px; }
.tm-print h2 { font-size: 13px; margin: 12px 0 6px; }
.tm-print table { width: 100%; border-collapse: collapse; }
.tm-print th, .tm-print td { border-bottom: 1px solid #ccc; padding: 3px 5px; text-align: left; }
.tm-print th { background: #eee; font-weight: 700; border-bottom: 1px solid #888; }
.tm-print thead { display: table-header-group; }
.tm-print tr { page-break-inside: avoid; }
.tm-print .num { text-align: right; font-variant-numeric: tabular-nums; }
.tm-print .c { text-align: center; }
.tm-print .foot { margin-top: 10px; color: #555; font-size: 9.5px; }
.tm-print .toolbar { position: sticky; top: 0; display: flex; gap: 8px; align-items: center; justify-content: space-between;
    background: #1e1b4b; color: #fff; padding: 10px 14px; margin: -16px -16px 16px; font-size: 13px; }
.tm-print .toolbar button, .tm-print .toolbar a { background: #fff; color: #1e1b4b; border: 0; border-radius: 10px; padding: 7px 14px; font: 600 13px Outfit, sans-serif; cursor: pointer; text-decoration: none; }
@media print {
    .tm-print .toolbar { display: none; }
    body.tm-print { padding: 0 !important; }
}
