body[data-catalog] { --page-bg:#071934; --surface:#0d2747; --muted:#f7fbff; --soft-shadow:0 18px 45px rgba(0,0,0,.2); --ink:#f7fbff; background:#071934; }
html[data-theme="light"] body[data-catalog] { --page-bg:#faf9f6; --surface:#fff; --muted:#111820; --soft-shadow:0 16px 38px rgba(46,70,97,.09); --ink:#101820; background:#faf9f6; }
.catalog-main { background: var(--page-bg); color: var(--ink); min-height: 100vh; }
.catalog-navigation a.active { color: #1479ed; box-shadow: inset 0 -3px #1479ed; }
.catalog-hero { min-height: 225px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px max(5vw, 28px) 24px; background: radial-gradient(circle at 80% 15%, rgba(20,121,237,.28), transparent 34%), linear-gradient(130deg, #061b3f, #0a315f); color: #fff; }
.catalog-hero.school-hero { background: radial-gradient(circle at 82% 18%, rgba(37,191,104,.26), transparent 34%), linear-gradient(130deg, #061b3f, #0a315f); }
.catalog-hero h1 { max-width: 980px; margin: 10px 0; font-size: var(--internal-hero-title-size); line-height: 1.02; letter-spacing: -.045em; }
.catalog-hero p { max-width: 980px; margin: 0; color: #fff; font-size: var(--internal-hero-description-size); line-height: 1.5; }
.catalog-hero.club-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .8fr); gap: clamp(20px, 3vw, 56px); align-items: center; overflow: hidden; padding-block: 12px; }
.club-hero .catalog-hero-copy { min-width: 0; }
.club-hero .catalog-hero-copy h1 { max-width: 900px; padding-bottom: .08em; font-size: var(--internal-hero-title-size); line-height: 1.02; text-wrap: balance; }
.club-hero .catalog-hero-copy p { max-width: 850px; font-size: var(--internal-hero-description-size); text-wrap: pretty; }
.club-neural-visual { position: relative; width: 100%; min-width: 0; height: 225px; align-self: center; overflow: hidden; }
.club-neural-visual iframe { position: absolute; left: 50%; top: 50%; display: block; width: 133.333%; height: 300px; border: 0; background: transparent; color-scheme: normal; transform: translate(-50%,-50%) scale(.75); }
.catalog-content, .club-objectives { padding: var(--module-padding-block) var(--module-padding-inline); }
.club-objectives { background: var(--surface); }
.catalog-section-heading { max-width: 930px; margin-bottom: 28px; }
.catalog-section-heading h2 { margin: 12px 0 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.045em; }
.objective-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.objective-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--page-bg); box-shadow: var(--soft-shadow); }
.objective-grid i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(20,121,237,.12); color: #1479ed; font-size: 1.35rem; }
.objective-grid article:nth-child(2) i { color: #16a85a; background: rgba(37,191,104,.13); }
.objective-grid article:nth-child(3) i { color: #d99800; background: rgba(255,193,45,.15); }
.objective-grid h3 { font-size: 1.25rem; margin: 18px 0 10px; }
.objective-grid p { color: var(--muted); line-height: 1.65; margin: 0; }
.catalog-metrics { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--soft-shadow); }
body[data-catalog="schools"] .catalog-metrics { grid-template-columns: repeat(2, 1fr); }
.catalog-metrics article { padding: 26px; border-right: 1px solid var(--line); }
.catalog-metrics article:last-child { border: 0; }
.catalog-metrics b { display: block; color: #1479ed; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.catalog-metrics span { display: block; margin-top: 10px; color: var(--muted); }
.catalog-search { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 34px auto 28px; padding: 8px 12px 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--soft-shadow); }
.catalog-search i { color: #1479ed; }
.catalog-search input { min-width: 0; flex: 1; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.catalog-search span { padding: 8px 12px; border-radius: 999px; background: rgba(20,121,237,.1); color: #1479ed; font-size: .75rem; white-space: nowrap; }
.catalog-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.catalog-card { display: flex; min-width: 0; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--soft-shadow); transition: transform .2s ease, border-color .2s ease; }
.catalog-card:hover { transform: translateY(-5px); border-color: #1479ed; }
.catalog-card-image { aspect-ratio: 4 / 3; overflow: hidden; background: #dce8f4; }
.catalog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.catalog-card:hover img { transform: scale(1.05); }
.catalog-card-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.catalog-card-body > small { color: #1479ed; font-size: .62rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.catalog-card-body > strong { margin: 9px 0; font-size: 1rem; line-height: 1.15; }
.catalog-card-body > span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .78rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.catalog-card-body > i { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; font-style: normal; }
.catalog-card-body em { padding: 4px 6px; border-radius: 999px; background: rgba(20,121,237,.08); color: var(--muted); font-size: .58rem; font-style: normal; }
.catalog-card-body > b { margin-top: auto; color: #1479ed; font-size: .75rem; }
.catalog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 38px; }
.catalog-pagination button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); cursor: pointer; }
.catalog-pagination button.active { border-color: #1479ed; background: #1479ed; color: #fff; }
.catalog-pagination button:disabled { opacity: .35; cursor: default; }
.catalog-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 70px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); }
.catalog-empty i { font-size: 2rem; color: #1479ed; }
.catalog-footer { padding: 38px max(4vw, 22px); background: #04142f; color: #c9d8e9; }
.catalog-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.catalog-footer span { color: #fff; font-weight: 800; }
.catalog-footer nav { display: flex; gap: 22px; }
.catalog-footer a { color: inherit; text-decoration: none; }
.catalog-footer small { display: block; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.catalog-modal[hidden] { display: none; }
.catalog-modal { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 24px; }
.catalog-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,8,24,.76); }
.catalog-modal > section { position: relative; display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; width: min(920px, 100%); max-height: 90vh; overflow: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.catalog-modal > section > img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; background: #dce8f4; }
.catalog-modal > section > div { padding: 42px; }
.catalog-modal h2 { margin: 12px 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; }
#catalog-modal-place { color: #1479ed; font-weight: 700; }
#catalog-modal-description { color: var(--muted); line-height: 1.7; white-space: pre-line; }
.catalog-modal-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.catalog-modal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.catalog-modal-actions a { padding: 11px 15px; border-radius: 10px; background: #1479ed; color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; }
.modal-open { overflow: hidden; }

@media (max-width: 1220px) { .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .catalog-hero.club-hero { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 14px; } .club-neural-visual { height: 225px; } .objective-grid { grid-template-columns: 1fr; } .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .catalog-metrics { grid-template-columns: repeat(3, 1fr); } .catalog-metrics article { border-bottom: 1px solid var(--line); } }
@media (max-width: 680px) { .catalog-hero { min-height: 220px; padding: 28px 22px; } .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog-metrics, body[data-catalog="schools"] .catalog-metrics { grid-template-columns: 1fr 1fr; } .catalog-modal > section { grid-template-columns: 1fr; } .catalog-modal > section > img { min-height: 220px; max-height: 260px; } .catalog-modal > section > div { padding: 26px; } .catalog-footer > div, .catalog-footer nav { align-items: flex-start; flex-direction: column; } }
@media (max-width: 680px) { .catalog-content, .club-objectives { padding: 38px 22px; } }
@media (max-width: 430px) { .catalog-grid { grid-template-columns: 1fr; } .catalog-metrics, body[data-catalog="schools"] .catalog-metrics { grid-template-columns: 1fr; } .catalog-search span { display: none; } }
@media (max-width: 680px) { .catalog-hero.club-hero { min-height: auto; grid-template-columns: 1fr; gap: 8px; padding: 24px 22px 6px; } .club-hero .catalog-hero-copy h1 { max-width: 16ch; line-height: 1.02; } .club-neural-visual { height: 214px; } .club-neural-visual iframe { width: 133.333%; height: 285px; } }
