/* Brand patch — overlaid on legacy tool pages to bring them in line with
 * the main brand. Load AFTER the tool's inline <style> block so these
 * declarations win the cascade without needing !important.
 *
 * Maintained in tandem with brand.css (used by hub + auth + meta-generator).
 * If you tweak brand.css, mirror the relevant changes here.
 */

:root {
  /* Brand inversion: body becomes cream, cards become white */
  --bg: #f8f4e3;                /* cream (was #ffffff white) */
  --bg-elevated: #ede8d6;       /* cream-dark for distinct sections */
  --bg-card: #ffffff;           /* white card backgrounds (was #faf8f0 cream-tinted) */
  --bg-input: #ffffff;          /* keep inputs white */
  --border: #d8d3c0;            /* slightly darker border to stand out against cream */

  --accent: #95b19a;            /* sage-light (was sage-dark #688c6d) */
  --accent-light: #95b19a;
  --accent-dim: rgba(149, 177, 154, 0.12);
  --accent-glow: rgba(149, 177, 154, 0.25);
  --accent-hover: #7ea584;      /* darker sage for button hover */
  --warm: #7cc6fe;              /* repurpose as sky accent for top brand bar */
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Body: use cream bg + normal weight (was 300 thin in legacy) */
body {
  background: var(--bg);
  font-weight: 400;
}

/* Top brand bar — sage → sky, matching the main site */
body::after {
  background: linear-gradient(90deg, var(--accent-light), var(--warm));
}

/* Buttons — match the brand pattern: sage bg + charcoal text + uppercase + tracked */
.btn {
  border-radius: 6px;
  font-weight: 700;
}
.btn-primary {
  color: #2a2b2a;
  background: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 12px;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #2a2b2a;
}
.btn-secondary {
  border-radius: 6px;
}

/* Inputs — 3px radius matching the brand */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="search"],
input[type="number"],
textarea,
select,
.input {
  border-radius: 3px;
}
input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus,
.input:focus {
  border-color: #2a2b2a;
  box-shadow: 0 0 0 3px rgba(42, 43, 42, 0.12);
}

/* Parent-brand anchor — sits above legacy tool's body::after gradient bar */
.top-brand-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 10px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: color 0.15s;
}
.top-brand-strip:hover { color: var(--text); }
.top-brand-strip img {
  display: block;
  border-radius: 3px;
  flex-shrink: 0;
}
.top-brand-strip .ext-arrow {
  width: 10px;
  height: 10px;
  opacity: 0.55;
  flex-shrink: 0;
}
.top-brand-strip:hover .ext-arrow { opacity: 1; }

/* Center divider with text — replace legacy absolute-positioned pseudo-elements
 * with a flexbox version that handles any text length cleanly. The legacy
 * version sized the flanking lines as calc(50% - 60px), leaving only ~120px
 * of gap in the middle which cut through longer divider text like
 * "OR PASTE HTML SOURCE CODE". */
.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  position: static;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  position: static;
  width: auto;
  top: auto;
  left: auto;
  right: auto;
}
