/* =============================================================
   cri-one-store-match.css  v1.1
   Harmonizes the root cri-one.com site with the Magento store
   theme: Arial everywhere and classic blue links.

   Deliberately does NOT force page backgrounds, so dark-themed
   pages (video gallery, etc.) keep their look while adopting the
   store's typography and link colors.

   Store palette, for reference by page styles:
     background        #ffffff
     section tint      #f4f6f8
     body text         #3d4a58
     muted text        #6b7785
     headings/accents  #2f3f4f
     secondary accent  #4a5f73
     borders           #ccd3da
     links             rgb(0, 0, 238)  (classic blue)
   ============================================================= */

:root {
  --cri-bg: #ffffff;
  --cri-tint: #f4f6f8;
  --cri-ink: #3d4a58;
  --cri-muted: #6b7785;
  --cri-head: #2f3f4f;
  --cri-accent: #4a5f73;
  --cri-border: #ccd3da;
  --cri-link: rgb(0, 0, 238);
}

body,
h1, h2, h3, h4, h5, h6,
p, li, td, th, dd, dt, blockquote, figcaption, label, summary,
button, input, select, textarea {
  font-family: Arial, Helvetica, sans-serif;
}

code, pre, kbd, samp {
  font-family: Consolas, "Courier New", monospace;
}

a {
  color: var(--cri-link);
}

a:visited {
  color: rgb(85, 26, 139); /* classic visited purple */
}

/* Dark pages: keep links readable on dark backgrounds */
[data-theme="dark"] a,
.dark a {
  color: #8ab4f8;
}

::selection {
  background: var(--cri-accent);
  color: #ffffff;
}

/* Top nav bar — match Magento store announcement bar (.panel.wrapper) */
#crione-topnav {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #6e716e !important;
  padding: 4px 12px;
  min-height: 32px;
  border-bottom: 1px solid #585b58 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}
#crione-topnav a,
#crione-topnav a:link,
#crione-topnav a:visited {
  color: #ffffff !important;
  text-decoration: none;
}
#crione-topnav a:hover {
  color: #eef1f4 !important;
  text-decoration: underline;
}
#crione-topnav .crione-nav-brand {
  color: #fff !important;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
}
#crione-topnav .crione-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
#crione-topnav .crione-nav-links a {
  padding: 2px 8px;
  font-size: 12px;
  white-space: nowrap;
}
#crione-topnav .crione-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff !important;
  font-size: 1.2em;
  cursor: pointer;
  padding: 2px;
}
#crione-topnav .crione-nav-rss {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
@media (max-width: 600px) {
  #crione-topnav {
    flex-wrap: wrap;
    padding: 4px 8px;
  }
  #crione-topnav .crione-nav-toggle {
    display: block;
  }
  #crione-topnav .crione-nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
  }
  #crione-topnav.open .crione-nav-links {
    display: flex;
  }
  #crione-topnav .crione-nav-links a {
    text-align: left;
    padding: 4px 8px;
  }
}
