/* Learning resources: a large editorial feature beside four compact cards. */
.resources-page{max-width:1200px;margin:auto;color:var(--navy)}
.resources-intro{padding:2.5rem 0 2.7rem;border-bottom:1px solid var(--line)}
.resources-intro .eyebrow{font-size:.72rem;letter-spacing:.16em;color:#6d7885}
.resources-intro h1{font-size:clamp(2.3rem,4vw,3.5rem);letter-spacing:-.045em;line-height:1.2;margin:.8rem 0 1rem}
.resources-intro p{font-size:1.3rem;font-weight:650;margin:0 0 .5rem}.resources-intro>span{color:var(--muted);font-size:.95rem}
.resource-section-head,.resource-results-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin:1.7rem 0 1rem}
.resource-section-head h2,.resource-results-head h2{font-size:1.25rem;margin:0}.resource-section-head>span,.resource-results-head>span{color:var(--muted);font-size:.82rem}
.resource-editorial{display:grid;grid-template-columns:2.05fr 1fr 1fr;gap:1.2rem;align-items:stretch}
.resource-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #dde2e8;border-radius:15px;overflow:hidden;text-decoration:none;color:inherit;transition:box-shadow .18s,transform .18s}
.resource-card:hover{color:inherit;transform:translateY(-3px);box-shadow:0 10px 25px #142b4710;border-color:#b6c6d5}.resource-card:focus-visible{outline-offset:4px}
.resource-featured{grid-row:span 2}
.resource-cover{position:relative;display:flex;flex-direction:column;justify-content:center;padding:1.35rem 1.25rem;aspect-ratio:1.44;isolation:isolate;overflow:hidden;color:#254c4e;background:#cee7dc}
.resource-cover:before{content:'';position:absolute;width:140px;height:140px;border:30px solid #ffffff23;border-radius:50%;right:-65px;top:-75px;z-index:-1}
.resource-cover:after{content:'';position:absolute;width:120px;height:120px;background:#ffffff30;border-radius:50%;bottom:-80px;left:-25px;z-index:-1}
.resource-cover-brand{font-size:.52rem;letter-spacing:.12em;position:absolute;top:1rem;left:1.25rem;opacity:.75}
.resource-cover>strong{font-size:clamp(1.15rem,1.7vw,1.6rem);letter-spacing:-.035em;line-height:1.35;max-width:85%;z-index:1;margin-top:.3rem}
.resource-cover-sub{font-size:.63rem;margin-top:.5rem;z-index:1;font-weight:600}
.resource-cover-art{width:31%;position:absolute;right:.7rem;bottom:-.5rem;opacity:.22;transform:rotate(-12deg)}.resource-cover-art svg{display:block;width:100%}
.resource-spark{position:absolute;font-size:1.6rem;right:1rem;top:2.7rem;opacity:.7}
.resource-cover-camp{background:#f6d99f;color:#6a4a22}.resource-cover-award{background:#dfdaf2;color:#514779}.resource-cover-calendar{background:#dce8f8;color:#345b85}.resource-cover-pen{background:#f1d9cc;color:#7c4a37}.resource-cover-science{background:#cce4ed;color:#285c6c}
.resource-cover-exam{background:#20374f;color:#ffe3a1}
.resource-featured .resource-cover{aspect-ratio:1.12;padding:3rem 2.3rem;justify-content:flex-start;flex:1;min-height:350px}
.resource-featured .resource-cover-brand{top:1.8rem;left:2.3rem;font-size:.63rem;color:#dbe4ee}
.resource-featured .resource-cover>strong{font-size:clamp(2.1rem,3.5vw,3.3rem);line-height:1.25;margin-top:2.2rem;max-width:100%}
.resource-featured .resource-cover-sub{font-size:1.05rem;color:#d9e3ed;margin-top:1rem}
.resource-featured .resource-cover-art{width:56%;right:2rem;bottom:1rem;opacity:.7;transform:rotate(-9deg)}
.resource-featured .resource-spark{font-size:2rem;right:2rem;top:14rem}
.resource-featured .resource-cover:before{height:350px;width:350px;top:140px;right:-200px;border-width:60px}
.resource-card-body{padding:1rem 1.15rem;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.resource-badge{display:inline-block;font-size:.69rem;font-weight:700;color:#345f8b;background:#edf3fb;padding:.2rem .5rem;border-radius:4px}
.resource-badge-materials{color:#356453;background:#edf5ee}.resource-badge-camps{color:#7a5621;background:#fff4df}.resource-badge-competitions{color:#65508d;background:#f0edf9}
.resource-card h3{font-size:1.05rem;margin:.65rem 0 .45rem;line-height:1.45;letter-spacing:-.02em}
.resource-card p{font-size:.85rem;line-height:1.7;color:#627081;margin:0 0 .9rem}
.resource-editorial .resource-card:not(.resource-featured) p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.resource-source{font-size:.66rem;color:#788392;margin-top:auto;line-height:1.5}
.resource-card-link{font-size:.8rem;font-weight:700;color:#315b89;display:flex;justify-content:space-between;width:100%;margin-top:.9rem}
.resource-featured .resource-card-body{padding:1.75rem 2rem;flex:0}.resource-featured h3{font-size:1.6rem}.resource-featured p{font-size:.98rem}.resource-featured .resource-card-link{font-size:.98rem;margin-top:1.4rem}
.resource-directory{margin-top:3.5rem}.resource-filter-area{padding:1.4rem;background:#fff;border:1px solid var(--line);border-radius:14px}
.resource-tabs{display:flex;gap:.5rem;flex-wrap:wrap;padding-bottom:1.2rem;border-bottom:1px solid #e8edf2}
.resource-tabs button{border-color:transparent;background:#f3f5f7;font-size:.87rem;padding:.55rem .9rem;gap:.6rem;white-space:nowrap}.resource-tabs button span{font-size:.67rem;opacity:.65}.resource-tabs button[aria-pressed=true]{background:var(--navy);color:#fff}
.resource-search-row{display:flex;gap:1rem;align-items:end;margin-top:1.1rem}.resource-search-row>div:first-child{flex:1}.resource-search-row>div:nth-child(2){width:170px}.resource-search-row label{font-size:.78rem;color:#5c6979}.resource-search-row input,.resource-search-row select{font-size:.9rem;min-height:45px}.resource-search-row>button{min-height:45px;font-size:.8rem}
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem}.resource-grid .resource-cover{aspect-ratio:1.8}.resource-grid .resource-cover>strong{font-size:1.6rem}.resource-grid .resource-cover-sub{font-size:.72rem}.resource-grid .resource-cover-art{width:34%}.resource-grid .resource-card-body{padding:1.25rem}.resource-grid h3{font-size:1.15rem}
.resource-empty{border:1px dashed #c7d3df;border-radius:12px;text-align:center;padding:3rem 1rem;background:white}.resource-empty p{color:var(--muted)}
.resource-note{border-top:1px solid var(--line);margin-top:2.7rem;padding:1.5rem 0 .5rem}.resource-note strong{font-size:.95rem}.resource-note p{font-size:.85rem;color:var(--muted);max-width:850px;line-height:1.8}.resource-note>span{font-size:.72rem;color:#788392}
@media(min-width:721px) and (max-width:1100px){#header nav{gap:.35rem}#header nav a{padding:.4rem .5rem;font-size:.86rem}.resource-editorial{gap:.8rem;grid-template-columns:1.65fr 1fr 1fr}.resource-card-body{padding:.8rem}.resource-cover{padding:1rem}.resource-cover-brand{left:1rem;font-size:.44rem}.resource-cover-sub{font-size:.53rem}.resource-featured .resource-cover{padding:2rem 1.5rem;min-height:310px}.resource-featured .resource-cover>strong{font-size:2.1rem}.resource-featured .resource-cover-brand{left:1.5rem}.resource-featured .resource-card-body{padding:1.2rem}.resource-featured h3{font-size:1.3rem}}
@media(max-width:720px){.resources-intro{padding:1.5rem 0 2rem}.resources-intro p{font-size:1.1rem}.resources-intro>span{font-size:.86rem;display:block;line-height:1.8}.resource-editorial{grid-template-columns:1fr 1fr;gap:.8rem}.resource-featured{grid-column:1/-1;grid-row:auto}.resource-featured .resource-cover{aspect-ratio:1.6;min-height:250px;padding:1.7rem}.resource-featured .resource-cover>strong{font-size:2.5rem;margin-top:1.4rem}.resource-featured .resource-cover-brand{top:1.1rem;left:1.7rem}.resource-featured .resource-cover-art{width:40%;right:.7rem;bottom:-.2rem}.resource-featured .resource-spark{top:2rem}.resource-featured .resource-card-body{padding:1.3rem}.resource-featured h3{font-size:1.35rem}.resource-featured p{font-size:.9rem}.resource-cover{padding:1.8rem .85rem 1.1rem;aspect-ratio:1.05}.resource-cover>strong{font-size:1.2rem;max-width:100%}.resource-cover-sub{font-size:.55rem}.resource-cover-brand{left:.85rem;top:.8rem;font-size:.43rem}.resource-spark{font-size:1rem;right:.6rem;top:1.8rem}.resource-card-body{padding:.85rem}.resource-card h3{font-size:.97rem}.resource-card p{font-size:.8rem}.resource-section-head>span{font-size:.7rem}.resource-filter-area{padding:1rem}.resource-directory{margin-top:2.5rem}.resource-tabs{gap:.4rem}.resource-tabs button{font-size:.8rem;padding:.5rem .65rem}.resource-search-row{flex-wrap:wrap;gap:.8rem}.resource-search-row>div:first-child{flex-basis:100%}.resource-search-row>div:nth-child(2){flex:1}.resource-grid{grid-template-columns:1fr 1fr;gap:.8rem}.resource-grid .resource-cover{aspect-ratio:1.1}.resource-grid .resource-cover>strong{font-size:1.2rem}.resource-grid .resource-cover-sub{font-size:.55rem}.resource-grid .resource-card-body{padding:.9rem}.resource-grid h3{font-size:1rem}}
@media(max-width:380px){.resource-grid{grid-template-columns:1fr}.resource-grid .resource-cover{aspect-ratio:1.7}.resource-featured .resource-cover>strong{font-size:2.05rem}}
@media(prefers-reduced-motion:reduce){.resource-card{transition:none}.resource-card:hover{transform:none}}

/* Published camp posters and structured event facts. */
#resource-directory{scroll-margin-top:1.5rem}.camp-source-section{margin:1.8rem 0 2.7rem}.camp-source-section .resource-section-head h3{font-size:1.15rem;margin:0}.camp-section-lead{font-size:.9rem;color:var(--muted);margin:-.4rem 0 1.2rem}.camp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;align-items:start}.camp-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;min-width:0}.camp-visual{width:100%;aspect-ratio:1079/1517;background:#f1f3f5;display:grid;place-items:center;overflow:hidden}.camp-visual>img{width:100%;height:100%;object-fit:contain;display:block}.camp-visual>.resource-cover{width:100%;height:100%;aspect-ratio:auto}.camp-body{padding:1.25rem;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.camp-body h3,.camp-body h2{font-size:1.25rem;line-height:1.55;margin:.65rem 0 .35rem;overflow-wrap:anywhere}.camp-status{color:#447442;font-size:.87rem;font-weight:650;margin:.3rem 0 1rem}.camp-status.ended{color:#7b6871}.camp-facts{margin:0 0 .6rem;width:100%;display:grid;gap:.8rem}.camp-facts>div{padding-bottom:.6rem;border-bottom:1px solid #edf0f3}.camp-facts dt{font-size:.75rem;color:var(--muted);margin:0 0 .2rem}.camp-facts dd{font-size:.92rem;font-weight:650;margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.camp-summary{font-size:.88rem;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.camp-body .resource-source{margin:.5rem 0 1rem}.camp-official{display:flex;justify-content:space-between;gap:1rem;width:100%;padding:.8rem 0 0;border-top:1px solid var(--line);font-size:.9rem;font-weight:700;text-decoration:none}.camp-closed .camp-visual{opacity:.75}.camp-admin-grid .camp-body button{width:100%;margin-top:.7rem}.camp-admin-fee{font-weight:700;font-size:1.1rem;margin:.2rem 0}.camp-grade-picker{border:1px solid var(--line);border-radius:10px;padding:.8rem;display:flex;flex-wrap:wrap;gap:1rem}.camp-grade-picker legend{font-weight:650;font-size:.9rem}.camp-grade-picker label{margin:0}.camp-editor-preview{display:block;width:min(100%,320px);height:auto;aspect-ratio:1079/1517;object-fit:contain;background:#f3f4f6;border:1px solid var(--line);border-radius:10px;margin-top:.8rem}.resource-load-error{background:#fff2d7;padding:1rem;border-radius:10px;font-size:.9rem}.resource-load-error button{margin-left:.7rem;font-size:.8rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.camp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.camp-grid{grid-template-columns:1fr}.camp-body{padding:1.2rem}.camp-body h3{font-size:1.25rem}.resource-grid>.camp-card{grid-column:1/-1}}

/* Camp descriptions lead; registration details stay collapsed until requested. */
.camp-introduction{width:100%;margin:.7rem 0 1.2rem}.camp-introduction h4{font-size:.78rem;letter-spacing:.06em;color:var(--muted);margin:0 0 .55rem}.camp-body .camp-summary{font-size:.96rem;line-height:1.9;color:var(--navy);white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.camp-body .camp-key-facts{background:#f7f9fb;border-radius:10px;padding:.9rem;gap:.6rem;margin:0 0 1rem}.camp-key-facts>div{border:0;padding:0}.camp-key-facts dd{font-weight:500;font-size:.86rem}.camp-registration{width:100%;border-top:1px solid var(--line);margin:.3rem 0 1.1rem}.camp-registration details{border-bottom:1px solid var(--line)}.camp-registration summary{cursor:pointer;font-size:.86rem;font-weight:650;padding:.85rem .15rem;list-style-position:inside;color:#405976}.camp-registration summary:focus-visible{outline:3px solid #3977dc;outline-offset:2px}.camp-registration details>p{padding:0 .15rem .7rem;margin:0;font-size:.88rem;line-height:1.85;color:#536477;overflow-wrap:anywhere}.camp-registration .camp-fee-text{white-space:pre-wrap}.camp-registration .camp-status{font-size:.8rem;font-weight:500}.camp-admin-grid .camp-summary{margin:.4rem 0 1rem;font-size:.9rem}.camp-admin-introduction textarea{min-height:180px}textarea[name=fee]{min-height:110px}
.camp-search-panel{margin-top:1.2rem;padding:1.3rem;border-radius:12px;background:#f5f8fc;border:1px solid #dfe7f0}.camp-search-panel h2{margin:0;font-size:1.1rem}.camp-search-panel>div>p{font-size:.88rem;color:var(--muted);margin:.4rem 0 1.1rem}.camp-search-fields{display:grid;grid-template-columns:1fr 1fr 1.3fr auto;gap:.8rem;align-items:end}.camp-search-fields label{font-size:.78rem;color:#5c6979}.camp-search-fields input{font-size:.9rem;min-height:45px;min-width:0}.camp-search-fields button{font-size:.78rem;min-height:45px}.camp-search-panel .help{margin:.8rem 0 0;line-height:1.7}
@media(max-width:1050px){.camp-search-fields{grid-template-columns:1fr 1fr}.camp-search-fields>div:nth-child(3){grid-column:1}.camp-search-fields>button{justify-self:start}}
@media(max-width:480px){.camp-search-panel{padding:1rem}.camp-search-fields{grid-template-columns:1fr}.camp-search-fields>div:nth-child(3){grid-column:auto}.camp-search-fields>button{justify-self:stretch}.camp-registration summary{min-height:44px}}

/* Camp dates and deadline stay visible while registration details are collapsed. */
.camp-period{margin:16px 0 20px;padding:16px 18px;border:1px solid #e5c888;border-left:5px solid #bf8730;border-radius:12px;background:#fff4db;color:#503b20}
.camp-period>span{display:block;font-size:.82rem;font-weight:700;margin-bottom:6px;letter-spacing:.08em}
.camp-period strong{display:block;font-size:1.15rem;line-height:1.6;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.camp-countdown{display:inline-block;margin:5px 0 5px 8px;padding:3px 9px;border-radius:6px;background:#fff0d0;color:#8b550e;font-size:.78rem;font-weight:700;line-height:1.5}
.camp-countdown.ended{background:#edf0f4;color:#647184}
.camp-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.camp-links .camp-official{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1 1 130px;margin:0;padding:12px;border:1px solid #dce2ec;border-radius:8px;background:#f7f9fc}
.camp-links .camp-official:hover{background:#eef2f8}
@media(max-width:600px){.camp-period strong{font-size:1.05rem}}

/* Five-line introductions align cards; expanding reveals the full text and event details. */
.resources-page .camp-grid{align-items:stretch}
.resources-page .camp-expandable{height:100%}
.resources-page .camp-expandable .camp-body{flex:1;width:100%;box-sizing:border-box;align-items:stretch}
.camp-expandable .camp-introduction{flex:1;margin-bottom:1.2rem}
.camp-expandable .camp-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5;line-height:1.9;min-height:9.5em;max-height:9.5em;overflow:hidden;white-space:pre-wrap}
.camp-expandable:has(.camp-more[open]) .camp-summary{display:block;-webkit-line-clamp:unset;line-clamp:unset;min-height:0;max-height:none;overflow:visible}
.camp-more{width:100%;margin-top:auto;border-top:1px solid var(--line)}
.camp-more>summary{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:48px;padding:.85rem 0;cursor:pointer;list-style:none;font-size:.9rem;font-weight:700;color:#405976;box-sizing:border-box}
.camp-more>summary::-webkit-details-marker{display:none}
.camp-more>summary:focus-visible{outline:3px solid #3977dc;outline-offset:3px;border-radius:4px}
.camp-more-hide{display:none}.camp-more[open] .camp-more-show{display:none}.camp-more[open] .camp-more-hide{display:inline}
.camp-more-arrow{font-size:1.4rem;line-height:1}.camp-more[open] .camp-more-arrow{transform:rotate(180deg)}
.camp-more-content{padding:.2rem 0 .5rem}
.camp-more-content .camp-period{margin-top:.5rem;width:100%;box-sizing:border-box}
.camp-more-content .resource-source{display:block}
.camp-more-content .tags{margin-bottom:1rem}
.camp-expanded-facts dd{font-weight:500;line-height:1.85}
.camp-expanded-facts .camp-fee-text{white-space:pre-wrap}
