/* Workshop catalogue */
.workshop-catalog { padding: 48px 0 96px; background: #f7faff; color: #243b5d; }
.workshop-catalog [hidden] { display: none !important; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.catalog-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #4a70b2; font: 700 10px var(--font-primary); letter-spacing: .12em; }
.catalog-eyebrow span { width: 25px; height: 1px; background: #aabfdc; }
.catalog-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 14px; }
.catalog-heading h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0; color: #172b4b; font: 700 clamp(28px, 3vw, 39px)/1.15 var(--font-primary); letter-spacing: -.04em; }
.catalog-heading-accent { color: #172b4b; padding: .03em .18em; border-radius: .18em; background: #f0eeeb; }
.catalog-tagline { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid #d7e5fa; border-radius: 999px; background: #eaf2ff; color: #365f9f; font: 700 12px/1.3 var(--font-primary); }
.catalog-tagline i { color: #4c79ca; font-size: 14px; }
.catalog-heading > div > p:last-child { max-width: 650px; margin: 0; color: #687b96; line-height: 1.7; }
.catalog-heading-note { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: #7184a0; font-size: 12px; line-height: 1.5; }
.catalog-heading-note i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e5efff; color: #3769ca; font-size: 19px; }
.catalog-heading-note strong { color: #334e75; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.catalog-card { display: flex; flex-direction: column; min-width: 0; min-height: 250px; padding: 19px; text-align: left; border: 1px solid #dfe8f4; border-radius: 15px; background: #fff; color: #263e61; transition: border-color .2s, box-shadow .2s, transform .2s; }
.catalog-card:hover { border-color: #9bb5e5; transform: translateY(-3px); }
.catalog-card.is-selected { border-color: #5e86dd; background: #f3f7ff; box-shadow: 0 8px 25px #305bb214; }
.catalog-card-top, .catalog-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.catalog-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; background: #e8f0ff; color: #3566ca; font-size: 19px; }
.catalog-number { color: #9aacc2; font: 700 10px var(--font-primary); }
.catalog-card-title { display: block; margin-top: 17px; color: #203858; font: 700 14px/1.4 var(--font-primary); }
.catalog-card-description { display: block; margin: 8px 0 18px; color: #75869d; font-size: 12px; line-height: 1.6; }
.catalog-card-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid #e7edf5; color: #7689a2; font-size: 11px; font-weight: 600; }
.catalog-select-label { color: #3665bf; white-space: nowrap; }
.catalog-plan { overflow: hidden; margin-top: 24px; border: 1px solid #dce6f2; border-radius: 20px; background: white; box-shadow: 0 16px 45px #2b507b0b; }
.plan-header { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 30px 34px; border-bottom: 1px solid #e7edf5; }
.plan-header h3 { margin: 0 0 8px; color: #1c3355; font: 700 clamp(22px, 2.4vw, 29px)/1.25 var(--font-primary); letter-spacing: -.03em; }
.plan-header p:last-child { margin: 0; color: #71839c; font-size: 13px; line-height: 1.6; }
.catalog-details-button, .catalog-dialog-footer button { flex-shrink: 0; border: 0; border-radius: 10px; padding: 13px 17px; background: #285bc8; color: white; font-size: 12px; font-weight: 700; }
.catalog-details-button i { margin-left: 8px; }
.catalog-details-button:hover, .catalog-dialog-footer button:hover { background: #1e49a9; }
.plan-body { padding: 30px 34px 34px; }
.foundation-intro, .git-duration-card { display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid #dfe9f8; border-radius: 14px; background: #f4f8ff; }
.plan-duration-badge, .git-duration-icon { display: grid; place-content: center; flex: 0 0 65px; width: 65px; height: 65px; border-radius: 12px; background: #285bc8; color: white; text-align: center; }
.plan-duration-badge b, .git-duration-icon b { font-size: 24px; line-height: 1; }
.plan-duration-badge small, .git-duration-icon small { margin-top: 5px; font-size: 9px; letter-spacing: .1em; }
.foundation-intro h4, .git-duration-card h5, .duration-heading h4 { margin: 0 0 7px; color: #233e65; font: 700 15px var(--font-primary); }
.foundation-intro p, .git-duration-card p, .duration-heading p, .group-help { margin: 0; color: #73869e; font-size: 12px; line-height: 1.65; }
.duration-heading, .spring-label-row, .spring-agenda-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 27px 0 14px; }
.duration-heading > span, .spring-flex-tag, #spring-agenda-count { color: #5477b7; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 15px 0; }
.day-button { min-height: 65px; border: 1px solid #dce6f3; border-radius: 10px; background: #fff; color: #456081; }
.day-button b, .day-button small { display: block; }
.day-button b { font-size: 18px; }.day-button small { font-size: 10px; }
.day-button.active { border-color: #5f87da; background: #eaf1ff; color: #285bc8; }
.day-explain { margin: 0; padding: 13px 16px; border-radius: 9px; background: #f3f7fd; color: #5f7697; font-size: 12px; line-height: 1.6; }
.foundation-topics, .oop-project-grid, .spring-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.foundation-topics > div, .oop-project, .spring-phase { padding: 17px; border: 1px solid #e4ebf5; border-radius: 11px; }
.foundation-topics span, .oop-project-num, .spring-phase span { display: block; margin-bottom: 7px; color: #6687bd; font-size: 10px; font-weight: 700; }
.foundation-topics strong, .spring-phase b { display: block; color: #2d486c; font-size: 13px; }
.foundation-topics p, .oop-project p, .oop-project small, .spring-phase small { display: block; margin: 6px 0 0; color: #75879d; font-size: 12px; line-height: 1.6; }
.git-agenda { margin-top: 25px; }.agenda-heading, .group-label, .oop-projects-heading { color: #2b4569; font-size: 13px; font-weight: 700; }
.git-day { margin-top: 9px; border: 1px solid #e1e9f4; border-radius: 10px; }
.git-day summary { display: flex; align-items: center; gap: 13px; padding: 16px; cursor: pointer; color: #314b6d; font-size: 13px; font-weight: 700; list-style: none; }
.git-day summary::-webkit-details-marker { display: none; }.git-day summary::after { content: '+'; margin-left: auto; color: #7191c1; font-size: 19px; }.git-day[open] summary::after { content: '−'; }
.agenda-day { flex: none; color: #4b73bb; font-size: 10px; letter-spacing: .05em; }
.git-day ul { margin: 0; padding: 0 22px 17px 46px; color: #657a96; font-size: 12px; line-height: 1.75; }.git-day li + li { margin-top: 5px; }
.git-outcome, .oop-prereq, .lld-prereq, .oop-philosophy, .lld-philosophy { margin: 18px 0 0; padding: 16px; border-radius: 10px; background: #f3f7fd; color: #607795; font-size: 12px; line-height: 1.7; }
.oop-philosophy b, .lld-philosophy strong { display: block; color: #2e4c76; }.oop-philosophy p, .lld-philosophy p { margin: 5px 0 0; }.oop-chip, .lld-philosophy span { display: block; margin-bottom: 5px; color: #5c80bd; font-size: 10px; font-weight: 700; }
.oop-example { margin: 12px 0; overflow: hidden; border-radius: 10px; background: #192e4d; color: #d4e1f5; }.oop-example-top { display: flex; justify-content: space-between; gap: 10px; padding: 10px 15px; background: #223c61; font-size: 10px; }.oop-example pre { margin: 0; padding: 16px; color: #d4e1f5; font-size: 11px; overflow: auto; }
.oop-projects-heading { margin-top: 20px; }.oop-project-grid { grid-template-columns: repeat(4, 1fr); margin: 10px 0 18px; }.oop-project h5 { margin: 0; font-size: 13px; color: #2d486c; }
.spring-path { grid-template-columns: repeat(4, 1fr); }.spring-phase { opacity: .5; }.spring-phase.active { opacity: 1; background: #f4f8ff; border-color: #cbdcf5; }.spring-day-phase { margin-left: auto; color: #7794be; font-size: 9px; }.spring-agenda-top p { margin: 5px 0 0; color: #8292a7; font-size: 12px; }.spring-agenda { margin-top: 0; }
.plan-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 34px; border-top: 1px solid #e7edf5; background: #fbfcff; }.plan-footer p { margin: 0; color: #8292a8; font-size: 12px; }.plan-footer a { color: #285bc8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.catalog-dialog { width: min(600px, calc(100% - 30px)); max-height: min(85vh, 800px); padding: 0; border: 0; border-radius: 18px; color: #243b5d; box-shadow: 0 25px 70px #0f254a55; }.catalog-dialog::backdrop { background: #132642a8; }.catalog-dialog-header { display: flex; justify-content: space-between; gap: 20px; padding: 28px 30px 22px; }.catalog-dialog-header h2 { margin: 0 0 7px; color: #203858; font: 700 24px var(--font-primary); }.catalog-dialog-header p:last-child { margin: 0; color: #7a8da6; font-size: 12px; }.catalog-dialog-header button { align-self: flex-start; width: 36px; height: 36px; border: 0; border-radius: 9px; background: #eef3fa; color: #536b8c; font-size: 23px; line-height: 1; }
.catalog-dialog-body { margin: 0 30px; padding: 25px; border-radius: 13px; background: #1d3762; color: #e3ebf8; }.catalog-dialog-body h3 { margin: 0 0 8px; color: #fff; font: 700 18px var(--font-primary); }.catalog-dialog-body p { color: #c4d3e8; font-size: 12px; line-height: 1.7; }.topic-list { list-style: none; margin: 20px 0; padding: 0; }.topic-list li { position: relative; padding-left: 22px; margin: 11px 0; font-size: 12px; line-height: 1.5; }.topic-list li::before { content: '✓'; position: absolute; left: 0; color: #8fe0c7; }.catalog-dialog-body .footnote { margin: 0; padding-top: 15px; border-top: 1px solid #ffffff2b; color: #b3c5df; font-size: 11px; }.catalog-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 30px 28px; }.catalog-dialog-footer p { margin: 0; color: #8191a8; font-size: 11px; line-height: 1.5; }
.workshop-catalog button:focus-visible, .workshop-catalog a:focus-visible, .workshop-catalog summary:focus-visible { outline: 3px solid #4b83ed; outline-offset: 3px; }
@media (max-width: 1199px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); }.catalog-card { min-height: 225px; } }
@media (max-width: 767px) { .workshop-catalog { padding: 40px 0 65px; }.catalog-heading { align-items: start; flex-direction: column; }.catalog-grid { grid-template-columns: repeat(2, 1fr); }.catalog-card { min-height: 220px; }.plan-header, .plan-footer { align-items: start; flex-direction: column; }.plan-header, .plan-body { padding: 24px 20px; }.plan-footer { padding: 20px; }.foundation-topics, .oop-project-grid, .spring-path { grid-template-columns: repeat(2, 1fr); }.day-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 440px) { .catalog-grid { grid-template-columns: 1fr; }.catalog-card { min-height: 0; }.catalog-card-description { margin-bottom: 15px; }.foundation-topics, .oop-project-grid, .spring-path { grid-template-columns: 1fr; }.catalog-dialog-header, .catalog-dialog-footer { padding-left: 20px; padding-right: 20px; }.catalog-dialog-body { margin: 0 20px; }.catalog-dialog-footer { align-items: start; flex-direction: column; }.spring-day-phase { display: none; } }
@media (prefers-reduced-motion: reduce) { .catalog-card { transition: none; }.catalog-card:hover { transform: none; } }
@media (max-width: 440px) { .foundation-intro, .git-duration-card { align-items: flex-start; flex-direction: column; } }

/* Flexible DSA pathway */
.dsa-day-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.dsa-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.dsa-phase { padding: 16px; border: 1px solid #e4ebf5; border-radius: 11px; opacity: .55; }
.dsa-phase.active { opacity: 1; background: #f4f8ff; border-color: #cbdcf5; }
.dsa-phase span, .dsa-phase strong, .dsa-phase small { display: block; }
.dsa-phase span { margin-bottom: 7px; color: #6687bd; font-size: 10px; font-weight: 700; }
.dsa-phase strong { color: #2d486c; font-size: 13px; }
.dsa-phase small { margin-top: 6px; color: #75879d; font-size: 11px; line-height: 1.6; }
#dsa-agenda-count { color: #5477b7; font-size: 10px; font-weight: 700; white-space: nowrap; }
@media (max-width: 767px) { .dsa-day-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dsa-path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .dsa-path { grid-template-columns: 1fr; } }
