/* Process automation: the existing AxDx palette with readable, native routes. */
.automation-page { min-width: 0; }
.automation-page h2 { max-width: 940px; }
.automation-page h3 { font-size: 1.4rem; line-height: 1.3; }
.automation-copy { color: var(--muted); }
.automation-copy > p + p { margin-top: 16px; }
.automation-page .automation-hero { padding-top: 32px; padding-bottom: 64px; }
.automation-page .automation-hero h1 { max-width: 1050px; font-size: clamp(2.25rem, 4.4vw, 3.6rem); line-height: 1.15; margin-bottom: 24px; }
.automation-subtitle { color: var(--blue); font-size: 1.4rem; line-height: 1.45; font-weight: 600; margin-bottom: 18px; max-width: 920px; }
.automation-hero .automation-copy { max-width: 880px; }
.automation-hero .hero-actions { margin-top: 30px; gap: 14px; }
.automation-hero .hero-actions .button { margin-top: 0; }
.automation-intro { max-width: 850px; margin-top: 20px; }
.automation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; align-items: start; }
.automation-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.automation-card { min-width: 0; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.automation-card h3 { margin-bottom: 14px; }
.automation-card .automation-copy { font-size: 1rem; line-height: 1.75; }
.automation-details { margin-top: 24px; border-top: 1px solid var(--line); }
.automation-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; min-height: 48px; color: var(--blue); font-size: 1rem; font-weight: 600; }
.automation-page summary { cursor: pointer; list-style: none; }
.automation-page summary::-webkit-details-marker { display: none; }
.automation-page summary::marker { content: ''; }
.automation-page summary .icon { flex: 0 0 20px; width: 20px; height: 20px; }
.automation-page details[open] > summary .icon { transform: rotate(45deg); }
.automation-detail-copy { margin-top: 20px; font-size: 1rem; line-height: 1.7; }
.automation-detail-copy > * + * { margin-top: 18px; }
.automation-page .text-list { list-style: none; padding: 0; margin: 0; }
.automation-page .text-list li { position: relative; padding-left: 18px; margin: 0; }
.automation-page .text-list li::before { content: ''; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; }
.automation-page .text-list li + li { margin-top: 10px; }
.automation-detail-copy > .text-list:not(:first-child), .automation-problems > .text-list, .automation-approach-work > .text-list { margin-top: 18px; }
.automation-section-action { margin-top: 30px; }
.automation-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.automation-tinted { background: #eef3fa; }
.automation-note { max-width: 900px; padding-left: 20px; border-left: 3px solid var(--blue); margin-top: 28px; }
.automation-problems, .automation-analysis-work, .automation-approach-work { font-size: 1rem; line-height: 1.75; }
.automation-route-section, .automation-integration-section { background: var(--white); border-bottom: 1px solid var(--line); }
.workflow-example { margin-top: 34px; }
.workflow-route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; align-items: start; }
.workflow-route > li { position: relative; min-width: 0; }
.workflow-stage { background: #f3f7ff; border: 1px solid #cad9f4; border-radius: 10px; }
.workflow-stage summary { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 14px; gap: 12px; }
.workflow-number { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #a6bee9; border-radius: 50%; color: var(--blue); font-size: .875rem; font-weight: 600; }
.workflow-title { font-size: 1rem; line-height: 1.35; font-weight: 600; min-height: 2.7em; }
.workflow-participant { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.workflow-toggle { display: flex; justify-content: space-between; gap: 10px; align-items: center; width: 100%; color: var(--blue); font-size: .875rem; font-weight: 600; padding-top: 12px; border-top: 1px solid #cad9f4; }
.workflow-result { margin: 0 14px; padding: 0 0 18px; font-size: .875rem; line-height: 1.65; }
.workflow-arrow { display: flex; position: absolute; top: 23px; right: -23px; width: 22px; color: var(--blue); }
.workflow-arrow .icon { width: 22px; height: 22px; }
.workflow-example figcaption { margin-top: 20px; color: var(--muted); font-size: .9375rem; max-width: 820px; }
.automation-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 30px; margin: 34px 0 0; }
.automation-rules > div { padding-top: 20px; border-top: 1px solid var(--line); min-width: 0; }
.automation-rules dt { font-size: 1.125rem; font-weight: 600; margin-bottom: 9px; }
.automation-rules dd { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 0; }
.automation-rules > div:last-child { grid-column: 1 / -1; padding: 22px 26px; border: 1px solid #cad9f4; border-radius: 10px; background: #f3f7ff; }
.automation-systems { margin-top: 32px; }
.automation-systems .text-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.automation-systems .text-list li { padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.automation-systems .text-list li::before { content: none; }
.automation-systems .text-list li + li { margin-top: 0; }
.automation-examples > details { border-top: 1px solid var(--line); }
.automation-examples > details:last-child { border-bottom: 1px solid var(--line); }
.automation-examples summary { padding: 23px 0; }
.automation-examples summary h3 { display: flex; justify-content: space-between; align-items: center; gap: 22px; font-size: 1.25rem; }
.automation-examples summary:hover { color: var(--blue); }
.automation-example-route { padding: 0 0 28px 26px; margin: 0; font-size: 1rem; line-height: 1.7; }
.automation-example-route li { padding-left: 9px; margin-bottom: 15px; }
.automation-example-route li:last-child { margin-bottom: 0; }
.automation-example-route li::marker { color: var(--blue); font-weight: 600; }
.automation-analysis-result { display: flex; justify-content: space-between; align-items: center; gap: 36px; border-top: 1px solid #cdd9e9; padding-top: 28px; margin-top: 32px; }
.automation-analysis-result .automation-copy { max-width: 830px; }
.automation-analysis-result .button { flex-shrink: 0; }
.automation-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 26px; list-style: none; padding: 0; margin: 36px 0 0; }
.automation-steps li { padding-top: 20px; border-top: 1px solid #cbd6e5; min-width: 0; }
.automation-step-number { display: block; color: var(--blue); font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.automation-steps h3 { font-size: 1.2rem; margin-bottom: 14px; }
.automation-steps p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.automation-page .cta-detail p + p { margin-top: 16px; }
.automation-page .cta-detail .button { margin-top: 24px; }
.automation-page :is(.button, summary) { max-width: 100%; overflow-wrap: anywhere; }
.automation-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: 1100px) {
  .workflow-route { grid-template-columns: 1fr; gap: 24px; }
  .workflow-stage summary { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(100px, .6fr) 115px; align-items: center; gap: 16px; padding: 18px 22px; }
  .workflow-title { min-height: 0; }
  .workflow-toggle { border: 0; padding: 0; }
  .workflow-result { margin: 0 22px 0 74px; font-size: 1rem; }
  .workflow-arrow { top: auto; right: auto; bottom: -23px; left: 27px; transform: rotate(90deg); }
}
@media (max-width: 1000px) {
  .automation-split { grid-template-columns: 1fr; gap: 28px; }
  .automation-grid-three, .automation-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automation-card { padding: 25px; }
  .automation-analysis-result { flex-wrap: wrap; gap: 24px; }
  .automation-analysis-result .automation-copy { max-width: 100%; }
}
@media (max-width: 760px) {
  .automation-page .automation-hero { padding-top: 20px; padding-bottom: 42px; }
  .automation-page .automation-hero h1 { font-size: clamp(2rem, 6.5vw, 2.65rem); margin-bottom: 22px; }
  .automation-subtitle { font-size: 1.2rem; }
  .automation-hero .automation-copy { font-size: 1rem; line-height: 1.75; }
  .automation-grid, .automation-grid-three { grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
  .automation-card { padding: 24px; }
  .automation-rules, .automation-systems .text-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .automation-systems .text-list { gap: 0 24px; }
  .workflow-stage summary { grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 8px 14px; padding: 18px; }
  .workflow-number { grid-row: 1 / 3; align-self: start; }
  .workflow-title { grid-column: 2; }
  .workflow-participant { grid-column: 2; grid-row: 2; }
  .workflow-toggle { grid-column: 2 / 4; padding-top: 6px; max-width: 130px; }
  .workflow-result { margin: 0 18px 0 64px; }
  .workflow-arrow { left: 22px; }
  .automation-examples summary h3 { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .automation-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .automation-rules, .automation-systems .text-list, .automation-steps { grid-template-columns: 1fr; }
  .automation-rules > div:last-child { padding: 20px; }
  .automation-steps { gap: 24px; }
  .automation-step-number { margin-bottom: 12px; }
}
@media print {
  .automation-grid, .automation-split, .automation-steps, .workflow-route { display: block; }
  .automation-page article, .workflow-route > li, .automation-steps > li { break-inside: avoid; margin-bottom: 24px; }
  .automation-tinted, .workflow-stage, .automation-rules > div:last-child { background: #fff; }
  .workflow-arrow { display: none; }
  .automation-page details::details-content { content-visibility: visible; }
}
