/* Pinterest-inspired student gallery: natural image ratios, quiet labels and
   continuous exploration. Compor's shared yellow header and violet footer stay intact. */
body:is([data-view="students"],[data-view="student-creation"]){--student-ink:#272923;--student-muted:#74756f;--student-line:#e8e8e2;--student-surface:#f5f4f0;background:#fff;color:var(--student-ink)}
body:is([data-view="students"],[data-view="student-creation"]) .cp-review{display:none}
body:is([data-view="students"],[data-view="student-creation"]) .cp-footer{background:var(--footer);color:var(--footer-ink);padding-block:28px 20px;gap:20px}
body:is([data-view="students"],[data-view="student-creation"]) .cp-footer h2,body:is([data-view="students"],[data-view="student-creation"]) .cp-footer>div:first-child>.cp-button{display:none}
body:is([data-view="students"],[data-view="student-creation"]) .cp-footer-brand{font-size:28px}
body:is([data-view="students"],[data-view="student-creation"]) .cp-footer-bottom{padding-top:16px;margin-top:0}
body:is([data-view="students"],[data-view="student-creation"]) #main-content :is(a,button,select):focus-visible{outline:2px solid var(--primary);outline-offset:4px}
.cp-students,.cp-student-creation{width:min(100%,1400px);margin-inline:auto;padding-inline:28px}
.cp-students{padding-block:32px 58px}
.cp-students-intro{margin-bottom:21px}
.cp-students-intro h1{font-size:32px;font-weight:800;line-height:1.12;letter-spacing:-.035em;margin:0 0 8px}
.cp-students-intro p{font-size:14px;line-height:1.5;color:var(--student-muted);margin:0}
.cp-students-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:24px}
.cp-student-filters{display:flex;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none;overscroll-behavior-inline:contain;padding:3px 0}
.cp-student-filters::-webkit-scrollbar{display:none}
.cp-student-filters button{flex:none;min-height:42px;padding:10px 16px;border:1px solid color-mix(in srgb,var(--primary) 24%,white);border-radius:var(--radius,4px);font-size:13px;font-weight:750;line-height:1.4;white-space:nowrap;background:color-mix(in srgb,var(--primary) 5%,white);color:var(--primary)}
.cp-student-filters button:hover{background:color-mix(in srgb,var(--primary) 12%,white);color:var(--primary)}
.cp-student-filters button[aria-pressed="true"]{border-color:var(--primary);background:var(--primary);color:var(--primary-ink,#fff)}
.cp-students-tools-meta{display:flex;align-items:center;gap:15px}
.cp-student-theme{display:flex;align-items:center;min-width:0}
.cp-student-theme select{min-height:42px;max-width:210px;padding:9px 31px 9px 14px;border:1px solid color-mix(in srgb,var(--primary) 35%,white);border-radius:var(--radius,4px);background-color:#fff;color:var(--primary);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.cp-students-count{font-size:12px;color:var(--student-muted);white-space:nowrap;margin:0}
/* A two-column CSS grid is the fallback; JS places items into the shortest column. */
.cp-students-grid{--student-columns:4;display:grid;grid-template-columns:repeat(var(--student-columns),minmax(0,1fr));gap:22px 18px;align-items:start}
.cp-students-grid.is-masonry{display:block;position:relative}
.cp-students-grid.is-masonry>.cp-student-card{position:absolute;left:0;top:0}
.cp-student-card{min-width:0;margin:0;padding:0;break-inside:avoid}
.cp-student-card-link{display:block;color:inherit;text-decoration:none;border-radius:17px}
.cp-student-card-photo{position:relative;overflow:hidden;border:0;border-radius:17px;background:var(--student-surface)}
.cp-student-card-photo img{display:block;width:100%;height:auto;max-width:100%;min-width:0}
.cp-student-card-photo::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 1px #00000004;border-radius:inherit;background:transparent;transition:background 140ms ease}
.cp-student-card-link:hover .cp-student-card-photo::after{background:#00000009}
.cp-student-card h2{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:550;line-height:1.5;letter-spacing:0;margin:8px 5px 1px;color:#55584f}
.cp-students-empty{padding:35px 0 45px;color:var(--student-muted);font-size:14px;text-align:center}
.cp-students-empty button{min-height:44px;background:transparent;border:0;font:inherit;text-decoration:underline;text-underline-offset:4px;color:var(--student-ink)}
.cp-students-more{display:block;width:fit-content;min-height:46px;margin:34px auto 0;padding:12px 24px;border:0;border-radius:var(--radius,4px);background:var(--primary);color:var(--primary-ink,#fff);font-size:14px;font-weight:800;text-align:center;text-decoration:none}
.cp-students-more:hover{filter:brightness(1.08)}
.cp-student-creation{padding-block:15px 52px}
.cp-student-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-bottom:14px;font-size:13px;color:var(--student-ink);text-decoration:none}
.cp-student-back:hover{text-decoration:underline;text-underline-offset:4px}
.cp-student-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:40px;align-items:start;max-width:1030px;margin-inline:auto}
.cp-student-original{margin:0;min-width:0}
.cp-student-photo-button{position:relative;display:block;width:100%;height:auto;margin:0;padding:0;overflow:hidden;background:var(--student-surface);border:0;border-radius:22px;cursor:zoom-in}
.cp-student-photo-button>img{display:block;width:100%;height:auto;max-width:100%;min-width:0}
.cp-student-photo-expand{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:44px;height:44px;background:#fffffff0;border:0;border-radius:50%;color:var(--student-ink);box-shadow:0 2px 12px #00000010}
.cp-student-photo-thumbs{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
.cp-student-photo-thumbs>button{display:grid;place-items:center;flex:0 0 62px;width:62px;height:76px;padding:3px;border:2px solid transparent;border-radius:10px;background:#f5f4f0;overflow:hidden}
.cp-student-photo-thumbs>button:hover{border-color:#a4aaa0}
.cp-student-photo-thumbs>button[aria-pressed="true"]{border-color:var(--student-ink);background:#fff}
.cp-student-photo-thumbs img{width:100%;height:100%;min-width:0;min-height:0;object-fit:cover;border-radius:5px}
.cp-student-story{position:sticky;top:125px;display:flex;flex-direction:column;gap:0;min-width:0;padding-top:4px}
.cp-student-heading{order:-1;margin:0 0 23px}
.cp-student-heading h1{font-size:32px;line-height:1.15;font-weight:800;letter-spacing:-.035em;margin:7px 0 11px}
.cp-student-category{font-size:12px;line-height:1.5;color:var(--student-muted);margin:0;font-weight:500}
.cp-student-maker{font-size:14px;font-weight:500;line-height:1.5;color:#5d6256;margin:0;overflow-wrap:anywhere}
.cp-student-project{padding:21px;background:#f5f4ef;border:1px solid #ecebe5;border-radius:18px;margin:0}
.cp-student-project-label{font-size:12px;font-weight:500;line-height:1.5;color:#62665b;margin:0 0 15px}
.cp-student-project-summary{display:grid;grid-template-columns:76px minmax(0,1fr);gap:16px;align-items:center}
.cp-student-project-summary.cp-student-project-no-photo{grid-template-columns:minmax(0,1fr)}
.cp-student-project-summary>img{width:76px;height:94px;object-fit:contain;background:#fff;border-radius:10px;padding:5px}
.cp-student-project-summary h2{font-size:22px;line-height:1.2;font-weight:750;letter-spacing:-.025em;margin:0 0 7px}
.cp-student-project-summary p{font-size:13px;color:#62665b;margin:0}
.cp-student-project-cta{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;margin-top:18px;padding:12px 17px;border:0;border-radius:var(--radius,4px);background:var(--primary);color:var(--primary-ink,#fff);font-size:14px;font-weight:800;text-decoration:none}
.cp-student-project-cta:hover{filter:brightness(1.08)}
.cp-student-project-cta>svg{width:18px;height:18px}
.cp-student-testimonial{margin-top:27px}
.cp-student-testimonial blockquote{font-size:19px;line-height:1.55;font-weight:500;letter-spacing:-.015em;margin:0;color:#41463b}
.cp-student-note{font-size:14px;line-height:1.65;color:var(--student-muted);margin:16px 0 0}
.cp-student-discover{padding:20px;background:#f7f7f3;border-radius:16px}
.cp-student-discover p{font-size:14px;color:var(--student-muted);line-height:1.5;margin:0 0 7px}
.cp-student-discover>a{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--student-ink);font-size:14px;font-weight:650;text-decoration:none}
.cp-student-discover>a:hover{text-decoration:underline;text-underline-offset:4px}
.cp-student-related{margin-top:54px;padding-top:31px;border-top:1px solid var(--student-line)}
.cp-student-related>h2{font-size:23px;font-weight:750;line-height:1.3;letter-spacing:-.025em;margin:0 0 24px}
.cp-student-dock{display:none}
.cp-student-unavailable{padding:50px var(--edge)}
.cp-student-photo-open{overflow:hidden}
.cp-student-photo-dialog{position:fixed;inset:0;width:min(900px,calc(100vw - 32px));height:min(920px,calc(100dvh - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;margin:auto;border:0;border-radius:18px;background:#fff;color:var(--student-ink);overflow:hidden}
.cp-student-photo-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.cp-student-photo-dialog::backdrop{background:#1c201bc9}
.cp-student-photo-dialog-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:10px 15px;background:#fff}
.cp-student-photo-dialog-bar p{font-size:15px;font-weight:650;line-height:1.4;margin:0}
.cp-student-photo-dialog-bar>button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:8px;border:0;border-radius:50%;background:#f0f0eb}
.cp-student-photo-dialog-media{min-height:0;display:flex;align-items:center;justify-content:center;background:#f4f4ef}
.cp-student-photo-dialog-media>img{width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
.cp-student-photo-dialog-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;background:#fff}
.cp-student-photo-dialog-controls>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:7px 8px;border:0;border-radius:999px;background:#fff;font-size:13px}
.cp-student-photo-dialog-controls>button:hover{background:var(--student-surface)}
.cp-student-photo-dialog-controls>p{font-size:12px;line-height:1.5;color:var(--student-muted);white-space:nowrap;margin:0}
@media(max-width:1100px){.cp-students-grid{--student-columns:3;gap:19px 15px}.cp-student-layout{gap:28px}.cp-student-heading h1{font-size:29px}.cp-student-project{padding:18px}.cp-student-story{top:130px}}
@media(max-width:760px){
 .cp-students,.cp-student-creation{padding-inline:12px}
 .cp-students{padding-block:24px 38px}
 .cp-students-intro{padding-inline:6px;margin-bottom:16px}
 .cp-students-intro h1{font-size:28px;margin-bottom:7px}
 .cp-students-intro p{font-size:13px;line-height:1.5}
 .cp-students-tools{display:block;margin-bottom:18px}
 .cp-student-filters{gap:5px;padding:3px 1px 7px}
 .cp-student-filters button{min-height:42px;font-size:12px;padding:10px 14px}
 .cp-students-tools-meta{justify-content:space-between;gap:12px;padding:5px 5px 0}
 .cp-student-theme select{font-size:13px;min-height:40px;max-width:230px;padding-block:8px}
 .cp-students-count{font-size:11px}
 .cp-students-grid{--student-columns:2;gap:15px 10px}
 .cp-student-card-photo{border-radius:15px}
 .cp-student-card-link{border-radius:15px}
 .cp-student-card h2{font-size:11px;line-height:1.45;font-weight:550;margin:7px 4px 1px}
 .cp-students-more{font-size:13px;min-height:46px;margin-top:26px}
 .cp-student-creation{padding-top:7px;padding-bottom:35px}
 .cp-student-back{font-size:13px;min-height:44px;margin:0 4px 9px}
 .cp-student-layout{display:block;max-width:540px}
 .cp-student-photo-button{border-radius:19px}
 .cp-student-photo-expand{right:12px;bottom:12px}
 .cp-student-photo-thumbs{gap:8px;margin-top:11px;padding-inline:4px}
 .cp-student-photo-thumbs>button{flex-basis:55px;width:55px;height:67px}
 .cp-student-story{position:static;display:flex;padding:0 5px;margin-top:16px}
 .cp-student-project{padding:17px;border-radius:16px}
 .cp-student-project-label{font-size:12px;margin-bottom:12px}
 .cp-student-project-summary{grid-template-columns:67px minmax(0,1fr);gap:15px}
 .cp-student-project-summary>img{width:67px;height:83px}
 .cp-student-project-summary h2{font-size:21px;line-height:1.2;margin-bottom:6px}
 .cp-student-project-summary p{font-size:13px}
 .cp-student-project-cta{min-height:46px;margin-top:15px;font-size:14px}
 .cp-student-heading{order:0;margin:25px 1px 0}
 .cp-student-heading h1{font-size:25px;line-height:1.2;margin:6px 0 9px}
 .cp-student-category{font-size:11px}
 .cp-student-maker{font-size:13px}
 .cp-student-testimonial{margin:17px 1px 0}
 .cp-student-testimonial blockquote{font-size:18px;line-height:1.55}
 .cp-student-note{font-size:14px;line-height:1.6;margin:13px 1px 0}
 .cp-student-related{margin-top:32px;padding-top:25px}
 .cp-student-related>h2{font-size:20px;line-height:1.3;margin:0 5px 19px}
 .cp-student-dock{position:fixed;z-index:25;right:10px;bottom:max(10px,env(safe-area-inset-bottom));left:10px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:67px;padding:10px 11px 10px 14px;background:#fffffff5;border:1px solid #e2e3dc;box-shadow:0 4px 26px #222a1b16;border-radius:16px;backdrop-filter:blur(8px)}
 .cp-student-dock>div{min-width:0;flex:1}
 .cp-student-dock span{display:block;font-size:10px;line-height:1.4;color:var(--student-muted);margin-bottom:3px}
 .cp-student-dock strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700;line-height:1.4;color:var(--student-ink)}
 .cp-student-dock>a{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:44px;padding:11px 13px;border-radius:var(--radius,4px);background:var(--primary);color:var(--primary-ink,#fff);font-size:12px;font-weight:800;text-decoration:none}
 .cp-student-dock>a>svg{width:16px;height:16px}
 body:has(dialog[open]) .cp-student-dock,.cp-student-photo-open .cp-student-dock{display:none}
 .cp-student-photo-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:15px}
 .cp-student-photo-dialog-bar{padding:9px 11px;gap:12px}
 .cp-student-photo-dialog-bar p{font-size:14px}
}
@media(max-width:370px){.cp-students-intro h1{font-size:26px}.cp-student-filters button{font-size:11px;padding-inline:12px}.cp-student-project-summary h2{font-size:19px}.cp-student-dock>a{padding-inline:10px;gap:5px;font-size:11px}.cp-student-dock strong{font-size:11px}.cp-student-dock{gap:8px}}
@media(prefers-reduced-motion:reduce){.cp-student-card-photo::after{transition:none}}

