/* =========================================================
   Professional Edge — Canvas Catalog MODERN Storefront CSS  (v3)
   Styles the elements our JS adds (#page-links, #pe-quicklinks, #pe-notices)
   plus the Login link, using Catalog's data-customizationid hooks.
   ========================================================= */
:root {
  --pe-green: #007030;
  --pe-darkgreen: #104735;
  --pe-text: #343434;
  --pe-yellow: #FEE11A;
}

/* ---------- Header links ---------- */
/* Right-hand header group (links + Login/account + cart): one row */
.pe-header-group,
.pe-acct-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end;
  gap: 12px;
}
.pe-header-group > *,
.pe-acct-row > * { margin-top: 0 !important; margin-bottom: 0 !important; }
/* Signed-in account name: match the header links instead of default blue */
.pe-header-group a:not(#page-links a) {
  color: var(--pe-darkgreen) !important;
  font-weight: 600;
  text-decoration: none !important;
}
.pe-header-group a:not(#page-links a):hover,
.pe-header-group a:not(#page-links a):focus-visible { text-decoration: underline !important; }

#page-links {
  display: flex;
  align-items: center;
  align-self: center;
  margin-right: 8px;
}
#page-links .piped-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}
#page-links .piped-list > li { margin: 0; padding: 0; white-space: nowrap; }
/* Every item keeps its pipe; the last one divides the links from Login / account */
#page-links .piped-list > li::after {
  content: "|";
  color: var(--pe-text);
  margin-left: 20px;
}
#page-links a,
[data-customizationid="login-link"] {
  display: inline-block;
  padding: 6px 10px;
  min-height: 44px;              /* 2.5.8 touch target */
  line-height: 32px;
  box-sizing: border-box;
  font-size: 1em;
  color: var(--pe-darkgreen) !important;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
#page-links a:hover,
[data-customizationid="login-link"]:hover {
  background-color: var(--pe-yellow);
  text-decoration: underline !important;
}
#page-links a:focus-visible,
[data-customizationid="login-link"]:focus-visible {   /* 2.4.11 */
  outline: 3px solid var(--pe-darkgreen);
  outline-offset: 2px;
  background-color: var(--pe-yellow);
  text-decoration: underline !important;
}
@media (max-width: 700px) {
  /* Let the header wrap: logo on top, links + Login + cart on the next line */
  [data-customizationid="header"] span:has(> [data-customizationid="linked-headerimage"]) {
    flex-wrap: wrap !important;
    row-gap: 8px;
  }
  .pe-header-group {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
  #page-links .piped-list { gap: 4px 8px; justify-content: flex-end; }
  #page-links .piped-list > li::after { margin-left: 8px; }
  #page-links a { font-size: 0.85em; padding: 4px 6px; line-height: 1.3; min-height: 0; }
}

/* ---------- Quicklinks (3-up cards) ---------- */
#pe-quicklinks {
  background: #ffffff;
  padding: 22px 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
#pe-quicklinks .pe-intro {
  max-width: 1200px;
  margin: 0 auto 14px auto;
  padding: 0 18px;
  text-align: center;
  color: var(--pe-text);
}
#pe-quicklinks .pe-intro strong {
  color: var(--pe-darkgreen);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
#pe-quicklinks .pe-intro p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--pe-text);
}
#pe-quicklinks .pe-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  gap: 14px;
  align-items: stretch;
  justify-content: center;
}
#pe-quicklinks .pe-card {
  flex: 1 1 0;
  min-width: 0;
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(63, 69, 81, 0.12);
  border-left: 6px solid var(--pe-green);
  display: flex;
  align-items: center;
}
#pe-quicklinks .pe-card--events { border-left-color: #489d46; }
#pe-quicklinks .pe-card--immersions { border-left-color: #104735; }
#pe-quicklinks a.pe-btn,
#pe-quicklinks button.pe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.3;
  background: var(--pe-green);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
#pe-quicklinks .pe-card--events .pe-btn { background: #489d46; }
#pe-quicklinks .pe-card--immersions .pe-btn { background: #104735; }
#pe-quicklinks .pe-btn:hover { filter: brightness(0.92); }
#pe-quicklinks .pe-btn:focus-visible {
  outline: 3px solid var(--pe-darkgreen);
  outline-offset: 2px;
  filter: brightness(0.92);
}
@media (max-width: 900px) {
  #pe-quicklinks .pe-grid { flex-direction: column; }
  #pe-quicklinks .pe-intro strong { font-size: 2rem; }
}

/* ---------- Notices (banners) ---------- */
#pe-notices { width: 100%; margin-top: 10px; }
#banner,
#banner-2 {
  width: 100%;
  margin: 0;
  text-align: center;
  color: #000000;
  background-color: #F5A604;
}
#banner-2 { margin-top: 6px; }
#banner p,
#banner-2 p {
  font-size: 1.35em;
  font-weight: 440;
  margin: 0;
  padding: 10px;
}
#banner a { color: #FFD7EA; text-decoration: underline; font-weight: 700; }
#banner a:hover,
#banner a:focus { color: #FFEEAA; }
#banner a:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; color: #FFEEAA; }

/* =========================
   ANNOUNCEMENT TOGGLES
   Set each to: block (ON) or none (OFF)
   ========================= */
#pe-notices #banner   { display: block !important; }
#pe-notices #banner-2 { display: none !important; }
