/* tools.tosync.net — shared look for the tool portal pages (matches the TMD tool header) */
:root {
    --navy: #223043; --ice: #d6e0eb; --mist: #f3f6f9; --ink: #1d2733; --muted: #5b6878;
    --line: #dfe5ec; --primary: #155fa6; --primary-hover: #104b85; --brand: #c91d35;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--mist); color: var(--ink); line-height: 1.5;
    min-height: 100vh; display: flex; flex-direction: column;
}
header { background: var(--navy); border-bottom: 3px solid var(--brand); }
.bar { max-width: 1040px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 0.9rem; }
.bar img { width: 190px; height: auto; display: block; }
.bar .divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, 0.22); }
.bar .label { color: var(--ice); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.35; }
.bar .wordmark { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
h1 { font-size: 1.6rem; margin: 0 0 0.35rem; }
.lead { color: var(--muted); margin: 0 0 2rem; max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.card {
    display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.35rem;
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: 8px;
    color: inherit; text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover, .card:focus-visible { border-color: var(--primary); box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12); transform: translateY(-1px); outline: none; }
.card h2 { font-size: 1.1rem; margin: 0; color: var(--primary); }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.card .go { margin-top: auto; padding-top: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.card:hover .go { color: var(--primary-hover); }
.tag { align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
       color: var(--muted); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; }
footer { color: var(--muted); font-size: 0.8rem; text-align: center; padding: 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .bar img { width: 150px; } main { padding-top: 1.75rem; } }
