.site-page{
  --showcase-header-h:64px;--showcase-section:64px;--fs-3xl:40px;--lh-3xl:48px;--edit-bar-space:104px;
  --motif-dots:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='11' cy='11' r='1.1' fill='%23000'/%3E%3C/svg%3E");
  min-height:100svh;display:flex;flex-direction:column;overflow-x:clip;
}
#site{flex:1;display:flex;flex-direction:column;min-width:0}
body.has-edit-bar{padding-bottom:var(--edit-bar-space)}
.site-hero.aura-motif:after{-webkit-mask:var(--motif-dots) 50% 0/22px repeat,var(--fade-top);-webkit-mask-composite:source-in;mask:var(--motif-dots) 50% 0/22px repeat,var(--fade-top);mask-composite:intersect}
.site-hero.aura:before,.site-hero.aura-motif:after{top:calc(-1*var(--showcase-header-h))}

.showcase-container{width:100%;max-width:calc(var(--content-max) + 2*var(--content-pad));margin-inline:auto;padding-inline:var(--content-pad)}
.showcase-header{position:sticky;top:0;z-index:var(--z-nav);border-bottom:1px solid transparent;transition:background-color .2s var(--ease-out),border-color .2s var(--ease-out)}
.showcase-header.is-stuck{background:var(--bg);border-bottom-color:var(--line-1)}
.showcase-header-row{display:flex;align-items:center;gap:12px;min-height:var(--showcase-header-h)}
.showcase-header-actions{display:flex;align-items:center;gap:6px;margin-inline-start:auto}
.showcase-header-actions .btn{width:36px;padding:0}
.showcase-header-actions .btn>span{display:none}
.showcase-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;color:var(--text-1);font-weight:600;text-decoration:none}
.showcase-brand:hover{text-decoration:none}
.showcase-brand .brand-mark{width:34px;height:34px;font-size:16px}
.showcase-brand span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.site-hero{padding-block:72px 80px;overflow-x:clip}
.site-hero-copy{display:grid;gap:20px;justify-items:center;max-width:820px;margin-inline:auto;text-align:center;min-width:0}
.site-hero-logo{width:72px;height:72px;font-size:30px}
.site-eyebrow{font-size:var(--fs-md);font-weight:500;color:var(--text-2)}
.display-title{font-size:var(--fs-3xl);line-height:var(--lh-3xl);font-weight:700;overflow-wrap:anywhere;max-width:22ch}
.display-subtitle{font-size:var(--fs-xl);line-height:var(--lh-xl);color:var(--text-2);font-weight:400;max-width:60ch;overflow-wrap:anywhere}
.hero-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:8px}
@media (max-width:900px){.site-hero{padding-block:36px 48px}.display-title{font-size:28px;line-height:38px}.display-subtitle{font-size:var(--fs-lg);line-height:var(--lh-lg)}.site-hero-logo{width:60px;height:60px}}

.showcase-section{padding-block:var(--showcase-section);border-top:1px solid var(--line-1)}
@media (max-width:640px){.site-page{--showcase-section:44px}}
.showcase-section-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.showcase-section-title{font-size:var(--fs-xl);line-height:var(--lh-xl);font-weight:600;min-width:0;overflow-wrap:anywhere}
.head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* inline editing */
.editable{border-radius:var(--r-sm);outline:1px dashed transparent;outline-offset:4px;transition:outline-color var(--dur-fast) var(--ease-out)}
.is-editing .editable{outline-color:var(--line-2);cursor:text}
.is-editing .editable:hover{outline-color:var(--accent-line)}
.is-editing .editable:focus{outline:1px solid var(--accent);outline-offset:4px}
.editable:empty:before{content:attr(data-placeholder);color:var(--text-3)}
.edit-hint{margin-bottom:20px}

/* classes */
.grade-block+.grade-block{margin-top:36px}
.grade-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.grade-title{font-size:var(--fs-lg);line-height:var(--lh-lg);font-weight:600}
.class-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr));gap:12px}
.class-card{display:flex;flex-direction:column;gap:14px;min-width:0;padding:16px;background:var(--surface-1);border:1px solid var(--line-1);border-radius:var(--r-lg);transition:border-color var(--dur-fast)}
.class-card:hover{border-color:var(--line-2)}
.class-top{display:flex;align-items:center;gap:12px;min-width:0}
.class-name{flex:1;min-width:0;font-size:var(--fs-lg);line-height:var(--lh-lg);font-weight:600;overflow-wrap:anywhere}
.class-actions{margin-top:auto;display:flex;align-items:center;gap:8px}
.class-actions .btn{flex:1}
.class-link-row{display:flex;align-items:center;gap:6px}
.class-link-row .input-group{flex:1}
.class-add{align-items:center;justify-content:center;min-height:132px;gap:8px;border-style:dashed;background:transparent;color:var(--text-2);cursor:pointer;font-weight:500}
.class-add:hover{background:var(--surface-1);color:var(--text-1)}
.class-add .thumb{background:var(--surface-2)}

a.sess{text-decoration:none}
.sess-link{font-size:11px;color:var(--accent-ink)}
.week-note{display:flex;align-items:center;gap:8px;margin-top:12px;color:var(--text-3);font-size:var(--fs-xs)}

/* footer */
.site-footer{padding-block:40px 48px;border-top:1px solid var(--line-1)}
.site-footer-grid{display:grid;gap:14px;justify-items:center;text-align:center}
.site-footer-brand{display:inline-flex;align-items:center;gap:10px;font-weight:600}
.site-footer-brand .brand-mark{width:32px;height:32px;font-size:15px}
.site-footer-text{color:var(--text-2);font-size:var(--fs-sm)}

/* edit bar */
.edit-bar{position:fixed;inset-inline:0;bottom:0;z-index:70;display:flex;justify-content:center;padding:0 var(--content-pad) calc(16px + env(safe-area-inset-bottom,0px));pointer-events:none}
.edit-bar-row{display:flex;align-items:center;gap:4px;width:100%;max-width:620px;min-height:56px;padding:7px;background:var(--surface-1);border:1px solid var(--line-2);border-radius:var(--r-xl);box-shadow:var(--shadow-pop);pointer-events:auto}
.edit-bar-status{display:inline-flex;align-items:center;padding-inline:4px;flex-shrink:0}
.edit-bar-sep{width:1px;height:24px;margin-inline:4px;flex-shrink:0;background:var(--line-2)}
.edit-bar-action{flex-shrink:0}
.edit-bar-save{margin-inline-start:auto}
.edit-bar-action[aria-pressed=true] i{color:var(--accent-ink)}
@media (max-width:640px){
  .edit-bar{padding:0 8px calc(8px + env(safe-area-inset-bottom,0px))}
  .edit-bar-row{max-width:none;padding:5px;gap:2px;border-radius:var(--r-lg)}
  .edit-bar-action:not(.edit-bar-save){width:40px;padding:0}
  .edit-bar-action:not(.edit-bar-save)>.edit-bar-label{display:none}
  .edit-bar-sep{display:none}
}
.preview-pill{position:fixed;inset-inline:0;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:70;display:flex;justify-content:center;pointer-events:none}
.preview-pill .btn{pointer-events:auto;box-shadow:var(--shadow-pop)}
