/* SOP workflow and homepage introduction. Shared only by index.php and sop.php. */
.sop-flow-section { background: linear-gradient(180deg,#f5f8ff,#fff); }
.sop-flow-board { margin-top: 38px; border: 1px solid #dfe6f1; border-radius: 24px; padding: 28px; background: #fff; box-shadow: 0 16px 48px rgba(11,23,57,.06); }
.sop-flow-lanes { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; margin: 0; padding: 0; }
.sop-flow-lane { --flow-color:#1768ff; --flow-tint:#edf4ff; position: relative; min-width: 0; }
.sop-flow-lane-staff { --flow-color:#a64e13; --flow-tint:#fff3e9; }
.sop-flow-lane-record { --flow-color:#087850; --flow-tint:#ebf8f1; }
.sop-flow-lane:not(:last-child)::after { content: '→'; position: absolute; top: 7px; right: -29px; color: #8292af; font-size: 25px; }
.sop-flow-role { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; color: #0b1739; font-weight: 750; }
.sop-flow-role > i { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; background: var(--flow-tint); color: var(--flow-color); font-size: 22px; }
.sop-flow-role small { display: block; font-size: 12px; font-weight: 500; color: #586781; margin-top: 2px; }
.sop-flow-node { display: flex; gap: 12px; min-height: 164px; padding: 20px 16px; border: 1px solid #dfe6f1; border-top: 3px solid var(--flow-color); border-radius: 14px; background: var(--flow-tint); }
.sop-flow-number { color: var(--flow-color); font-size: 12px; font-weight: 800; line-height: 25px; }
.sop-flow-node h3 { font-size: 17px; line-height: 1.4; font-weight: 750; color: #0b1739; margin: 0 0 8px; }
.sop-flow-node p { font-size: 14px; line-height: 1.6; color: #53627c; margin: 0; }
.sop-flow-down { display: block; text-align: center; color: var(--flow-color); font-size: 23px; line-height: 36px; }
.sop-flow-evidence { display: flex; align-items: center; gap: 16px; border-top: 1px solid #dfe6f1; margin-top: 26px; padding-top: 22px; }
.sop-flow-evidence > i { color: #087850; font-size: 28px; }
.sop-flow-evidence p { flex: 1; font-size: 13px; color: #53627c; margin: 0; }
.sop-flow-evidence strong { display: block; color: #0b1739; margin-bottom: 4px; font-size: 14px; }
.sop-flow-evidence a { font-size: 13px; font-weight: 750; white-space: nowrap; text-decoration: none; }
.sop-version-map { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 34px; align-items: center; margin-top: 24px; border: 1px solid #dfe6f1; border-radius: 20px; background: #f8faff; padding: 26px; }
.sop-version-question { position: relative; }
.sop-version-question > i { color: #1768ff; font-size: 22px; }
.sop-version-question::after { content: '→'; position: absolute; right: -25px; top: 40%; font-size: 23px; color: #8292af; }
.sop-version-question h3 { color: #0b1739; font-size: 18px; font-weight: 750; margin: 6px 0; }
.sop-version-question p, .sop-version-history p { font-size: 13px; line-height: 1.6; color: #53627c; margin: 0; }
.sop-version-branches { position: relative; display: grid; gap: 10px; }
.sop-version-branches::after { content: '→'; position: absolute; right: -26px; top: 38%; font-size: 23px; color: #8292af; }
.sop-version-branch { padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px solid #dfe6f1; }
.sop-version-branch span { display: flex; flex-wrap: wrap; gap: 5px 12px; justify-content: space-between; font-size: 12px; color: #53627c; }
.sop-version-branch b { color: #1768ff; }
.sop-version-branch strong { display: block; color: #0b1739; font-size: 14px; margin-top: 3px; }
.sop-version-history { display: flex; gap: 10px; align-items: center; }
.sop-version-history > i { color: #1768ff; font-size: 25px; }
.sop-flow-caption { font-size: 14px; color: #53627c; text-align: center; margin: 20px 0 0; }
/* Homepage discovery: a hero link plus a full module feature directly below the proof strip. */
.home-sop-teaser { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 650; margin-top: 22px; }
.home-sop-teaser:hover { color: #bceeff; }
.home-sop-teaser span { font-size: 10px; letter-spacing: .06em; padding: 4px 8px; border-radius: 5px; background: #c7f7e5; color: #07593f; }
.home-sop-spotlight { padding: 64px 0; background: #fff; scroll-margin-top: 100px; }
.home-sop-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: 38px; align-items: center; padding: 40px; border: 1px solid #dce7fb; border-radius: 26px; background: linear-gradient(125deg,#f2f7ff,#fff 68%); }
.home-sop-badge { display: inline-flex; align-items: center; gap: 7px; color: #1256c7; font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.home-sop-copy h2 { color: #0b1739; font-size: clamp(27px,2.7vw,39px); font-weight: 800; line-height: 1.17; letter-spacing: -.035em; margin: 0 0 18px; }
.home-sop-copy h2 span { color: #1768ff; }
.home-sop-copy > p { font-size: 15px; line-height: 1.75; color: #53627c; margin-bottom: 24px; }
.home-sop-mini-flow { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding: 0; margin: 24px 0; }
.home-sop-mini-flow li { position: relative; }
.home-sop-mini-flow li:not(:last-child)::after { content: '→'; position: absolute; top: 8px; right: -14px; color: #8292af; }
.home-sop-mini-flow i { display: grid; place-items: center; width: 36px; height: 36px; background: #e6efff; border: 1px solid #d4e3ff; border-radius: 11px; color: #1768ff; margin-bottom: 9px; }
.home-sop-mini-flow strong { display: block; font-size: 13px; color: #0b1739; }
.home-sop-mini-flow small { display: block; font-size: 11px; line-height: 1.5; color: #53627c; margin-top: 4px; }
.home-sop-flow-link { color: #1256c7; font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.home-sop-copy .home-sop-note { margin: 20px 0 0; font-size: 12px; }
.home-sop-note span { padding: 0 7px; color: #9ba7ba; }
.home-sop-visual { margin: 0; min-width: 0; border: 1px solid #dfe6f1; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(11,23,57,.08); }
.home-sop-screen-label { display: flex; align-items: center; gap: 7px; padding: 14px; border-bottom: 1px solid #dfe6f1; color: #53627c; font-size: 11px; }
.home-sop-screen-label span { width: 7px; height: 7px; border-radius: 50%; background: #0d9f6e; }
.home-sop-visual img { width: 100%; height: auto; display: block; }
.home-sop-visual figcaption { display: flex; gap: 7px; align-items: flex-start; padding: 16px; margin: 0; font-size: 11px; text-align: left; color: #53627c; background: #f8faff; }
.home-sop-visual figcaption i { color: #087850; }
.home-sop-teaser:focus-visible, .home-sop-panel a:focus-visible { outline: 3px solid #1768ff; outline-offset: 5px; }
@media (max-width: 1100px) { .sop-flow-board { padding: 22px; } .sop-flow-lanes { gap: 26px; } .sop-flow-lane:not(:last-child)::after { right: -23px; } .sop-flow-node { padding: 16px 12px; min-height: 195px; } .home-sop-panel { padding: 28px; gap: 24px; } }
@media (max-width: 800px) {
 .sop-flow-lanes { grid-template-columns: 1fr; gap: 46px; }
 .sop-flow-lane:not(:last-child)::after { content: '↓'; top: auto; right: calc(50% - 9px); bottom: -38px; }
 .sop-flow-node { min-height: 0; padding: 20px; }
 .sop-flow-evidence { flex-wrap: wrap; } .sop-flow-evidence p { flex-basis: calc(100% - 50px); } .sop-flow-evidence a { margin-left: 44px; }
 .sop-version-map { grid-template-columns: 1fr; gap: 32px; }
 .sop-version-question::after, .sop-version-branches::after { content: '↓'; top: auto; bottom: -30px; right: calc(50% - 7px); }
 .sop-version-history { justify-content: center; }
 .home-sop-panel { grid-template-columns: 1fr; padding: 28px; gap: 30px; }
 .home-sop-copy h2 { font-size: 34px; } .home-sop-spotlight { padding: 40px 0; }
}
@media (max-width: 440px) {
 .sop-flow-board { padding: 18px; border-radius: 18px; } .sop-flow-node { padding: 16px 12px; }
 .sop-version-map { padding: 22px; } .home-sop-panel { padding: 24px 18px; border-radius: 18px; }
 .home-sop-copy h2 { font-size: 29px; } .home-sop-mini-flow { gap: 16px; }
 .home-sop-mini-flow strong { font-size: 12px; } .home-sop-mini-flow small { font-size: 10px; }
 .home-sop-mini-flow li:not(:last-child)::after { right: -12px; }
}
@media print { .sop-flow-board, .home-sop-visual { box-shadow: none; } .sop-flow-node, .sop-version-map { break-inside: avoid; } }

/* Shared PDF/acknowledgement/signature preview in the homepage SOP spotlight. */
.home-sop-control-link { display: inline-block; margin-top: 14px; color: #1256c7; font-size: 12px; font-weight: 700; text-underline-offset: 4px; }
.home-sop-sample .sop-sample { margin-top: 32px; }
.home-sop-sample-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 28px; margin: 24px 0 0; }
.home-sop-sample-links a { color: #1256c7; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 520px) { .home-sop-sample-links { justify-content: flex-start; } }
