/* tool-shell-chrome.css
 * Minimal site header + footer baked into standalone tool URLs so direct-URL
 * visitors and crawlers see brand identification + nav + trust-page links.
 * Hidden when the tool is loaded inside the SPA iframe (html.tf-embedded).
 */

/* Shared base */
.tf-shell-header,
.tf-shell-footer {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  color: var(--text, #1a1a2e);
  background: var(--bg, #f5f3ef);
  box-sizing: border-box;
  width: 100%;
}
.tf-shell-header *,
.tf-shell-footer * { box-sizing: border-box; }
.tf-shell-header a,
.tf-shell-footer a { text-decoration: none; color: inherit; }
html.tf-embedded .tf-shell-header,
html.tf-embedded .tf-shell-footer { display: none !important; }

/* Header */
.tf-shell-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--border, #e5e7eb);
  padding: 12px 20px;
}
.tf-shell-header .tf-shell-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tf-shell-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: inherit;
}
.tf-shell-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--primary, #e0a830);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.tf-shell-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.tf-shell-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #6b7280);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.tf-shell-nav a:hover,
.tf-shell-nav a:focus-visible {
  color: var(--text, #1a1a2e);
  background: rgba(0, 0, 0, 0.04);
  outline: none;
}

/* Footer */
.tf-shell-footer {
  margin-top: 64px;
  padding: 48px 20px 28px;
  border-top: 1px solid var(--border, #e5e7eb);
  background: var(--surface-inset, var(--bg, #f5f3ef));
}
.tf-shell-footer .tf-shell-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.tf-shell-foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 720px) {
  .tf-shell-foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.tf-shell-tagline {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.55;
  max-width: 280px;
}
.tf-shell-foot-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint, #9ca3af);
  margin: 0 0 12px;
}
.tf-shell-foot-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
  padding: 4px 0;
  transition: color 0.12s;
}
.tf-shell-foot-col a:hover {
  color: var(--primary, #e0a830);
}
.tf-shell-foot-bot {
  padding-top: 22px;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 0.78rem;
  color: var(--text-faint, #9ca3af);
  text-align: center;
}

/* Dark theme */
html[data-theme="dark"] .tf-shell-header,
html[data-theme="dark"] .tf-shell-footer {
  color: #e8eaf0;
  background: #0f1117;
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .tf-shell-nav a { color: #9da3be; }
html[data-theme="dark"] .tf-shell-nav a:hover {
  color: #e8eaf0;
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .tf-shell-footer { background: #161b27; }
html[data-theme="dark"] .tf-shell-foot-col a { color: #9da3be; }
html[data-theme="dark"] .tf-shell-foot-col a:hover { color: var(--primary, #e0a830); }
html[data-theme="dark"] .tf-shell-foot-bot {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #5e6480;
}
