/* Parent Tools (/tools/ only). Uses the palette tokens from style.css. */

/* Hub */
.tools-hub { padding-top: 24px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tool-tile { display: flex; flex-direction: column; background: var(--color-surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--color-text); transition: transform .2s ease, box-shadow .2s ease; }
.tool-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(31,42,51,0.14); }
.tool-tile img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.tool-tile-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tool-tile-type { font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-calm-text); background: var(--color-bg-soft); align-self: flex-start; padding: 3px 10px; border-radius: 999px; }
.tool-tile strong { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.25; }
.tool-tile-body > span:not(.tool-tile-type):not(.text-link) { font-size: 0.93rem; color: #4A5A66; flex: 1; }

/* Tool hero */
.tool-hero { background: linear-gradient(160deg, var(--color-bg-soft) 0%, var(--color-bg) 70%); padding: 36px 0 48px; }
.tool-hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.tool-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.tool-intro { font-size: 1.1rem; }
.tool-hero-photo { border-radius: 20px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.btn-ghost { font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--color-secondary); background: transparent; color: var(--color-secondary); cursor: pointer; }
.btn-ghost:hover { background: var(--color-secondary); color: #fff; }
.tool-meta { font-size: 0.85rem; color: #4A5A66; margin: 0; }

/* Facts band */
.tool-facts { background: var(--color-secondary); color: #fff; padding: 26px 0; }
.tool-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; text-align: center; }
.tool-fact strong { display: block; font-family: var(--font-heading); font-size: 1.9rem; color: var(--color-accent); line-height: 1.1; }
.tool-fact span { font-size: 0.9rem; }

/* Main working area */
.tool-main { padding-top: 56px; }
.privacy-line { text-align: center; font-size: 0.9rem; background: var(--color-bg-blue); border-radius: 999px; padding: 8px 18px; max-width: 620px; margin: 0 auto 26px; }
.tool-panel { background: var(--color-surface); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; margin-bottom: 40px; border-top: 6px solid var(--color-calm); }
.tool-panel > h2 { text-align: center; }
.tool-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: center; margin-bottom: 18px; }
.tool-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.tool-form input, .tool-form select, .tool-field textarea, .tool-field input { font: inherit; padding: 11px 14px; border: 2px solid var(--color-border); border-radius: 10px; background: #fff; min-width: 180px; }
.tool-form input:focus, .tool-form select:focus, .tool-field textarea:focus, .tool-field input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(50,126,162,0.2); }
.check-inline { flex-direction: row !important; align-items: center; font-weight: 500 !important; }
.check-inline input { min-width: 0 !important; width: 20px; height: 20px; }
.tool-result { border-radius: 14px; padding: 20px 22px; background: var(--color-bg-soft); margin-top: 18px; }
.tool-result:empty { display: none; }
.tool-result.warn { background: #FFF6D6; border-left: 6px solid var(--color-accent); }
.tool-result.alert { background: #FDE8E8; border-left: 6px solid #C62828; }
.tool-result h3 { margin-top: 0; }
.tool-note { font-size: 0.88rem; color: #4A5A66; text-align: center; }

/* Body blocks */
.tool-section { padding: 56px 0; }
.tool-section.alt { background: var(--color-bg-blue); }
.tool-section h2 { text-align: center; }
.photo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.photo-split img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.photo-split h2 { text-align: left; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 22px; }
.info-card { background: var(--color-surface); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { margin: 0; font-size: 0.95rem; }
.info-card .big { font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary); line-height: 1; display: block; margin-bottom: 6px; }
.callout { border-radius: 14px; padding: 18px 22px; background: var(--color-bg-soft); border-left: 6px solid var(--color-calm); margin: 22px 0; }
.callout.yellow { background: #FFF6D6; border-color: var(--color-accent); }
.callout.red { background: #FDE8E8; border-color: #C62828; }
.tool-table-wrap { overflow-x: auto; }
.tool-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: 0.95rem; }
.tool-table th, .tool-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--color-border); }
.tool-table thead th { background: var(--color-secondary); color: #fff; }
.tool-table tr.now td, .tool-table tr.now th { background: #FFF6D6; font-weight: 600; }

/* Checklists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; background: var(--color-surface); border: 2px solid var(--color-border); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.checklist input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--color-calm); flex-shrink: 0; }
.checklist input:checked + span { text-decoration: line-through; color: #6B7B86; }
.progress { --p: 0%; height: 26px; border-radius: 999px; background: var(--color-border); position: relative; margin: 16px 0; overflow: hidden; }
.progress::before { content: ""; position: absolute; inset: 0; width: var(--p); background: var(--color-calm); transition: width .3s ease; }
.progress span { position: relative; display: block; text-align: center; font-size: 0.85rem; font-weight: 600; line-height: 26px; }

/* Related + sources */
.tool-related { padding: 56px 0; background: var(--color-bg-soft); }
.tool-related h2 { text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.related-card { background: var(--color-surface); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--color-text); display: flex; flex-direction: column; gap: 4px; }
.related-card:hover strong { color: var(--color-secondary); text-decoration: underline; }
.related-kind { font-size: 0.72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-calm-text); }
.related-card span:last-child { font-size: 0.9rem; color: #4A5A66; }
.tool-sources { padding: 48px 0; font-size: 0.95rem; }
.tool-sources ul { padding-left: 20px; }
.tool-disclaimer { font-size: 0.88rem; color: #4A5A66; border-top: 1px solid var(--color-border); padding-top: 14px; }

@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .tool-hero-inner, .photo-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-panel { padding: 22px 16px; }
  .tool-form { flex-direction: column; align-items: stretch; }
  .tool-form input, .tool-form select { min-width: 0; width: 100%; }
  .tool-hero { padding: 24px 0 36px; }
}

/* Print: keep the working area, drop chrome and photos */
@media print {
  .utility-bar, .site-nav, .site-footer, .call-bar, .no-print, .tool-hero-photo, .tool-facts, .tool-related, .cta-strip, .skip-link, .tool-faq, .photo-split img { display: none !important; }
  body { background: #fff; padding: 0; font-size: 11pt; }
  .tool-hero { background: none; padding: 0 0 8px; }
  .tool-hero-inner { display: block; }
  .tool-main { padding-top: 0; }
  .tool-panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .tool-section { padding: 16px 0; background: none !important; }
  a { color: #000; }
}
