/* Public academy: shares the site's container, headings and brand tokens. */
.education-desk-view{padding:0!important}
.education-desk-frame{display:block;width:100%;height:calc(100dvh - var(--header-height));border:0;background:var(--bg-cream)}
body:has(#view-education-manage.active)>.footer{display:none}
body:has(#view-education-manage.active){padding-bottom:0!important}
body:has(#view-education-manage.active)>.mobile-quick-bar{display:none}
.academy-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:24px;border-bottom:1px solid var(--border-color)}
.academy-list-heading h3{font-size:1.15rem;font-weight:700}
.academy-list-heading>span,.academy-meta{font-size:.82rem;color:var(--text-muted)}
.academy-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.academy-records>[hidden],.academy-pagination[hidden]{display:none!important}
.academy-list-heading{scroll-margin-top:calc(var(--header-height) + 24px)}
.academy-pagination{display:flex;justify-content:center;align-items:center;gap:24px;margin-top:32px}
.academy-pagination button{min-height:44px;padding:10px 18px;border:1px solid var(--border-color);border-radius:var(--radius-sm);background:var(--bg-card);font:inherit;font-size:.85rem;color:var(--text-main);cursor:pointer}
.academy-pagination button:disabled{opacity:.4;cursor:default}
.academy-pagination button:focus-visible{outline:2px solid var(--accent-gold-dark);outline-offset:4px}
.academy-pagination [role=status]{font-size:.85rem;color:var(--text-muted);font-variant-numeric:tabular-nums}
.academy-record{display:block;overflow:hidden;border:1px solid var(--border-color);border-radius:var(--radius-md,12px);background:var(--bg-card);color:var(--text-main);text-decoration:none;transition:box-shadow .2s,transform .2s}
.academy-record:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(40,30,20,.07)}
.academy-cover{background:#eee9e1;aspect-ratio:4/3}
.academy-cover img{width:100%;height:100%;object-fit:contain}
.academy-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border-subtle);border-bottom:1px solid var(--border-color)}
.academy-comparison figure{margin:0;min-width:0;background:var(--bg-card)}
.academy-comparison-image{aspect-ratio:3/4;background:#eee9e1}
.academy-comparison-image img{width:100%;height:100%;object-fit:contain}
.academy-comparison figcaption{padding:10px 4px;text-align:center;font-size:.7rem;color:var(--text-muted)}
.academy-photo-pending{display:flex;align-items:center;justify-content:center;background:var(--bg-sand-light);color:var(--text-muted);text-align:center;font-size:.78rem;line-height:1.8;padding:12px;word-break:keep-all}
.academy-results{margin-top:24px}
.academy-result-pending{height:390px;border:1px dashed var(--border-color);border-radius:6px}
.academy-record-body{padding:24px}
#academy-manage-link[hidden]{display:none!important}
#academy-manage-link{display:block;width:fit-content;margin:32px 0 0 auto;font-size:.8rem;color:var(--text-muted);text-decoration:underline;text-underline-offset:5px}
.academy-load-error{font-size:.8rem;color:var(--text-muted);padding-top:18px}
.academy-record .academy-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.academy-category{display:block;color:var(--accent-gold-dark);font-size:.75rem;margin-bottom:10px;letter-spacing:.04em}
.academy-record h4{font-size:1.15rem;line-height:1.6;letter-spacing:-.03em;margin-bottom:8px}
.academy-meta{margin-bottom:16px}
.academy-summary{color:var(--text-muted);font-size:.875rem;line-height:1.85;margin-bottom:24px;word-break:keep-all;overflow-wrap:anywhere}
.academy-readmore{display:flex;justify-content:space-between;padding-top:16px;border-top:1px solid var(--border-color);font-size:.8rem}
.academy-record:focus-visible,.academy-article a:focus-visible,.academy-article button:focus-visible,.academy-lightbox button:focus-visible{outline:2px solid var(--accent-gold-dark);outline-offset:4px}
.academy-page-header{border-bottom:1px solid var(--border-color);background:var(--bg-card)}
.academy-page-header .container{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:22px;padding-bottom:22px}
.academy-brand{font-family:var(--font-playfair);font-size:1.3rem;letter-spacing:.12em;color:var(--text-main);text-decoration:none}
.academy-brand small{display:block;font-family:var(--font-montserrat,sans-serif);font-size:.55rem;letter-spacing:.2em;color:var(--accent-gold-dark)}
.academy-brand img{display:block;height:60px;width:auto;max-width:230px;object-fit:contain}
.academy-page-header nav{font-size:.85rem;color:var(--text-muted)}
.academy-article{padding-top:44px;padding-bottom:64px}
.academy-back{display:inline-flex;align-items:center;min-height:44px;color:var(--text-muted);font-size:.85rem;margin-bottom:24px;text-decoration:none}
.academy-article .section-header{margin-bottom:24px}
.academy-article .section-title{line-height:1.5}
.academy-description{max-width:800px;margin:0 auto 30px;color:var(--text-muted);font-size:.95rem;line-height:1.95;text-align:center;word-break:keep-all;overflow-wrap:anywhere}
.academy-photos{padding:28px;border:1px solid var(--border-color);border-radius:var(--radius-md,12px);background:var(--bg-card)}
.academy-photos h2{font-size:1.1rem;margin-bottom:24px}
.academy-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:920px;margin:auto}
.academy-photo-grid figure{margin:0;min-width:0}
.academy-photo-button{display:block;width:100%;padding:0;border:0;border-radius:6px;overflow:hidden;background:#eee9e1;cursor:zoom-in}
.academy-photo-button img{width:100%;height:390px;object-fit:contain}
.academy-photo-grid figcaption{text-align:center;color:var(--text-muted);font-size:.8rem;margin-top:10px}
.academy-photo-help{margin-top:20px;text-align:center;color:var(--text-muted);font-size:.75rem}
.academy-source{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border-color);font-size:.8rem;color:var(--text-muted)}
.academy-source a{color:var(--text-main);text-decoration:underline;text-decoration-color:var(--accent-gold-dark);text-underline-offset:5px;line-height:1.9}
.academy-page-footer{text-align:center;padding:24px;border-top:1px solid var(--border-color);font-size:.75rem;color:var(--text-muted)}
.academy-lightbox{margin:auto;padding:0;border:0;border-radius:8px;background:#191613;color:#fff;width:min(960px,calc(100% - 24px));max-width:none;max-height:94dvh}
.academy-lightbox::backdrop{background:rgba(0,0,0,.8)}
.academy-lightbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;font-size:.85rem}
.academy-light-actions{display:flex;gap:8px;flex-shrink:0}
.academy-light-actions button{width:44px;height:44px;border:1px solid #777;border-radius:50%;background:transparent;color:#fff;font-size:1.2rem;cursor:pointer}
.academy-lightbox>img{width:100%;height:calc(88dvh - 80px);object-fit:contain}
@media(max-width:900px) and (min-width:601px){.academy-records{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .academy-records{grid-template-columns:1fr;gap:20px}
  .academy-record-body{padding:20px}
  .academy-list-heading{margin-bottom:20px}
  .academy-list-heading h3{font-size:1rem}
  .academy-article{padding-top:24px;padding-bottom:40px}
  .academy-page-header .container{padding-top:16px;padding-bottom:16px}
  .academy-brand{font-size:1.05rem}
  .academy-brand img{height:40px;max-width:160px}
  .academy-page-header nav{font-size:.75rem}
  .academy-description{text-align:left;font-size:.875rem;line-height:1.9;margin-bottom:24px}
  .academy-photos{padding:18px 14px}
  .academy-photos h2{font-size:1rem;margin-bottom:16px}
  .academy-photo-grid{gap:12px}
  .academy-photo-button img{height:auto;aspect-ratio:4/5;object-fit:contain}
  .academy-result-pending{height:auto;aspect-ratio:4/5;font-size:.75rem}
  .academy-photo-grid figcaption{font-size:.72rem}
  .academy-source{align-items:flex-start;flex-direction:column;gap:8px}
  .academy-lightbar{padding:10px;font-size:.75rem}
  .academy-light-actions{gap:4px}
}
@media(prefers-reduced-motion:reduce){.academy-record{transition:none}}
