/*
 * tools.beehivedigitalsol.com: the public free-tools site.
 * The look is beehivedigitalsol.com's (same values as the main site and the
 * private /tools dashboard's tools.css): cream ground with a drifting honey
 * glow, glass header pill, Space Grotesk headings, ink pill buttons.
 */
:root {
  color-scheme: light;
  --bt-ground: #F6F1E8;
  --bt-cream: #FBF3DF;
  --bt-ink: #1A1712;
  --bt-muted: rgba(26, 23, 18, 0.64);
  --bt-faint: rgba(26, 23, 18, 0.46);
  --bt-line: rgba(26, 23, 18, 0.10);
  --bt-gold: #9A6B10;
  --bt-gold-text: #7C5509;
  --bt-honey: #F3DC93;
  --bt-glass: rgba(255, 255, 255, 0.52);
  --bt-field: rgba(255, 255, 255, 0.82);
  --bt-ok: #2F7A4A;
  --bt-bad: #B3261E;
  --bt-display: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  --bt-body: 'IBM Plex Sans', system-ui, sans-serif;
  --bt-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --bt-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 40px rgba(90, 70, 40, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bt-ground); }
body { min-height: 100vh; display: flex; flex-direction: column; color: var(--bt-ink); font-family: var(--bt-body);
  font-size: 15px; line-height: 1.5; overflow-x: clip; }
a { color: var(--bt-ink); text-decoration: none; }
a:hover { color: var(--bt-gold); }
::selection { background: var(--bt-honey); color: var(--bt-ink); }

/* ------------------------------------------------------------ the ground */

.bt-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(150deg, #FBF3DF 0%, #F7EFE3 40%, #F1EBE4 70%, #EFEAE6 100%); }
.bt-glow i { position: absolute; border-radius: 50%; animation: btDrift 18s ease-in-out infinite; }
.bt-glow i:nth-child(1) { width: 640px; height: 640px; top: -170px; right: -60px; filter: blur(30px);
  background: radial-gradient(circle, rgba(243, 220, 147, 0.72) 0%, rgba(243, 220, 147, 0) 66%); }
.bt-glow i:nth-child(2) { width: 560px; height: 560px; bottom: -160px; left: 0; filter: blur(34px);
  animation-duration: 24s; animation-delay: -6s;
  background: radial-gradient(circle, rgba(226, 161, 96, 0.40) 0%, rgba(226, 161, 96, 0) 68%); }
.bt-glow i:nth-child(3) { width: 530px; height: 530px; top: 40%; left: -200px; filter: blur(36px);
  animation-duration: 21s; animation-delay: -11s;
  background: radial-gradient(circle, rgba(250, 236, 198, 0.85) 0%, rgba(250, 236, 198, 0) 70%); }
@keyframes btDrift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3%, -4%) scale(1.09); }
  100% { transform: translate(0, 0) scale(1); } }
@keyframes btRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ the header */

.bt-header { position: sticky; top: 0; z-index: 40; padding: 14px 28px; }
.bt-bar { position: relative; max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 12px 18px;
  flex-wrap: wrap; padding: 10px 12px; border-radius: 30px; background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 20px 20px rgba(90, 70, 40, 0.10);
  -webkit-backdrop-filter: blur(15px) saturate(1.5); backdrop-filter: blur(15px) saturate(1.5); }
.bt-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bt-brand:hover { color: var(--bt-ink); }
.bt-mark { flex: none; width: 44px; height: 44px; border-radius: 16px; background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(154, 107, 16, 0.14);
  transition: transform .25s ease; }
.bt-brand:hover .bt-mark { transform: translateY(-4px) rotate(-6deg); }
.bt-mark img { display: block; width: 100%; height: 100%; padding: 20%; object-fit: contain; }
.bt-word { display: grid; line-height: 1.15; }
.bt-word b { font-family: var(--bt-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.bt-word small { font-family: var(--bt-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--bt-faint);
  text-transform: uppercase; white-space: nowrap; }
.bt-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.bt-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: rgba(26, 23, 18, 0.66); white-space: nowrap; }
.bt-pill:hover { color: var(--bt-ink); background: rgba(255, 255, 255, 0.34); }
.bt-pill[aria-current="page"] { color: var(--bt-ink); background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75); }
.bt-pill svg { flex: none; width: 16px; height: 16px; }
@media (max-width: 640px) {
  .bt-header { padding: 10px 16px; }
  .bt-pill { padding: 8px 11px; font-size: 13px; }
  .bt-pill.bt-hide-sm { display: none; }
  .bt-bar { flex-wrap: nowrap; }
  .bt-word small { display: none; }
  .bt-mark { width: 38px; height: 38px; border-radius: 14px; }
}

/* ------------------------------------------------------------ buttons */

.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; border-radius: 999px; padding: 12px 22px;
  border: 0; color: #FBF7EF; background: rgba(22, 19, 15, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 20px rgba(40, 30, 15, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.bt-btn:hover { color: #FBF7EF; transform: translateY(-1px); }
.bt-btn.bt-light { color: var(--bt-ink); background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px rgba(90, 70, 40, 0.08); }
.bt-btn.bt-light:hover { color: var(--bt-ink); background: rgba(255, 255, 255, 0.9); }
.bt-btn.bt-small { padding: 8px 14px; font-size: 13px; }
.bt-btn svg { flex: none; width: 16px; height: 16px; }
.bt-btn:focus-visible, .bt-pill:focus-visible, .bt-card:focus-visible, a:focus-visible {
  outline: 2px solid var(--bt-gold-text); outline-offset: 2px; }
.bt-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------ the page */

.bt-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 28px 64px; }
@media (max-width: 640px) { .bt-main { padding: 20px 16px 48px; } }
.bt-rise { animation: btRise .5s ease both; }
.bt-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.42); font-family: var(--bt-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bt-muted); }
.bt-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bt-gold); }
.bt-h1 { margin: 0 0 12px; font-family: var(--bt-display); font-weight: 700; font-size: clamp(36px, 6vw, 60px);
  line-height: 1.02; letter-spacing: -0.038em; }
.bt-h1 em { font-style: normal; color: var(--bt-gold); }
.bt-lead { margin: 0 0 28px; max-width: 680px; font-size: 17px; color: var(--bt-muted); text-wrap: pretty; }
.bt-panel { border-radius: 24px; background: var(--bt-glass); border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--bt-card-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* The hub: one card per tool. */
.bt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.bt-card { display: grid; gap: 10px; align-content: start; padding: 26px; min-height: 220px;
  transition: transform .2s ease, box-shadow .2s ease; }
.bt-card:hover { color: var(--bt-ink); transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 26px 50px rgba(90, 70, 40, 0.14); }
.bt-card.bt-soon { opacity: .7; border-style: dashed; border-color: rgba(26, 23, 18, 0.16); box-shadow: none; }
.bt-card.bt-soon:hover { transform: none; }
.bt-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(#F7E7B0, #F0D586); color: var(--bt-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 20px rgba(154, 107, 16, 0.18); }
.bt-icon svg { width: 24px; height: 24px; }
.bt-card h2 { margin: 0; font-family: var(--bt-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.bt-card p { margin: 0; color: var(--bt-muted); }
.bt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-tag { font-family: var(--bt-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); color: var(--bt-muted); }
.bt-go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--bt-gold-text); }

/* ------------------------------------------------------------ the footer */

.bt-footer { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px 32px; }
.bt-footer .bt-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; }
.bt-footer h3 { margin: 0 0 2px; font-family: var(--bt-display); font-size: 19px; letter-spacing: -0.015em; }
.bt-footer p { margin: 0; color: var(--bt-muted); font-size: 14px; }
.bt-fine { margin-top: 14px !important; text-align: center; font-size: 12.5px !important; color: var(--bt-faint) !important; }
.bt-fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .bt-footer { padding: 0 16px 24px; } }

/* ------------------------------------------------------------ tooltips */

/* Info dots that sit beside a label. Click or tap to open the help bubble. */
.tip-i { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; margin: 0;
  border-radius: 50%; border: 1px solid rgba(154, 107, 16, 0.35); background: rgba(243, 220, 147, 0.45);
  color: var(--bt-gold-text); font: 700 11px/1 var(--bt-body); cursor: pointer; vertical-align: middle;
  text-transform: none; letter-spacing: 0; }
.tip-i:hover, .tip-i[aria-expanded="true"] { background: var(--bt-honey); border-color: var(--bt-gold); }
.tip-i:focus-visible { outline: 2px solid var(--bt-gold-text); outline-offset: 2px; }

#bt-tip { position: fixed; z-index: 100; max-width: min(300px, calc(100vw - 24px)); padding: 10px 13px;
  border-radius: 12px; background: rgba(26, 23, 18, 0.95); color: #FBF7EF; font: 400 13px/1.45 var(--bt-body);
  box-shadow: 0 14px 30px rgba(40, 30, 15, 0.28); pointer-events: none; opacity: 0;
  transform: translateY(4px); transition: opacity .12s ease, transform .12s ease; text-wrap: pretty; }
#bt-tip.on { opacity: 1; transform: none; }
#bt-tip b { color: var(--bt-honey); font-weight: 600; }
#bt-tip::after { content: ''; position: absolute; left: var(--arrow-x, 50%); width: 10px; height: 10px; margin-left: -5px;
  background: inherit; transform: rotate(45deg); }
#bt-tip[data-side="top"]::after { bottom: -5px; }
#bt-tip[data-side="bottom"]::after { top: -5px; }

@media (prefers-reduced-motion: reduce) {
  .bt-glow i { animation: none; } .bt-rise { animation: none !important; }
  * { transition: none !important; }
}
