/* 
  ---------------------------------------------------------------------
  EGS CARD SITE HEXAGON
  High-Level Notes:
    - This section sets up a container and two nested hexagon elements:
      the outer hexagon and the inner hexagon.
    - The outer hexagon is the main shape, while the inner hexagon
      sits inside it, often for color changes, score text, etc.
    - The .site-hexagon-score and .site-hexagon-logo-container 
      handle the text and logo styling/positioning respectively.
  ---------------------------------------------------------------------
*/


.site-hexagon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}


.site-outer-hexagon {
  position: relative;
  display: flex;
  background-color: var(--white-color-1) !important;
  justify-content: center;
  align-items: center;
  aspect-ratio: cos(30deg);
  clip-path: polygon(-50% 50%, 50% 100%, 150% 50%, 50% 0);
}


.site-inner-hexagon {
  position: relative;
  aspect-ratio: cos(30deg);
  clip-path: polygon(-50% 50%, 50% 100%, 150% 50%, 50% 0);
}


.site-hexagon-score {
  position: absolute;
  letter-spacing: -0.5px;
  color: var(--white-color-1) !important;
  z-index: 2;
  text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.43);
  font-family: var(--identity-font);
  font-weight: var(--font-weight8);
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ----------------- LOGO CONTAINER & TEXT ----------------- */

.site-hexagon-logo-container {
  display: flex;
  position: absolute;
  transform: translate(-50%, -50%);
  align-items: center;
  flex-direction: row;
  left: 50%;
}

.site-hexagon-logo-text {
  text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.43);
  color: var(--white-color-1) !important;
  text-transform: uppercase;
  font-family: var(--logo-font1);
  font-weight: var(--font-weight5);
}

.site-hexagon-logo-text::before,
.site-hexagon-logo-text::after {
  content: '';
  background-color: var(--white-color-1) !important;
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
}

/*
  .site-hexagon-logo-text::before {
    left: -0.3rem;
  }
  
  .site-hexagon-logo-text::after {
    right: -0.3rem;
  }
  */



/*───────────────────────────────────────────────────────────────────────────────
  dexa.css – GLOBAL  (EM-based, two stacked hexagons)
───────────────────────────────────────────────────────────────────────────────*/

.dexa {
  position: relative;
  width: 2.55em;
  line-height: 0;
  z-index: 2;
}


.dexa-frame {
  width: 100%;
  height: auto;
  display: block;
}


.dexa-score {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1em;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 0, 0, .43);
  font-family: var(--identity-font);
  font-weight: var(--font-weight8);
  line-height: 1;
  letter-spacing: -0.5px;
  z-index: 2;
}


.dexa-core {
  position: absolute;
  top: calc(52.5% + 0.5em);
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  gap: 0;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, .43));
  z-index: 2;
  overflow: hidden;
}

.dexa-core img {
  border: none !important;
}

.dexa-logo {
  width: 0.35em !important;
  height: auto !important;
}


.dexa-bar {
  width: 0.2em !important;
  height: 0.05em !important;
  min-height: 1px !important;
  display: block !important;
  flex: 0 0 auto;
  aspect-ratio: unset;
}

.dexa-bar:first-child {
  margin-right: 0.075em;
}

.dexa-bar:last-child {
  margin-left: 0.075em;
}






/*───────────────────────────────────────────────────────────────────────────────
  EG Logo — GLOBAL STYLES  (em-based, scales from parent font-size)
───────────────────────────────────────────────────────────────────────────────*/
.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  max-width: fit-content;
  gap: 0rem;
}

.site-name {
  display: flex;
  align-items: center;
  font-family: var(--logo-font1);
  font-weight: var(--font-weight7);
  color: var(--white-color-1);
  letter-spacing: -0.65px;
  overflow: hidden;
  border-radius: 2px;
  gap: .05em;
}

.logo-container .site-name .navsitename1 {
  padding: .15em;
  background: linear-gradient(to right, var(--site-start-color), var(--site-end-color));
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.logo-container .site-name .navsitename2 {
  margin-right: .75rem;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* top-bar override – ONLY font-size lives here */





/*───────────────────────────────────────────────────────────────────────────────
  checkmark
───────────────────────────────────────────────────────────────────────────────*/
.yes-checkmark {
  fill: var(--card-color, var(--site-color));
  display: inline-flex;
  align-items: center;
}

.yes-checkmark span {
  margin-left: 0.5rem;
}

.no-checkmark {
  fill: var(--overall-zero-score);
}

.no-checkmark svg,
.yes-checkmark svg {
  width: auto;
  aspect-ratio: calc(1 / 1);
}


/* --------------------------------------------------------------------- */

/*───────────────────────────────────────────────────────────────────────────────
  editors-choice-badge — FONT-SIZE TWEAK (2025-06-05)
  • Left & right halves now both run at 1 em (the badge’s base font-size).
  • “EG” remains 1 em; stays at .32 em.
  • All spacing still in em, so proportions stay intact as you scale the badge.
───────────────────────────────────────────────────────────────────────────────*/
/*───────────────────────────────────────────────────────────────────────────────
  editors-choice-badge — GRID CONVERSION (2025-06-05)
  • Badge switched from flex → 2-column CSS Grid.
  • Both the left and right halves are themselves 2-row grids, so their
    first and second lines always share the exact same height.
  • Nothing else changes: colours, scaling, media-query overrides, etc.
───────────────────────────────────────────────────────────────────────────────*/
.editors-choice-badge {

  display: grid;
  grid-template-columns: auto auto;
  border-radius: 4px;
  overflow: hidden;
}

/* Left section (EG) now a 2-row grid */
.editors-badge-left {
  display: grid;
  grid-template-rows: auto;
  align-content: center;
  background-color: var(--card-color, var(--site-color));
  color: #ffffff;
  row-gap: .08em;
  padding: .435em .425em .425em .425em;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}


.editors-badge-right {
  display: grid;
  grid-template-rows: 1fr 1fr;

  align-content: center;
  justify-content: center;
  background-color: #f0f0f0;
  font-family: var(--logo-font1);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--card-color, var(--site-color));
  row-gap: .095em;
  padding: .435em .425em .425em .425em;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  text-align: center;
  font-size: 1em;
}

/* Large “EG” text (row 1, col 1) */
.editors-badge-logo-text1 {
  font-size: 1.55em;
  line-height: .75;
  font-family: var(--logo-font1);
  font-weight: 700;
  letter-spacing: -1.35px;
  text-box-trim: trim-end;
  text-box-edge: cap alphabetic;
}

/* Smaller  text (row 2, col 1) */
.editors-badge-logo-text2 {
  font-size: .475em;
  line-height: .75;
  font-family: var(--identity-font);
  font-weight: 700;
  margin-left: 1px;
  text-box-trim: trim-end;
  text-box-edge: cap alphabetic;
}

/* Right-hand lines inherit the equal row heights automatically */
.editors-badge-line1,
.editors-badge-line2 {
  line-height: .75;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}





/*───────────────────────────────────────────────────────────────────────────────
  editors-square-badge.css — FULL REPLACEMENT
───────────────────────────────────────────────────────────────────────────────
  • 2025-06-05 — Uses CSS vars supplied by helper for line1/line2 sizing.
───────────────────────────────────────────────────────────────────────────────*/
.editors-square-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.45em;
  height: 3.45em;
  line-height: 1;
  text-transform: uppercase;
  font-family: var(--logo-font1);
  font-weight: 800;
  color: #ffffff;
}

.editors-square-badge .sqbadge-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.editors-square-badge .sqbadge-line1,
.editors-square-badge .sqbadge-line2 {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  text-align: center;
  letter-spacing: -0.25px;
}

.editors-square-badge .sqbadge-line1 {
  font-size: var(--sqb-line1-size, 1em);
  line-height: 0.9;
}

.editors-square-badge .sqbadge-line2 {
  font-size: var(--sqb-line2-size, 0.75em);
  line-height: 0.9;
}



/* -------------------------------------------------------------------------------------------------
   tag
---------------------------------------------------------------------------------------------------- */

.item-tag {
  font-family: var(--identity-font);
  font-weight: var(--font-weight7);
  font-size: var(--ft-14-12);
  text-transform: uppercase;
  display: inline-block;
}


/* -------------------------------------------------------------------------------------------------
   date
---------------------------------------------------------------------------------------------------- */

.item-date {
  line-height: 1.5;
  font-size: var(--ft-12-11);
  font-family: var(--identity-font);
  font-weight: var(--font-weight6);
}

@media (max-width: 600px) {
  .item-tag {
    font-size: var(--fm-12-11);
  }

}

/* -------------------------------------------------------------------------------------------------
   Divider 1
---------------------------------------------------------------------------------------------------- */


.section-divider {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 2.75rem auto 2.25rem auto;
  max-width: var(--home-width);
  row-gap: .5rem;
}


.section-divider-heading {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 1rem 0 0;
}

.section-divider-title {
  font-family: var(--identity-font);
  font-size: var(--ft-34-28);
  letter-spacing: -0.75px;
  color: var(--white-black-color-1);
  font-weight: 900;
  margin: 0;
  line-height: 1.3;
}


.section-divider-subtitle {
  font-size: var(--ftm-15-13);
  font-family: var(--identity-font);
  font-weight: var(--font-weight4);
  color: var(--grey-color-3);
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.25px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: block;
}

.section-divider-actions {
  flex: 0 1 auto;
  display: flex;
  gap: 4px;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 1rem;
  margin-bottom: -6px;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.section-divider-actions::-webkit-scrollbar {
  height: 6px;
}

.section-divider-actions::-webkit-scrollbar-track {
  background: transparent;
}

.section-divider-actions::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}


.section-divider-actions .section-divider-link {
  display: inline-block;
  padding: .75rem 1.75rem;
  margin-top: 0.25em;
  border: 1px solid var(--section-medium-background-color);
  font-size: var(--ft-14-13);
  /*1150-400 */
  background-color: transparent;
  color: var(--white-color-2);
  font-family: var(--identity-font, sans-serif);
  font-weight: var(--font-weight6, 600);
  cursor: pointer;
  text-decoration: none;
}

.section-divider-actions .section-divider-link:first-child {
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
}

.section-divider-actions .section-divider-link:last-child {
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
}


@media (hover: hover) and (pointer: fine) {
  .section-divider-actions .section-divider-link[data-product-color="true"]:hover {
    background-color: transparent;
    border: 1px solid transparent;
    border-image: linear-gradient(to right,
        var(--card-hover),
        var(--card-hover)) 1;
    border-image-slice: 1;
    color: var(--card-hover);
  }


  .section-divider-actions .section-divider-link:not([data-product-color="true"]):hover {
    background: var(--site-gradient-text);
    border-image: var(--site-background-gradient) 1;
    border-image-slice: 1;

    -webkit-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }
}

.section-divider-actions .section-divider-link[data-product-color="true"].active {
  background-color: var(--card-color, var(--site-color));
  border: 1px solid var(--card-color, var(--site-color));
  color: #fff;
}

.section-divider-actions .section-divider-link:not([data-product-color="true"]).active {
  background: var(--site-background-gradient);
  border: 1px solid var(--site-start-color);
  border-image: none;
  color: #fff;
}


@media (max-width: 600px) {
  .section-divider-title {}

}

/* REPLACE THIS WHOLE BLOCK (Caret size + gradient hover)
   Where: keep with your previous "Section Divider → Title Link" rules */

/* Title link */
.section-divider .section-divider-title .section-divider-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font: inherit;
  color: var(--white-color-1);
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, transform .12s ease, background .18s ease;
  will-change: color, transform, background;
}

/* Bigger right-pointing caret */
.section-divider .section-divider-title .section-divider-link::after {
  content: "›";
  display: inline-block;
  line-height: 1;
  font-weight: 500;
  font-size: 1.6em;
  /* ⟵ bigger caret */
  margin-left: .1rem;
  transform: translateY(-0.04em);
  color: var(--site-color);
  transition: transform .14s ease, color .18s ease;
}

/* Fallback hover (for browsers without text-clip support) */
.section-divider .section-divider-title .section-divider-link:hover {
  color: var(--site-color);
}

.section-divider .section-divider-title .section-divider-link:hover::after {
  transform: translateX(6px) translateY(-0.04em);
}

/* Gradient text hover for supporting browsers */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section-divider .section-divider-title .section-divider-link:hover {
    background: var(--site-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* gradient text */
  }

  .section-divider .section-divider-title .section-divider-link:hover::after {
    background: var(--site-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* gradient caret */
    transform: translateX(6px) translateY(-0.04em);
  }
}

/* Focus ring remains accessible */
.section-divider .section-divider-title .section-divider-link:focus-visible {
  outline: 2px solid var(--site-color);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------------------------------------------------------------------------------------
   Divider 2
---------------------------------------------------------------------------------------------------- */

.sub-section-divider-container {
  display: flex;
  width: 100%;
  max-width: var(--home-width);
  margin: 4rem auto 2rem auto;
  padding: 0rem;
  align-content: center;
  overflow-x: hidden;
  border: var(--border) solid var(--brand-accent);
  position: relative;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  z-index: 4;
}

.sub-section-divider-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sub-section-divider {
  display: flex;
  align-items: center;
  max-width: var(--home-width);
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
  border: var(--border) solid var(--brand-accent);
}

.sub-section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  width: 108%;
  height: 1px;
  background-color: var(--section-light-background-color);
  margin: 0 auto;
}

.sub-section-divider::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--section-light-background-color);
  margin: 0 auto;
}

.divider-text {
  font-family: var(--identity-font);
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--white-black-color-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}


/* -------------------------------------------------------------------------------------------------
   Pin Tag
---------------------------------------------------------------------------------------------------- */

.pinned-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--white-color-1);
  font-family: var(--identity-font);
  font-size: var(--ft-15-13);
  font-weight: var(--font-weight7);
  width: auto;
  height: 2em;
  aspect-ratio: 1;
  border-radius: 4px;
  z-index: 10;

}

.pin-icon {
  width: auto;
  height: 1em !important;
  vertical-align: middle;
  filter: invert(100%);
}



@media (max-width: 600px) {
  .pinned-tag {
    font-size: var(--fm-13-12);
  }
}













/* ===================================================================
   vault-toggle feedback elements (add to your main stylesheet)
===================================================================*/
/* 0️⃣  shared -------------------------------------------------------*/
.toggle-wrapper {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* 1) tiny spinner --------------------------------------------------*/

.toggle-spinner {
  display: none;
  border-bottom-color: transparent;
  /* hide two segments for a sharper arc    */
  border-left-color: transparent;
  border-radius: 50%;
  animation: vaultSpin 0.6s linear infinite;
  vertical-align: middle;
  will-change: transform;
  /* smoother on weaker GPUs                */
}

@keyframes vaultSpin {
  100% {
    transform: rotate(360deg);
  }
}

.toggle-caution {
  display: none;
}

.toggle-spinner.visible {
  display: inline-block;
}


.toggle-caution.visible {
  display: inline-block;
}


.toggle-status {
  font-family: var(--identity-font);
  color: var(--white-color-1);
}










/* ===================================================================
   egRatingfeedback elements (add to your main stylesheet)
===================================================================*/

/* ===================================================================
   egRating widget — logo + stars (clipPath half-fill), theme-aware
===================================================================*/

.eg-rating {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .35em .6em;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--section-light-background-color);
  box-shadow: 0 .05em .15em rgba(0, 0, 0, .08);
  line-height: 1;
  font-size: 1em;
  /* Scale the whole widget by changing this */
}

/* Logo chip */
.eg-rating .er-logo {
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.eg-rating .er-logo svg {
  display: block;
  width: 1.25em;
  height: 1.25em;
  --card-color: var(--site-start-color);
  fill: var(--card-color, var(--site-start-color));
}

/* Divider */
.eg-rating .er-divider {
  width: 1px;
  height: 1.15em;
  background: var(--section-light-background-color);
}

/* Stars row */
.eg-rating .eg-stars {
  display: inline-flex;
  align-items: center;
  gap: .15em;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 0;
}

/* Star (single SVG with base + clipped fill) */
.eg-rating .eg-star {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
}

.eg-rating .eg-star-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.eg-rating .eg-star-base {
  fill: var(--grey-color-4, #c9cbd1);
}

.eg-rating .eg-star-fill {
  fill: var(--rating-star-color, #f7b54a);
}

/* Optional hover lift */
@media (hover:hover) and (pointer:fine) {
  .eg-rating:hover {
    box-shadow: 0 .08em .2em rgba(0, 0, 0, .12);
  }
}


















/* FILE: public/css/site_shared.css — APPEND THIS FULL BLOCK (Breadcrumb parity for all pages)
   Purpose: Make breadcrumbs on site-index pages render IDENTICAL to article pages,
   without loading view_articles.css. Also includes minimal article-header shell
   so the header spacing/width matches your article layout.
*/


/* ── Breadcrumbs (exact rules used on article pages) ─────────────────────── */

.site-index__header .breadcrumbs,
.article-header .breadcrumbs {
  font-family: var(--identity-font);
  font-weight: var(--font-weight4);
  font-size: var(--font-size-13px);
}

.site-index__header .breadcrumb,
.article-header .breadcrumb {
  color: var(--grey-color-2);
  text-transform: capitalize;
}

.site-index__header .breadcrumb .crumb,
.article-header .breadcrumb .crumb {
  text-decoration: none;
  color: var(--grey-color-2);
  margin: 0 4px;
  /* symmetrical 4 px gap */
}

.site-index__header .breadcrumb a.crumb:hover,
.article-header .breadcrumb a.crumb:hover {
  text-decoration: underline;
  color: var(--card-color, var(--site-color));
}

.site-index__header .breadcrumb .crumb:first-child,
.article-header .breadcrumb .crumb:first-child {
  margin-left: 0;
}












/****************************************************
 * "md-formatted
 ****************************************************/



.md-formated {
  padding: 0rem 1rem .5rem 1rem;
  margin-top: 2rem;
}

.pcard-kt-content .md-formated {
  margin-top: .5rem;
  padding: 0;
}


/* =========================================
   1. Shared Base Styles (Structure & Type)
   ========================================= */
.md-formated h1,
.md-formated h2,
.md-formated h3,
.md-formated h4,
.md-formated h5 {
  font-family: var(--identity-font);
  font-weight: var(--font-weight7);
  text-transform: capitalize;
  line-height: 1.3;
  letter-spacing: -.25px;
  padding: 0;

  /* Default Color & Margin (can be overridden below) */
  color: var(--white-color-2);
  margin: 1rem 0 .75rem 0;
}

/* =========================================
   2. Container Overrides (Color & Layout)
   ========================================= */
/* Applies to both Desktop and Mobile card containers */
/* =========================================
   Card Container Overrides (Color & Margin)
   ========================================= */

/* Desktop Card Context */
.pcard-kt-content .md-formated h1,
.pcard-kt-content .md-formated h2,
.pcard-kt-content .md-formated h3,
.pcard-kt-content .md-formated h4,
.pcard-kt-content .md-formated h5,

/* Mobile Card Context */
.pcard-kt-content-mobile .md-formated h1,
.pcard-kt-content-mobile .md-formated h2,
.pcard-kt-content-mobile .md-formated h3,
.pcard-kt-content-mobile .md-formated h4,
.pcard-kt-content-mobile .md-formated h5 {
  color: var(--white-color-1);
  margin-top: 0;
}

/* =========================================
   3. Font Sizes (Grouped Separately)
   ========================================= */

.md-formated h1,
.pcard-kt-content .md-formated h1,
.pcard-kt-content-mobile .md-formated h1 {
  font-size: var(--ft-32-26);
}

.md-formated h2,
.pcard-kt-content .md-formated h2,
.pcard-kt-content-mobile .md-formated h2 {
  font-size: var(--ft-26-23);
}

.md-formated h3,
.pcard-kt-content .md-formated h3,
.pcard-kt-content-mobile .md-formated h3 {
  font-size: var(--ft-23-20);
}

.md-formated h4,
.pcard-kt-content .md-formated h4,
.pcard-kt-content-mobile .md-formated h4 {
  font-size: var(--ft-20-19);
}

.md-formated h5,
.pcard-kt-content .md-formated h5,
.pcard-kt-content-mobile .md-formated h5 {
  font-size: var(--ft-18-17);
}



.pcard-kt-content-mobile .md-formated blockquote,
.pcard-kt-content .md-formated blockquote,
.md-formated blockquote {
  margin: 0px 0 36px;
  padding: 1.25rem 2rem;
  border-left: 4px solid var(--card-color, var(--site-color));
  background-color: var(--card-highlight, var(--site-highlight));
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.pcard-kt-content-mobile .md-formated blockquote p:first-child,
.pcard-kt-content .md-formated blockquote p:first-child,
.md-formated blockquote p:first-child {
  margin-top: 0;
}

/* Last <p> in blockquote: no bottom margin */
.pcard-kt-content-mobile .md-formated blockquote p:last-child,
.pcard-kt-content .md-formated blockquote p:last-child,
.md-formated blockquote p:last-child {
  margin-bottom: 0;
}


.pcard-kt-content-mobile .md-formated a,
.pcard-kt-content .md-formated a,
.md-formated a {
  color: var(--card-color, var(--site-start-color));
  /*
  text-decoration: underline;
  text-decoration-color: var(--card-color, var(--site-start-color));
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
  */
}

.pcard-kt-content-mobile .md-formated a:hover,
.pcard-kt-content .md-formated a:hover,
.md-formated a:hover {
  text-decoration: underline;
  /*
  color: var(--card-color, var(--site-start-color));
  text-decoration-color: var(--card-color, var(--site-start-color));
  */
}



.pcard-kt-content-mobile .md-formated p,
.pcard-kt-content .md-formated p {
  margin-bottom: 1.5rem;
}

.pcard-kt-content-mobile .md-formated p:last-child,
.pcard-kt-content .md-formated p:last-child {
  margin-bottom: 0;
}

.pcard-kt-content-mobile .md-formated ul,
.pcard-kt-content .md-formated ul,
.md-formated ul {
  margin: 0 0;
  padding-left: 1.5rem;
  list-style: disc;
  /* Bullets */
  color: var(--grey-color-1);
  font-family: var(--identity-font);
  font-size: var(--font-size-16px);
  line-height: var(--font-size-27px);
  margin-bottom: 2rem;
}

.pcard-kt-content-mobile .md-formated ul,
.pcard-kt-content .md-formated ul {
  font-size: var(--ft-17-15);
  line-height: 1.5;
}

.pcard-kt-content-mobile .md-formated li,
.pcard-kt-content .md-formated li,
.md-formated li {
  margin-bottom: 0.75rem;
}

.pcard-kt-content-mobile .md-formated table,
.md-formated table {
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  width: 100%;
}




.pcard-kt-content-mobile .md-formated th,
.pcard-kt-content-mobile .md-formated td,
.pcard-kt-content .md-formated th,
.pcard-kt-content .md-formated td,
.md-formated th,
.md-formated td {
  border: 1px solid #444;
  padding: 8px;
  font-family: var(--identity-font);
}

.pcard-kt-content-mobile .md-formated th:not(:last-child),
.pcard-kt-content .md-formated th:not(:last-child),
.md-formated th:not(:last-child) {
  border-right: 1px solid #515151;
  /* lighter divider only between columns */
}

.pcard-kt-content-mobile .md-formated th,
.pcard-kt-content .md-formated th,
.md-formated th {
  font-weight: var(--font-weight7);
  font-size: var(--font-size-15px);
  color: var(--white-color-1);
}

.pcard-kt-content-mobile .md-formated td,
.pcard-kt-content .md-formated td,
.md-formated td {
  font-weight: var(--font-weight4);
  font-size: var(--font-size-14px);
  color: var(--white-color-2);
}


.pcard-kt-content-mobile .md-formated thead,
.pcard-kt-content .md-formated thead,
.md-formated thead {
  background-color: var(--egxxl-surface-1);
  color: var(--white-color-1)
}




























/* ============================================================================
   NAV SEARCH — body-level portal (REPLACE THIS WHOLE BLOCK in partial_navbar.css)
   • Initial panel height equals the top bar (var(--top-bar-H))
   • Suggestions grow the panel downward
   • Nothing shows until results exist (.open toggles the list)
============================================================================ */
.nav-search-portal {
  position: fixed;
  inset: 0;
  z-index: 97000;
  pointer-events: none;
}

.nav-search-portal.active {
  pointer-events: auto;
}

/* Shade */
.nav-search-shade {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.nav-search-portal.active .nav-search-shade {
  opacity: 1;
  visibility: visible;
}

/* Slide-in panel: grid with fixed first row (= top bar height) and auto second row */
.nav-search-popup {
  --nav-search-pad-bottom: 0rem;

  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  min-height: var(--top-bar-H);
  max-height: 100vh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: var(--top-bar-H) auto;
  align-items: center;
  padding: 0 1.25rem var(--nav-search-pad-bottom);
  background: var(--main-background-color);
  border-left: 1px solid;
  border-image: linear-gradient(to top, var(--site-start-color), var(--site-end-color)) 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, .5);
  transform: translateX(100%);
  transition: transform .3s ease-in-out;
  box-sizing: border-box;
}

.nav-search-popup:has(#nav-search-suggestions.open) {
  --nav-search-pad-bottom: 1rem;
}

.nav-search-portal.active .nav-search-popup {
  transform: translateX(0);
}

/* Search row = first grid row (exactly top-bar tall) */
.nav-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-search-label {
  font-family: var(--identity-font);
  color: var(--white-color-1);
  font-size: var(--font-size-14px);
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-close-search {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-color-1);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0 .25rem;
  flex: 0 0 auto;
}

.nav-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 2px solid var(--accent-color-1);
  background: #222;
  color: #fff;
  padding: 1rem 12px;
  font-size: var(--font-size-14px);
  font-family: var(--identity-font);
  font-weight: var(--font-weight4);
  box-sizing: border-box;
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--accent-color-1);
}

/* Suggestions = second grid row; hidden until items exist */
#nav-search-suggestions.nav-search-suggestions {
  display: none;
  margin-top: .75rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--main-background-color);
  border-radius: 6px;
  max-height: calc(100vh - var(--top-bar-H) - .75rem - var(--nav-search-pad-bottom, 0rem) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - var(--top-bar-H) - .75rem - var(--nav-search-pad-bottom, 0rem) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

#nav-search-suggestions.open {
  display: block;
}

/* REPLACE ONLY the .nav-suggestion rules in partial_navbar.css */

/* Item container: 48px thumb + text */
.nav-suggestion {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  column-gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  cursor: pointer;
}

.nav-suggestion:last-child {
  border-bottom: 0;
}

.nav-suggestion:hover,
.nav-suggestion.active {
  background: rgba(255, 255, 255, .06);
  text-decoration: none;
}

.nav-suggestion:visited {
  color: inherit;
}

/* Left thumbnail */
.nav-suggestion-thumb {
  width: 90px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-suggestion-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111;
}

.nav-suggestion-thumb.is-contain {
  padding: 5px;
  box-sizing: border-box;
}

.nav-suggestion-thumb-svg {
  width: 75%;
  height: 75%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-suggestion-thumb-svg .svg-base {
  width: 100%;
  height: 100%;
}

/* Right text column */
.nav-suggestion-main {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.nav-suggestion-title {
  font: 400 var(--font-size-15px)/1.2 var(--identity-font);
  text-transform: none;
}

.nav-suggestion-sub {
  font: 400 var(--font-size-13px)/1.2 var(--identity-font);
  opacity: .7;
  text-transform: none;
}

.nav-suggestion mark {
  background: transparent;
  color: var(--accent-color-1);
}

@media (max-width:600px) {
  .nav-search-popup {
    width: 100vw;
    max-width: 100%;
  }

  .nav-search-input {
    font-size: 16px;
  }
}





















/* ==========================================================================
   FOOTER (global) — CLEANED & CONSOLIDATED
   • Route-aware background (Home → darkestdarker, Articles → darkest, Default → dark)
   • 4 → 2 → 1 column grid
   • One-liner brand copy measure
   • Unified gradient hover for ALL footer links (text + SVGs)
   ========================================================================== */

:root {
  --eg-footer-background: var(--section-dark-background-color);
  --site-gradient-text: linear-gradient(to right, var(--site-start-color), var(--site-end-color));
}

/* Route-aware theme (gate on :has() support) */
@supports selector(body:has(*)) {
  body:has(.home-rail-anchor) {
    --eg-footer-background: var(--section-darkestdarker-background-color);
  }

  body:has(.article) {
    --eg-footer-background: var(--section-darkest-background-color);
  }

  body:has(.pages-basic) {
    --eg-footer-background: var(--section-dark-background-color);
  }


  body:has(.wrapper-list) {
    --eg-footer-background: var(--main-background-color)
  }

  body:has(.card-rows) {
    --eg-footer-background: var(--section-darkestdark-background-color);
  }
}

/* Wrapper */
.site-footer {
  background: var(--eg-footer-background);
  color: var(--white-black-color-1);
  margin-top: 0rem;
  padding: 1rem 0 0;
}


body:has(.wrapper-list) .site-footer {
  margin-top: 0;
}


.site-footer__inner {
  width: calc(100% - 3rem);
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 2rem 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
  /* wider brand col */
  column-gap: 2.75rem;
  row-gap: 2.75rem;
}

/* 2 cols (tablet) */
@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* 1 col (mobile) */
@media (max-width: 500px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    row-gap: 2.75rem;
    padding: 2rem 0 1.25rem;
  }
}

/* Brand */
.site-footer__brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
}

.site-footer .site-name {
  font-size: var(--font-size-32px);
}

.site-footer__about {
  margin: 1.25rem 0 0 .15rem;
  color: var(--white-color-2);
  font-family: var(--identity-font);
  font-weight: var(--font-weight4);
  font-size: clamp(var(--ft-14-13), 0.9rem + 0.15vw, var(--ft-15-13));
  line-height: 1.55;
  max-width: 56ch;
  text-wrap: pretty;
}

@media (max-width: 600px) {
  .site-footer__about {
    max-width: 100%;
  }
}

/* Columns / headings / lists */
.site-footer__col {
  min-width: 0;
}

.site-footer__heading {
  margin: 0 0 .75rem 0;
  font-family: var(--identity-font);
  font-weight: 700;
  font-size: var(--font-size-15px);
  line-height: 1.2;
  letter-spacing: -.1px;
  text-transform: uppercase;
  color: var(--white-black-color-1);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

/* Links (baseline: never underline) */
.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--identity-font);
  font-size: var(--font-size-14px);
  color: var(--white-color-2);
  text-decoration: none;
}

/* Hover/focus: solid-color fallback (no underline) */
.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--site-start-color);
  text-decoration: none;
  outline: none;
}

/* Gradient text hover (feature-gated) — works for any wrapped label
   MDN: background-clip:text + @supports. */
@supports (-webkit-background-clip: text) or (background-clip: text) {

  .site-footer__link:hover .site-link-text,
  .site-footer__link:focus-visible .site-link-text,
  .site-footer__link:hover>span,
  /* Socials labels already use a bare <span> */
  .site-footer__link:focus-visible>span {
    background-image: var(--site-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
  }
}

/* Icon sizing */
.site-footer__icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  fill: currentColor;
}

/* SVG gradient on hover — switch to in-SVG linearGradient via fill:url(#id)
   MDN: <linearGradient> + CSS fill. */
.site-footer__link:hover #footer-twitter .grad-path {
  fill: url(#footerThemeGradient-twitter);
}

.site-footer__link:hover #footer-youtube .grad-path {
  fill: url(#footerThemeGradient-youtube);
}

.site-footer__link:hover #footer-discord .grad-path {
  fill: url(#footerThemeGradient-discord);
}

/* Bottom bar */
.site-footer__bar {
  width: calc(100% - 3rem);
  max-width: var(--site-width);
  margin: 0 auto;
  border-top: 1px solid var(--section-medium-background-color);
  padding: .95rem 0 1.35rem;
  text-align: center;
}

.site-footer__bar p {
  margin: 1rem 0;
  color: var(--white-color-2);
  font-family: var(--identity-font);
  font-size: var(--ft-14-13);
}

/* ——— References:
   • background-clip:text & accessibility/fallbacks (MDN). :contentReference[oaicite:0]{index=0}
   • @supports and selector(:has()) feature queries (MDN). :contentReference[oaicite:1]{index=1}
   • SVG linearGradient + CSS fill:url(#id) (MDN). :contentReference[oaicite:2]{index=2}
*/




























/* ==========================================================================
/* Scores explainer overlay (desktop modal + mobile bottom sheet) 
   ========================================================================== */


/* Scores explainer overlay (desktop modal + mobile bottom sheet) */
.scores-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 98000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.3s ease;
}

.scores-info-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scores-info-overlay .scores-info-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 50%),
    rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

/* Base modal layout */
.scores-info-modal {
  position: relative;
  background: var(--section-dusk-background-color);
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 2.2rem;
  max-width: 1050px;
  max-height: 85vh;
  overflow: auto;
  font-family: var(--identity-font);
  color: var(--white-color-2);
  z-index: 1;
  outline: none;
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close button */
.scores-info-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white-color-2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.scores-info-close:hover,
.scores-info-close:focus {
  background: var(--section-dark-background-color);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Header */
.scores-info-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--section-light-background-color);
  padding-bottom: 1.5rem;
}

.scores-info-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 50px;
  border: 1px solid var(--card-color);
  font-size: var(--font-size-14px);
  font-weight: var(--font-weight6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white-color-1);
}

.scores-info-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-color);
  box-shadow: 0 0 8px rgba(0, 174, 255, 0.3);
}

.scores-info-title {
  margin: 0 0 0.6rem 0;
  font-family: var(--identity-font);
  font-weight: var(--font-weight8);
  /* Bolder for impact */
  font-size: var(--font-size-20px);
  /* Slightly larger */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-color-1);
}

.scores-info-intro {
  max-width: 80%;
  font-size: var(--font-size-15px);
  line-height: 1.55;
  color: var(--grey-color-1);
  /* Lighter grey for better contrast */
}

/* Meta chips row */
.scores-info-meta {
  margin: 1.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  font-size: var(--font-size-14px);

}

.scores-info-meta li {
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--grey-color-1);
  transition: all 0.2s ease;
}

.scores-info-meta li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 174, 255, 0.3);
}

/* Grid of score definitions */
.scores-info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  position: relative;
  margin-top: 1rem;
}

.scores-info-columns::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: .8px;
  background: var(--section-light-background-color);
  transform: translateX(-50%);
}

.scores-info-section {
  font-size: 0.9rem;
  /* Base increase */
  line-height: 1.55;
}

.scores-info-heading {
  margin: 0 0 0.8rem 0;
  font-family: var(--identity-font);
  font-weight: var(--font-weight7);
  font-size: var(--font-size-16px);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--white-color-1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scores-info-heading-sub {
  margin-top: 1.5rem;
  font-size: var(--font-size-15px);
  opacity: 0.9;
}

.scores-info-heading::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--card-color);
  border-radius: 2px;
}

.scores-info-list {
  margin: 0;
  padding: 0;
}

/* Individual definition rows */
.scores-info-row {
  margin: 0 0 0.8rem 0;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: var(--section-dark-background-color);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
}

.scores-info-row:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 174, 255, 0.2);
}

.scores-info-row dt {
  font-weight: var(--font-weight7);
  text-transform: capitalize;
  font-size: var(--font-size-15px);
  margin-bottom: 0.3rem;
  color: var(--white-color-1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* REPLACE your existing .scores-info-row dt::before block with this full block */

.scores-info-row dt::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top-width: 0.35em;
  border-top-style: solid;
  border-top-color: transparent;
  border-bottom-width: 0.35em;
  border-bottom-style: solid;
  border-bottom-color: transparent;
  border-left-width: 0.55em;
  border-left-style: solid;
  border-left-color: var(--card-color, currentColor);
  opacity: 0.8;
  transform: translateY(0.02em);
  flex: 0 0 auto;
}


.scores-info-row dd {
  margin: 0;
  color: var(--grey-color-1);
  font-size: var(--font-size-14px);
  line-height: 1.5;
}

/* Genre YES/NO Badges */
.genre-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: var(--font-weight6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.genre-no {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #f87171;
  font-size: 0.8rem;
  font-weight: var(--font-weight6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.genre-yes::before {
  content: '✓';
}

.genre-no::before {
  content: '✗';
}

/* Mobile / tablet bottom sheet */

@media (max-width: 1150px) {
  .scores-info-close {
    /* Pin to the modal scrollport */
    position: sticky;

    /* We stick to the modal's padding-top, then visually nudge back to your
       original absolute position (top: 1rem, right: 1rem) */
    top: calc(1rem + env(safe-area-inset-top, 0px));
    z-index: 20;

    /* Keep it top-right without changing your markup */
    display: block;
    margin-left: auto;

    /* Respect safe-area on the right, then nudge to match your old 1rem */
    margin-right: env(safe-area-inset-right, 0px);

    /* Don't push your header/content down (keeps the same look as absolute) */
    margin-bottom: -2.75rem;

    /* Visual nudge: your mobile modal padding is 1.5rem, but you want 1rem.
       So move: right +0.5rem, up -0.5rem */
    transform: translate3d(2rem, -1rem, 0);
    will-change: transform;

  }
}



/* Prevent body scroll */
body.scores-info-open {
  overflow: hidden;
}






.brands_feeds_png {
  padding: 1.5rem;
  box-sizing: border-box;
}














/* Color circles: clickable + loading state for popup fetch */
.eg-color-circle-link {
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.eg-color-circle-link:focus,
.eg-color-circle-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.eg-color-circle-link.is-loading {
  cursor: progress;
  pointer-events: none;
}

.eg-color-circle-link.is-loading::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: egColorCircleSpin 0.8s linear infinite;
}

@keyframes egColorCircleSpin {
  to {
    transform: rotate(360deg);
  }
}

.eg-color-circle {
  cursor: pointer;
  color: var(--card-color);
}

.eg-color-circle:focus-visible {
  outline: 2px solid var(--card-color);
  outline-offset: 2px;
}


.eg-color-circle.eg-color-loading,
.eg-color-circle.eg-color-hover-loading {
  animation: none;
  cursor: progress;
}

.eg-color-circle.eg-color-hover-loading::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: egColorCircleSpin 0.8s linear infinite;
  pointer-events: none;
}











/* =================================================================================================
   ZOOM — SHARED (XXL is the source of truth)
   Paste this whole block into /public/css/siteShared.css (or whatever your combined shared sheet is).

   Goals:
   • Do NOT change XXL behavior/styles.
   • Force ALL zoom overlays (inline images, article images, carousel-pt, XXL) to use the XXL sizing + padding rules.
   • Controls/close/arrows can stay different per widget — this only standardizes viewport sizing + contain padding.

   Notes:
   • XXL already defines these vars in card_xxlarge_carousel.css — redefining here is SAFE because values match XXL.
   • For carousel-pt overlay, JS sets ovImg.style.objectFit = 'contain' | 'cover'.
     We use that inline style to apply/remove contain padding without touching JS.
================================================================================================= */

/* 1) EXACT XXL variables (same names + values) */
:root {
  --egxxl-contain-pad-inline: 12%;
  --egxxl-contain-pad-vertical: 3%;

  /* Fullscreen overlay caps (1600px max-width → 12% = 192px, 3% = 48px) */
  --egxxl-contain-pad-inline-max: 192px;
  --egxxl-contain-pad-vertical-max: 48px;

  /* Same values as vw for overlay (viewport-relative, then capped by px above) */
  --egxxl-contain-pad-inline-vw: 12vw;
  --egxxl-contain-pad-vertical-vw: 3vw;

  /* XXL zoom viewport truth */
  --eg-zoom-max-width: 1600px;
  --eg-zoom-aspect: 1.625 / 1;
}

/* 2) UNIVERSAL zoom viewport sizing (matches XXL) */

/* Inline zoom wrapper (partial_images.js overlay uses a wrapper div) */
.fullscreen-image-wrapper {
  width: 100%;
  max-width: var(--eg-zoom-max-width);
  aspect-ratio: var(--eg-zoom-aspect);
  height: auto;
}

/* Inline zoom image (partial_images.js overlay image) */
.fullscreen-image-overlay img.fullscreen-image,
.fullscreen-image {
  width: 100%;
  max-width: var(--eg-zoom-max-width);
  aspect-ratio: var(--eg-zoom-aspect);
  height: auto;
  display: block;
  cursor: zoom-out;
  box-sizing: border-box;
}

.fullscreen-image[style*="object-fit: contain"],
.fullscreen-image[style*="object-fit:contain"] {
  padding-left: min(var(--egxxl-contain-pad-inline-vw), var(--egxxl-contain-pad-inline-max));
  padding-right: min(var(--egxxl-contain-pad-inline-vw), var(--egxxl-contain-pad-inline-max));
  padding-top: min(var(--egxxl-contain-pad-vertical-vw), var(--egxxl-contain-pad-vertical-max));
  padding-bottom: min(var(--egxxl-contain-pad-vertical-vw), var(--egxxl-contain-pad-vertical-max));
}

/* Ensure COVER mode has ZERO padding (same as carousel) */
.fullscreen-image[style*="object-fit: cover"],
.fullscreen-image[style*="object-fit:cover"] {
  padding: 0 !important;
}


/* Carousel-pt overlay image (already matches XXL; this just guarantees shared sizing if other CSS overrides it) */
.carousel-pt-fullscreen-image {
  width: 100%;
  max-width: var(--eg-zoom-max-width);
  aspect-ratio: var(--eg-zoom-aspect);
  height: auto;
  display: block;
  box-sizing: border-box;
  cursor: grab;
}

.carousel-pt-fullscreen-overlay.grabbing .carousel-pt-fullscreen-image {
  cursor: grabbing
}


/* Carousel-pt overlay: apply the SAME contain padding when JS sets objectFit=contain */
.carousel-pt-fullscreen-image[style*="object-fit: contain"],
.carousel-pt-fullscreen-image[style*="object-fit:contain"] {
  padding-left: min(var(--egxxl-contain-pad-inline-vw), var(--egxxl-contain-pad-inline-max));
  padding-right: min(var(--egxxl-contain-pad-inline-vw), var(--egxxl-contain-pad-inline-max));
  padding-top: min(var(--egxxl-contain-pad-vertical-vw), var(--egxxl-contain-pad-vertical-max));
  padding-bottom: min(var(--egxxl-contain-pad-vertical-vw), var(--egxxl-contain-pad-vertical-max));
}

/* Carousel-pt overlay: ensure COVER mode has ZERO padding */
.carousel-pt-fullscreen-image[style*="object-fit: cover"],
.carousel-pt-fullscreen-image[style*="object-fit:cover"] {
  padding: 0 !important;
}

/* 4) DO NOT TOUCH XXL (but ensure nothing in other CSS accidentally overrides its core sizing) */
.egXXL-fullscreen-image {
  width: 100%;
  max-width: var(--eg-zoom-max-width);
  aspect-ratio: var(--eg-zoom-aspect);
  height: auto;
  cursor: grab;
}

.egXXL-fullscreen-overlay.grabbing .egXXL-fullscreen-image {
  cursor: grabbing
}


/* Keep XXL’s contain-pad behavior intact (this selector matches XXL’s existing class usage) */
.egXXL-fullscreen-image.egXXL-contain-pad {
  padding-left: min(var(--egxxl-contain-pad-inline-vw), var(--egxxl-contain-pad-inline-max));
  padding-right: min(var(--egxxl-contain-pad-inline-vw), var(--egxxl-contain-pad-inline-max));
  padding-top: min(var(--egxxl-contain-pad-vertical-vw), var(--egxxl-contain-pad-vertical-max));
  padding-bottom: min(var(--egxxl-contain-pad-vertical-vw), var(--egxxl-contain-pad-vertical-max));
}