/* ==========================================================================
   27K Publishing — Shared Tool Shell
   --------------------------------------------------------------------------
   Styles the header/footer injected into every OnePage tool page via
   #tool-site-header / #tool-site-footer. Deliberately self-contained:
   it does NOT reference any individual tool's CSS variables, fonts, or
   color tokens (e.g. Craft Price Wizard's --cutmat/--ink/etc.), so it
   renders the same way no matter which tool it's dropped into. All
   selectors are scoped under .tool-shell-* to avoid collisions with a
   tool's own class names.
   ========================================================================== */

:root {
  --tool-shell-bg: #1E2320;
  --tool-shell-text: #F4F1EA;
  --tool-shell-muted: #A9A79C;
  --tool-shell-accent: #E3A73E;
  --tool-shell-line: rgba(244, 241, 234, 0.14);
  --tool-shell-max-width: 1100px;
  --tool-shell-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.tool-shell-header,
.tool-shell-footer {
  box-sizing: border-box;
  font-family: var(--tool-shell-font);
}
.tool-shell-header *,
.tool-shell-footer * {
  box-sizing: inherit;
}

.tool-shell-header a:focus-visible,
.tool-shell-footer a:focus-visible {
  outline: 2px solid var(--tool-shell-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.tool-shell-header {
  background: var(--tool-shell-bg);
  color: var(--tool-shell-text);
}

.tool-shell-header-inner {
  max-width: var(--tool-shell-max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tool-shell-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.tool-shell-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.tool-shell-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
}
.tool-shell-nav a {
  color: var(--tool-shell-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.tool-shell-nav a:hover {
  color: var(--tool-shell-text);
}

@media (max-width: 560px) {
  .tool-shell-header-inner {
    justify-content: center;
    text-align: center;
  }
  .tool-shell-nav {
    justify-content: center;
    gap: 0.75rem 1rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.tool-shell-footer {
  background: var(--tool-shell-bg);
  color: var(--tool-shell-muted);
}

.tool-shell-footer-inner {
  max-width: var(--tool-shell-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.tool-shell-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 640px) {
  .tool-shell-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    text-align: left;
  }
}

.tool-shell-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .tool-shell-footer-brand { align-items: flex-start; }
}
.tool-shell-footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.95;
}
.tool-shell-footer-tagline {
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 30ch;
  margin: 0;
  color: var(--tool-shell-muted);
}

.tool-shell-footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tool-shell-text);
  margin: 0 0 0.75rem;
}
.tool-shell-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tool-shell-footer-col a {
  color: var(--tool-shell-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.tool-shell-footer-col a:hover {
  color: var(--tool-shell-accent);
}

.tool-shell-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tool-shell-line);
  text-align: center;
  font-size: 0.8rem;
}
.tool-shell-footer-bottom p { margin: 0; }
