/* Inchieste Core - CSS namespaced */
.inchieste-core .row{ overflow: visible; }
.inchieste-core__sidebar{ position: sticky; top: 110px; align-self: flex-start; }

.inchieste-core__topbar{
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 44px 0;
  margin-bottom: 18px;
  background-color: rgba(0,0,0,.04);
}
.inchieste-core__overlay{
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.38), rgba(0,0,0,.18));
}
.inchieste-core__topbarInner{ position: relative; color: #fff; }
.inchieste-core__title{ margin: 0 0 8px; }
.inchieste-core__subtitle{ margin: 0; opacity:.95; max-width: 900px; }

.inchieste-core__filters{ display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 18px; align-items: center; }
.inchieste-core__filters input,
.inchieste-core__filters select{
  flex: 1 1 220px; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12); background:#fff; min-height: 44px;
}
.inchieste-core__filters button{
  padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.06); cursor: pointer; min-height: 44px;
}
.inchieste-core__reset{
  padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,.12);
  text-decoration: none; background: rgba(0,0,0,.02);
}

.inchieste-core__grid{ display:grid; gap: 18px; }
.inchieste-core__grid[data-cols="3"]{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 991px){ .inchieste-core__grid[data-cols="3"]{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .inchieste-core__grid[data-cols="3"]{ grid-template-columns: 1fr; } }

.inchieste-core__card{ border-radius: 14px; background: rgba(0,0,0,.02); border: 1px solid rgba(0,0,0,.06); overflow: hidden; }
.inchieste-core__cardThumb img{ width:100%; height:auto; display:block; }
.inchieste-core__cardBody{ padding: 14px; }
.inchieste-core__cardTitle{ margin:0 0 8px; line-height:1.25; }
.inchieste-core__cardMeta{ opacity:.8; font-size:.95em; margin:0 0 8px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.inchieste-core__cardExcerpt{ opacity:.95; }
.inchieste-core__pagination{ margin: 18px 0; }

.inchieste-core__cardMetaLine{
  opacity: .85; font-size: .95em; margin: 0 0 10px;
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
}
.inchieste-core__metaSep{ opacity:.7; }
.inchieste-core__metaItem strong{ font-weight: 700; }

.inchieste-core__epBadge{
  display:inline-block; margin-right: 8px; padding: 2px 8px;
  border-radius: 999px; border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.06); font-size: .85em; vertical-align: middle;
}

.inchieste-core__episodeHero img{ width:100%; height:auto; display:block; border-radius: 14px; }
.inchieste-core__episodeMeta{ opacity:.85; margin: 6px 0 14px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.inchieste-core__episodeBack a{ text-decoration:none; }
.inchieste-core__episodeBack a:hover{ text-decoration:underline; }
.inchieste-core__epNum{ opacity:.85; }

.inchieste-core__sev{
  display:inline-block; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12); background: rgba(0,0,0,.06); font-size: .9em;
}
.inchieste-core__sev--low{ background: rgba(0,0,0,.05); }
.inchieste-core__sev--medium{ background: rgba(0,0,0,.08); }
.inchieste-core__sev--high{ background: rgba(0,0,0,.10); }
.inchieste-core__sev--critical{ background: rgba(0,0,0,.14); }

.inchieste-core__params{
  margin: 14px 0 22px; padding: 16px; border-radius: 14px;
  background: rgba(0,0,0,.02); border: 1px solid rgba(0,0,0,.06);
}
.inchieste-core__paramsTitle{ margin: 0 0 12px; }
.inchieste-core__paramsGrid{ display:grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 12px; }
@media (max-width: 640px){ .inchieste-core__paramsGrid{ grid-template-columns: 1fr; } }
.inchieste-core__param .inchieste-core__k{ opacity:.75; font-size:.92em; margin-bottom: 4px; }
.inchieste-core__param .inchieste-core__v{ font-weight: 600; }
.inchieste-core__listBlock{ margin-top: 12px; }
.inchieste-core__listBlock h3{ margin: 0 0 8px; }
.inchieste-core__listBlock ul{ margin: 0; padding-left: 18px; }
.inchieste-core__listBlock code{ font-size: .95em; }


.inchieste-core__cardLastEp{
  margin: 0 0 10px;
  font-size: .95em;
  opacity: .95;
}
.inchieste-core__cardLastEp a{
  text-decoration: none;
}
.inchieste-core__cardLastEp a:hover{
  text-decoration: underline;
}

.inchieste-core__breadcrumb{margin-bottom:10px}
.inchieste-core__breadcrumb a{color:#fff;text-decoration:none;opacity:.95}
.inchieste-core__breadcrumb a:hover{text-decoration:underline}
.inchieste-core__overlay{background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,.28));}
.inchieste-core__title{color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.55);}
.inchieste-core__subtitle{color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.45);}
.inchieste-core__filters{margin-top:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.inchieste-core__filters select{padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.28);background:rgba(0,0,0,.22);color:#fff}
.inchieste-core__filters button{padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.28);background:rgba(0,0,0,.22);color:#fff}
.inchieste-core__reset{color:#fff;opacity:.9}

.inchieste-core__reportLine{margin-top:12px}
.inchieste-core__reportBtn{display:inline-block;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.35);color:#fff;text-decoration:none;background:rgba(0,0,0,.18)}
.inchieste-core__reportBtn:hover{text-decoration:underline}

.inchieste-core__episodeBox{border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:14px 16px;margin:16px 0;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.inchieste-core__episodeBoxRow{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.inchieste-core__pill{display:inline-block;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.06);font-weight:700;font-size:12px}
.inchieste-core__backLink{text-decoration:none}
.inchieste-core__backLink:hover{text-decoration:underline}
.inchieste-core__episodeMeta{margin-top:10px;display:flex;gap:12px;flex-wrap:wrap;color:rgba(0,0,0,.75);font-size:13px}
.inchieste-core__metaItem{display:inline-flex;gap:6px;align-items:center}

/* Spazio tra header del tema e contenuto inchieste */
.inchieste-core__topbar{margin-top:22px}

.inchieste-core__episodeBox{margin-top:22px}

.inchieste-core{padding-top:18px;padding-bottom:72px}

/* Evita confusione: nasconde il widget categorie del tema dentro la sidebar inchieste */
.inchieste-core__sidebar .widget_categories{display:none}

.inchieste-core__archiveTools input[type="search"],
.inchieste-core__archiveTools select{padding:10px 12px;border-radius:12px;border:1px solid rgba(0,0,0,.12);background:#fff}
.inchieste-core__archiveTools .button{margin-top:10px;padding:10px 12px;border-radius:12px;border:1px solid rgba(0,0,0,.12);background:#fff}

/* Compensa header fisso del tema (Eduma spesso usa header sticky/fixed) */
.inchieste-core{padding-top:120px}
@media (max-width: 768px){.inchieste-core{padding-top:90px}}

@media (max-width: 768px){.inchieste-core{padding-top:84px;padding-bottom:60px}}

/* Episode header box (single puntata) */
.inchieste-core__episodeHeader{border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:16px 18px;margin:18px 0 22px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.inchieste-core__episodeHeaderRow{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.inchieste-core__episodeMeta{margin-top:10px;display:flex;gap:12px;flex-wrap:wrap;color:rgba(0,0,0,.75);font-size:13px}
.inchieste-core__episodeH{margin:16px 0 8px;font-size:15px}
.inchieste-core__dl{display:grid;gap:10px}
.inchieste-core__dl > div{display:grid;grid-template-columns:160px 1fr;gap:10px}
.inchieste-core__dl dt{font-weight:700;color:rgba(0,0,0,.75)}
.inchieste-core__dl dd{margin:0;color:rgba(0,0,0,.85)}
@media (max-width: 768px){.inchieste-core__dl > div{grid-template-columns:1fr}}
.inchieste-core__boxText{color:rgba(0,0,0,.85);font-size:14px;line-height:1.5}
.inchieste-core__links{margin:8px 0 0 18px}
.inchieste-core__links li{margin:6px 0}

.inchieste-core__episodeContent{padding-bottom:54px}

/* Accessibility: skip link (visible on focus) */
.inchieste-core__skip{clip-path:inset(50%);white-space:nowrap;
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.inchieste-core__skip:focus{
  left:12px; top:12px;
  width:auto;height:auto;
  padding:10px 12px;
  border-radius:12px;
  background:#000;
  color:#fff;
  z-index:999999;
  outline:3px solid #fff;
  text-decoration:none;
}
/* Focus visible for inchieste area */
.inchieste-core :is(a,button,input,select,textarea):focus-visible{
  outline:3px solid rgba(0,0,0,.8);
  outline-offset:2px;
}
/* Archive tools: make primary action obvious */
.inchieste-core__archiveTools .button{
  display:inline-block;
  width:100%;
  background: var(--ic-btn-bg, #000);
  color: var(--ic-btn-text, #fff);
  border:1px solid var(--ic-btn-bg, #000);
  border-radius:12px;
  padding:10px 12px;
}
.inchieste-core__archiveTools a{
  text-decoration:underline;
}

.inchieste-core__archiveActions{display:flex;flex-direction:column;gap:10px}
.inchieste-core__archiveReset{display:inline-block}

/* Hero header (independent from theme) */
.inchieste-core__hero{position:relative;display:flex;align-items:flex-end;padding:34px 0;color:#fff}
.inchieste-core__heroOverlay{position:absolute;inset:0;pointer-events:none}
.inchieste-core__heroInner{position:relative;z-index:2;max-width:1120px;margin:0 auto;padding:0 18px}
.inchieste-core__heroTitle{margin:0;font-size:40px;line-height:1.15;text-shadow:0 2px 18px rgba(0,0,0,.55)}
.inchieste-core__heroSub{margin:10px 0 0;max-width:68ch;color:rgba(255,255,255,.9);font-size:16px;line-height:1.5}
@media (max-width:768px){
  .inchieste-core__hero{padding:34px 0}
  .inchieste-core__heroTitle{font-size:30px}
}

.inchieste-core__archiveTools select{margin-bottom:10px}

.inchieste-core__skip:focus-visible{left:12px;top:12px;width:auto;height:auto;padding:10px 12px;border-radius:12px;background:#000;color:#fff;z-index:999999;outline:3px solid #fff;text-decoration:none}

/* Legacy header (shown when hero is disabled) */
.inchieste-core__pageHeader{position:relative;background:#111827;color:#fff;padding:38px 0}
.inchieste-core__pageHeaderBg{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(.9)}
.inchieste-core__pageHeaderOverlay{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.inchieste-core__pageHeaderInner{position:relative;z-index:2;max-width:1120px;margin:0 auto;padding:0 18px}
.inchieste-core__pageHeaderTitle{margin:0;font-size:34px;line-height:1.15;text-shadow:0 2px 18px rgba(0,0,0,.55)}
@media (max-width:768px){.inchieste-core__pageHeader{padding:28px 0}.inchieste-core__pageHeaderTitle{font-size:26px}}

/* Breadcrumbs */
.inchieste-core__breadcrumbs{
  max-width:1120px;
  margin:18px auto 10px;
  padding:0 18px;
  font-size:14px;
  line-height:1.4;
  color: var(--ic-bc-text, rgba(17,24,39,.75));
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.inchieste-core__breadcrumbs a{  color: var(--ic-bc-link, inherit);
  text-decoration:underline;
  text-underline-offset:3px;
}

.inchieste-core__breadcrumbs{max-width:1120px;margin:14px auto 0;padding:0 18px;font-size:14px}
.inchieste-core__breadcrumbs a{text-decoration:underline}
.inchieste-core__archiveIntro,.inchieste-core__singleIntro{max-width:1120px;margin:10px auto 0;padding:0 18px;color:#4b5563}

.inchieste-core--hasHeader{padding-top:0}

.inchieste-core__breadcrumbs{margin-top:18px;margin-bottom:10px}
.inchieste-core__archiveIntro,.inchieste-core__singleIntro{margin:10px 0 18px;font-size:16px;line-height:1.6}
.inchieste-core__archiveIntro p,.inchieste-core__singleIntro p{margin:0}
.inchieste-core__episodeTitle--dup{font-size:22px;line-height:1.25;margin-top:8px}


/* Spacing between breadcrumbs and main content */
.inchieste-core__breadcrumbs{margin-top:14px;margin-bottom:18px}
.inchieste-core__singleIntro{margin-top:0;margin-bottom:22px;font-size:16px;line-height:1.6}

/* Ensure header titles readable */
.inchieste-core__heroTitle,.inchieste-core__pageHeaderTitle{color:#fff}

/* Link hover/focus: distinct from background */
.inchieste-core a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.inchieste-core a:hover{color:#0a58ca}
.inchieste-core a:focus-visible{color:#0a58ca}


/* WCAG/EAA helpers */
.inchieste-core .screen-reader-text{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
/* Better focus visibility (within inchieste) */
.inchieste-core :is(a,button,input,select,textarea):focus-visible{
  outline:3px solid rgba(10,88,202,.9);
  outline-offset:2px;
}
/* Ensure interactive controls have adequate size */
.inchieste-core :is(button,.button,input[type="submit"]){min-height:44px}
/* Breadcrumb spacing */
.inchieste-core__breadcrumbs{margin-top:14px;margin-bottom:18px}

.inchieste-core__archiveTools .button{width:100%}
.inchieste-core__archiveTools input[type="search"],.inchieste-core__archiveTools select{width:100%}

/* Breadcrumb semantic list */
.inchieste-core__bcList{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.inchieste-core__bcList li{display:flex;align-items:center;gap:8px}
.inchieste-core__bcList li+li:before{content:"›";opacity:.7}
.inchieste-core__filtersState{font-size:14px;opacity:.95;margin:6px 0 14px}

/* Accessibility: skip link (visible on keyboard focus only) */
.inchieste-core__skip{
  position:absolute;
  left:-9999px;
  top:0;
  padding:10px 12px;
  border-radius:12px;
  background:#000;
  color:#fff;
  z-index:999999;
  text-decoration:none;
}
.inchieste-core__skip:focus,
.inchieste-core__skip:focus-visible{
  left:12px;
  top:12px;
  outline:3px solid #fff;
  outline-offset:2px;
}

/* Ensure Apply button is visible regardless of theme styles */
.inchieste-core__archiveTools .button,
.inchieste-core__archiveActions .button{
  display:inline-block;
  width:100%;
  background:#000;
  color:#fff;
  border:1px solid #000;
  border-radius:12px;
  padding:10px 12px;
  text-align:center;
}
.inchieste-core__archiveTools .button:hover,
.inchieste-core__archiveActions .button:hover{
  background: var(--ic-btn-bg-hover, var(--ic-btn-bg, #111));
  border-color: var(--ic-btn-bg-hover, var(--ic-btn-bg, #111));
}

/* Fix overlap apply button with selects */
.inchieste-core__archiveTools{display:flex;flex-direction:column;gap:12px}
.inchieste-core__archiveTools select{display:block;margin-bottom:0}
.inchieste-core__archiveActions{margin-top:8px;clear:both}
.inchieste-core__archiveActions .button{position:static}

/* Skip link: force visibility when focused (theme-safe) */
#inchieste-skip.inchieste-core__skip{
  position:fixed !important;
  left:-9999px !important;
  top:12px !important;
  padding:10px 12px !important;
  border-radius:12px !important;
  background:#000 !important;
  color:#fff !important;
  z-index:2147483647 !important;
  text-decoration:none !important;
}
#inchieste-skip.inchieste-core__skip:focus,
#inchieste-skip.inchieste-core__skip:focus-visible{
  left:12px !important;
}

/* Archive sidebar spacing: avoid overlap between select and apply */
.inchieste-core__archiveTools{display:flex;flex-direction:column;gap:16px !important}
.inchieste-core__archiveTools select{margin-bottom:8px !important}
.inchieste-core__archiveActions{margin-top:14px !important}


/* Skip link (WCAG 2.4.1) */
.inchieste-core__skip{
  position: fixed;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  z-index: 2147483647;
}
.inchieste-core__skip:focus,
.inchieste-core__skip:focus-visible{
  left: 12px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.inchieste-core__skip--always{
  left: 12px;
}


/* Focus styles (WCAG 2.4.7) */
.inchieste-core a:focus,
.inchieste-core a:focus-visible,
.inchieste-core button:focus,
.inchieste-core button:focus-visible,
.inchieste-core select:focus,
.inchieste-core select:focus-visible,
.inchieste-core input[type="text"]:focus,
.inchieste-core input[type="text"]:focus-visible{
  outline: 3px solid #000;
  outline-offset: 3px;
}

.inchieste-core__breadcrumbs .inchieste-core__breadcrumbList{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.inchieste-core__breadcrumbs .inchieste-core__breadcrumbList > li{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.inchieste-core__breadcrumbs .inchieste-core__breadcrumbList > li + li:before{
  content: "›";
  opacity: .7;
}


/* Theme tokens (optional) */
.inchieste-core input[type="text"],
.inchieste-core select{
  color: var(--ic-field-text, inherit);
  background: var(--ic-field-bg, inherit);
  border-color: var(--ic-field-border, currentColor);
}

/* Eduma-like cards (borders + hover) */
.inchieste-core__card{
  background: var(--ic-card-bg, rgba(0,0,0,.02));
  border: 1px solid var(--ic-card-border, rgba(0,0,0,.10));
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.inchieste-core__card:hover{
  border-color: var(--ic-card-border-hover, rgba(0,0,0,.25));
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

/* Titles inside cards should remain readable even on dark themes */
.inchieste-core__cardTitle a{
  color: inherit;
}
.inchieste-core__cardTitle a:hover{
  text-decoration: underline;
}


/* Field borders: enforce plugin token */
.inchieste-core input[type="text"],
.inchieste-core select{
  border: 1px solid var(--ic-field-border, rgba(0,0,0,.20)) !important;
  color: var(--ic-field-text, inherit);
  background: var(--ic-field-bg, inherit);
}


/* Reset button (color tokens) */
.inchieste-core .inchieste-core__reset,
.inchieste-core a.inchieste-core__reset,
.inchieste-core button.inchieste-core__reset{
  background: var(--ic-reset-bg, #1e73be);
  color: var(--ic-reset-text, #fff);
  border: 1px solid var(--ic-reset-bg, #1e73be);
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.inchieste-core .inchieste-core__reset:hover,
.inchieste-core a.inchieste-core__reset:hover,
.inchieste-core button.inchieste-core__reset:hover{
  filter: brightness(.95);
}


/* Card look closer to Eduma blog cards */
.inchieste-core__card{
  border-radius: 0 !important;
}
.inchieste-core__cardTitle{
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ic-card-border, rgba(0,0,0,.10));
}
.inchieste-core__cardTitle a{
  text-decoration: none !important;
}
.inchieste-core__cardTitle a:hover{
  text-decoration: none !important;
}

/* Episode params box theme tokens */
.inchieste-core__episodeHeader{
  background: var(--ic-episode-box-bg, rgba(0,0,0,.02));
  border: 1px solid var(--ic-episode-box-border, rgba(0,0,0,.10));
  color: var(--ic-episode-box-text, inherit);
}

.inchieste-core__epAuthor{
  font-size: 13px;
  opacity: .8;
  margin-right: 6px;
  margin-bottom: 10px;
}


/* Field focus: avoid browser blue glow, use tokenized outline */
.inchieste-core input[type="text"]:focus,
.inchieste-core input[type="text"]:focus-visible,
.inchieste-core select:focus,
.inchieste-core select:focus-visible{
  box-shadow: none !important;
  outline: 3px solid var(--ic-field-border, #000) !important;
  outline-offset: 3px;
  border-color: var(--ic-field-border, rgba(0,0,0,.20)) !important;
}


/* Breadcrumb links: enforce configured color (theme may override hover to white/blue) */
.inchieste-core__breadcrumbs a{
  color: var(--ic-bc-link, inherit) !important;
}
.inchieste-core__breadcrumbs a:hover,
.inchieste-core__breadcrumbs a:focus,
.inchieste-core__breadcrumbs a:focus-visible{
  color: var(--ic-bc-link, inherit) !important;
  text-decoration: underline;
}

/* Tax/category links in sidebar */
.inchieste-core__tax a{
  color: var(--ic-bc-link, inherit) !important;
}
.inchieste-core__tax a:hover,
.inchieste-core__tax a:focus,
.inchieste-core__tax a:focus-visible{
  color: var(--ic-bc-link, inherit) !important;
  text-decoration: underline;
}

/* Reset button: lock colors on hover/focus too */
.inchieste-core a.inchieste-core__reset,
.inchieste-core a.inchieste-core__reset:hover,
.inchieste-core a.inchieste-core__reset:focus,
.inchieste-core a.inchieste-core__reset:focus-visible{
  background: var(--ic-reset-bg, #1e73be) !important;
  color: var(--ic-reset-text, #fff) !important;
  border-color: var(--ic-reset-bg, #1e73be) !important;
  text-decoration: none !important;
}

/* Search field may be type=search; enforce border + focus like select */
.inchieste-core input[type="search"]{
  border: 1px solid var(--ic-field-border, rgba(0,0,0,.20)) !important;
  color: var(--ic-field-text, inherit);
  background: var(--ic-field-bg, inherit);
  box-shadow: none !important;
  -webkit-appearance: none;
}
.inchieste-core input[type="search"]:focus,
.inchieste-core input[type="search"]:focus-visible{
  box-shadow: none !important;
  outline: 3px solid var(--ic-field-border, #000) !important;
  outline-offset: 3px;
  border-color: var(--ic-field-border, rgba(0,0,0,.20)) !important;
}

/* Episode box: ensure internal links and headings inherit the configured text */
.inchieste-core__episodeHeader a{
  color: inherit !important;
  text-decoration: underline;
}
.inchieste-core__episodeHeader a:hover,
.inchieste-core__episodeHeader a:focus,
.inchieste-core__episodeHeader a:focus-visible{
  color: inherit !important;
  text-decoration: underline;
}
.inchieste-core__episodeHeader .inchieste-core__episodeH{
  color: inherit;
}


/* Link tokens (override theme hover colors inside plugin) */
.inchieste-core a{
  color: var(--ic-link, inherit);
}
.inchieste-core a:hover,
.inchieste-core a:active,
.inchieste-core a:focus,
.inchieste-core a:focus-visible{
  color: var(--ic-link-hover, var(--ic-link, inherit)) !important;
  text-decoration: underline;
}

/* Ensure the “back” link follows token */
.inchieste-core__backLink{ color: var(--ic-link, inherit); }
.inchieste-core__backLink:hover{ color: var(--ic-link-hover, var(--ic-link, inherit)) !important; }

/* Search field border fix */
.inchieste-core input[type="search"]{
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--ic-field-border, rgba(0,0,0,.20)) !important;
  box-shadow: none !important;
  outline: none;
  color: var(--ic-field-text, inherit);
  background: var(--ic-field-bg, inherit);
}
.inchieste-core input[type="search"]:focus,
.inchieste-core input[type="search"]:focus-visible{
  box-shadow: none !important;
  outline: 3px solid var(--ic-field-border, #000) !important;
  outline-offset: 3px;
  border-color: var(--ic-field-border, rgba(0,0,0,.20)) !important;
}

/* Episode header internal colors */
.inchieste-core__episodeHeader a{
  color: var(--ic-episode-link, var(--ic-link, inherit));
}
.inchieste-core__episodeHeader a:hover{
  color: var(--ic-link-hover, var(--ic-episode-link, var(--ic-link, inherit))) !important;
}
.inchieste-core__episodeHeader .inchieste-core__episodeH{
  color: inherit;
}

/* Badge/Pill */
.inchieste-core__pill{
  background: var(--ic-pill-bg, rgba(0,0,0,.08));
  color: var(--ic-pill-text, inherit);
}


/* Episode header text colors must adapt to dark themes (override fixed rgba blacks) */
.inchieste-core__episodeHeader{
  color: var(--ic-episode-box-text, inherit) !important;
  background: var(--ic-episode-box-bg, rgba(0,0,0,.02)) !important;
  border-color: var(--ic-episode-box-border, rgba(0,0,0,.10)) !important;
}
.inchieste-core__episodeMeta{
  color: inherit !important;
  opacity: .85;
}
.inchieste-core__dl dt{
  color: inherit !important;
  opacity: .85;
}
.inchieste-core__dl dd{
  color: inherit !important;
}
.inchieste-core__boxText{
  color: inherit !important;
}

/* Keep headings readable inside the box */
.inchieste-core__episodeHeader .inchieste-core__episodeH{
  color: inherit !important;
}
