/* Local article preview R2. Rules are restricted to the article section. */
.hcta-index, .hcta-article { background: var(--white); color: var(--text); }
.hcta-index-inner { max-width: 1030px; padding-top: 32px; padding-bottom: 80px; }
.hcta-reading { max-width: 930px; padding-top: 32px; padding-bottom: 80px; }
.hcta-index .breadcrumbs, .hcta-article .breadcrumbs { margin: 0 0 30px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.hcta-article .breadcrumbs span { margin: 0 6px; }
.hcta-eyebrow { margin: 0 0 12px; font-size: 13px; line-height: 1.5; font-weight: 700; letter-spacing: .07em; color: var(--brand); }
.hcta-index-heading { max-width: 780px; margin-bottom: 58px; }
.hcta-index-heading h1, .hcta-reading-header h1 { margin: 0 0 20px; font-size: clamp(32px, 3.1vw, 44px); line-height: 1.16; letter-spacing: -.025em; }
.hcta-index-heading > p:last-child { margin: 0; font-size: 19px; line-height: 1.7; color: var(--muted); }
.hcta-index-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.hcta-index-label h2 { margin: 0; font-size: 22px; line-height: 1.4; }
.hcta-index-label > span { color: var(--muted); font-size: 14px; }
.hcta-entry { display: grid; grid-template-columns: 84px minmax(0,1fr); align-items: start; gap: 30px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.hcta-entry:hover { text-decoration: none; color: inherit; }
.hcta-entry:focus-visible { outline: 3px solid var(--brand); outline-offset: 8px; }
.hcta-entry-mark { display: grid; place-items: center; min-height: 80px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-size: 24px; font-weight: 700; }
.hcta-entry-text h2 { margin: 0 0 14px; font-size: clamp(24px,2.4vw,30px); line-height: 1.25; color: var(--brand-dark); letter-spacing: -.015em; }
.hcta-entry:hover h2, .hcta-entry:focus-visible h2 { text-decoration: underline; text-underline-offset: 4px; }
.hcta-entry-text > p:not(.hcta-eyebrow) { font-weight: 400; margin: 0 0 20px; max-width: 700px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hcta-entry-action { color: var(--brand); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hcta-index-footer { margin: 30px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }
.hcta-reading-header { padding-bottom: 30px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.hcta-reading-header .hcta-article-meta { margin: 0 0 16px; color: var(--brand); font-size: 14px; line-height: 1.6; }
.hcta-deck { margin: 0; max-width: 76ch; color: var(--muted); font-size: 20px; line-height: 1.7; }
.hcta-reading-body { min-width: 0; }
.hcta-reading-body section { margin-top: 42px; scroll-margin-top: 150px; }
.hcta-reading-body section:first-child { margin-top: 0; }
.hcta-reading-body h2 { margin: 0 0 18px; font-size: 28px; line-height: 1.3; letter-spacing: -.015em; }
.hcta-reading-body h3 { margin: 26px 0 12px; font-size: 20px; line-height: 1.4; }
.hcta-reading-body p, .hcta-reading-body li { font-size: 18px; line-height: 1.8; }
.hcta-reading-body p { margin: 0 0 19px; }
.hcta-reading-body ul, .hcta-reading-body ol { margin: 0 0 24px; padding-left: 25px; }
.hcta-reading-body li + li { margin-top: 10px; }
.hcta-control-diagram { margin: 28px 0; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.hcta-control-diagram h3 { margin: 0 0 20px; font-size: 17px; }
.hcta-flow-path { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.hcta-flow-node { position: relative; padding: 13px 4px; text-align: center; }
.hcta-flow-node + .hcta-flow-node::before { content: '→'; position: absolute; left: -26px; top: calc(50% - 15px); width: 24px; font-size: 21px; color: var(--brand); }
.hcta-node-label { display: block; margin-bottom: 7px; font-size: 12px; line-height: 1.5; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.hcta-flow-node strong { font-size: 16px; line-height: 1.5; color: var(--brand-dark); }
.hcta-feedback-path { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; border-top: 1px dashed var(--line); padding-top: 15px; margin-top: 15px; }
.hcta-controller { font-size: 14px; font-weight: 600; color: var(--brand); }
.hcta-feedback-text { font-size: 14px; color: var(--muted); }
.hcta-feedback-arrow { font-size: 20px; color: var(--brand); }
.hcta-control-diagram figcaption { margin-top: 18px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.hcta-reading-body .hcta-comparison-wrap { margin: 22px 0; }
.hcta-reading-body .hcta-control-comparison { width: 100%; min-width: 0; margin: 0; table-layout: fixed; }
.hcta-control-comparison caption { padding: 0 0 10px; text-align: left; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hcta-control-comparison th, .hcta-control-comparison td { padding: 14px 16px; font-size: 16px; line-height: 1.6; text-align: left; }
.hcta-control-comparison th:first-child { width: 32%; }
.hcta-control-comparison tbody th { background: var(--white); }
.hcta-actual-model { padding: 18px 20px; margin: 20px 0; border-left: 3px solid var(--brand); background: var(--panel); }
.hcta-actual-model > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 14px; }
.hcta-actual-model code { display: block; font-family: inherit; font-weight: 600; color: var(--brand-dark); font-size: 19px; line-height: 1.6; overflow-wrap: anywhere; }
.hcta-code-key { display: grid; grid-template-columns: minmax(100px,.3fr) 1fr; gap: 0 20px; margin: 20px 0; }
.hcta-code-key dt, .hcta-code-key dd { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.hcta-code-key dt { font-weight: 600; color: var(--brand); }
.hcta-model-table { margin: 18px 0 24px; max-width: 100%; overflow-x: auto; }
.hcta-model-table table { width: 100%; min-width: 0; table-layout: fixed; }
.hcta-model-table th, .hcta-model-table td { padding: 13px 12px; font-size: 14px; line-height: 1.7; vertical-align: top; overflow-wrap: anywhere; }
.hcta-model-table .hcta-model-pairs th:nth-child(odd) { width: 14%; }
.hcta-model-table .hcta-model-pairs th:nth-child(even) { width: 36%; }
.hcta-model-table .hcta-model-single th:first-child { width: 25%; }
.hcta-model-table .hcta-model-pairs th:nth-child(3), .hcta-model-table .hcta-model-pairs td:nth-child(3) { border-left: 1px solid var(--line); }
.hcta-model-table td a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
 .hcta-model-table table, .hcta-model-table thead, .hcta-model-table tbody { display: block; }
 .hcta-model-table tr { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 64%); }
 .hcta-model-table th, .hcta-model-table td { display: block; width: auto !important; min-width: 0; padding: 12px 10px; }
 .hcta-model-table thead th:nth-child(n+3), .hcta-model-table .hcta-model-empty { display: none; }
 .hcta-model-table .hcta-model-pairs th:nth-child(3), .hcta-model-table .hcta-model-pairs td:nth-child(3) { border-left: 0; }
}
.hcta-reading-body .hcta-table-note { font-size: 16px; color: var(--muted); }
.hcta-reading-body .hcta-assembly-heading { margin-top: 34px; }
.hcta-reading-body .hcta-references { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.hcta-reading-body .hcta-references h2 { font-size: 20px; }
.hcta-reading-body .hcta-references p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.hcta-source-link > span { display: block; margin-top: 5px; font-size: 13px; }
.hcta-reading a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
@media (max-width: 760px) {
 .hcta-reading, .hcta-index-inner { padding-top: 24px; padding-bottom: 48px; }
 .hcta-index .breadcrumbs, .hcta-article .breadcrumbs { margin-bottom: 26px; font-size: 13px; }
 .hcta-index-heading { margin-bottom: 38px; }
 .hcta-index-heading > p:last-child, .hcta-deck { font-size: 18px; }
 .hcta-entry { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 25px 0; }
 .hcta-entry-mark { width: 66px; min-height: 54px; font-size: 21px; }
 .hcta-entry-text h2 { font-size: 26px; }
 .hcta-reading-header { margin-bottom: 28px; padding-bottom: 26px; }
 .hcta-reading-header .hcta-article-meta { font-size: 13px; }
 .hcta-reading-body section { margin-top: 34px; scroll-margin-top: 180px; }
 .hcta-reading-body h2 { font-size: 25px; }
 .hcta-reading-body p, .hcta-reading-body li { font-size: 17px; line-height: 1.8; }
 .hcta-control-diagram { padding: 18px; }
 .hcta-flow-path { grid-template-columns: minmax(0,1fr); gap: 20px; }
 .hcta-flow-node { padding: 7px 4px; }
 .hcta-flow-node + .hcta-flow-node::before { content: '↓'; top: -26px; left: calc(50% - 12px); }
 .hcta-feedback-path { flex-direction: column; gap: 6px; }
 .hcta-control-comparison th, .hcta-control-comparison td { padding: 12px; font-size: 15px; overflow-wrap: anywhere; }
 .hcta-actual-model { padding: 16px; }
 .hcta-actual-model code { font-size: 17px; }
 .hcta-code-key { grid-template-columns: 90px minmax(0,1fr); gap: 0 14px; }
 .hcta-code-key dt, .hcta-code-key dd { font-size: 15px; }
}

.hcta-model-example { padding: 18px 20px; border-left: 3px solid var(--brand); background: var(--panel); }
.hcta-model-example code { font-family: inherit; font-size: 19px; font-weight: 600; color: var(--brand-dark); overflow-wrap: anywhere; }
.hcta-designation-list { margin: 20px 0 24px; }
.hcta-designation-list > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 20px; border-bottom: 1px solid var(--line); }
.hcta-designation-list dt, .hcta-designation-list dd { margin: 0; padding: 10px 0; font-size: 16px; line-height: 1.6; }
.hcta-designation-list dt { font-weight: 600; color: var(--brand); }
@media (max-width: 760px) { .hcta-model-example code { font-size: 17px; } .hcta-designation-list > div { grid-template-columns: 80px minmax(0,1fr); gap: 14px; } }

/* R3 five-part guide: plain in-page navigation and a compact settings table. */
.hcta-article-sections { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.hcta-article-sections a { font-size: 14px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.hcta-reading-body .hcta-adjustment-table { min-width: 0; table-layout: fixed; margin: 0; }
.hcta-adjustment-table th, .hcta-adjustment-table td { padding: 14px 16px; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.hcta-adjustment-table th:first-child { width: 32%; }
.hcta-adjustment-table tbody th { background: var(--white); }
.hcta-reading-body .hcta-adjustment-note { margin: 22px 0; padding: 0 0 0 17px; border-left: 3px solid var(--brand); color: var(--muted); font-size: 16px; line-height: 1.8; }
.hcta-reading-body .hcta-source-list { list-style: decimal; padding-left: 22px; }
.hcta-reading-body .hcta-source-list li { font-size: 14px; line-height: 1.8; color: var(--muted); }
.hcta-source-list a { overflow-wrap: anywhere; }
@media (max-width: 760px) {
 .hcta-article-sections { gap: 8px 17px; }
 .hcta-article-sections a { font-size: 14px; }
 .hcta-adjustment-table th, .hcta-adjustment-table td { padding: 12px; font-size: 15px; }
 .hcta-reading-body .hcta-adjustment-note { font-size: 15px; }
}

@media (max-width: 760px) {
  .hcta-adjustment-table th:first-child { width: 40%; }
  .hcta-adjustment-table th, .hcta-adjustment-table td { font-size: 14px; }
  .hcta-adjustment-table tbody th { text-transform: none; }
}

/* R6 full catalog groups retain the approved paired model layout. */
.hcta-model-group-links { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
.hcta-model-group-links a { font-size: 14px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; }
.hcta-model-group { margin-top: 34px; scroll-margin-top: 220px; }
.hcta-model-group h3 { margin: 0 0 14px; }
.hcta-model-group h4 { margin: 24px 0 12px; font-size: 17px; }
@media (max-width: 760px) { .hcta-model-group { scroll-margin-top: 310px; } }

/* Original DFR illustration; separate vertical composition keeps labels legible. */
.hcta-dfr-illustration { padding: 0; border: 0; background: transparent; }
.hcta-dfr-illustration picture { display: block; }
.hcta-dfr-illustration img { display: block; width: 100%; height: auto; border-radius: 10px; }
.hcta-dfr-illustration figcaption { margin-top: 12px; }
