/* Narrower left nav so it doesn't crunch the main content (wide screens only). */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { width: 10rem; }
}

/* GitHub-style pill badges tagging each source's origin (RSS vs Research). */
.src-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.6;
  padding: 0 0.4rem;
  margin-left: 0.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  vertical-align: middle;
  text-transform: uppercase;
  white-space: nowrap;
}
.src-rss {
  background: var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color--light);
  border-color: var(--md-default-fg-color--lighter);
}
.src-research {
  background: rgba(46, 160, 67, 0.15);
  color: #1a7f37;
  border-color: rgba(46, 160, 67, 0.4);
}
[data-md-color-scheme="slate"] .src-research {
  color: #3fb950;
}

/* Star CTA in the footer copyright line (replaces the Material generator note). */
.md-copyright__highlight a {
  font-weight: 700;
  text-decoration: underline;
}

/* Custom importance meter: 5 increasing amber signal bars (replaces 🔥). */
.imp {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.82em;
  margin-right: 0.45rem;
  vertical-align: -0.12em;
}
.imp i {
  width: 3px;
  border-radius: 1px;
  background: var(--md-default-fg-color--lightest);
}
.imp i.on { background: #f6ad3c; }
/* Colour the filled bars by importance: 1–2 red, 3 amber, 4–5 green. */
.imp-1 i.on, .imp-2 i.on { background: #e5484d; }
.imp-3 i.on { background: #f6ad3c; }
.imp-4 i.on, .imp-5 i.on { background: #2ea043; }
.imp i:nth-child(1) { height: 34%; }
.imp i:nth-child(2) { height: 50%; }
.imp i:nth-child(3) { height: 67%; }
.imp i:nth-child(4) { height: 83%; }
.imp i:nth-child(5) { height: 100%; }

/* Space the "Request a new topic" button off the preceding text. */
.md-typeset .request-topic { margin-left: 0.5rem; }

/* Word quiz + word-list pages. */
.wq-btn,
.wq-opt {
  cursor: pointer;
  font: inherit;
  border: 1px solid var(--md-default-fg-color--lighter);
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
}
.wq-progress { font-size: 0.72rem; color: var(--md-default-fg-color--light); text-transform: uppercase; letter-spacing: 0.05em; }
.wq-def { margin: 0.5rem 0 0.9rem; font-size: 1.05rem; }
.wq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.wq-opt:hover:not(:disabled) { border-color: #f6ad3c; }
.wq-opt.correct { background: rgba(46, 160, 67, 0.18); border-color: #1a7f37; color: #1a7f37; }
.wq-opt.wrong { background: rgba(220, 60, 60, 0.15); border-color: #c0392b; color: #c0392b; }
.wq-feedback { margin-top: 0.9rem; }
.wq-ok { color: #1a7f37; font-weight: 700; }
.wq-no { color: #c0392b; font-weight: 700; }
.wq-ex { margin-top: 0.4rem; font-style: italic; color: var(--md-default-fg-color--light); }
.wq-btn { margin-top: 0.8rem; }
.wq-done { font-size: 1.2rem; text-align: center; padding: 1rem; }

.wl-cards { display: grid; gap: 0.8rem; }
.wl-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-left: 3px solid #f6ad3c;
  border-radius: 4px;
  padding: 0.6rem 0.9rem;
  background: var(--md-code-bg-color);
}
.wl-word { font-size: 1.15rem; font-weight: 700; }
.wl-def { margin-top: 0.25rem; }
.wl-ex { margin-top: 0.3rem; font-style: italic; color: var(--md-default-fg-color--light); }
.wl-src { display: inline-block; margin-top: 0.35rem; font-size: 0.7rem; }
.wl-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.1rem; }
.wl-page { font-size: 0.8rem; color: var(--md-default-fg-color--light); }
.wq-btn:disabled { opacity: 0.45; cursor: default; }

/* "On this day" fact card on the home page (blue accent vs the amber WOTD). */
.md-typeset .fact {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-left: 3px solid #2b6cb0;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  margin: 1.3rem 0;
  background: var(--md-code-bg-color);
}
.fact-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--md-default-fg-color--light);
}
.fact-text { margin-top: 0.3rem; }
.fact-src { font-size: 0.78rem; white-space: nowrap; }
.md-typeset .fact.funfact { border-left-color: #2ea043; }   /* green accent */
.wl-date {
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Word of the day card on the home page. */
.md-typeset .wotd {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-left: 3px solid #f6ad3c;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  margin: 0 0 1.3rem;
  background: var(--md-code-bg-color);
}
.wotd-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--md-default-fg-color--light);
}
.wotd-word { font-size: 1.3rem; font-weight: 700; margin-top: 0.15rem; }
.wotd-pos {
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  color: var(--md-default-fg-color--light);
  margin-left: 0.35rem;
}
.wotd-def { margin-top: 0.3rem; }
.wotd-ex {
  margin-top: 0.35rem;
  font-style: italic;
  color: var(--md-default-fg-color--light);
}
.wotd-src { display: inline-block; margin-top: 0.5rem; font-size: 0.7rem; }

/* Slicker content bullets: an amber ▸ marker instead of the default grey disc. */
.md-typeset ul:not(.takeaways) > li::marker {
  content: "▸";
  color: #f6ad3c;
}
/* Rows led by an importance meter (TL;DR, Top stories) drop the bullet — the
   meter is the visual lead. */
.md-typeset ul > li:has(> .imp:first-child)::marker {
  content: "";
}

/* "Key facts" takeaways card (replaces plain bullets). */
.md-typeset .takeaways {
  list-style: none;
  margin: 0.5rem 0 0.9rem;
  padding: 0.55rem 0.9rem;
  border-left: 3px solid #f6ad3c;
  background: var(--md-code-bg-color);
  border-radius: 0 4px 4px 0;
}
.md-typeset .takeaways li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0.28rem 0;
  font-size: 0.8rem;
  line-height: 1.55;
}
.md-typeset .takeaways li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #f6ad3c;
  font-weight: 700;
}

/* Per-story "copy link to share" button next to each story heading. */
.share-link {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 0.62em;
  font-weight: 600;
  margin-left: 0.45rem;
  padding: 0 0.2rem;
  color: var(--md-default-fg-color--light);
  opacity: 0.4;
  vertical-align: middle;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
h3:hover > .share-link,
.share-link:hover,
.share-link:focus,
.share-link.copied {
  opacity: 1;
}
.share-link.copied {
  color: #1a7f37;
}
[data-md-color-scheme="slate"] .share-link.copied {
  color: #3fb950;
}
