.practice-banner { padding: 12px 20px; background: #fff3cd; color: #493900; text-align: center; font: bold 14px/1.6 sans-serif; border-bottom: 2px solid #d69e00; }

.practice-article { overflow-wrap: anywhere; }
.practice-article article { line-height: 1.95; }
.practice-article article h2 { margin-top: 3rem; }
.practice-article article h3 { margin-top: 2rem; }
.practice-article article h4 { margin-top: 1.5rem; }
.practice-toc, .practice-review { padding: 1.5rem; background: #f3f6fa; border-radius: 12px; margin-bottom: 2rem; }
.practice-review { background: #fff3cd; }
.practice-toc li { margin: .5rem 0; }
.practice-article h2, .practice-article h3, .practice-article h4 { scroll-margin-top: 100px; }

.practice-article-visual { margin: 0 0 2rem; }
.practice-article-visual img { display: block; width: 100%; height: auto; border-radius: 12px; }
.practice-article-visual figcaption { margin-top: .5rem; color: #526479; font-size: .85rem; text-align: center; }

.practice-operation-video { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; border-radius: 12px; background: #111; }
.okurijo-page .practice-article-visual { margin: 1.75rem 0 2.25rem; }
.okurijo-page .practice-article > .practice-article-visual { margin-top: 0; }
.okurijo-page .practice-toc { margin-top: 2rem; border: 1px solid #dde6ef; }
.okurijo-page .practice-toc h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.okurijo-page .practice-toc a { color: #173e70; text-decoration: underline; text-underline-offset: .2em; }
.okurijo-page .practice-review { font-size: .875rem; line-height: 1.8; }
.automation-comparison { max-width: 100%; margin-top: 2rem; overflow-x: auto; border: 1px solid #d7e2ee; border-radius: 12px; }
.automation-comparison:focus-visible { outline: 3px solid #267bbb; outline-offset: 4px; }
.automation-comparison table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .9rem; line-height: 1.7; }
.automation-comparison caption { padding: 1rem; background: #edf4fa; color: #173e70; font-weight: 700; text-align: left; }
.automation-comparison th, .automation-comparison td { padding: 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid #d7e2ee; }
.automation-comparison thead { background: #173e70; color: #fff; }
.automation-comparison tbody th { width: 19%; color: #173e70; white-space: nowrap; }
.automation-comparison tbody tr:nth-child(even) { background: #f5f8fc; }
.automation-comparison tr:last-child > * { border-bottom: 0; }
.level-number { display: block; font-size: 1.5rem; font-weight: 700; }
.okurijo-page .comparison-note { margin: .75rem 0 2rem; font-size: .8rem; color: #526479; }
.selection-checklist, .implementation-steps { list-style: none; padding: 0; margin: 2rem 0; }
.selection-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.selection-checklist li { position: relative; padding: 1.5rem 1.5rem 1.5rem 3.25rem; background: #f3f7fb; border: 1px solid #dce6ef; border-radius: 12px; }
.selection-checklist li::before { content: '✓'; position: absolute; left: 1.2rem; top: 1.4rem; color: #18746b; font-weight: 700; font-size: 1.25rem; }
.okurijo-page .selection-checklist h3 { margin: 0 0 .75rem; font-size: 1.05rem; line-height: 1.7; }
.okurijo-page .selection-checklist p { margin: 0; font-size: .9rem; }
.implementation-steps { display: grid; gap: 1rem; }
.implementation-steps li { padding: 1.5rem 1.75rem; border: 1px solid #dce6ef; border-left: 4px solid #267bbb; border-radius: 0 12px 12px 0; background: #f8fafc; }
.step-label { display: block; color: #267bbb; font-size: .8rem; font-weight: 700; letter-spacing: .12em; }
.okurijo-page .implementation-steps h3 { margin: .5rem 0 .75rem; font-size: 1.15rem; line-height: 1.6; }
.okurijo-page .implementation-steps p { margin: 0; }
@media (max-width: 640px) {
  .selection-checklist { grid-template-columns: 1fr; }
  .selection-checklist li { padding: 1.25rem 1.25rem 1.25rem 2.75rem; }
  .selection-checklist li::before { left: 1rem; top: 1.1rem; }
  .implementation-steps li { padding: 1.25rem; }
  .okurijo-page .practice-article-visual { margin: 1.25rem 0 1.75rem; }
  .okurijo-page .practice-toc { padding: 1.25rem; }
  .okurijo-page .practice-toc ol { padding-left: 1.4rem; }
}

/* Editorial styling for the automation guide. */
.okurijo-page { background: #fff; color: #25384b; }
.article-category { color: #536b7a; font-size: .9rem; font-weight: 700; margin-bottom: 12px; }
.hero-description { line-height: 1.9; color: #526879; font-size: 1.05rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 28px; font-size: .75rem; color: #536b7a; }
.article-meta span + span { border-left: 1px solid #bdcfd7; padding-left: 16px; }
.okurijo-page main > .section { padding-top: 40px; }
.okurijo-page .practice-article > .practice-article-visual { margin-bottom: 40px; }
.okurijo-page .practice-article-visual img { border-radius: 16px; }
.okurijo-page .practice-article article { font-size: 1rem; line-height: 2.05; }
.okurijo-page .practice-article article > p { margin-bottom: 1.5rem; }
.article-takeaways { margin: 32px 0; padding: 26px 30px; background: #edf6f3; border-left: 3px solid #237f78; border-radius: 0 12px 12px 0; }
.takeaways-label { color: #21675f; font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.article-takeaways ul { margin: 0; padding-left: 1.3rem; }
.article-takeaways li { padding: 3px 0; }
.article-takeaways li::marker { color: #237f78; }
.okurijo-page .practice-toc { background: #fff; padding: 28px 30px; border: 1px solid #dce5eb; border-radius: 16px; }
.okurijo-page .practice-toc h2 { font-size: .85rem; letter-spacing: .12em; color: #637987; }
.okurijo-page .practice-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; padding-left: 1.5rem; }
.okurijo-page .practice-toc li { padding: 8px 0; font-size: .9rem; line-height: 1.7; }
.okurijo-page .practice-toc li::marker { color: #237f78; font-weight: 700; }
.okurijo-page .practice-toc a { text-decoration: none; }
.okurijo-page .practice-toc a:hover { text-decoration: underline; }
.okurijo-page .practice-review { background: #faf7ef; color: #766647; padding: 16px 20px; border-radius: 8px; font-size: .75rem; }
.okurijo-page .practice-article article > .chapter-heading { display: flex; align-items: flex-start; gap: 20px; margin: 72px 0 28px; padding-top: 28px; border-top: 1px solid #dce5eb; font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.6; letter-spacing: -.02em; color: #173b50; }
.chapter-number { flex-shrink: 0; color: #237f78; font-size: .85rem; letter-spacing: .08em; padding-top: .55rem; }
.okurijo-page .practice-article article > h3 { font-size: 1.2rem; padding-left: 14px; border-left: 3px solid #71aaa3; }
.okurijo-page .practice-article article > h4 { color: #32586c; font-size: 1.02rem; }
.automation-comparison { border-radius: 12px; }
.automation-comparison thead { background: #204d60; }
.automation-comparison caption { background: #eef5f5; padding: 20px; }
.automation-comparison tbody tr:nth-child(3) { background: #eaf5f1; }
.level-number { color: #237f78; }
.selection-checklist li { background: #fff; border-color: #dce5eb; border-radius: 14px; padding-top: 26px; padding-bottom: 26px; }
.selection-checklist li:last-child { grid-column: 1 / -1; }
.selection-checklist li::before { background: #e8f4ee; color: #237f78; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; font-size: .9rem; }
.implementation-steps { gap: 0; }
.implementation-steps li { position: relative; border: 0; border-left: 2px solid #cee1dc; border-radius: 0; background: transparent; padding: 0 0 28px 30px; margin-left: 10px; }
.implementation-steps li::before { content: ''; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; background: #237f78; border: 3px solid #fff; box-sizing: content-box; border-radius: 50%; }
.implementation-steps li:last-child { border-color: transparent; padding-bottom: 0; }
.step-label { color: #237f78; }
.article-faq { padding: 26px 28px; margin: 16px 0; border: 1px solid #dce5eb; border-radius: 12px; }
.okurijo-page .article-faq h3 { margin: 0 0 14px; display: flex; gap: 14px; font-size: 1.05rem; line-height: 1.7; }
.article-faq h3 span { color: #237f78; font-weight: 700; }
.okurijo-page .article-faq p { margin: 0; font-size: .95rem; }
.okurijo-page a:focus-visible { outline: 3px solid #237f78; outline-offset: 4px; }
@media (max-width: 640px) {
  .hero-description { font-size: .95rem; }
  .desktop-break { display: none; }
  .article-meta { gap: 8px 12px; line-height: 1.7; }
  .okurijo-page main > .section { padding-top: 24px; }
  .okurijo-page .practice-article article { font-size: .95rem; }
  .article-takeaways, .okurijo-page .practice-toc { padding: 22px 20px; }
  .okurijo-page .practice-toc ol { grid-template-columns: 1fr; }
  .okurijo-page .practice-article article > .chapter-heading { gap: 12px; margin-top: 52px; }
  .selection-checklist li:last-child { grid-column: auto; }
  .article-faq { padding: 20px; }
}
.okurijo-page .source-reference { display: inline-block; margin-left: .4em; color: #21675f; text-decoration: underline; text-underline-offset: .2em; }
.measurement-example { padding: 24px 28px; margin: 32px 0; border: 1px solid #cee1dc; border-radius: 12px; background: #f1f7f5; }
.okurijo-page .measurement-example h3 { margin: 0 0 14px; font-size: 1.1rem; }
.okurijo-page .measurement-example p:last-child { margin-bottom: 0; }
.article-related, .article-sources { margin-top: 48px; padding-top: 28px; border-top: 1px solid #dce5eb; }
.okurijo-page .article-related h2, .okurijo-page .article-sources h2 { margin-top: 0; font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related-grid a { display: grid; gap: 12px; padding: 24px; border: 1px solid #dce5eb; border-radius: 12px; }
.related-grid a:hover { background: #edf6f3; border-color: #71aaa3; }
.related-grid span { font-size: .8rem; color: #526879; }
.related-grid strong { font-size: 1.05rem; color: #173b50; line-height: 1.7; }
.article-sources { font-size: .85rem; color: #526879; }
.article-sources a { text-decoration: underline; text-underline-offset: .2em; }
.article-sources li { margin: .65rem 0; }
#article-sources, #measurement-heading { scroll-margin-top: 100px; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } .measurement-example { padding: 20px; } }

/* Help readers choose a starting point before the longer guide. */
.automation-quick-guide { margin: 0 0 32px; padding: 28px; border: 1px solid #cee1dc; border-radius: 16px; background: #f1f7f5; }
.quick-guide-label { margin: 0 0 8px; color: #21675f; font-size: .85rem; font-weight: 700; }
.okurijo-page .automation-quick-guide h2 { margin: 0 0 12px; color: #173b50; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.6; }
.automation-quick-guide > p { line-height: 1.8; }
.quick-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.quick-guide-grid a { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid #cdded8; border-radius: 12px; background: #fff; color: #25384b; text-decoration: none; line-height: 1.8; }
.quick-guide-grid a:hover { border-color: #237f78; background: #f8fcfa; }
.quick-guide-tag { color: #526879; font-size: .8rem; }
.quick-guide-grid strong { color: #173b50; font-size: 1.1rem; }
.quick-guide-grid a > span { font-size: .9rem; }
.quick-guide-grid .quick-guide-link { margin-top: auto; color: #21675f; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.automation-quick-guide .quick-guide-note { margin-bottom: 0; color: #526479; font-size: .85rem; }
.method-summary { margin: 20px 0 28px; padding: 8px 22px; border-radius: 12px; background: #f1f7f5; }
.method-summary > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 14px 0; }
.method-summary > div + div { border-top: 1px solid #d7e5df; }
.method-summary dt { font-weight: 700; color: #21675f; }
.method-summary dd { margin: 0; }
@media (max-width: 640px) {
  .automation-quick-guide { padding: 20px; margin-bottom: 24px; }
  .quick-guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-guide-grid a { padding: 18px; gap: 8px; }
  .method-summary { padding: 4px 18px; }
  .method-summary > div { grid-template-columns: 1fr; gap: 4px; }
  .automation-comparison { border: 0; border-radius: 0; overflow: visible; }
  .automation-comparison table { display: block; min-width: 0; font-size: .95rem; }
  .automation-comparison caption { display: block; padding: 16px 0; background: transparent; }
  .automation-comparison thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .automation-comparison tbody { display: grid; gap: 16px; }
  .automation-comparison tbody tr { display: block; border: 1px solid #d7e2ee; border-radius: 12px; overflow: hidden; background: #fff; }
  .automation-comparison tbody th { display: flex; align-items: center; gap: 12px; width: auto; padding: 14px 18px; background: #eef5f5; }
  .automation-comparison .level-number { font-size: 1.2rem; }
  .automation-comparison td { display: block; margin: 0 18px; padding: 14px 0; }
  .automation-comparison td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #526479; font-size: .8rem; font-weight: 700; }
  .automation-comparison tbody tr:last-child > th { border-bottom: 1px solid #d7e2ee; }
  .automation-comparison tbody tr:last-child > td:not(:last-child) { border-bottom: 1px solid #d7e2ee; }
  .automation-comparison tbody td:last-child { border-bottom: 0; }
}

.article-image-note { color: #526479; font-size: .8rem; line-height: 1.8; margin: 24px 0; }
