/* Dictionary UAT: uses TroyNemul's existing dark shell and shared settings. */
.dictionaryWidget[hidden] { display: none !important; }
.dictionaryWidget {
  color: white;
  padding: 40pt 0 calc(var(--bottom-navigation-height) + 8pt);
  box-sizing: border-box;
  min-height: 100%;
}
/* The markup and all visible controls use Partículas' existing CSS rules.
   Do not override .buttonIcon, .icon or .searchBox layout here. */
.dictionaryTopBar { display: table; }
.dictionaryTopBar [hidden] { display: none !important; }
.dictionaryTopBar #dictionarySelectedTitle { color: white; font-weight: bold; }
.dictionaryVisuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Match Partículas' 10px reader inset at every viewport width. */
.dictionaryIntro { padding: 8px 10px 2px; }
.dictionaryUatBanner {
  padding: 10px 12px;
  border: 1px solid #6f622d;
  border-radius: 8px;
  background: #383323;
  color: #e5dab8;
  font-size: 0.9em;
}

.dictionaryHint { color: #aaa; line-height: 1.5; font-size: .92em; }
#dictionaryResults { width: 100%; box-sizing: border-box; padding: 0; }

/* Live dictionary results match Partículas. Only verified, typed suffix
   segments inside an analyzed form receive their own particle underline. */
.dictionaryResultsList { width: 100%; }
.dictionaryResultRow {
  display: block;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 12px 10pt;
  border: 0;
  border-bottom: 1px solid white;
  border-radius: 0;
  background: black;
  color: white;
  text-align: left;
  font: inherit;
  line-height: 1.45;
  cursor: pointer;
}
.dictionaryResultRow:hover { background: #202020; }
.dictionaryResultRow:focus-visible { outline: 2px solid aqua; outline-offset: -3px; }
.dictionaryResultHeadword {
  font-weight: 600;
  color: white;
  text-decoration: none;
}
.dictionaryResultSnippet {
  color: #aaa;
  font-style: italic;
  font-weight: normal;
  text-decoration: none;
}
/* The word remains white; underline COLOR comes from particles.json via JS. */
.dictionaryWordParts { white-space: normal; }
.dictionaryPlainSegment { text-decoration: none; }
.dictionaryParticleSegment {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
}
.dictionaryAnalyzedWord { color: white; }
/* The #dictionaryResults ID rule resets padding to zero for full-width search
   rows. Match that ID's specificity for the selected-word reader, using the
   same 10px horizontal inset as the existing .contentWidget in Partículas. */
#dictionaryResults.dictionaryResultsDetail {
  padding-left: 10px;
  padding-right: 10px;
}

/* Selected definitions reuse the native Partículas reader: no gray cards. */
.dictionaryEntry {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: beige;
}
.dictionaryReportControl {
  margin: 1em 0;
}
.dictionaryDefinitionMeaning {
  color: beige;
  font-weight: normal;
  line-height: 1.5;
  margin: 0;
}
.dictionaryClass, .dictionaryUatNote {
  color: #aaa;
  font-size: .9em;
  margin: 5px 0 12px;
}
.dictionaryUatNote { font-style: italic; }
.dictionaryRelatedLink { color: inherit; text-decoration: underline; }
/* Same 10px flags and italic Spanish translation used by Partículas. */
.dictionaryLexicalExample {
  color: white;
  line-height: 1.6;
  margin: 7px 0;
}
.dictionaryLexicalExample img { vertical-align: baseline; }
.dictionaryLexicalExample .normalWordExample { cursor: inherit; }
.dictionaryLexicalExample .winkaExampleSpan[hidden] { display: none !important; }
.dictionaryLexicalExample .winkaExample { color: white; font-style: italic; }
.dictionarySegment {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #444;
}
.dictionarySegment > span { text-align: right; }
.dictionarySegment strong { color: #fff; }
/* Morphological root: a real dictionary lexeme, never a particle.
   Keep root and gloss together, with one collapsed lexical definition. */
.dictionaryRoot {
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}
.dictionaryRootDetails {
  margin: 0;
  padding: 0;
}
.dictionaryRootDetails > summary.dictionaryRootSummary {
  display: list-item;
  list-style-position: inside;
  padding: 10px 0;
  cursor: pointer;
  color: white;
}
.dictionaryRootDetails > summary.dictionaryRootSummary::marker { color: lightgray; }
.dictionaryRootDetails > summary:focus-visible { outline: 2px solid aqua; outline-offset: 3px; }
.dictionaryRootSummaryContent {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 7px;
  max-width: calc(100% - 2em);
}
.dictionaryRootName {
  color: white;
  font-weight: bold;
  text-decoration: none;
}
.dictionaryRootMeaning {
  color: #aaa;
  font-size: .9em;
  font-weight: normal;
  margin-left: 7px;
}
.dictionaryRootBody {
  margin: 6px 0 14px;
  padding: 12px 14px 16px;
  box-sizing: border-box;
  border: 1px solid #4b4b4b;
  border-radius: 10px;
  background: #292929;
  color: beige;
}
.dictionaryRootBody .particleTypeTitle { margin-top: 4px; }
.dictionaryRootMissing {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
}
.dictionaryRootMissing strong { color: white; }

/* Each suffix owns one divider; the root's bottom border precedes the first. */
.dictionarySuffix {
  border-bottom: 1px solid #444;
}
.dictionarySuffixUnavailable { border-top: 0; }
.dictionaryLesson {
  border: 0;
  border-radius: 0;
  margin: 2px 0 12px;
  background: transparent;
}
.dictionaryLesson summary {
  cursor: pointer;
  color: lightgray;
  padding: 10px 0;
  font-weight: 600;
}
.dictionaryLesson summary:focus-visible { outline: 2px solid aqua; outline-offset: 3px; }
/* Retain the browser's native disclosure triangle and keyboard behavior. */
.dictionaryLesson > summary.dictionarySuffixSummary {
  display: list-item;
  list-style-position: inside;
  padding: 10px 0;
  color: white;
}
.dictionaryLesson > summary.dictionarySuffixSummary::marker { color: lightgray; }
.dictionarySuffixSummaryContent {
  display: inline-block;
  vertical-align: top;
  margin-left: 7px;
  /* Reserve space for the native disclosure marker, even with a long gloss. */
  max-width: calc(100% - 2em);
}
.dictionarySuffixName {
  display: block;
  font-weight: bold;
  color: white;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: none;
}
.dictionarySuffixMeaning {
  display: block;
  color: #aaa;
  font-size: .9em;
  font-weight: normal;
  margin-top: 6px;
}
.dictionarySuffix .dictionaryLesson {
  margin: 0;
}

/* The suffix summary stays on the black dictionary page. Only the
   expanded Partículas lesson gets a distinct, rounded reading surface. */
.dictionaryLesson > .lesson-body {
  margin: 6px 0 14px;
  padding: 12px 14px 16px;
  box-sizing: border-box;
  border: 1px solid #4b4b4b;
  border-radius: 10px;
  background: #292929;
  color: beige;
  line-height: normal;
  overflow-wrap: anywhere;
}
.dictionaryLesson .lesson-title {
  color: yellow;
  border-bottom: thin solid yellow;
  font-size: 1em;
  margin: 4px 0 14px;
}
/* Ordinary words use tooltip glosses, not particle underlines. The shared
   .tooltip black dotted border looks like an accidental underline here. */
.dictionaryLesson .lesson-body .tooltip {
  border-bottom: none;
}
.dictionaryLesson .lesson-section { margin: 0; }
.dictionaryLesson .lesson-paragraph {
  margin: 14px 0;
  color: beige;
}
.dictionaryLesson .lesson-example {
  border: 0;
  background: none;
  padding: 0;
  margin: 7px 0;
  color: white;
  line-height: 1.6;
}
.dictionaryLesson .lesson-example img {
  vertical-align: baseline;
}
.dictionaryLesson .lesson-example .winkaExampleSpan[hidden] {
  display: none !important;
}
.dictionaryLesson .lesson-example .winkaExampleSpan {
  color: white;
  font-style: italic;
}
.dictionaryLesson .lesson-related { margin: 10px 0 18px; }
.dictionaryPending { font-size: .8em; color: #aaa; border: 1px solid #666; padding: 3px 8px; border-radius: 14px; }
.bottomNavigationItem { width: 33.3333%; }
#dictionaryTab { border-left: 1px solid #333; }
/* The SVG itself owns its selected cyan and inactive gray colors. */
.bottomNavigationDictionaryIcon { width: 42px; }
/* Search results and selected entries span the complete app width, just like Partículas. */
