/* ===== Brand tokens ===== */
:root
{
  --brand:#207EC0;
  /* your purple */
  --brand: #207EC0;
  --brand-600: #592FBC;
  --brand-700: #4F2D9F;
  --brand-50: #F4F0FF;
  --ink: #272044;
  /* your w3-text-teal override choice */
  --ink-weak: #3a3a3a;
  --muted: #757575;
  --border: #e5e5e5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);
  --focus: #ffc955;
  /* golden focus ring */
}
/* ===== Global tweaks ===== */
/* Restore visible keyboard focus (your base removed outlines) */
:where(a, button, [role="button"], input, select, textarea):focus-visible
{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
a:hover, a:active
{
  outline: none;
}
/* rely on focus-visible above */
html
{
  overflow-x: hidden;
}
body
{
  color: var(--ink);
}
/* Better defaults for images to reduce CLS (set real sizes inline where possible) */
img
{
  height: auto;
  max-width: 100%;
}
/* Headings: use your site font stack from layout; slightly tighter margins */
h1, h2, h3, h4, h5, h6
{
  margin: 0.6em 0 0.4em;
  color: var(--ink);
}
h2
{
  font-weight: 700;
  color: #2657B2;
}
/* ===== Layout fixes ===== */
/* Your copy had w3-twothird wrong; correct it + the m8 alias */
@media (min-width: 601px)
{
  .w3-twothird, .w3-col.m8
  {
    width: 66.6667% !important;
  }
}
/* Top bar height in your theme is 80px; ensure main content clears it */
.w3-main, #main
{
  margin-top: 80px;
}
/* Make overlay actually cover and be clickable */
#myOverlay
{
  cursor: pointer;
}
/* Sidebar animation is fine, but hide on desktop per W3 intent */
@media (min-width: 993px)
{
  .w3-sidebar.w3-collapse
  {
    display: none !important;
  }
}
/* ===== Tables (comparison) ===== */
.w3-table-all
{
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.w3-table-all th, .w3-table-all td
{
  padding: 10px 12px;
  vertical-align: middle;
}
.w3-table-all thead th
{
  background: #FAFAFA;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.w3-hoverable tbody tr:hover
{
  background-color: #F6F6F6;
}
/* Caption styling for accessibility (you added a caption in markup) */
.w3-table-all caption
{
  color: var(--muted);
  padding: 6px 0 10px;
}
/* ===== Buttons ===== */
.button
{
  --_bg: var(--brand);
  --_bg-hover: var(--brand-600);
  --_ring: color-mix(in srgb, var(--brand) 60%, white);
  display: inline-block;
  background: var(--_bg);
  color: #FFF;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--_bg);
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.06s ease, box-shadow 0.15s ease;
}
.button:hover
{
  background: var(--_bg-hover);
  box-shadow: var(--shadow-md);
}
.button:active
{
  transform: translateY(1px);
}
.button:focus-visible
{
  outline-color: var(--_ring);
}
/* Secondary button used on vendor cards */
.button_minor, .button-minor
{
  display: inline-block;
  background: #FFF;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.button_minor:hover, .button-minor:hover
{
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}
/* ===== Cards (feature/runner-up) ===== */
.feature, .runnerup
{
  background: #FFF;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 12px 16px 14px;
  box-shadow: var(--shadow-sm);
}
.feature
{
  border-color: rgba(248, 143, 177, 0.55);
}
/* keep your pink accent */
.runnerup
{
  border-color: #BAE3FF;
}
.headerBlock
{
  display: flex !important;
  align-items: center;
  gap: 12px;
}
.logo
{
  width: 50px;
  height: 50px;
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #AE8DFE;
  background: #FFF;
  padding: 5px;
  box-shadow: 3px 3px 10px #E0E0E0;
}
/* ===== Utilities ===== */
.w3-text-teal
{
  color: var(--ink) !important;
}
/* your palette choice */
hr
{
  width: 20%;
  border: 0;
  height: 1px;
  background: #885DF1;
  margin: 0.75em auto;
}
/* Fix overly aggressive hover in base W3 that flipped text colors */
.w3-button:hover
{
  color: #FFF !important;
  background-color: var(--brand) !important;
}
/* ===== Motion reduction ===== */
@media (prefers-reduced-motion: reduce)
{
  *
  {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ===== Optional: dark mode friendly tweaks (uses OS preference) ===== */
@media (prefers-color-scheme: dark)
{
  body
  {
    color: #EAEAEA;
    background: #0F1115;
  }
  .w3-table-all
  {
    border-color: #2A2E35;
  }
  .w3-table-all thead th
  {
    background: #171A20;
    border-bottom-color: #2A2E35;
  }
  .w3-hoverable tbody tr:hover
  {
    background: #171A20;
  }
  .feature, .runnerup
  {
    background: #12151B;
    border-color: #2A2E35;
    box-shadow: none;
  }
  .button_minor, .button-minor
  {
    background: transparent;
  }
  hr
  {
    background: #7E6BF0;
  }
}
