/* Shared Aeth3r interface. Load after the wiki's other stylesheets. */
:root {
    --wiki-link: #59679e;
    --wiki-glass: rgb(182 199 216 / 27%);
    --wiki-glass-border: rgb(182 199 216 / 65%);
  }
  /* Resource links in the text, including other wiki pages. Navigation and
     in-page anchors retain their original colors and interaction states. */
  body :is(.content-body,.edu-content,.hp-section) a[href]:not(:is([href^="#"],[href^="mailto:"],[href^="tel:"],.btn,[role="button"])),
  body :is(.content-body,.edu-content,.hp-section) a[href]:not(:is([href^="#"],[href^="mailto:"],[href^="tel:"],.btn,[role="button"])) :is(span,strong,em) {
    color: var(--wiki-link) !important;
    text-underline-offset: .2em;
  }
  body :is(.content-body,.edu-content,.hp-section) a[href]:not(:is([href^="#"],[href^="mailto:"],[href^="tel:"],.btn,[role="button"])):focus-visible { outline: 2px solid var(--wiki-link); outline-offset: 4px; }
  body :is(details, .acc-item, .accordion-item) {
    background: var(--wiki-glass) !important;
    border: 1px solid var(--wiki-glass-border) !important;
    border-radius: 12px;
    box-shadow: 0 7px 22px rgb(20 25 55 / 4%);
  }
  body details { padding: 1rem 1.2rem; margin: 1.35rem 0; }
  body details > summary { cursor: pointer; color: #141937; font-weight: 600; line-height: 1.6; }
  body details[open] > summary { margin-bottom: 1rem; }
  body details:not([open]) > :not(summary) { display: none; }
  body :is(.acc-item, .accordion-item) { margin: .75rem 0; overflow: hidden; }
  body :is(.acc-header, .accordion-button) {
    background: transparent !important; color: #141937;
    padding: 1rem 2.7rem 1rem 1.2rem;
  }
  body :is(.acc-body, .accordion-body) { padding: 0 1.2rem 1.2rem; }
  body .acc-body[hidden] { display: none !important; }
  body .acc-body:not(.is-open) { display: none; }
  body .acc-body:not([hidden]).is-open { display: block; }
  /* Replace callout/ribbon treatments with the requested translucent blue. */
  body :is(.bd-callout, .desc-note, .at-note, .ent-takeaway,
    .ent-draft-note, .ent-target-rationale, .ip-design-note, .dp-note,
    .ribbon, .flag, .section-ribbon, .section-flag, .ribbon-title, .flag-title,
    .wiki-note, [class*="callout"], [class*="ribbon"], [class*="banner"]) {
    background: var(--wiki-glass) !important;
    color: #141937 !important;
    border: 1px solid var(--wiki-glass-border) !important;
    border-radius: 12px !important;
    clip-path: none !important;
    box-shadow: none !important;
    padding: 1rem 1.2rem;
  }
  body :is(.ribbon, .flag, .section-ribbon, .section-flag,
    .ribbon-title, .flag-title, [class*="ribbon"])::before,
  body :is(.ribbon, .flag, .section-ribbon, .section-flag,
    .ribbon-title, .flag-title, [class*="ribbon"])::after { content: none !important; }
  /* Counters decorate headings without changing the text read by the sidebar. */
  body .content-layout:has(.toc) .content-body { counter-reset: wiki-section; }
  body .content-layout:has(.toc) .content-body .content-section > h2:not(.wiki-reference-title),
  body .content-layout:has(.toc) .content-body :is(.model-section-heading,.dp-heading,.ip-heading,.ent-heading) > h2 {
    counter-increment: wiki-section;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
  }
  body .content-layout:has(.toc) .content-body .content-section > h2:not(.wiki-reference-title)::before,
  body .content-layout:has(.toc) .content-body :is(.model-section-heading,.dp-heading,.ip-heading,.ent-heading) > h2::before {
    content: counter(wiki-section, decimal-leading-zero);
    display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem;
    border: 1px solid var(--wiki-glass-border); border-radius: 50%;
    background: var(--wiki-glass); color: var(--wiki-link);
    font-size: .8rem; font-weight: 600; line-height: 1; margin-top: .1rem;
  }
  body .content-body :is(.model-section-number,.dp-section-number,.ip-section-number,.ent-section-no) { display: none !important; }
  body .content-layout:has(.toc) .content-body h3 {
    text-decoration: underline;
    text-decoration-color: #848dc6;
    text-decoration-thickness: 2px;
    text-underline-offset: .28em;
    border-bottom: 0 !important;
    padding-bottom: .25em;
  }
  body .model-numbered-page .content-body .model-section-heading > h3 {
    font-size: clamp(1.15rem,1.8vw,1.45rem);
    line-height: 1.5;
  }
  body .wiki-subheading-prefix { display: none !important; }
  /* Education has its own per-category sidebars rather than .content-layout. */
  body .edu-page:has(.edu-toc) > section > h2 {
    display: flex; align-items: flex-start; gap: .85rem;
  }
  body .edu-page:has(.edu-toc) > section > h2::before {
    content: attr(data-wiki-number);
    display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem;
    border: 1px solid var(--wiki-glass-border); border-radius: 50%;
    background: var(--wiki-glass); color: var(--wiki-link);
    font-size: .8rem; font-weight: 600; line-height: 1; margin-top: .1rem;
  }
  body .edu-content h3 {
    text-decoration: underline; text-decoration-color: #848dc6;
    text-decoration-thickness: 2px; text-underline-offset: .28em;
    border-bottom: 0 !important; padding-bottom: .25em;
  }
  /* References keep their existing arrow rather than joining the counter. */
  body .content-body .wiki-reference-section h2 {
    counter-increment: none !important;
    display: block !important;
  }
  body .content-body .wiki-reference-section h2::before { content: none !important; }
  body .wiki-reference-heading > span { background: var(--wiki-glass); }
  body .wiki-reference-panel { margin-top: 1rem; }
  .wiki-source-page { color: #141937; }
  .wiki-source-page .content-body { line-height: 1.8; }
  .wiki-source-page .content-section { margin-bottom: 4rem; }
  .wiki-source-page h2 { font-size: clamp(1.5rem,2.2vw,2rem); font-weight: 600; line-height: 1.4; }
  .wiki-source-page h3 { font-size: clamp(1.15rem,1.8vw,1.45rem); margin: 2.3rem 0 1rem; font-weight: 600; line-height: 1.5; }
  .wiki-source-page h4 { font-size: 1.08rem; font-weight: 600; line-height: 1.5; margin: 1.8rem 0 .9rem; }
  .wiki-source-page p { margin: 0 0 1.25rem; }
  .wiki-source-figure { margin: 2rem 0; }
  .wiki-source-figure img { display: block; max-width: 100%; width: auto; height: auto; margin: 0 auto; }
  .wiki-source-figure figcaption { font-size: .85rem; line-height: 1.7; color: #454e70; margin: .9rem 0 0; }
  .wiki-source-table { overflow-x: auto; margin: 1.7rem 0; border: 1px solid var(--wiki-glass-border); border-radius: 12px; }
  .wiki-source-table table { display: table; width: 100%; border-collapse: collapse; margin: 0; font-size: .88rem; }
  .wiki-source-table caption { caption-side: top; padding: 1rem; color: #141937; font-weight: 600; background: var(--wiki-glass); }
  .wiki-source-table :is(th,td) { padding: .9rem 1rem; border-bottom: 1px solid var(--wiki-glass-border); vertical-align: top; text-align: left; }
  .wiki-source-table th { background: rgb(182 199 216 / 18%); }
  .wiki-sequence { font-family: ui-monospace,monospace; overflow-wrap: anywhere; min-width: 18rem; }
  .wiki-source-page .toc-link { font-size: .9rem; line-height: 1.45; }
  .wiki-source-page.design-page .toc-link.toc-h2 { font-size: .93rem; font-weight: 600; }
  @media (max-width:768px) {
    body .content-layout:has(.toc) .content-body h2::before { flex-basis: 2rem !important; height: 2rem !important; }
    .wiki-source-page .content-layout { margin-left: 0; margin-right: 0; }
    body details { padding: .9rem 1rem; }
  }
  