/* Updated content, retaining the original year axis, vertical grid and arrow bands. */
.page-home #flow .flow-scroll{width:100%}
.page-home #flow .flow-timeline{--year-step:128px;--year-tick:0px;--flow-label:100px;--flow-end:12px;width:calc(var(--flow-label) + var(--year-step)*6 + var(--flow-end))}
.page-home #flow .year-axis{--axis-end:0px;width:calc(var(--flow-label) + var(--year-step)*6);padding-left:var(--flow-label)}
.page-home #flow .year-axis span{left:0;width:60px;transform:translateX(-50%)}
.page-home #flow .year-axis span::after{left:50%}
.page-home #flow .year-axis::before{left:calc(var(--flow-label) + var(--year-tick))}
.page-home #flow .flow-schedule-body{padding:18px var(--flow-end) 18px 0;background-color:var(--blue);background-image:linear-gradient(90deg,#ffffff22 0 1px,transparent 1px);background-size:var(--year-step) 100%;background-position:calc(var(--flow-label) + var(--year-tick)) 0;background-repeat:repeat-x;border-radius:4px}
.page-home #flow .flow-schedule{width:calc(var(--flow-label) + var(--year-step)*6);table-layout:fixed;border-collapse:separate;border-spacing:0 6px;font-size:16px;line-height:1.5}
.page-home #flow .flow-category-column{width:var(--flow-label)}
.page-home #flow .flow-schedule thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.page-home #flow .flow-schedule th,.page-home #flow .flow-schedule td{border:0}
.page-home #flow .flow-schedule tbody th{padding:0 0 0 18px;color:#fff;font-size:16px;font-weight:500;text-align:left;vertical-align:middle}
.page-home #flow .flow-schedule tbody td{padding:0;height:48px;vertical-align:middle}
.page-home #flow .flow-schedule-block{position:relative;left:var(--year-tick);width:100%;display:flex;align-items:center;justify-content:center;height:48px;padding:6px 14px;background:#008fe9;color:#fff;font-size:16px;font-weight:600;letter-spacing:.04em;line-height:1.4;text-align:center;overflow-wrap:break-word;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%,12px 50%)}
.page-home #flow .flow-exams .flow-schedule-block{background:var(--ink);font-size:13px;letter-spacing:.02em}
.page-home #flow .flow-events .flow-schedule-block{background:#00bfd1;font-size:15px;letter-spacing:.04em}
.page-home #flow .flow-timing-note{margin-top:14px;padding-left:1em;text-indent:-1em;font-size:13px;line-height:1.8;color:#60738c}
.page-home #flow .flow-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){
 .page-home #flow .flow-timeline{--year-step:102px;--flow-label:80px;--flow-end:12px}
 .page-home #flow .flow-schedule-body{padding-block:8px}
 .page-home #flow .flow-schedule{border-spacing:0 4px}
 .page-home #flow .flow-schedule tbody td,.page-home #flow .flow-schedule-block{height:38px}
 .page-home #flow .flow-schedule tbody th{padding-left:8px;font-size:14px}
 .page-home #flow .flow-schedule-block{font-size:14px;padding:3px 8px;letter-spacing:.02em}
 .page-home #flow .flow-exams .flow-schedule-block{font-size:11.5px;letter-spacing:0}
 .page-home #flow .flow-events .flow-schedule-block{font-size:13.5px;letter-spacing:0}
 .page-home #flow .flow-timing-note{font-size:12px;margin-top:12px}
}



.page-home #flow .flow-learning tr:first-child td:first-of-type .flow-schedule-block{left:var(--year-tick);width:100%;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%)}

/* Hospital visits run from the fifth year to around the middle of the sixth year. */
.page-home #flow .flow-events .flow-hospital-visit{width:78%}

.page-home #flow .flow-events .flow-information{font-size:13px}
@media(max-width:800px){.page-home #flow .flow-events .flow-information{font-size:12.5px}}

.page-home #flow .flow-swipe-hint{display:none}
@media(max-width:800px){
 .page-home #flow .flow-swipe-hint{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;margin:0 0 24px;padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--ink);font-size:14px;line-height:1.4}
 .page-home #flow .flow-swipe-hint img{flex:0 0 auto;display:block}
}

/* Keep the solid backdrop within the same container as adjacent sections. */
@media(min-width:801px){
 .page-home #flow.flow.container{width:min(1120px,calc(100% - 64px));padding-inline:0}
 .page-home #flow .section-heading{width:100%}
 .page-home #flow .flow-timeline{min-width:100%}
 @supports(width:1cqw){
  .page-home #flow .flow-timeline{container-type:inline-size;width:100%;--flow-end:72px;--year-step:max(102px,calc((100cqw - var(--flow-label) - var(--flow-end))/6))}
 }
 .page-home #flow .flow-schedule-body{position:relative}
 .page-home #flow .flow-schedule-body::after{content:'';position:absolute;top:0;bottom:0;left:calc(var(--flow-label) + var(--year-step)*6);right:0;background:var(--blue);border-left:1px solid #ffffff22;border-radius:0 4px 4px 0;pointer-events:none}
}

/* The graduation endpoint keeps the axis arrow without a downward tick. */
.page-home #flow .year-axis span:last-child::after{display:none}

/* Mobile overview opens the existing HTML timeline at a readable size. */
.page-home #flow .flow-preview{display:none}
.page-home #flow .flow-detail-dialog{width:calc(100% - 24px);max-width:740px;max-height:calc(100dvh - 32px);padding:24px 16px 20px;border:1px solid var(--border);border-radius:8px;color:var(--ink);background:#fff;overflow:auto;overscroll-behavior:contain}
.page-home #flow .flow-detail-dialog::backdrop{background:#00194699}
.page-home #flow .flow-detail-close{position:absolute;top:8px;right:8px;width:36px;height:36px;font-size:28px;line-height:1}
.page-home #flow .flow-detail-dialog h3{padding-right:32px;color:var(--blue);font-size:20px;line-height:1.5}
.page-home #flow .flow-detail-hint{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;margin:16px 0 24px;padding:10px 12px;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--ink);font-size:14px;line-height:1.4}
.page-home #flow .flow-detail-hint img{display:block;flex:0 0 auto}
.page-home #flow .flow-detail-content .flow-scroll{display:block;overflow-x:auto;padding-right:20px;overscroll-behavior-x:contain}
@media(max-width:800px){
 .page-home #flow.flow-has-preview>.flow-scroll,.page-home #flow.flow-has-preview>.flow-swipe-hint{display:none}
 .page-home #flow.flow-has-preview>.flow-preview{display:block;width:100%;padding:0;background:#fff;border:1px solid var(--border);border-radius:6px;overflow:hidden}
 .page-home #flow .flow-preview img{width:calc(100% - 16px);height:auto;margin:8px}
 .page-home #flow .flow-preview>span{display:block;padding:10px 12px;color:var(--blue);font-size:13px;text-align:center;border-top:1px solid var(--border)}
}

@media(max-width:800px){.page-home #flow.flow-has-preview>.flow-preview{width:calc(100% - 20px)}}
