/* Nolvelink TW — global styles on top of Tailwind CDN */

:root {
  --brand-indigo: #3b5bdb;
  --brand-indigo-dark: #2f49af;
  --brand-navy: #0f172a;
  --brand-slate: #1e293b;
  --brand-bg: #f8fafc;
  --brand-teal: #14b8a6;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #1e293b; background: #ffffff; }

/* gradient text accent (matches nolvelink.com hero) */
.text-gradient {
  background: linear-gradient(90deg, #3b5bdb 0%, #6366f1 50%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* pill badge used above section headings */
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3b5bdb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pill-dark {
  background: rgba(255,255,255,0.08);
  color: #c7d2fe;
}

/* card surface */
.surface {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.surface:hover { box-shadow: 0 10px 30px rgba(15,23,42,0.08); transform: translateY(-2px); }

/* small colored icon tile */
.icon-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef2ff; color: #3b5bdb;
}
.icon-tile.teal { background: #ccfbf1; color: #0d9488; }
.icon-tile.amber { background: #fef3c7; color: #b45309; }
.icon-tile.slate { background: #f1f5f9; color: #334155; }

/* dropdown */
.has-dropdown { position: relative; }
.has-dropdown > .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(15,23,42,0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 50;
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu,
.has-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  font-weight: 500;
  font-size: 14px;
}
.dropdown-menu a:hover { background: #f1f5f9; color: #0f172a; }
.dropdown-menu .group-label {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid #3b5bdb;
  outline-offset: 2px;
  border-radius: 6px;
}

/* mobile nav */
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 901px) {
  .mobile-only { display: none !important; }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: #ffffff;
  z-index: 40;
  padding: 24px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-menu details summary {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-menu details[open] summary { color: #3b5bdb; }
.mobile-menu details a { padding-left: 12px; font-weight: 500; color: #475569; }

/* table — printer cartridges */
.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table th { background: #f1f5f9; color: #475569; font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.cart-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #1e293b; }
.cart-table tr:hover td { background: #f8fafc; }
.cart-table .machine { font-weight: 600; }
.cart-table .oem { color: #475569; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.cart-table .cw { color: #3b5bdb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.cart-table .yield { font-weight: 600; color: #0f172a; }

/* anchor offset under sticky nav */
section[id], h2[id], h3[id] { scroll-margin-top: 96px; }
