/* Financial integration comparison: scoped, bilingual and mobile first. */
.aic-page, .aic-page * { box-sizing: border-box; }
.aic-page { --aic-yellow: #ffcc00; --aic-product-surface: #fff7d6; --aic-product-ink: #10213d; --aic-product-line: #d2ac18; line-height: 1.65; font-size: 1rem; padding: clamp(16px,2.5vw,32px); background: var(--seo-surface); border-radius: 24px; }
.aic-page h1, .aic-page h2, .aic-page h3 { color: var(--seo-ink); text-align: left; border: 0; padding: 0; text-wrap: balance; overflow-wrap: anywhere; }
.aic-page h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.12; margin: 12px 0 22px; letter-spacing: -.035em; }
.aic-page h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.25; margin: 0 0 18px; }
.aic-page h3 { font-size: 1.15rem; margin: 12px 0 6px; }
.aic-page p { color: var(--seo-ink); text-align: left; margin: 0 0 16px; }
.aic-page a { overflow-wrap: anywhere; }
.aic-page .aic-kicker { font-size: .76rem; font-weight: 850; letter-spacing: .12em; color: var(--seo-blue); margin: 0 0 12px; }
.aic-hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 36px; align-items: center; position: static; width: auto; padding: clamp(22px,4vw,46px); border: 1px solid var(--seo-line); border-radius: 24px; background: linear-gradient(135deg,var(--seo-surface),var(--seo-soft)); box-shadow: none; }
.aic-hero { text-align: left; }
.aic-hero > * { min-width: 0; }
.aic-page .aic-lead { font-size: 1.16rem; max-width: 42rem; }
.aic-question { padding: 26px; border-radius: 18px; background: var(--seo-surface); border: 1px solid var(--seo-line); }
.aic-question h2 { font-size: 1.35rem; margin-top: 22px; }
.aic-question ul { padding-left: 20px; margin-bottom: 0; }
.aic-question li { margin: 8px 0; }
.aic-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px; max-width: 100%; border-radius: 12px; background: #086acb; color: #fff; font-weight: 750; text-decoration: none; line-height: 1.4; text-align: center; }
.aic-button:hover { background: #0754a1; color: #fff; }
.aic-page :is(a,summary):focus-visible { outline: 3px solid var(--seo-blue); outline-offset: 4px; }
.aic-section { margin-top: 42px; scroll-margin-top: 220px; }
.aic-page .aic-muted, .aic-page .aic-note { color: var(--seo-muted); }
.aic-page .aic-note { font-size: .88rem; margin-top: 16px; }
.aic-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--seo-line); border-radius: 16px; overflow: hidden; color: var(--seo-ink); background: var(--seo-surface); }
.aic-table th, .aic-table td { padding: 20px; border: 0; border-bottom: 1px solid var(--seo-line); vertical-align: top; text-align: left; overflow-wrap: anywhere; white-space: normal; }
.aic-table thead th { background: var(--seo-soft); font-size: 1.15rem; vertical-align: middle; line-height: 1.4; }
.aic-table thead th:first-child { width: 22%; }
.aic-table thead span { display: block; font-size: .82rem; margin-top: 5px; font-weight: 500; }
/* Keep each approach identifiable throughout the table, in both themes. */
.aic-table th.aic-product { background: var(--aic-yellow); color: #10213d; }
.aic-table td.aic-product { background: var(--aic-product-surface); color: var(--aic-product-ink); }
.aic-table .aic-product { border-left: 2px solid var(--aic-product-line); border-right: 2px solid var(--aic-product-line); border-bottom-color: var(--aic-product-line); }
.aic-table th.aic-ai { position: relative; padding-left: 32px; background: #12365c; color: #fff; }
.aic-table td.aic-ai { background: var(--seo-soft); color: var(--seo-ink); }
.aic-table thead .aic-versus { position: absolute; left: -1px; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 34px; height: 34px; margin: 0; border: 2px solid #fff; border-radius: 50%; background: #10213d; color: var(--aic-yellow); font-size: .7rem; font-weight: 850; line-height: 1; }
html[data-ainvestor-theme="night"] .aic-page { --aic-product-surface: #332b13; --aic-product-ink: #fff4ce; --aic-product-line: #9c831e; }
.aic-table tbody th { font-size: .97rem; }
.aic-table tbody tr:last-child > * { border-bottom: 0; }
.aic-mobile-label { display: none; }
.aic-pipeline { padding: 0; margin: 22px 0 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.aic-pipeline li { min-width: 0; padding: 24px; border: 1px solid var(--seo-line); border-radius: 16px; background: var(--seo-surface); }
.aic-step-number { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 6px; border-radius: 12px; color: var(--seo-blue); background: var(--seo-soft); font-weight: 850; }
.aic-pipeline p { margin-bottom: 0; color: var(--seo-muted); }
.aic-example { padding: clamp(22px,4vw,36px); margin-top: 36px; border: 1px solid var(--seo-line); border-left: 5px solid #e3449f; background: var(--seo-soft); border-radius: 18px; }
.aic-page summary { cursor: pointer; min-height: 48px; padding: 12px 0; font-size: 14pt; font-weight: 700; line-height: 1.5; color: var(--seo-reading-ink); }
.aic-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 16px 0; }
.aic-checks > div { min-width: 0; padding: 18px; background: var(--seo-surface); border-radius: 12px; }
.aic-checks dt { font-weight: 800; color: var(--seo-blue); }
.aic-checks dd { margin: 6px 0 0; }
.aic-definitions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 36px; }
.aic-card { padding: 28px; border: 1px solid var(--seo-line); border-radius: 18px; background: var(--seo-surface); }
.aic-card h2 { font-size: 1.4rem; }
.aic-card p:last-child { margin: 0; }
.aic-faq details { border-bottom: 1px solid var(--seo-line); padding: 10px 0; }
.aic-faq details > p { max-width: 56rem; padding-right: 12px; color: var(--seo-reading-ink); font-size: 14pt; font-weight: 400; line-height: 1.6; }
.aic-limits { margin-top: 36px; padding: 24px; border: 1px solid var(--seo-line); border-radius: 14px; }
.aic-limits h2 { font-size: 1.15rem; }
.aic-limits p { margin: 0; color: var(--seo-muted); }
.aic-cta { text-align: left; margin-top: 32px; padding: clamp(24px,4vw,42px); border-radius: 22px; background: #0b2b56; }
.aic-cta h2, .aic-cta p { color: #fff; }
.aic-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.aic-cta .aic-button { background: #ffe054; color: #15253d; }
.aic-cta .aic-secondary { border: 1px solid #8facd0; background: transparent; color: #fff; }
.aic-sources { font-size: .92rem; }
.aic-sources ul { padding-left: 20px; }
.aic-sources li { margin-bottom: 18px; }
.aic-sources a, .aic-related a { color: var(--seo-blue); }
.aic-sources li p { color: var(--seo-muted); margin: 6px 0 0; }
.aic-related { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.aic-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 800px) {
  .aic-hero { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .aic-pipeline, .aic-definitions { grid-template-columns: minmax(0,1fr); }
  .aic-table, .aic-table tbody, .aic-table tbody tr, .aic-table tbody th, .aic-table tbody td { display: block; width: 100%; }
  .aic-table { border: 0; border-radius: 0; background: transparent; }
  .aic-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .aic-table tbody tr { border: 1px solid var(--seo-line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: var(--seo-surface); }
  .aic-table tbody th { padding: 14px 18px; background: var(--seo-surface); font-size: 1.05rem; }
  .aic-table tbody td { padding: 18px; border: 0; }
  .aic-table tbody td.aic-product { border-left: 4px solid var(--aic-yellow); }
  .aic-table tbody td.aic-ai { border-left: 4px solid #12365c; border-top: 1px solid var(--seo-line); }
  .aic-mobile-label { display: table; max-width: 100%; padding: 5px 10px; border-radius: 6px; font-size: .9rem; font-weight: 850; margin-bottom: 10px; line-height: 1.4; }
  .aic-product .aic-mobile-label { background: var(--aic-yellow); color: #10213d; }
  .aic-ai .aic-mobile-label { background: #12365c; color: #fff; }
  .aic-section { scroll-margin-top: 265px; }
}
@media (max-width: 480px) {
  .aic-page { width: calc(100% - 24px); }
  .aic-hero { padding: 22px 18px; }
  .aic-question, .aic-card { padding: 20px; }
  .aic-checks { grid-template-columns: minmax(0,1fr); }
  .aic-actions > a { width: 100%; }
}

.aic-page h4 { color: var(--seo-ink); font-size: 1.15rem; margin: 0 0 12px; line-height: 1.4; }
.aic-decision > h3 { margin: 28px 0 16px; }
.aic-decision-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.aic-decision .aic-choice-product { border: 2px solid var(--seo-blue); background: var(--seo-soft); }
@media (max-width: 800px) { .aic-decision-grid { grid-template-columns: minmax(0,1fr); } }

/* Qualitative integration markers: text carries the meaning as well as colour. */
.aic-score-legend { margin: 0 0 20px; padding: 16px 20px; border: 1px solid var(--seo-line); border-radius: 12px; background: var(--seo-soft); }
.aic-score-legend > strong { display: block; margin-bottom: 4px; }
.aic-page .aic-score-legend p { margin: 0; font-size: .94rem; color: var(--seo-ink); }
.aic-score { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin-bottom: 12px; padding: 5px 10px; border: 1px solid; border-radius: 7px; font-size: .86rem; font-weight: 750; line-height: 1.4; }
.aic-score > span { flex: 0 0 auto; font-size: 1.1rem; font-weight: 900; }
.aic-score-integrated { background: #d9f5e6; color: #12633c; border-color: #8bceab; }
.aic-score-manual { background: #ffe4e4; color: #96272c; border-color: #e8a8ab; }

/* The final row estimates a scoped workflow, not a measured average. */
.aic-table .aic-timing-row > * { border-top: 3px solid var(--seo-blue); vertical-align: middle; }
.aic-timing-kind { display: block; margin-top: 6px; font-size: .85rem; font-weight: 500; color: var(--seo-muted); }
.aic-timing-value { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.3; }
.aic-timing-context { display: block; margin-top: 8px; font-size: .9rem; }
.aic-timing-check, .aic-timing-cross { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 6px; }
.aic-timing-check { background: #d9f5e6; color: #12633c; }
.aic-timing-cross { background: #ffe4e4; color: #96272c; }
@media (max-width: 800px) {
  .aic-table .aic-timing-row > td { border-top: 0; }
  .aic-table .aic-timing-row > td.aic-ai { border-top: 1px solid var(--seo-line); }
}
