/* Turn2Engineering | Mechanical Engineering core 1.0.0
   Article utilities based on the supplied Electronics core 8.2.0.
   Load before the page stylesheet. Templates opt in with data-t2e-me. */
.article-shell:where([data-t2e-me="article"]) {
  --t2e-blue: #0056b3;
  --t2e-blue-hover: #0b3a75;
  --t2e-blue-dark: #183b63;
  --t2e-blue-soft: #eef5ff;
  --t2e-ink: #0f172a;
  --t2e-ink-soft: #334155;
  --t2e-muted: #64748b;
  --t2e-border: #dbe3ee;
  --t2e-surface: #ffffff;
  --t2e-surface-soft: #f8fafc;
  --t2e-page: #f4f7fb;
  --t2e-amber: #92400e;
  --t2e-red: #b42318;
  --t2e-green: #14532d;

  --t2e-h1: clamp(26px, 4vw, 36px);
  --t2e-h2: clamp(21px, 3.2vw, 28px);
  --t2e-h3: clamp(18px, 2.4vw, 22px);
  --t2e-body: clamp(16px, 1.45vw, 17px);
  --t2e-small: clamp(12px, 1.2vw, 14px);

  --t2e-radius-lg: 18px;
  --t2e-radius: 14px;
  --t2e-radius-sm: 10px;
  --t2e-shadow: 0 7px 20px rgba(15, 23, 42, 0.07);
  --t2e-shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.10);

  --t2e-shell: 1280px;
  --t2e-content: 940px;
  --t2e-scroll-offset: 104px;
  --t2e-focus-color: #1d65c1;
  --t2e-sidebar: clamp(230px, 21vw, 270px);
  --t2e-sticky-offset: 20px;
}

.article-shell:where([data-t2e-me="article"]) [hidden] {
  display: none;
}

.article-shell:where([data-t2e-me="article"]),
.article-shell:where([data-t2e-me="article"]) *,
.article-shell:where([data-t2e-me="article"]) *::before,
.article-shell:where([data-t2e-me="article"]) *::after {
  box-sizing: border-box;
}

.article-shell:where([data-t2e-me="article"]) {
  width: min(100%, var(--t2e-shell));
  margin: 12px auto 30px;
  padding: 0 clamp(8px, 2vw, 14px) 20px;
  color: var(--t2e-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.article-shell:where([data-t2e-me="article"]) .card {
  position: relative;
  min-width: 0;
  margin-bottom: 18px;
  padding: clamp(15px, 2vw, 19px) clamp(13px, 2vw, 19px);
  background: var(--t2e-surface);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--t2e-radius-lg);
  box-shadow: var(--t2e-shadow);
}

.article-shell:where([data-t2e-me="article"]) .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Typography and links
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) h1,
.article-shell:where([data-t2e-me="article"]) h2,
.article-shell:where([data-t2e-me="article"]) h3 {
  margin: 0 0 10px;
  color: var(--t2e-blue-dark);
  font-weight: 800;
  line-height: 1.2;
  scroll-margin-top: 120px;
}

.article-shell:where([data-t2e-me="article"]) h1 {
  width: 100%;
  max-width: none;
  font-size: var(--t2e-h1);
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.article-shell:where([data-t2e-me="article"]) h2,
.article-shell:where([data-t2e-me="article"]) h3 {
  text-wrap: balance;
}

.article-shell:where([data-t2e-me="article"]) h2 {
  font-size: var(--t2e-h2);
}

.article-shell:where([data-t2e-me="article"]) h3 {
  margin-top: 18px;
  font-size: var(--t2e-h3);
}

.article-shell:where([data-t2e-me="article"]) p,
.article-shell:where([data-t2e-me="article"]) li,
.article-shell:where([data-t2e-me="article"]) td,
.article-shell:where([data-t2e-me="article"]) th {
  color: var(--t2e-ink-soft);
  font-size: var(--t2e-body);
  line-height: 1.72;
}

.article-shell:where([data-t2e-me="article"]) p {
  max-width: 74ch;
  margin: 0 0 13px;
  text-wrap: pretty;
}

.article-shell:where([data-t2e-me="article"]) ul,
.article-shell:where([data-t2e-me="article"]) ol {
  margin: 10px 0 16px;
  padding-left: 23px;
}

.article-shell:where([data-t2e-me="article"]) li {
  margin: 0 0 8px;
}

.article-shell:where([data-t2e-me="article"]) :where(a) {
  color: var(--t2e-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-shell:where([data-t2e-me="article"]) :where(a:hover) {
  color: var(--t2e-blue-hover);
}

.article-shell:where([data-t2e-me="article"]) a:focus-visible,
.article-shell:where([data-t2e-me="article"]) .card-toggle:focus-visible,
.article-shell:where([data-t2e-me="article"]) .faq-question:focus-visible,
.article-shell:where([data-t2e-me="article"]) .mobile-toc summary:focus-visible,
.article-shell:where([data-t2e-me="article"]) .related-card-link:focus-visible,
.article-shell:where([data-t2e-me="article"]) .table-scroll-wrapper:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* =========================================================
   Hero and metadata
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .article-hero {
  margin-bottom: 14px;
}

.article-shell:where([data-t2e-me="article"]) .breadcrumbs {
  padding-top: 10px;
  padding-bottom: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f7fa 100%);
}

.article-shell:where([data-t2e-me="article"]) .breadcrumbs-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .breadcrumbs-inner span {
  display: inline-flex;
  align-items: center;
}

.article-shell:where([data-t2e-me="article"]) .breadcrumbs-inner a {
  color: #35597e;
  text-decoration: none;
}

.article-shell:where([data-t2e-me="article"]) .breadcrumbs-inner a:hover {
  text-decoration: underline;
}

.article-shell:where([data-t2e-me="article"]) .crumb-current {
  color: var(--t2e-ink);
  font-weight: 700;
}

.article-shell:where([data-t2e-me="article"]) .title-meta {
  margin-top: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: var(--t2e-shadow-strong);
}

.article-shell:where([data-t2e-me="article"]) .page-title {
  margin-bottom: 6px;
}

.article-shell:where([data-t2e-me="article"]) .page-subtitle {
  max-width: 78ch;
  color: var(--t2e-muted);
  line-height: 1.55;
}

.article-shell:where([data-t2e-me="article"]) .article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  width: 100%;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
  line-height: 1.35;
}

.article-shell:where([data-t2e-me="article"]) .article-meta-author,
.article-shell:where([data-t2e-me="article"]) .article-meta-details {
  min-width: 0;
  display: flex;
  align-items: center;
}

.article-shell:where([data-t2e-me="article"]) .article-meta-author {
  gap: 6px;
  flex-wrap: wrap;
}

.article-shell:where([data-t2e-me="article"]) .article-meta-label {
  color: var(--t2e-muted);
}

.article-shell:where([data-t2e-me="article"]) .article-meta-author strong {
  font-weight: 750;
}

.article-shell:where([data-t2e-me="article"]) .article-meta-details {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.article-shell:where([data-t2e-me="article"]) .article-meta a {
  color: #254d78;
  text-decoration: none;
}

.article-shell:where([data-t2e-me="article"]) .article-meta a:hover,
.article-shell:where([data-t2e-me="article"]) .article-meta a:focus-visible {
  color: var(--t2e-blue);
  text-decoration: underline;
}

.article-shell:where([data-t2e-me="article"]) .article-meta-dot {
  color: #94a3b8;
}

/* =========================================================
   Page layout
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .article-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-shell:where([data-t2e-me="article"]) .article-main {
  min-width: 0;
  width: 100%;
  max-width: var(--t2e-content);
  margin-inline: auto;
}

.article-shell:where([data-t2e-me="article"]) .article-sidebar {
  position: relative;
  min-width: 0;
}

.article-shell:where([data-t2e-me="article"]) .article-sidebar-inner {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.article-shell:where([data-t2e-me="article"]) .core-content {
  margin: 0;
  padding: 0;
}

/* Native Astra #primary/#secondary are owned entirely by Astra.
   The optional inner TOC is shown only on a page without a native right sidebar. */
@media  (min-width: 1180px)  {

  .article-shell:where([data-t2e-me="article"]) .article-layout:has(> .article-sidebar) { display: grid; grid-template-columns: minmax(210px, 245px) minmax(0, 1fr); gap: clamp(18px, 2vw, 25px); align-items: stretch; }
  .article-shell:where([data-t2e-me="article"]) .article-sidebar { order: 1; align-self: stretch; }
  .article-shell:where([data-t2e-me="article"]) .article-sidebar-inner { position: sticky; top: var(--t2e-sticky-offset); max-height: calc(100dvh - var(--t2e-sticky-offset) - 12px); overflow-y: auto; overscroll-behavior: contain; }
  .article-shell:where([data-t2e-me="article"]) .article-main { order: 2; max-width: none; margin-inline: 0; }
  .article-shell:where([data-t2e-me="article"]) .mobile-toc-wrapper { display: none; }

}
/* =========================================================
   Opening and utility cards
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .intro {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-color: #dce8f6;
}

.article-shell:where([data-t2e-me="article"]) .answer-lead {
  color: #1e3a5f;
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 600;
}

.article-shell:where([data-t2e-me="article"]) .key-takeaways {
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
  border-color: #f3c969;
}

.article-shell:where([data-t2e-me="article"]) .kt-heading {
  margin: 0 0 7px;
  color: var(--t2e-amber);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-shell:where([data-t2e-me="article"]) .kt-list {
  margin-bottom: 0;
}

.article-shell:where([data-t2e-me="article"]) .kt-list li strong {
  color: var(--t2e-amber);
}

.article-shell:where([data-t2e-me="article"]) .answer-summary {
  margin: 14px 0;
  padding: 14px 15px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #bfd6f2;
  border-left: 5px solid #2563eb;
  border-radius: var(--t2e-radius);
}

.article-shell:where([data-t2e-me="article"]) .answer-summary-title {
  margin: 0 0 6px;
  color: #17365d;
  font-size: var(--t2e-small);
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.article-shell:where([data-t2e-me="article"]) .answer-summary p:last-child,
.article-shell:where([data-t2e-me="article"]) .intent-path-card p:last-child,
.article-shell:where([data-t2e-me="article"]) .callout p:last-child,
.article-shell:where([data-t2e-me="article"]) .result-interpretation p:last-child,
.article-shell:where([data-t2e-me="article"]) .verification-item p:last-child,
.article-shell:where([data-t2e-me="article"]) .relationship-card p:last-child,
.article-shell:where([data-t2e-me="article"]) .solve-for-card p:last-child,
.article-shell:where([data-t2e-me="article"]) .quick-answer-card p:last-child,
.article-shell:where([data-t2e-me="article"]) .next-step-link p:last-child {
  margin-bottom: 0;
}

.article-shell:where([data-t2e-me="article"]) .task-module,
.article-shell:where([data-t2e-me="article"]) .equation-section,
.article-shell:where([data-t2e-me="article"]) .worked-example-section,
.article-shell:where([data-t2e-me="article"]) .scenario-example,
.article-shell:where([data-t2e-me="article"]) .troubleshooting-module,
.article-shell:where([data-t2e-me="article"]) .checklist-module {
  margin-bottom: 18px;
}

.article-shell:where([data-t2e-me="article"]) .intent-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.article-shell:where([data-t2e-me="article"]) .intent-path-card {
  min-width: 0;
  padding: 13px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
}

.article-shell:where([data-t2e-me="article"]) .intent-path-label {
  margin-bottom: 5px;
  color: #35597e;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.article-shell:where([data-t2e-me="article"]) .workflow-list {
  margin: 13px 0 17px;
  padding-left: 24px;
}

.article-shell:where([data-t2e-me="article"]) .workflow-list li {
  padding: 5px 0;
}

/* =========================================================
   Editorial panels
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .prose-section,
.article-shell:where([data-t2e-me="article"]) .visual-section {
  min-width: 0;
  margin: 0 0 18px;
  padding: clamp(18px, 2.2vw, 24px);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: var(--t2e-radius-lg);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.045);
}

.article-shell:where([data-t2e-me="article"]) .prose-section > h2,
.article-shell:where([data-t2e-me="article"]) .visual-section > h2 {
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.article-shell:where([data-t2e-me="article"]) .prose-section > h3,
.article-shell:where([data-t2e-me="article"]) .visual-section > h3 {
  margin-top: 25px;
  margin-bottom: 7px;
  font-size: clamp(17px, 2vw, 20px);
}

.article-shell:where([data-t2e-me="article"]) .citation-ready {
  max-width: none;
}

.article-shell:where([data-t2e-me="article"]) .citation-ready > p:first-of-type,
.article-shell:where([data-t2e-me="article"]) .section-answer {
  margin-bottom: 18px;
  padding: 11px 13px;
  color: #213c5b;
  background: #f4f8ff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  font-weight: 650;
}

.article-shell:where([data-t2e-me="article"]) .source-attribution {
  margin-top: 14px;
  padding: 11px 13px;
  color: #475569;
  background: #f8fafc;
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .relationship-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 15px 0;
}

.article-shell:where([data-t2e-me="article"]) .relationship-card {
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
}

.article-shell:where([data-t2e-me="article"]) .relationship-card h3 {
  margin-top: 0;
}

/* =========================================================
   Images and diagrams
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .diagram-card {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-color: #d7e6f8;
}

.article-shell:where([data-t2e-me="article"]) .diagram-figure {
  max-width: 100%;
  margin: 14px 0;
}

.article-shell:where([data-t2e-me="article"]) .diagram-media {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--t2e-radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.article-shell:where([data-t2e-me="article"]) .diagram-media--plain {
  background: #ffffff;
}

/* V7: orientation classes never change intrinsic proportions. */
.article-shell:where([data-t2e-me="article"]) .diagram-media--landscape {
  max-width: 860px;
  margin-inline: auto;
}

.article-shell:where([data-t2e-me="article"]) .diagram-media--wide {
  max-width: 100%;
  margin-inline: auto;
}

.article-shell:where([data-t2e-me="article"]) .diagram-media--square {
  max-width: min(100%, 760px);
  margin-inline: auto;
}

.article-shell:where([data-t2e-me="article"]) .diagram-media--portrait {
  max-width: min(100%, 760px);
  margin-inline: auto;
}

.article-shell:where([data-t2e-me="article"]) .diagram-media--natural {
  max-width: 100%;
}

.article-shell:where([data-t2e-me="article"]) .diagram-img {
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.article-shell:where([data-t2e-me="article"]) .diagram-caption {
  max-width: 76ch;
  margin: 9px 0 0;
  padding-top: 8px;
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
  line-height: 1.55;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.article-shell:where([data-t2e-me="article"]) .diagram-note {
  margin-top: 10px;
}

.article-shell:where([data-t2e-me="article"]) .scroll-hint {
  display: none;
  margin: 7px 0 10px;
  color: var(--t2e-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* =========================================================
   Tables
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .table-scroll-wrapper {
  width: 100%;
  margin: 12px 0 17px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--t2e-radius-sm);
  scrollbar-gutter: stable;
}

.article-shell:where([data-t2e-me="article"]) .article-main table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.article-shell:where([data-t2e-me="article"]) .article-main table.table--compact {
  min-width: 0;
}

.article-shell:where([data-t2e-me="article"]) .article-main table.table--comparison {
  min-width: 700px;
}

.article-shell:where([data-t2e-me="article"]) .article-main table.table--data {
  min-width: 780px;
}

.article-shell:where([data-t2e-me="article"]) .article-main table.table--matrix {
  min-width: 860px;
}

.article-shell:where([data-t2e-me="article"]) .article-main caption {
  padding: 10px 11px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  font-size: var(--t2e-small);
  font-weight: 750;
  text-align: left;
}

.article-shell:where([data-t2e-me="article"]) .article-main th,
.article-shell:where([data-t2e-me="article"]) .article-main td {
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e2e8f0;
}

.article-shell:where([data-t2e-me="article"]) .article-main th {
  color: var(--t2e-ink);
  font-weight: 750;
  background: #f1f5f9;
}

.article-shell:where([data-t2e-me="article"]) .article-main tbody th[scope="row"] {
  color: var(--t2e-ink);
  background: #f8fafc;
  font-weight: 750;
}

.article-shell:where([data-t2e-me="article"]) .article-main tbody tr:nth-child(even) {
  background: #fbfdff;
}

/* =========================================================
   V7.2 task-specific engineering utility modules
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .module-eyebrow,
.article-shell:where([data-t2e-me="article"]) .requirement-type,
.article-shell:where([data-t2e-me="article"]) .key-value-label {
  color: #35597e;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.article-shell:where([data-t2e-me="article"]) .design-basis,
.article-shell:where([data-t2e-me="article"]) .input-quality-module,
.article-shell:where([data-t2e-me="article"]) .criteria-module,
.article-shell:where([data-t2e-me="article"]) .requirement-module,
.article-shell:where([data-t2e-me="article"]) .tradeoff-module,
.article-shell:where([data-t2e-me="article"]) .process-module,
.article-shell:where([data-t2e-me="article"]) .decision-module,
.article-shell:where([data-t2e-me="article"]) .acceptance-module {
  margin-bottom: 18px;
}

.article-shell:where([data-t2e-me="article"]) .design-basis-grid,
.article-shell:where([data-t2e-me="article"]) .input-quality-grid,
.article-shell:where([data-t2e-me="article"]) .criteria-grid,
.article-shell:where([data-t2e-me="article"]) .tradeoff-grid,
.article-shell:where([data-t2e-me="article"]) .acceptance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.article-shell:where([data-t2e-me="article"]) .design-basis-item,
.article-shell:where([data-t2e-me="article"]) .input-quality-item,
.article-shell:where([data-t2e-me="article"]) .criteria-card,
.article-shell:where([data-t2e-me="article"]) .tradeoff-card,
.article-shell:where([data-t2e-me="article"]) .acceptance-item {
  min-width: 0;
  padding: 13px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
}

.article-shell:where([data-t2e-me="article"]) .design-basis-item p:last-child,
.article-shell:where([data-t2e-me="article"]) .input-quality-item p:last-child,
.article-shell:where([data-t2e-me="article"]) .criteria-card p:last-child,
.article-shell:where([data-t2e-me="article"]) .tradeoff-card p:last-child,
.article-shell:where([data-t2e-me="article"]) .acceptance-item p:last-child {
  margin-bottom: 0;
}

.article-shell:where([data-t2e-me="article"]) .input-quality-item > strong,
.article-shell:where([data-t2e-me="article"]) .acceptance-item > strong {
  display: block;
  margin-bottom: 2px;
  color: var(--t2e-ink);
}

.article-shell:where([data-t2e-me="article"]) .input-quality-item > span {
  display: block;
  margin-bottom: 7px;
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .key-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.article-shell:where([data-t2e-me="article"]) .key-value {
  min-width: 0;
  padding: 12px 13px;
  background: #f8fbff;
  border: 1px solid #d8e5f4;
  border-radius: 11px;
}

.article-shell:where([data-t2e-me="article"]) .key-value-number {
  display: block;
  margin: 3px 0 2px;
  color: #17365d;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.article-shell:where([data-t2e-me="article"]) .key-value-note {
  display: block;
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
  line-height: 1.45;
}

.article-shell:where([data-t2e-me="article"]) .criteria-value {
  margin: 4px 0 7px;
  color: #17365d;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.3;
}

.article-shell:where([data-t2e-me="article"]) .requirement-stack {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.article-shell:where([data-t2e-me="article"]) .requirement-item {
  min-width: 0;
  padding: 14px;
  background: #fbfdff;
  border: 1px solid #d8e3ef;
  border-left: 4px solid #3b82f6;
  border-radius: 11px;
}

.article-shell:where([data-t2e-me="article"]) .requirement-item h3 {
  margin-top: 5px;
}

.article-shell:where([data-t2e-me="article"]) .requirement-source,
.article-shell:where([data-t2e-me="article"]) .requirement-implication {
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .requirement-source {
  color: var(--t2e-muted);
}

.article-shell:where([data-t2e-me="article"]) .tradeoff-card h3 {
  margin-top: 0;
}

.article-shell:where([data-t2e-me="article"]) .process-flow {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.article-shell:where([data-t2e-me="article"]) .process-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 0;
  padding: 12px 13px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 11px;
}

.article-shell:where([data-t2e-me="article"]) .process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 850;
}

.article-shell:where([data-t2e-me="article"]) .process-step p {
  margin: 3px 0 0;
}

.article-shell:where([data-t2e-me="article"]) .decision-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.article-shell:where([data-t2e-me="article"]) .decision-path-item {
  min-width: 0;
  padding: 13px;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 11px;
}

.article-shell:where([data-t2e-me="article"]) .decision-condition {
  margin-bottom: 7px;
  color: #17365d;
  font-weight: 800;
}

.article-shell:where([data-t2e-me="article"]) .decision-path-item p:last-child {
  margin-bottom: 0;
}

.article-shell:where([data-t2e-me="article"]) .acceptance-item p {
  margin-bottom: 6px;
}

.article-shell:where([data-t2e-me="article"]) .acceptance-item p span {
  color: #17365d;
  font-weight: 750;
}

.article-shell:where([data-t2e-me="article"]) .term-list {
  margin: 14px 0 0;
}

.article-shell:where([data-t2e-me="article"]) .term-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 10px 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.article-shell:where([data-t2e-me="article"]) .term-list > div:last-child {
  border-bottom: 0;
}

.article-shell:where([data-t2e-me="article"]) .term-list dt {
  color: #17365d;
  font-weight: 800;
}

.article-shell:where([data-t2e-me="article"]) .term-list dd {
  margin: 0;
  color: var(--t2e-ink-soft);
}

/* Static SVG charts: no JavaScript runtime, no external chart assets. */
.article-shell:where([data-t2e-me="article"]) .chart-figure {
  margin: 14px 0 10px;
}

.article-shell:where([data-t2e-me="article"]) .chart-frame {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: var(--t2e-radius);
}

.article-shell:where([data-t2e-me="article"]) .chart-svg {
  width: 100%;
  height: auto;
  min-height: 260px;
  display: block;
  color: #2563eb;
  background: #ffffff;
}

.article-shell:where([data-t2e-me="article"]) .chart-axis {
  stroke: #64748b;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.article-shell:where([data-t2e-me="article"]) .chart-gridline {
  stroke: #e2e8f0;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.article-shell:where([data-t2e-me="article"]) .chart-series {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.article-shell:where([data-t2e-me="article"]) .chart-bar,
.article-shell:where([data-t2e-me="article"]) .chart-point,
.article-shell:where([data-t2e-me="article"]) .chart-swatch {
  fill: currentColor;
}

.article-shell:where([data-t2e-me="article"]) .chart-point {
  stroke: #ffffff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.article-shell:where([data-t2e-me="article"]) .chart-axis-label,
.article-shell:where([data-t2e-me="article"]) .chart-tick-label {
  fill: #475569;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.article-shell:where([data-t2e-me="article"]) .chart-axis-label {
  font-size: 14px;
  font-weight: 700;
}

.article-shell:where([data-t2e-me="article"]) .chart-tick-label {
  font-size: 12px;
}

.article-shell:where([data-t2e-me="article"]) .chart-caption {
  max-width: 76ch;
  margin: 8px 0 0;
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
  line-height: 1.55;
}

.article-shell:where([data-t2e-me="article"]) .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 9px 0;
  color: var(--t2e-ink-soft);
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .chart-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-shell:where([data-t2e-me="article"]) .chart-swatch {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 2px;
  background: #2563eb;
}

.article-shell:where([data-t2e-me="article"]) .chart-source-note {
  margin-top: 9px;
  padding: 10px 12px;
  color: #475569;
  background: #f8fafc;
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .table--long thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 #dbe3ee;
}

/* =========================================================
   MathJax and equations
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .math-inline {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  vertical-align: -0.08em;
}

.article-shell:where([data-t2e-me="article"]) .math-inline .math-source {
  position: absolute;
  inset: 0 auto auto 0;
  width: max-content;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip-path: none;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  border: 0;
}

.article-shell:where([data-t2e-me="article"]) .math-fallback-inline {
  font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
}

.article-shell:where([data-t2e-me="article"]) .math-inline mjx-container {
  margin: 0 0.08em;
}

.article-shell:where([data-t2e-me="article"]) .equation-block {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  margin: 18px 0;
  padding: 34px 18px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  color: var(--t2e-ink);
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  border: 1px solid #cbd9f6;
  border-radius: var(--t2e-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: auto;
}

.article-shell:where([data-t2e-me="article"]) .equation-block::before {
  content: attr(data-equation-label);
  position: absolute;
  top: 8px;
  left: 14px;
  max-width: calc(100% - 28px);
  padding: 3px 9px;
  overflow: hidden;
  color: #1d4ed8;
  background: #e0ebff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.article-shell:where([data-t2e-me="article"]) .equation-block:not([data-equation-label])::before {
  content: "Key equation";
}

.article-shell:where([data-t2e-me="article"]) .equation-block .math-fallback {
  display: block;
  min-width: max-content;
  color: #132f52;
  font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
  font-size: clamp(18px, 2.6vw, 25px);
  font-weight: 650;
  line-height: 1.55;
}

.article-shell:where([data-t2e-me="article"]) .equation-block .math-source {
  position: absolute;
  top: 34px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  clip-path: none;
  visibility: hidden;
  white-space: normal;
  pointer-events: none;
  border: 0;
}

.article-shell:where([data-t2e-me="article"]) .equation-block mjx-container {
  margin: 0;
  color: #132f52;
  font-size: clamp(105%, 1.6vw, 125%);
}

.article-shell:where([data-t2e-me="article"]) .equation-block mjx-container[display="true"] {
  width: max-content;
  min-width: min-content;
  max-width: none;
  margin-inline: auto;
  overflow: visible;
  text-align: center;
  white-space: nowrap;
}

.article-shell:where([data-t2e-me="article"]) .equation-block mjx-container[display="true"] > mjx-math {
  white-space: nowrap;
}

.article-shell:where([data-t2e-me="article"]) mjx-container[jax="CHTML"] {
  line-height: 1.35;
}

.article-shell:where([data-t2e-me="article"]) mjx-container a {
  color: inherit;
  text-decoration: none;
}

.article-shell:where([data-t2e-me="article"]) mjx-assistive-mml {
  position: absolute;
}

.article-shell:where([data-t2e-me="article"]) .equation-block--compact {
  min-height: 64px;
  margin: 12px 0;
  padding: 32px 10px 12px;
}

.article-shell:where([data-t2e-me="article"]) .equation-block--compact .math-fallback {
  font-size: clamp(16px, 2vw, 21px);
}

.article-shell:where([data-t2e-me="article"]) .variables-box {
  margin: 12px 0 18px;
  padding: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--t2e-border);
  border-radius: var(--t2e-radius);
}

.article-shell:where([data-t2e-me="article"]) .variables-box-title {
  margin-bottom: 8px;
  color: var(--t2e-ink);
  font-size: var(--t2e-small);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-shell:where([data-t2e-me="article"]) .variables-box-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-shell:where([data-t2e-me="article"]) .variables-box-list li {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
  gap: 8px 13px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px dashed #dbe3ee;
}

.article-shell:where([data-t2e-me="article"]) .variables-box-list li:last-child {
  border-bottom: 0;
}

.article-shell:where([data-t2e-me="article"]) .variables-box-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 3px 10px;
  overflow-x: auto;
  color: #17365d;
  background: #e0ebff;
  border: 1px solid #c8d8f4;
  border-radius: 999px;
  font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
}

.article-shell:where([data-t2e-me="article"]) .variables-box-symbol mjx-container {
  margin: 0;
}

.article-shell:where([data-t2e-me="article"]) .solve-for-grid,
.article-shell:where([data-t2e-me="article"]) .quick-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.article-shell:where([data-t2e-me="article"]) .solve-for-card,
.article-shell:where([data-t2e-me="article"]) .quick-answer-card {
  min-width: 0;
  padding: 13px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
}

.article-shell:where([data-t2e-me="article"]) .solve-for-card h3,
.article-shell:where([data-t2e-me="article"]) .quick-answer-card h3 {
  margin-top: 0;
  font-size: clamp(17px, 2vw, 20px);
}

.article-shell:where([data-t2e-me="article"]) .result-interpretation {
  margin: 12px 0 16px;
  padding: 13px 14px;
  background: #eefcf3;
  border: 1px solid #b7ebcb;
  border-radius: 12px;
}

/* =========================================================
   Worked examples
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .formula-steps,
.article-shell:where([data-t2e-me="article"]) .worked-example {
  margin: 16px 0;
  padding: clamp(14px, 2vw, 18px);
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  border: 1px solid #cfdcf0;
  border-radius: var(--t2e-radius);
}

.article-shell:where([data-t2e-me="article"]) .worked-example {
  border-left: 5px solid #2563eb;
}

.article-shell:where([data-t2e-me="article"]) .worked-example-title,
.article-shell:where([data-t2e-me="article"]) .formula-steps-title {
  margin: 0 0 8px;
  color: #17365d;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
}

.article-shell:where([data-t2e-me="article"]) .example-givens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 12px 0 16px;
}

.article-shell:where([data-t2e-me="article"]) .example-given {
  min-width: 0;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
}

.article-shell:where([data-t2e-me="article"]) .example-step {
  position: relative;
  margin: 18px 0;
  padding: clamp(15px, 2vw, 19px);
  background: #ffffff;
  border: 1px solid #d5dfec;
  border-radius: var(--t2e-radius);
  box-shadow: 0 4px 13px rgba(15, 23, 42, 0.045);
}

.article-shell:where([data-t2e-me="article"]) .example-step + .example-step {
  margin-top: 16px;
}

.article-shell:where([data-t2e-me="article"]) .example-step-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.article-shell:where([data-t2e-me="article"]) .example-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.article-shell:where([data-t2e-me="article"]) .example-step-heading-group {
  min-width: 0;
}

.article-shell:where([data-t2e-me="article"]) .example-step .example-step-title {
  margin: 0 0 4px;
  color: #17365d;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.28;
}

.article-shell:where([data-t2e-me="article"]) .example-step-purpose {
  max-width: 72ch;
  margin: 0;
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
  line-height: 1.55;
}

.article-shell:where([data-t2e-me="article"]) .example-calculation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  align-items: stretch;
}

.article-shell:where([data-t2e-me="article"]) .example-calculation-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-shell:where([data-t2e-me="article"]) .example-calculation-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 11px;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 11px;
}

.article-shell:where([data-t2e-me="article"]) .example-calculation-label {
  margin: 0 0 7px;
  color: #35597e;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.article-shell:where([data-t2e-me="article"]) .example-calculation-item .equation-block {
  flex: 1 1 auto;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 33px 9px 13px;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(180deg, #f1f6ff 0%, #ffffff 100%);
  box-shadow: none;
}

.article-shell:where([data-t2e-me="article"]) .example-calculation-item .equation-block::before {
  top: 7px;
  left: 9px;
  max-width: calc(100% - 18px);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.article-shell:where([data-t2e-me="article"]) .example-calculation-item .equation-block .math-fallback {
  min-width: 0;
  max-width: 100%;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.45;
  white-space: normal;
}

.article-shell:where([data-t2e-me="article"]) .example-calculation-item .equation-block mjx-container {
  font-size: clamp(92%, 1.25vw, 108%);
}

.article-shell:where([data-t2e-me="article"]) .example-step-result {
  margin-top: 12px;
  padding: 11px 13px;
  color: #17365d;
  background: #eef5ff;
  border: 1px solid #c8d8f4;
  border-left: 4px solid #2563eb;
  border-radius: 9px;
  line-height: 1.6;
}

.article-shell:where([data-t2e-me="article"]) .example-step-result--check {
  color: #14532d;
  background: #eefcf3;
  border-color: #b7ebcb;
  border-left-color: #16a34a;
}

.article-shell:where([data-t2e-me="article"]) .example-step-result strong {
  color: inherit;
}

.article-shell:where([data-t2e-me="article"]) .answer-box {
  margin: 14px 0;
  padding: 14px;
  color: #123b2a;
  background: #eefcf3;
  border: 1px solid #b7ebcb;
  border-left: 5px solid #16a34a;
  border-radius: 12px;
}

.article-shell:where([data-t2e-me="article"]) .answer-box strong {
  color: #14532d;
}

.article-shell:where([data-t2e-me="article"]) .verification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.article-shell:where([data-t2e-me="article"]) .verification-item {
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
}

.article-shell:where([data-t2e-me="article"]) .verification-item > strong {
  display: block;
  margin-bottom: 4px;
  color: #17365d;
}

/* =========================================================
   Scenarios, checklists, troubleshooting, callouts
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .scenario-steps {
  margin: 14px 0 17px;
}

.article-shell:where([data-t2e-me="article"]) .scenario-steps li {
  padding: 6px 0;
}

.article-shell:where([data-t2e-me="article"]) .checklist-list,
.article-shell:where([data-t2e-me="article"]) .error-list {
  margin-bottom: 0;
}

.article-shell:where([data-t2e-me="article"]) .checklist-list li,
.article-shell:where([data-t2e-me="article"]) .error-list li {
  padding: 5px 0;
}

.article-shell:where([data-t2e-me="article"]) .troubleshooting-list {
  display: grid;
  gap: 12px;
  margin: 15px 0;
}

.article-shell:where([data-t2e-me="article"]) .troubleshooting-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
}

.article-shell:where([data-t2e-me="article"]) .troubleshooting-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: #2563eb;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 850;
}

.article-shell:where([data-t2e-me="article"]) .troubleshooting-step h3 {
  margin-top: 2px;
}

.article-shell:where([data-t2e-me="article"]) .callout {
  margin: 14px 0;
  padding: 13px 14px;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-left-width: 5px;
  border-radius: 12px;
}

.article-shell:where([data-t2e-me="article"]) .callout-label {
  margin-bottom: 5px;
  font-size: var(--t2e-small);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-shell:where([data-t2e-me="article"]) .callout--check {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #2563eb;
}

.article-shell:where([data-t2e-me="article"]) .callout--field {
  background: #f3f8ff;
  border-color: #bdd8fb;
  border-left-color: #0f5ea8;
}

.article-shell:where([data-t2e-me="article"]) .callout--warning {
  background: #fff4f2;
  border-color: #fdc9c5;
  border-left-color: #dc2626;
}

.article-shell:where([data-t2e-me="article"]) .callout--tip {
  background: #eefcf3;
  border-color: #b7ebcb;
  border-left-color: #16a34a;
}

.article-shell:where([data-t2e-me="article"]) .evidence-note {
  margin: 12px 0;
  padding: 11px 13px;
  color: #334155;
  background: #fbfdff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .evidence-note strong {
  color: #17365d;
}

.article-shell:where([data-t2e-me="article"]) .decision-checklist {
  margin: 14px 0;
  padding: 14px 15px;
  background: #fffdf7;
  border: 1px solid #ecd9a4;
  border-radius: var(--t2e-radius);
}

.article-shell:where([data-t2e-me="article"]) .decision-checklist-title {
  margin-bottom: 7px;
  color: #7c4a03;
  font-weight: 850;
}

/* =========================================================
   References, FAQ, conclusion, related resources
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .standards-module {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}

.article-shell:where([data-t2e-me="article"]) .source-list {
  margin-bottom: 0;
}

.article-shell:where([data-t2e-me="article"]) .source-item {
  margin-bottom: 12px;
}

.article-shell:where([data-t2e-me="article"]) .source-item a {
  font-weight: 700;
}

.article-shell:where([data-t2e-me="article"]) .source-item span {
  display: block;
  margin-top: 2px;
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .faq-module {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.article-shell:where([data-t2e-me="article"]) details.faq-item {
  display: block;
  margin-bottom: 9px;
  padding: 0 10px;
  border: 1px solid #dfe6ef;
  border-radius: var(--t2e-radius);
}

.article-shell:where([data-t2e-me="article"]) details.faq-item + details.faq-item {
  margin-top: 9px;
}

.article-shell:where([data-t2e-me="article"]) details.faq-item[open] {
  background: #ffffff;
  border-color: #cfd8e5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.article-shell:where([data-t2e-me="article"]) details.faq-item > summary.faq-question {
  list-style: none;
}

.article-shell:where([data-t2e-me="article"]) details.faq-item > summary.faq-question::-webkit-details-marker,
.article-shell:where([data-t2e-me="article"]) details.faq-item > summary.faq-question::marker {
  display: none;
}

.article-shell:where([data-t2e-me="article"]) .faq-question {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 7px;
  color: var(--t2e-ink);
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.article-shell:where([data-t2e-me="article"]) .faq-question-text {
  font-size: var(--t2e-body);
  font-weight: 700;
}

.article-shell:where([data-t2e-me="article"]) details.faq-item > summary.faq-question::after {
  content: "▾";
  flex: 0 0 auto;
  color: var(--t2e-muted);
  transition: transform 0.18s ease;
}

.article-shell:where([data-t2e-me="article"]) details.faq-item[open] > summary.faq-question::after {
  transform: rotate(180deg);
}

.article-shell:where([data-t2e-me="article"]) .faq-answer {
  display: block;
  padding: 8px 0 3px;
  border-top: 1px solid #e5e7eb;
}

.article-shell:where([data-t2e-me="article"]) .faq-answer p:last-child {
  margin-bottom: 6px;
}

.article-shell:where([data-t2e-me="article"]) .conclusion-cta {
  background: #f9fafb;
}

.article-shell:where([data-t2e-me="article"]) .next-step-link {
  margin-top: 13px;
  padding: 13px 14px;
  background: #f0f7ff;
  border: 1px solid #bfd6f2;
  border-radius: 12px;
}

.article-shell:where([data-t2e-me="article"]) .next-step-link > a {
  font-weight: 800;
}

.article-shell:where([data-t2e-me="article"]) .next-step-link p:last-child {
  margin-top: 4px;
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .related-title {
  font-size: var(--t2e-h2);
}

.article-shell:where([data-t2e-me="article"]) .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.article-shell:where([data-t2e-me="article"]) .related-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--t2e-radius);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.article-shell:where([data-t2e-me="article"]) .related-card-link {
  display: block;
  height: 100%;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}

.article-shell:where([data-t2e-me="article"]) .related-card-link:hover {
  background: #f8fbff;
}

.article-shell:where([data-t2e-me="article"]) .related-kicker {
  display: inline-flex;
  padding: 2px 8px;
  margin-bottom: 6px;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-shell:where([data-t2e-me="article"]) .related-card-title {
  margin-bottom: 4px;
  color: var(--t2e-ink);
  font-weight: 750;
}

.article-shell:where([data-t2e-me="article"]) .related-card-meta {
  color: var(--t2e-muted);
  font-size: var(--t2e-small);
  line-height: 1.5;
}

/* =========================================================
   Sidebar and TOC
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .sidebar-details {
  padding-top: 12px;
}

.article-shell:where([data-t2e-me="article"]) .sidebar-details > summary.card-toggle {
  list-style: none;
}

.article-shell:where([data-t2e-me="article"]) .sidebar-details > summary.card-toggle::-webkit-details-marker,
.article-shell:where([data-t2e-me="article"]) .sidebar-details > summary.card-toggle::marker {
  display: none;
}

.article-shell:where([data-t2e-me="article"]) .card-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 8px;
  margin: 0;
  color: var(--t2e-ink-soft);
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.article-shell:where([data-t2e-me="article"]) .card-toggle-label,
.article-shell:where([data-t2e-me="article"]) .toc-title {
  color: #35597e;
  font-size: var(--t2e-small);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-shell:where([data-t2e-me="article"]) .sidebar-details > summary.card-toggle::after {
  content: "▾";
  flex: 0 0 auto;
  color: #56799c;
  transition: transform 0.18s ease;
}

.article-shell:where([data-t2e-me="article"]) .sidebar-details[open] > summary.card-toggle::after {
  transform: rotate(180deg);
}

.article-shell:where([data-t2e-me="article"]) .sidebar-details > .card-collapsible-body {
  padding-top: 2px;
}

.article-shell:where([data-t2e-me="article"]) .toc-box {
  padding: 14px 12px;
}

.article-shell:where([data-t2e-me="article"]) .toc-box .card-collapsible-body {
  max-height: calc(100vh - var(--t2e-sticky-offset) - 54px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}

.article-shell:where([data-t2e-me="article"]) .toc-box .card-collapsible-body::-webkit-scrollbar {
  width: 7px;
}

.article-shell:where([data-t2e-me="article"]) .toc-box .card-collapsible-body::-webkit-scrollbar-track {
  background: transparent;
}

.article-shell:where([data-t2e-me="article"]) .toc-box .card-collapsible-body::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.article-shell:where([data-t2e-me="article"]) .toc-list,
.article-shell:where([data-t2e-me="article"]) .mobile-toc-list,
.article-shell:where([data-t2e-me="article"]) .promo-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-shell:where([data-t2e-me="article"]) .toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-shell:where([data-t2e-me="article"]) .toc-list a {
  display: block;
  padding: 7px 9px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.article-shell:where([data-t2e-me="article"]) .toc-list a:hover {
  background: var(--t2e-blue-soft);
  border-color: #bcd3f3;
}

.article-shell:where([data-t2e-me="article"]) .toc-list a.is-active {
  color: var(--t2e-blue-dark);
  background: #f4f8ff;
  border-color: #7aa7db;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.article-shell:where([data-t2e-me="article"]) .author-name {
  margin-bottom: 2px;
  color: var(--t2e-ink);
  font-size: var(--t2e-small);
  font-weight: 750;
}

.article-shell:where([data-t2e-me="article"]) .author-name a {
  color: inherit;
  text-decoration: none;
}

.article-shell:where([data-t2e-me="article"]) .author-name a:hover,
.article-shell:where([data-t2e-me="article"]) .author-name a:focus-visible {
  text-decoration: underline;
}

.article-shell:where([data-t2e-me="article"]) .author-role,
.article-shell:where([data-t2e-me="article"]) .author-bio,
.article-shell:where([data-t2e-me="article"]) .trust-text,
.article-shell:where([data-t2e-me="article"]) .trust-note {
  font-size: var(--t2e-small);
}

.article-shell:where([data-t2e-me="article"]) .author-role,
.article-shell:where([data-t2e-me="article"]) .trust-note {
  color: var(--t2e-muted);
}

.article-shell:where([data-t2e-me="article"]) .trust-note {
  font-style: italic;
}

.article-shell:where([data-t2e-me="article"]) .promo-box {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}

.article-shell:where([data-t2e-me="article"]) .promo-links li {
  margin: 4px 0;
}

.article-shell:where([data-t2e-me="article"]) .promo-links a {
  font-size: var(--t2e-small);
  text-decoration: none;
}

/* =========================================================
   Mobile TOC
   ========================================================= */

.article-shell:where([data-t2e-me="article"]) .mobile-toc-wrapper {
  margin-bottom: 12px;
}

.article-shell:where([data-t2e-me="article"]) .mobile-toc {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: var(--t2e-radius);
}

.article-shell:where([data-t2e-me="article"]) .mobile-toc summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  color: #35597e;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.article-shell:where([data-t2e-me="article"]) .mobile-toc summary::-webkit-details-marker,
.article-shell:where([data-t2e-me="article"]) .mobile-toc summary::marker {
  display: none;
}

.article-shell:where([data-t2e-me="article"]) .mobile-toc summary::after {
  content: "▾";
  transition: transform 0.18s ease;
}

.article-shell:where([data-t2e-me="article"]) .mobile-toc[open] summary::after {
  transform: rotate(180deg);
}

.article-shell:where([data-t2e-me="article"]) .mobile-toc-list {
  padding: 0 15px 14px;
}

.article-shell:where([data-t2e-me="article"]) .mobile-toc-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: var(--t2e-ink-soft);
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
}

.article-shell:where([data-t2e-me="article"]) .mobile-toc-list a.is-active {
  color: var(--t2e-blue-dark);
  font-weight: 700;
}

@media  (max-width: 1179px)  {

  .article-shell:where([data-t2e-me="article"]) .article-sidebar .toc-box {
    display: none;
  }

}

/* =========================================================
   Responsive
   ========================================================= */

@media  (max-width: 900px)  {

  .article-shell:where([data-t2e-me="article"]) .example-calculation-grid,
.article-shell:where([data-t2e-me="article"]) .example-calculation-grid--two {
    grid-template-columns: 1fr;
  }

  .article-shell:where([data-t2e-me="article"]) .example-calculation-item .equation-block {
    min-height: 82px;
  }

}

@media  (max-width: 768px)  {

  .article-shell:where([data-t2e-me="article"]) {
    padding: 0 10px 18px;
  }

  .article-shell:where([data-t2e-me="article"]) .card {
    padding: 14px 12px;
    border-radius: var(--t2e-radius);
  }

  /* Compact above-the-fold metadata with no Astra paragraph interference. */
  .article-shell:where([data-t2e-me="article"]) .title-meta {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .article-shell:where([data-t2e-me="article"]) .title-meta .page-title {
    margin-bottom: 4px;
  }

  .article-shell:where([data-t2e-me="article"]) .title-meta .page-subtitle {
    margin-bottom: 0;
    line-height: 1.45;
  }

  .article-shell:where([data-t2e-me="article"]) .article-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin-top: 9px;
    padding-top: 9px;
  }

  .article-shell:where([data-t2e-me="article"]) .article-meta-author,
.article-shell:where([data-t2e-me="article"]) .article-meta-details {
    width: 100%;
    justify-content: flex-start;
  }

  .article-shell:where([data-t2e-me="article"]) .article-meta-author {
    gap: 5px;
  }

  .article-shell:where([data-t2e-me="article"]) .article-meta-details {
    gap: 7px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .article-shell:where([data-t2e-me="article"]) .intent-path,
.article-shell:where([data-t2e-me="article"]) .relationship-grid,
.article-shell:where([data-t2e-me="article"]) .verification-grid {
    grid-template-columns: 1fr;
  }

  .article-shell:where([data-t2e-me="article"]) .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-shell:where([data-t2e-me="article"]) .prose-section,
.article-shell:where([data-t2e-me="article"]) .visual-section {
    padding: 16px 13px;
    border-radius: var(--t2e-radius);
  }

  .article-shell:where([data-t2e-me="article"]) .citation-ready > p:first-of-type,
.article-shell:where([data-t2e-me="article"]) .section-answer {
    margin-bottom: 15px;
    padding: 10px 11px;
  }

  .article-shell:where([data-t2e-me="article"]) .article-main table.table--compact {
    min-width: 0;
  }

}

@media  (max-width: 640px)  {

  .article-shell:where([data-t2e-me="article"]) .article-hero { margin-bottom: 8px; }
  .article-shell:where([data-t2e-me="article"]) .breadcrumbs { margin-bottom: 10px; }

  .article-shell:where([data-t2e-me="article"]) {
    padding-left: 7px;
    padding-right: 7px;
  }

  .article-shell:where([data-t2e-me="article"]) .card {
    padding: 12px 10px;
  }

  .article-shell:where([data-t2e-me="article"]) .page-title {
    font-size: clamp(23px, 7vw, 28px);
  }

  .article-shell:where([data-t2e-me="article"]) p {
    max-width: 100%;
  }

  .article-shell:where([data-t2e-me="article"]) .breadcrumbs-inner {
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
  }

  .article-shell:where([data-t2e-me="article"]) .breadcrumbs-inner span {
    flex: 0 1 auto;
    min-width: 0;
  }

  .article-shell:where([data-t2e-me="article"]) .related-grid,
.article-shell:where([data-t2e-me="article"]) .example-givens,
.article-shell:where([data-t2e-me="article"]) .solve-for-grid,
.article-shell:where([data-t2e-me="article"]) .quick-answer-grid {
    grid-template-columns: 1fr;
  }

  .article-shell:where([data-t2e-me="article"]) .variables-box-list li {
    grid-template-columns: 1fr;
  }

  .article-shell:where([data-t2e-me="article"]) .variables-box-symbol {
    justify-content: flex-start;
  }

  .article-shell:where([data-t2e-me="article"]) .prose-section,
.article-shell:where([data-t2e-me="article"]) .visual-section {
    margin-bottom: 14px;
    padding: 14px 11px;
    border-radius: 12px;
  }

  .article-shell:where([data-t2e-me="article"]) .prose-section > h2,
.article-shell:where([data-t2e-me="article"]) .visual-section > h2 {
    padding-bottom: 8px;
  }

  .article-shell:where([data-t2e-me="article"]) .diagram-media {
    border-radius: 10px;
  }

  .article-shell:where([data-t2e-me="article"]) .diagram-media--landscape,
.article-shell:where([data-t2e-me="article"]) .diagram-media--wide,
.article-shell:where([data-t2e-me="article"]) .diagram-media--square,
.article-shell:where([data-t2e-me="article"]) .diagram-media--portrait {
    max-width: 100%;
  }

  .article-shell:where([data-t2e-me="article"]) .article-main table.table--comparison,
.article-shell:where([data-t2e-me="article"]) .article-main table.table--data,
.article-shell:where([data-t2e-me="article"]) .article-main table.table--matrix {
    min-width: 680px;
  }

  .article-shell:where([data-t2e-me="article"]) .equation-block {
    padding: 34px 10px 15px;
  }

  .article-shell:where([data-t2e-me="article"]) .equation-block .math-fallback {
    font-size: 18px;
  }

  .article-shell:where([data-t2e-me="article"]) .equation-block mjx-container[display="true"] {
    font-size: 100%;
  }

  .article-shell:where([data-t2e-me="article"]) .example-step {
    margin: 14px 0;
    padding: 12px 10px;
  }

  .article-shell:where([data-t2e-me="article"]) .example-step-header {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 11px;
    padding-bottom: 10px;
  }

  .article-shell:where([data-t2e-me="article"]) .example-step-number {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .article-shell:where([data-t2e-me="article"]) .example-step .example-step-title {
    font-size: 18px;
  }

  .article-shell:where([data-t2e-me="article"]) .example-calculation-item {
    padding: 8px;
  }

  .article-shell:where([data-t2e-me="article"]) .example-calculation-item .equation-block {
    min-height: 76px;
    padding: 31px 7px 11px;
  }

  .article-shell:where([data-t2e-me="article"]) .example-calculation-item .equation-block mjx-container {
    font-size: 94%;
  }

  .article-shell:where([data-t2e-me="article"]) .troubleshooting-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }

  .article-shell:where([data-t2e-me="article"]) .troubleshooting-number {
    width: 28px;
    height: 28px;
  }

}

@media  (max-width: 768px)  {

  .article-shell:where([data-t2e-me="article"]) .design-basis-grid,
.article-shell:where([data-t2e-me="article"]) .input-quality-grid,
.article-shell:where([data-t2e-me="article"]) .criteria-grid,
.article-shell:where([data-t2e-me="article"]) .tradeoff-grid,
.article-shell:where([data-t2e-me="article"]) .acceptance-grid,
.article-shell:where([data-t2e-me="article"]) .decision-path {
    grid-template-columns: 1fr;
  }

  .article-shell:where([data-t2e-me="article"]) .key-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-shell:where([data-t2e-me="article"]) .chart-svg {
    min-height: 240px;
  }

}

@media  (max-width: 640px)  {

  .article-shell:where([data-t2e-me="article"]) .scroll-hint {
    display: block;
  }

  .article-shell:where([data-t2e-me="article"]) .key-values {
    grid-template-columns: 1fr;
  }

  .article-shell:where([data-t2e-me="article"]) .term-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .article-shell:where([data-t2e-me="article"]) .process-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }

  .article-shell:where([data-t2e-me="article"]) .process-step-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .article-shell:where([data-t2e-me="article"]) .chart-frame {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-shell:where([data-t2e-me="article"]) .chart-svg {
    min-width: 560px;
    min-height: 300px;
  }

}

@media  (prefers-reduced-motion: reduce)  {

  .article-shell:where([data-t2e-me="article"]) *,
.article-shell:where([data-t2e-me="article"]) *::before,
.article-shell:where([data-t2e-me="article"]) *::after {
    animation: none;
    transition: none;
  }

}

/* =========================================================
   Print
   ========================================================= */

@media  print  {

  .article-shell:where([data-t2e-me="article"]) .article-sidebar,
.article-shell:where([data-t2e-me="article"]) .mobile-toc-wrapper {
    display: none;
  }

  .article-shell:where([data-t2e-me="article"]),
.article-shell:where([data-t2e-me="article"]) .article-main {
    width: 100%;
    max-width: 100%;
  }

  .article-shell:where([data-t2e-me="article"]) .card,
.article-shell:where([data-t2e-me="article"]) .prose-section,
.article-shell:where([data-t2e-me="article"]) .visual-section,
.article-shell:where([data-t2e-me="article"]) .example-step,
.article-shell:where([data-t2e-me="article"]) .chart-frame {
    box-shadow: none;
    break-inside: avoid;
  }

  .article-shell:where([data-t2e-me="article"]) .prose-section,
.article-shell:where([data-t2e-me="article"]) .visual-section {
    border-color: #cbd5e1;
  }

  .article-shell:where([data-t2e-me="article"]) a {
    color: #000;
  }

  .article-shell:where([data-t2e-me="article"]) .equation-block .math-source {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

}

/* ===========================================================
   Inherited article utilities and Astra integration.
   Page-specific CSS is enqueued after this file.
   Astra owns .ast-container, #primary and #secondary at all times.
   =========================================================== */
.article-shell:where([data-t2e-me="article"]) {
  --t2e-h1: clamp(1.7rem, 2.8vw, 2.4rem);
  --t2e-h2: clamp(1.35rem, 2.3vw, 1.85rem);
  --t2e-h3: clamp(1.11rem, 1.85vw, 1.43rem);
  --t2e-border: #d8e2ee;
  --t2e-sticky-offset: 26px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding: 0 clamp(0px, 1vw, 12px) 25px;
  overflow: visible;
  isolation: auto;
}
.article-shell:where([data-t2e-me="article"]) *, .article-shell:where([data-t2e-me="article"]) *::before, .article-shell:where([data-t2e-me="article"]) *::after { box-sizing: border-box; }
.article-shell:where([data-t2e-me="article"]) [hidden] { display: none !important; }
.article-shell:where([data-t2e-me="article"]) :where(img, video, canvas, iframe, svg) { max-width: 100%; }
.article-shell:where([data-t2e-me="article"]) img { height: auto; display: block; }
.article-shell:where([data-t2e-me="article"]) :where(.article-main, .article-layout, .core-content, .prose-section, .visual-section, .card, .diagram-card, .diagram-figure, .table-scroll-wrapper) { min-width: 0; }
.article-shell:where([data-t2e-me="article"]) .article-layout { display: flex; flex-direction: column; gap: 14px; }
.article-shell:where([data-t2e-me="article"]) .article-main { order: 1; width: 100%; max-width: 100%; min-width: 0; margin-inline: 0; }
.article-shell:where([data-t2e-me="article"]) .article-sidebar { order: 2; width: 100%; min-width: 0; }
.article-shell:where([data-t2e-me="article"]) .article-sidebar-inner { max-height: none; overflow: visible; }
.article-shell:where([data-t2e-me="article"]) :where(h1,h2,h3,h4,h5,h6,[id]) { scroll-margin-top: var(--t2e-scroll-offset); }
.article-shell:where([data-t2e-me="article"]) h1 { letter-spacing: -0.022em; }
.article-shell:where([data-t2e-me="article"]) h2 { letter-spacing: -0.012em; }
.article-shell:where([data-t2e-me="article"]) :where(p,li,dd,td,th) { overflow-wrap: break-word; }
.article-shell:where([data-t2e-me="article"]) :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--t2e-focus-color);
  outline-offset: 3px;
}
.article-shell:where([data-t2e-me="article"]) a { text-underline-offset: .15em; }
.article-shell:where([data-t2e-me="article"]) :where(.article-meta, .breadcrumbs-inner, .page-subtitle) { overflow-wrap: break-word; }
.article-shell:where([data-t2e-me="article"]) .card { overflow: visible; }
.article-shell:where([data-t2e-me="article"]) .prose-section, .article-shell:where([data-t2e-me="article"]) .visual-section { overflow: visible; }
.article-shell:where([data-t2e-me="article"]) .prose-section > :last-child, .article-shell:where([data-t2e-me="article"]) .visual-section > :last-child { margin-bottom: 0; }
.article-shell:where([data-t2e-me="article"]) .article-hero .title-meta { box-shadow: 0 4px 18px rgba(15,23,42,.05); }
.article-shell:where([data-t2e-me="article"]) .page-subtitle { max-width: 74ch; }
.article-shell:where([data-t2e-me="article"]) .related-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,205px),1fr)); }
.article-shell:where([data-t2e-me="article"]) .intent-path, .article-shell:where([data-t2e-me="article"]) .relationship-grid, .article-shell:where([data-t2e-me="article"]) .verification-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,205px),1fr)); }
.article-shell:where([data-t2e-me="article"]) .design-basis-grid, .article-shell:where([data-t2e-me="article"]) .input-quality-grid,
.article-shell:where([data-t2e-me="article"]) .criteria-grid, .article-shell:where([data-t2e-me="article"]) .tradeoff-grid,
.article-shell:where([data-t2e-me="article"]) .acceptance-grid, .article-shell:where([data-t2e-me="article"]) .decision-path {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr));
}
.article-shell:where([data-t2e-me="article"]) .key-values { grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); }
/* Real Astra sidebar: never add an artificial second left column. */
body.ast-right-sidebar .article-shell:where([data-t2e-me="article"]) .article-layout,
body.right-sidebar .article-shell:where([data-t2e-me="article"]) .article-layout,
.article-shell:where([data-t2e-me="article"])[data-t2e-native-sidebar="true"] .article-layout {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 14px;
}
body.ast-right-sidebar .article-shell:where([data-t2e-me="article"]) .article-sidebar,
body.right-sidebar .article-shell:where([data-t2e-me="article"]) .article-sidebar,
.article-shell:where([data-t2e-me="article"])[data-t2e-native-sidebar="true"] .article-sidebar { display: none; }
body.ast-right-sidebar .article-shell:where([data-t2e-me="article"]) .article-main,
body.right-sidebar .article-shell:where([data-t2e-me="article"]) .article-main,
.article-shell:where([data-t2e-me="article"])[data-t2e-native-sidebar="true"] .article-main {
  display: block;
  order: 1;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
body.ast-right-sidebar .article-shell:where([data-t2e-me="article"]) .mobile-toc-wrapper,
body.right-sidebar .article-shell:where([data-t2e-me="article"]) .mobile-toc-wrapper,
.article-shell:where([data-t2e-me="article"])[data-t2e-native-sidebar="true"] .mobile-toc-wrapper { display: block; }
/* For non-Astra standalone pages, CSS sticky is safer than a JS fixed sidebar. */
@media (min-width: 1180px) {
  .article-shell:where([data-t2e-me="article"]):not([data-t2e-native-sidebar="true"]) .article-layout:has(> .article-sidebar) {
    display: grid;
    grid-template-columns: minmax(205px, 240px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
  }
  .article-shell:where([data-t2e-me="article"]):not([data-t2e-native-sidebar="true"]) .article-sidebar { order: 1; align-self: stretch; }
  .article-shell:where([data-t2e-me="article"]):not([data-t2e-native-sidebar="true"]) .article-sidebar-inner {
    position: sticky;
    top: var(--t2e-sticky-offset);
    max-height: calc(100dvh - var(--t2e-sticky-offset) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .article-shell:where([data-t2e-me="article"]):not([data-t2e-native-sidebar="true"]) .article-main { order: 2; }
  .article-shell:where([data-t2e-me="article"]):not([data-t2e-native-sidebar="true"]) .mobile-toc-wrapper { display: none; }
}
/* The author may keep existing mobile TOC in HTML. JS fills lists; doesn't require it. */
.article-shell:where([data-t2e-me="article"]) .mobile-toc-wrapper { min-width: 0; }
.article-shell:where([data-t2e-me="article"]) .mobile-toc { border-radius: 12px; box-shadow: none; }
.article-shell:where([data-t2e-me="article"]) .mobile-toc > summary { min-height: 46px; color: #173b65; }
.article-shell:where([data-t2e-me="article"]) .mobile-toc-list { display: grid; gap: 2px; }
.article-shell:where([data-t2e-me="article"]) .mobile-toc-list li { margin: 0; padding: 0; }
.article-shell:where([data-t2e-me="article"]) .mobile-toc-list a { border-radius: 7px; padding: 9px 10px; min-height: 40px; }
.article-shell:where([data-t2e-me="article"]) :where(.toc-list a, .mobile-toc-list a)[aria-current="location"] {
  color: #134b83;
  background: #eaf3ff;
  box-shadow: inset 3px 0 0 #1666b8;
  font-weight: 750;
}
.article-shell:where([data-t2e-me="article"]) .t2e-generated-inline-toc { margin: 8px 0 16px; }
.article-shell:where([data-t2e-me="article"]) .t2e-generated-inline-toc .mobile-toc-list { margin: 0; padding: 0 12px 13px; }
.article-shell:where([data-t2e-me="article"]) .t2e-heading-link { font-size: .7em; text-decoration: none; opacity: 0; margin-left: .35rem; }
.article-shell:where([data-t2e-me="article"]) :where(h2,h3):is(:hover,:focus-within) .t2e-heading-link,
.article-shell:where([data-t2e-me="article"]) .t2e-heading-link:focus-visible { opacity: 1; }
/* Media that respects diagram aspect ratios and wraps long vector text safely. */
.article-shell:where([data-t2e-me="article"]) .diagram-media { min-height: 0; height: auto; overflow: hidden; }
.article-shell:where([data-t2e-me="article"]) .diagram-media > :where(img,svg,picture) { display: block; width: 100%; max-width: 100%; height: auto; }
.article-shell:where([data-t2e-me="article"]) .diagram-img { display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
.article-shell:where([data-t2e-me="article"]) .diagram-media--scrollable { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.article-shell:where([data-t2e-me="article"]) .diagram-media--scrollable > svg { min-width: var(--t2e-diagram-min-width, 600px); }
.article-shell:where([data-t2e-me="article"]) .chart-frame { max-width: 100%; }
.article-shell:where([data-t2e-me="article"]) .chart-svg { width: 100%; min-width: 0; min-height: 0; height: auto; }
.article-shell:where([data-t2e-me="article"]) .chart-frame--scroll { overflow-x: auto; }
.article-shell:where([data-t2e-me="article"]) .chart-frame--scroll .chart-svg { min-width: var(--t2e-chart-min-width, 560px); }
.article-shell:where([data-t2e-me="article"]) .t2e-circuit-diagram { margin-block: 16px; }
.article-shell:where([data-t2e-me="article"]) .t2e-circuit-diagram :where(svg,img) { max-width: 100%; height: auto; }
.article-shell:where([data-t2e-me="article"]) .t2e-signal-flow { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: 10px; margin: 14px 0; }
.article-shell:where([data-t2e-me="article"]) .t2e-signal-flow > * { min-width: 0; border: 1px solid #d6e3f0; border-radius: 11px; background: #f8fbff; padding: 13px; }
.article-shell:where([data-t2e-me="article"]) .t2e-spec-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: 10px; margin: 12px 0 18px; }
.article-shell:where([data-t2e-me="article"]) .t2e-spec-grid > * { min-width: 0; padding: 12px; border: 1px solid var(--t2e-border); background: #fff; border-radius: 10px; }
/* Tables may scroll internally; do not force the page or Astra primary to scroll sideways. */
.article-shell:where([data-t2e-me="article"]) .table-scroll-wrapper { max-width: 100%; overflow-x: auto; scrollbar-gutter: auto; }
.article-shell:where([data-t2e-me="article"]) .table-scroll-wrapper:focus-visible { outline-offset: 2px; }
.article-shell:where([data-t2e-me="article"]) .article-main .table-scroll-wrapper table { width: 100%; border-collapse: collapse; }
.article-shell:where([data-t2e-me="article"]) .t2e-table-hint { display: none; margin: 5px 0 15px; color: #5b6e83; font-size: .79rem; }
.article-shell:where([data-t2e-me="article"]) .t2e-table-hint.is-visible { display: block; }
.article-shell:where([data-t2e-me="article"]) .table-scroll-wrapper[data-t2e-overflow="true"] { box-shadow: inset -9px 0 12px -12px rgba(17,56,96,.6); }
/* Protect non-JS legacy content: an unwrapped wide table should not push Astra wider. */
@supports selector(:has(*)) {
  .article-shell:where([data-t2e-me="article"]) :where(.card,.prose-section,.visual-section):has(> table:not(.table--compact)) { overflow-x: auto; }
}
/* Per-widget MathJax readiness avoids hiding a fallback for an equation that failed to render. */
.article-shell:where([data-t2e-me="article"]) .equation-block .math-source,
.article-shell:where([data-t2e-me="article"]) .math-inline .math-source { visibility: hidden; pointer-events: none; }
.article-shell:where([data-t2e-me="article"]) .equation-block[data-t2e-math-rendered="true"] .math-source,
.article-shell:where([data-t2e-me="article"]) .math-inline[data-t2e-math-rendered="true"] .math-source {
  position: static; width: auto; height: auto; visibility: visible; pointer-events: auto;
}
.article-shell:where([data-t2e-me="article"]) .equation-block[data-t2e-math-rendered="true"] .math-fallback,
.article-shell:where([data-t2e-me="article"]) .math-inline[data-t2e-math-rendered="true"] .math-fallback-inline { display: none; }
.article-shell:where([data-t2e-me="article"]) .equation-block mjx-container[display="true"] { max-width: 100%; width: max-content; overflow: visible; }
.article-shell:where([data-t2e-me="article"]) .equation-block { overscroll-behavior-x: contain; }
.article-shell:where([data-t2e-me="article"]) .equation-block[data-equation-label]::before { max-width: calc(100% - 26px); }
/* Accessible, optional page-specific tool and calculator controls. */
.article-shell:where([data-t2e-me="article"]) :where(input,select,textarea,button) { font: inherit; }
.article-shell:where([data-t2e-me="article"]) .t2e-tool, .article-shell:where([data-t2e-me="article"]) .t2e-interactive-module { margin: 16px 0; padding: clamp(14px,2vw,20px); border: 1px solid #cbdcf0; border-radius: 14px; background: #f8fbff; }
.article-shell:where([data-t2e-me="article"]) .t2e-form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: 13px; }
.article-shell:where([data-t2e-me="article"]) .t2e-field { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.article-shell:where([data-t2e-me="article"]) .t2e-field > label { color: #243b55; font-size: .91rem; font-weight: 750; }
.article-shell:where([data-t2e-me="article"]) .t2e-field :where(input,select,textarea) { display: block; width: 100%; min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid #a8bfd5; border-radius: 9px; color: #13263d; background: #fff; }
.article-shell:where([data-t2e-me="article"]) .t2e-field :where(input,select,textarea):focus { border-color: #136fbd; box-shadow: 0 0 0 3px rgba(19,111,189,.12); }
.article-shell:where([data-t2e-me="article"]) .t2e-field-help { font-size: .81rem; color: #576b83; }
.article-shell:where([data-t2e-me="article"]) .t2e-tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 15px; }
.article-shell:where([data-t2e-me="article"]) .t2e-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; border: 1px solid #145d9d; border-radius: 9px; padding: 8px 14px; background: #145d9d; color: white; font: inherit; font-size: .9rem; font-weight: 750; line-height: 1.25; text-decoration: none; cursor: pointer; }
.article-shell:where([data-t2e-me="article"]) .t2e-btn:hover { background: #0c4577; color: #fff; }
.article-shell:where([data-t2e-me="article"]) .t2e-btn--secondary { border-color: #afc2d6; background: white; color: #21466e; }
.article-shell:where([data-t2e-me="article"]) .t2e-btn--secondary:hover { background: #eef6ff; color: #153c62; }
.article-shell:where([data-t2e-me="article"]) .t2e-result { margin-top: 14px; padding: 14px; border: 1px solid #bcd8ed; border-radius: 11px; background: #fff; }
.article-shell:where([data-t2e-me="article"]) .t2e-result-value { display: block; font-size: clamp(1.35rem,3vw,1.8rem); color: #154c7e; font-weight: 850; }
.article-shell:where([data-t2e-me="article"]) .t2e-field-error { margin-top: 4px; color: #a2251d; font-size: .81rem; }
/* Tabs are opt-in; without JavaScript all panels remain fully visible and crawlable. */
.article-shell:where([data-t2e-me="article"]) [data-t2e-tabs] [role="tablist"] { display: flex; overflow-x: auto; gap: 7px; padding: 5px; border-bottom: 1px solid #d4e0eb; }
.article-shell:where([data-t2e-me="article"]) [data-t2e-tabs] [role="tab"] { min-height: 43px; padding: 8px 12px; border: 1px solid #ccd9e7; border-radius: 8px 8px 0 0; background: #f6f9fd; color: #1d4063; cursor: pointer; }
.article-shell:where([data-t2e-me="article"]) [data-t2e-tabs] [role="tab"][aria-selected="true"] { border-color: #2673b7; background: #eaf4ff; color: #0e4c84; font-weight: 750; }
.article-shell:where([data-t2e-me="article"]) [data-t2e-tabs] [role="tabpanel"] { padding: 14px 6px; }
.article-shell:where([data-t2e-me="article"]) [data-t2e-tabs][data-t2e-tabs-ready="true"] [role="tabpanel"][hidden] { display: none !important; }
/* FAQ native details works without JavaScript and remains discoverable by crawlers. */
.article-shell:where([data-t2e-me="article"]) details.faq-item:not([open]) > :not(summary) { display: none; }
.article-shell:where([data-t2e-me="article"]) details.faq-item[open] > .faq-answer { display: block; }
.article-shell:where([data-t2e-me="article"]) .faq-question { background: transparent; }
/* Native page/print restrictions; never target .ast-container, #primary or #secondary. */
body.admin-bar .article-shell:where([data-t2e-me="article"]) { --t2e-scroll-offset: 136px; --t2e-sticky-offset: 56px; }
@media (max-width: 1179px) {
  .article-shell:where([data-t2e-me="article"]) .article-sidebar { position: static; }
  .article-shell:where([data-t2e-me="article"]) .article-main { order: 1; }
  .article-shell:where([data-t2e-me="article"]) .mobile-toc-wrapper { display: block; }
}
@media (max-width: 640px) {
  .article-shell:where([data-t2e-me="article"]) { padding-inline: 4px; }
  .article-shell:where([data-t2e-me="article"]) .page-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .article-shell:where([data-t2e-me="article"]) .chart-svg { min-width: 0; min-height: 0; }
  .article-shell:where([data-t2e-me="article"]) .chart-frame--scroll .chart-svg { min-width: var(--t2e-chart-min-width,560px); }
  .article-shell:where([data-t2e-me="article"]) .t2e-signal-flow { grid-template-columns: 1fr; }
  .article-shell:where([data-t2e-me="article"]) .article-meta-details { flex-wrap: wrap; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .article-shell:where([data-t2e-me="article"]), .article-shell:where([data-t2e-me="article"]) *, .article-shell:where([data-t2e-me="article"]) *::before, .article-shell:where([data-t2e-me="article"]) *::after { scroll-behavior: auto; animation-duration: .01ms; transition-duration: .01ms; }
}
@media print {
  .article-shell:where([data-t2e-me="article"]) { width: 100%; max-width: 100%; color: #000; padding: 0; }
  .article-shell:where([data-t2e-me="article"]) .mobile-toc-wrapper, .article-shell:where([data-t2e-me="article"]) .t2e-generated-inline-toc, .article-shell:where([data-t2e-me="article"]) .article-sidebar { display: none !important; }
  .article-shell:where([data-t2e-me="article"]) :where(.card,.prose-section,.visual-section,.equation-block,.diagram-media,.table-scroll-wrapper) { box-shadow: none; }
  .article-shell:where([data-t2e-me="article"]) :where(.card,.prose-section,.visual-section) { break-inside: avoid-page; }
  .article-shell:where([data-t2e-me="article"]) details.faq-item:not([open]) > :not(summary) { display: block !important; }
  .article-shell:where([data-t2e-me="article"]) .equation-block:not([data-t2e-math-rendered="true"]) .math-source { position: absolute !important; visibility: hidden !important; }
  .article-shell:where([data-t2e-me="article"]) .equation-block:not([data-t2e-math-rendered="true"]) .math-fallback { display: block; }
  .article-shell:where([data-t2e-me="article"]) .table-scroll-wrapper { overflow: visible; }
}

/* =========================================================
   Article controls and responsive media
   These live ONLY inside .article-shell:where([data-t2e-me="article"]), never Astra's outer layout.
   ========================================================= */
.article-shell:where([data-t2e-me="article"]) {
  --t2e-focus-color: #d99a24;
  --t2e-content: 100%;
  color-scheme: light;
}
.article-shell:where([data-t2e-me="article"]) :where(a, button, summary, input, select, textarea) {
  -webkit-tap-highlight-color: rgba(18, 104, 166, .15);
}
.article-shell:where([data-t2e-me="article"]) :where(button, input, select, textarea) { font-family: inherit; }
.article-shell:where([data-t2e-me="article"]) :where(button) { cursor: pointer; }
.article-shell:where([data-t2e-me="article"]) :where(input, textarea)::placeholder { color: #61758a; opacity: 1; }
/* Intentional button text colors are not link colors. High specificity protects
   against Astra and older article link styles on all interactive states. */
.article-shell:where([data-t2e-me="article"]) a.t2e-btn,
.article-shell:where([data-t2e-me="article"]) a.t2e-btn:visited,
.article-shell:where([data-t2e-me="article"]) a.t2e-button--primary,
.article-shell:where([data-t2e-me="article"]) a.t2e-button--primary:visited { color: #fff !important; text-decoration: none; }
.article-shell:where([data-t2e-me="article"]) a.t2e-btn:hover,
.article-shell:where([data-t2e-me="article"]) a.t2e-btn:focus-visible,
.article-shell:where([data-t2e-me="article"]) a.t2e-button--primary:hover,
.article-shell:where([data-t2e-me="article"]) a.t2e-button--primary:focus-visible { color: #fff !important; }
.article-shell:where([data-t2e-me="article"]) a.t2e-btn--secondary,
.article-shell:where([data-t2e-me="article"]) a.t2e-btn--secondary:visited { color: #204260 !important; }
.article-shell:where([data-t2e-me="article"]) a.t2e-btn--secondary:hover,
.article-shell:where([data-t2e-me="article"]) a.t2e-btn--secondary:focus-visible { color: #12344f !important; }
.article-shell:where([data-t2e-me="article"]) .t2e-button--primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; min-height: 46px; padding: 11px 17px;
  border: 1px solid #12629a; border-radius: 11px;
  background: #115d90; color: white; text-decoration: none;
  font-size: .9rem; line-height: 1.35; font-weight: 800;
}
.article-shell:where([data-t2e-me="article"]) .t2e-button--primary:hover { background: #0c426d; }
.article-shell:where([data-t2e-me="article"]) .t2e-button--secondary {
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  min-height:46px; padding:11px 17px;
  border:1px solid #98bbd4; border-radius:11px; background:#fff;
  color:#173a5c; font-size:.9rem; line-height:1.35; font-weight:800;
}
.article-shell:where([data-t2e-me="article"]) :where(.card,.prose-section,.visual-section) { min-width: 0; }
.article-shell:where([data-t2e-me="article"]) :where(.card,.prose-section,.visual-section) > :last-child { margin-bottom: 0; }
.article-shell:where([data-t2e-me="article"]) :where(.diagram-figure,.diagram-media,.chart-frame,.table-scroll-wrapper) { max-width: 100%; }
.article-shell:where([data-t2e-me="article"]) :where(.diagram-media,.chart-frame) > svg { max-width:100%; height:auto; }
.article-shell:where([data-t2e-me="article"]) svg text { font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
.article-shell:where([data-t2e-me="article"]) .article-main :where(figure,aside,section,article,div) { min-width: 0; }
.article-shell:where([data-t2e-me="article"]) .t2e-heading-link { display:inline-block; font-size:.6em; margin-left:.3em; vertical-align:baseline; text-underline-offset:2px; }
.article-shell:where([data-t2e-me="article"]) .mobile-toc-list a[aria-current="location"] { font-weight:800; }
.article-shell:where([data-t2e-me="article"]) :where(.t2e-field-error, [role="alert"]) { overflow-wrap:anywhere; }
/* Core tables and diagrams can scroll horizontally INSIDE their own frame. */
.article-shell:where([data-t2e-me="article"]) .table-scroll-wrapper { scrollbar-width:thin; }
.article-shell:where([data-t2e-me="article"]) .table-scroll-wrapper table { max-width:none; }
.article-shell:where([data-t2e-me="article"]) .t2e-result { box-shadow: inset 4px 0 0 #157ba2; }
@media (max-width: 620px) {
 .article-shell:where([data-t2e-me="article"]) .card { margin-bottom:14px; }
 .article-shell:where([data-t2e-me="article"]) :where(.article-meta,.breadcrumbs-inner) { max-width:100%; }
 .article-shell:where([data-t2e-me="article"]) :where(.t2e-btn,button.t2e-btn) { min-height:44px; }
}
@media (prefers-reduced-motion: no-preference) {
 .article-shell:where([data-t2e-me="article"]) :where(a.t2e-button--primary,a.t2e-button--secondary,button.t2e-btn) {
   transition: background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
 }
}
@media print {
 .article-shell:where([data-t2e-me="article"]) { color-scheme: light; }
 .article-shell:where([data-t2e-me="article"]) :where(.t2e-button--primary,.t2e-button--secondary) { border:1px solid #888; background:#fff; color:#111 !important; }
}

/* ===========================================================
   V8.2 accessible inverse surfaces and theme conflict safety
   Many legacy T2E styles use .article-shell:where([data-t2e-me="article"]) h1/p {color:... !important}.
   Dark sections intentionally opt in with .t2e-inverse, rather than
   forcing global colors on other components or Astra's sidebar.
   =========================================================== */
.article-shell:where([data-t2e-me="article"]) .t2e-inverse {
  color: #eef8ff !important;
  color-scheme: dark;
}
.article-shell:where([data-t2e-me="article"]) .t2e-inverse :is(h1,h2,h3,h4,h5,h6) {
  color: #ffffff !important;
}
.article-shell:where([data-t2e-me="article"]) .t2e-inverse :is(p,li) {
  color: #e3f2fb !important;
}
.article-shell:where([data-t2e-me="article"]) .t2e-inverse a:not([class]) {
  color: #d8f5ff !important;
}
.article-shell:where([data-t2e-me="article"]) .t2e-inverse :is(a,button,input,select,summary):focus-visible {
  outline: 3px solid #ffe1a0 !important;
  outline-offset: 3px;
}
.article-shell:where([data-t2e-me="article"]) :where(.diagram-figure,.diagram-media,.chart-frame) svg {
  max-width: 100%;
  height: auto;
}
.article-shell:where([data-t2e-me="article"]) .article-main, .article-shell:where([data-t2e-me="article"]) .core-content,
.article-shell:where([data-t2e-me="article"]) :where(.prose-section,.visual-section,.card,.diagram-figure) {
  min-width: 0;
}

/* Landing templates share directory components. Article layout stays independent. */
[data-t2e-me] { min-inline-size: 0; max-inline-size: 100%; }
:is([data-t2e-me="hub"], [data-t2e-me="discipline"]) {
  --me-ink: #142d43;
  --me-link: #115586;
  --me-line: #bacbd9;
  --me-focus: #1767a3;
  color: var(--me-ink);
  line-height: 1.6;
  overflow-wrap: break-word;
}
:is([data-t2e-me="hub"], [data-t2e-me="discipline"]) *,
:is([data-t2e-me="hub"], [data-t2e-me="discipline"]) {
  box-sizing: border-box;
}
[data-t2e-me] [hidden] { display: none !important; }
[data-t2e-me] .me-hero {
  padding: clamp(1.25rem, 4vw, 3rem);
  border-radius: 1rem;
  background: #173b56;
  color: #f2f8ff;
}
[data-t2e-me] .me-hero h1 {
  margin-block: 0 .4em;
  font: inherit;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
[data-t2e-me] .me-hero p { max-width: 66ch; line-height: 1.55; }
/* Site heading and link colors can be important. Only mark genuinely dark surfaces. */
:is(.entry-content, #primary .entry-content) [data-t2e-me] :is(.me-hero,.t2e-inverse) :is(h1,h2,h3,h4,h5,h6),
[data-t2e-me] .me-hero :is(h1,h2,h3) { color: #fff !important; }
[data-t2e-me] .me-hero :is(p,li) { color: #e6f1fa; }
[data-t2e-me] .me-hero a:not([class]) { color: #def6ff; text-decoration: underline; }
[data-t2e-me] .me-section { margin-block: clamp(1.4rem, 3vw, 2.5rem); }
[data-t2e-me] .me-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}
[data-t2e-me] .me-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--me-line, #bacbd9);
  border-radius: .75rem;
  background: #fff;
  padding: 1rem 1.1rem;
  color: var(--me-ink, #142d43);
}
[data-t2e-me] .me-card :is(h2,h3,p) { margin: 0 0 .4rem; }
[data-t2e-me] .me-card a { color: var(--me-link, #115586); text-underline-offset: .16em; }
[data-t2e-me] [data-me-filter-controls] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .8rem;
  margin-block: .75rem;
}
[data-t2e-me] [data-me-filter-controls] input {
  width: min(100%, 24rem);
  min-width: 0;
  min-height: 44px;
  padding: .5rem .7rem;
  color: #142d43;
  background: white;
  border: 1px solid #71889b;
  border-radius: .4rem;
  font: inherit;
}
[data-t2e-me] [data-me-clear] {
  min-height: 44px; padding: .45rem .9rem;
  border: 1px solid #71889b; border-radius: .4rem;
  background: #fff; color: #17456b; cursor: pointer;
}
:is([data-t2e-me="hub"],[data-t2e-me="discipline"]) :focus-visible {
  outline: 3px solid var(--me-focus); outline-offset: 3px;
}
[data-t2e-me] .me-hero :focus-visible { outline: 3px solid #ffe1a0; outline-offset: 3px; }
:is([data-t2e-me="hub"],[data-t2e-me="discipline"]) [id] { scroll-margin-block-start: var(--t2e-scroll-offset, 6.5rem); }
.article-shell[data-t2e-me="article"] { --t2e-focus-color: #1767a3; }
.article-shell[data-t2e-me="article"] :is(h1,h2,h3) { scroll-margin-top: var(--t2e-scroll-offset); }
.article-shell[data-t2e-me="article"] h1 { overflow-wrap: anywhere; }
@media screen and (min-width: 1180px) {
  .article-shell[data-t2e-me="article"]:not(:has(.article-sidebar)) .mobile-toc-wrapper { display: block; }
}
/* Mechanical templates own their horizontal spacing below Astra's desktop breakpoint. */
@media screen and (max-width: 921px) {
  :is(#content, .site-content) :is(.ast-container, .ast-container-fluid):has(.entry-content [data-t2e-me]) {
    padding-inline: 0 !important;
  }
  :is(#content, .site-content) #primary:has(.entry-content [data-t2e-me]),
  :is(#content, .site-content) :is(.site-main, .ast-article-single):has(.entry-content [data-t2e-me]),
  :is(#content, .site-content) .entry-content:has([data-t2e-me]) {
    padding-inline: 0 !important; margin-inline: 0 !important;
  }
  #primary .entry-content [data-t2e-me] {
    width: 100%; max-width: 100%; padding-inline: 0; margin-inline: 0;
  }
}
@media print {
  [data-t2e-me] [data-me-filter-controls] { display: none !important; }
  [data-t2e-me] [data-me-item][hidden] { display: list-item !important; }
  [data-t2e-me] .me-grid { display: block; }
  [data-t2e-me] .me-card { break-inside: avoid; }
  [data-t2e-me] .me-hero { border: 1px solid #999; background: white; color: black; }
  :is(.entry-content, #primary .entry-content) [data-t2e-me] .me-hero :is(h1,h2,h3,p,li,a),
  [data-t2e-me] .me-hero :is(h1,h2,h3,p,li,a) { color: #111 !important; }
}
/* Published discipline directories also contain comparison tables. */
:is([data-t2e-me="hub"],[data-t2e-me="discipline"]) :is(.table-wrap,.wp-block-table,.table-scroll-wrapper) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
:is([data-t2e-me="hub"],[data-t2e-me="discipline"]) .t2e-table-hint { display: none; }
:is([data-t2e-me="hub"],[data-t2e-me="discipline"]) .t2e-table-hint.is-visible {
  display: block; margin-block: .3rem 1rem; color: #455d72; font-size: .875rem;
}
@media (min-width: 1180px) {
  body:is(.ast-right-sidebar,.right-sidebar) .article-shell[data-t2e-me="article"] .article-layout { display: flex; }
  body:is(.ast-right-sidebar,.right-sidebar) .article-shell[data-t2e-me="article"] .mobile-toc-wrapper { display: block; }
}
/* Keep title and surface paired when .me-hero is added to a legacy light hero. */
#primary .entry-content [data-t2e-me] .me-hero {
  background: var(--me-hero-background, #173b56);
}
#primary .entry-content [data-t2e-me] .me-hero :is(p,li) { color: #e6f1fa; }
@media print {
  #primary .entry-content [data-t2e-me] .me-hero { background: white; }
}
