/* Event pages: white, near-black and orange. Scoped to .lof-ev. Photo selection and result screens: photobooth.css. */
@font-face{font-family:"Plus Jakarta Sans";src:url("../fonts/PlusJakartaSans-Variable-Latin.woff2") format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
body.lof-page.lof-page-upload,body.lof-page.lof-page-receipt,body.lof-page.lof-page-gallery{background:#fff}
body.lof-page.lof-page-upload>.lof-container,body.lof-page.lof-page-receipt>.lof-container,body.lof-page.lof-page-gallery>.lof-container{background:#fff;color:#111;min-height:100vh;display:block}
body.lof-page>.lof-container:focus{outline:none}

/* --ev-orange fills large bold white text (>=18.7px/700, 3.2:1). Orange text on white uses --ev-orange-text (5.2:1).
   --ev-edge outlines controls (3.3:1 on white); --ev-line is a divider only. */
.lof-ev{--ev-ink:#111;--ev-white:#fff;--ev-orange:#f45b08;--ev-orange-hover:#d84a00;--ev-orange-text:#c2410c;--ev-muted:#575757;--ev-edge:#8f8f8f;--ev-line:#e2e2e2;--ev-soft:#f4f4f4;--ev-alert:#b42318;--ev-radius:6px;
  --ev-font:"Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:var(--ev-white);color:var(--ev-ink);font:16px/1.5 var(--ev-font);
  width:100%;max-width:560px;margin:0 auto;padding:0 20px 48px;min-width:0;overflow-wrap:anywhere;isolation:isolate;-webkit-font-smoothing:antialiased}
.lof-ev *,.lof-ev *::before,.lof-ev *::after{box-sizing:border-box}
.lof-ev [hidden]{display:none!important}
.lof-ev img{max-width:100%;height:auto}
.lof-ev a{color:inherit}
.lof-ev button,.lof-ev input{font:inherit;color:inherit}
.lof-ev :focus-visible{outline:3px solid var(--ev-ink);outline-offset:2px}
:where(.lof-ev) :where(h1,h2,p,figure){margin:0}
.ev-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Event header */
.ev-header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 0 16px}
.ev-brand{display:flex;gap:14px;min-width:0}
.ev-header--stacked .ev-brand{flex-direction:column;gap:8px;width:100%}
.ev-header--inline .ev-brand{align-items:center}
.ev-logo{width:72px;height:72px;border-radius:50%;object-fit:cover;flex-shrink:0}
.ev-header--inline .ev-logo{width:60px;height:60px}
.ev-title{font-size:clamp(32px,9vw,40px);line-height:1.05;font-weight:800;letter-spacing:-.025em}
.ev-header--inline .ev-title{font-size:clamp(22px,6vw,28px);letter-spacing:-.015em}
.ev-dates{color:var(--ev-muted);font-size:17px;line-height:1.4;margin-top:4px}
.ev-header--inline .ev-dates{font-size:16px;margin-top:2px}
.ev-header--stacked .ev-menu{position:absolute;right:0;top:20px}
.ev-header--inline .ev-menu{flex-shrink:0}

/* With the regular site header above: title and dates only, then a slim row of event links. */
.ev-header--site{flex-direction:column;align-items:stretch;gap:14px;padding-top:28px}
.ev-header--site.ev-header--inline{padding-top:22px;padding-bottom:12px}
.ev-subnav{display:flex;gap:4px 24px;overflow-x:auto;scrollbar-width:none;border-bottom:1.5px solid var(--ev-line);margin:0 -2px;padding:0 2px}
.ev-subnav::-webkit-scrollbar{display:none}
.ev-subnav a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;font-size:16px;font-weight:600;color:#3d3d3d;text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-1.5px}
.ev-subnav a:hover{color:var(--ev-ink)}
.ev-subnav a[aria-current=page]{color:var(--ev-orange-text);border-bottom-color:var(--ev-orange);font-weight:700}

/* Event menu (sites without the regular site header) */
.ev-menu{position:relative;flex-shrink:0}
.ev-menu-button{list-style:none;display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;cursor:pointer;border:0;border-radius:var(--ev-radius);background:transparent}
.ev-menu-button img{width:26px;height:26px}
.ev-menu-button::-webkit-details-marker{display:none}
.ev-menu-button::marker{content:""}
.ev-menu[open] .ev-menu-button{background:var(--ev-soft)}
.ev-menu-panel{position:absolute;right:0;top:52px;z-index:20;min-width:210px;background:#fff;border:1px solid var(--ev-line);border-radius:var(--ev-radius);box-shadow:0 10px 30px rgba(0,0,0,.12);padding:6px;display:grid}
.ev-menu-panel a{display:block;padding:12px 14px;text-decoration:none;font-weight:600;border-radius:4px}
.ev-menu-panel a:hover{background:var(--ev-soft)}

/* Shared building blocks */
.ev-main{display:block}
.ev-hero{margin:0 0 20px;overflow:hidden;background:var(--ev-ink)}
.ev-hero img{display:block;width:100%;aspect-ratio:3/1;object-fit:cover;object-position:50% 70%}
.ev-section-title{font-size:clamp(28px,7.6vw,34px);line-height:1.1;font-weight:800;letter-spacing:-.02em}
.ev-sub{color:var(--ev-muted);font-size:18px;line-height:1.4;margin-top:6px}
.ev-hint{color:var(--ev-muted);font-size:14px}
.ev-center{text-align:center}
.ev-status{font-size:15px;color:var(--ev-ink);background:var(--ev-soft);padding:10px 12px;margin:12px 0}
.ev-alert{font-size:15px;color:var(--ev-alert);background:#fff;border:1.5px solid var(--ev-alert);border-radius:var(--ev-radius);padding:12px;margin:12px 0}
.ev-field-error{color:var(--ev-alert);font-size:14px;margin:4px 0 0}
.ev-field input[aria-invalid="true"]{border-color:var(--ev-alert)}
.ev-stack{display:grid;gap:12px}
.ev-links{display:flex;flex-wrap:wrap;gap:4px 24px;margin:20px 0 0;font-size:17px}
.ev-links a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:600;color:var(--ev-orange-text);text-decoration:none;padding:0}
.ev-links a:hover{text-decoration:underline;text-underline-offset:4px}
.ev-links--center{justify-content:center;border-top:1.5px solid var(--ev-line);padding-top:14px}

.ev-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:12px 20px;border-radius:var(--ev-radius);border:1.5px solid transparent;
  font-family:var(--ev-font);font-size:18.7px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s;max-width:100%}
.lof-ev .ev-btn{font-size:18.7px;font-weight:700;line-height:1.2}
.lof-ev .ev-btn--primary{background:var(--ev-orange);color:#fff;border-color:var(--ev-orange)}
.lof-ev .ev-btn--primary:hover{background:var(--ev-orange-hover);border-color:var(--ev-orange-hover)}
.lof-ev .ev-btn--outline{background:#fff;color:var(--ev-ink);border-color:var(--ev-edge)}
.lof-ev .ev-btn--outline:hover{border-color:var(--ev-ink);background:#fafafa}
.lof-ev .ev-btn:disabled,.lof-ev .ev-btn[aria-disabled=true]{opacity:.55;cursor:default}
.ev-btn--block{display:flex;width:100%}
.ev-btn--small{min-height:44px;padding:8px 14px}
.lof-ev .ev-btn--outline.ev-btn--small{font-size:16px}
.lof-ev .ev-btn--primary.is-voted{background:#fff;color:var(--ev-orange-text);border-color:var(--ev-orange)}
.lof-ev .ev-btn--danger{background:#fff;color:var(--ev-alert);border-color:var(--ev-alert)}
.lof-ev .ev-btn--danger:hover{background:#fdf0ef}

.ev-state{text-align:center;padding:40px 8px}
.ev-state h1,.ev-state h2{font-size:26px;font-weight:800;letter-spacing:-.01em;margin-bottom:8px}
.ev-state p{color:var(--ev-muted);margin-bottom:16px}
.ev-state .ev-btn{margin:6px}
.ev-state--inline{padding:28px 8px}
.ev-spinner{display:inline-block;width:30px;height:30px;border:3px solid var(--ev-line);border-top-color:var(--ev-orange);border-radius:50%;animation:ev-turn .9s linear infinite;flex-shrink:0}
@keyframes ev-turn{to{transform:rotate(360deg)}}

/* Phosphor regular icons: real, bundled SVG assets (MIT), never drawn in CSS. */
.ev-icon{display:inline-block;width:22px;height:22px;flex:0 0 22px;vertical-align:middle}
.ev-vote::before,#ev-detail-vote::before,#ev-detail-share::before,#lof-download-btn::before,#photo-entry-share::before,#lof-share-btn::before,#ev-enter::before,#ev-detail-enter::before,.ev-share::before,.photo-camera-button::before{content:"";display:inline-block;width:22px;height:22px;flex:0 0 22px;background-position:center;background-size:contain;background-repeat:no-repeat}
.ev-vote::before,#ev-detail-vote::before{background-image:url('../icons/heart.svg')}
.ev-share::before,#ev-detail-share::before,#photo-entry-share::before,#lof-share-btn::before{background-image:url('../icons/share-network.svg')}
#lof-download-btn::before{background-image:url('../icons/download-simple.svg')}
#ev-enter::before,#ev-detail-enter::before,.photo-camera-button::before{background-image:url('../icons/camera.svg')}
.ev-btn--primary::before{filter:brightness(0) invert(1)}.ev-btn--primary.is-voted::before{filter:none}
.lof-ev .ev-panel-toggle{display:flex;align-items:center;gap:12px;font-size:18.7px;font-weight:700}
.ev-panel-toggle::before,.ev-panel-toggle::after{content:"";display:block;width:22px;height:22px;flex:0 0 22px;background-position:center;background-size:contain;background-repeat:no-repeat}
#photo-email-panel>.ev-panel-toggle::before{background-image:url('../icons/envelope-simple.svg')}
#photo-sms-panel>.ev-panel-toggle::before{background-image:url('../icons/chat-text.svg')}
#photo-entry-section>.ev-panel-toggle::before{background-image:url('../icons/camera.svg')}
.ev-panel-toggle::after{margin-left:auto;background-image:url('../icons/caret-down.svg')}.ev-panel-toggle[aria-expanded=true]::after{transform:rotate(180deg)}

/* Gallery list */
.ev-gallery{max-width:560px}
.ev-gallery .ev-header--stacked:not(.ev-header--site){padding-top:14px;padding-bottom:12px}
.ev-gallery .ev-header--stacked:not(.ev-header--site) .ev-logo{width:60px;height:60px}
.ev-gallery .ev-header--stacked .ev-brand{gap:4px}
.ev-gallery .ev-header--stacked .ev-title{font-size:clamp(28px,8vw,36px)}
.ev-gallery .ev-header--stacked .ev-dates{font-size:16px}
.ev-gallery .ev-hero{margin-bottom:16px}
/* Contest view: the event header steps back so the entries start higher. */
.ev-gallery--contest .ev-header--stacked.ev-header--site{padding-top:18px;gap:10px}
.ev-gallery--contest:not(.is-detail) .ev-header--stacked .ev-title{font-size:clamp(20px,5.6vw,24px);letter-spacing:-.01em}
.ev-gallery--contest .ev-header--stacked .ev-dates{font-size:15px;margin-top:0}
.ev-intro{margin-bottom:14px}
.ev-gallery .ev-sub{font-size:17px;line-height:1.45}
.ev-gallery #ev-voting-line{margin-top:2px}
/* Photos / Contest switch (sites without the site header): a segmented control, distinct from the category tabs. */
.ev-views{display:inline-flex;border:1.5px solid var(--ev-edge);border-radius:var(--ev-radius);overflow:hidden;margin:0 0 14px}
.ev-views a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:96px;padding:8px 18px;font-size:17px;font-weight:600;text-decoration:none;color:var(--ev-ink)}
.ev-views a+a{border-left:1.5px solid var(--ev-edge)}
.ev-views a:hover{background:var(--ev-soft)}
.ev-views a[aria-current=page]{background:var(--ev-ink);color:#fff;font-weight:700}
.ev-filters{display:flex;border-bottom:1.5px solid var(--ev-line);margin:4px 0 18px;overflow-x:auto;scrollbar-width:none}
.ev-filters::-webkit-scrollbar{display:none}
.ev-filter{flex:1 0 auto;background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-1.5px;padding:10px 14px;min-height:48px;font-family:var(--ev-font);font-size:18px;font-weight:500;color:#4a4a4a;cursor:pointer}
.ev-filter[aria-pressed=true]{color:var(--ev-orange-text);border-bottom-color:var(--ev-orange);font-weight:700}
.ev-filter:hover{color:var(--ev-ink)}
#ev-ballot{margin:-8px 0 12px;font-size:14px}
.ev-unavailable-votes{display:grid;gap:8px;margin:12px 0}.ev-unavailable-votes button{text-align:left}
.ev-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
.ev-card{display:flex;flex-direction:column;min-width:0;margin:0}
.ev-card-photo{display:block;background:var(--ev-soft);overflow:hidden}
.ev-card-photo{border-radius:var(--ev-radius)}
.ev-card-photo img{display:block;width:100%;aspect-ratio:5/4;object-fit:cover;transition:transform .25s}
/* Contest cards lead with the costume: a taller thumbnail. The detail view still shows the whole photo. */
.ev-gallery--contest .ev-card-photo img{aspect-ratio:4/5;object-position:50% 30%}
.ev-card-photo:hover img{transform:scale(1.02)}
.lof-ev .ev-card-title{font-weight:700;font-size:16px;line-height:1.3;margin:8px 0 0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow-wrap:break-word}
.ev-card-category{font-size:14px;line-height:1.3;color:var(--ev-muted);margin-top:2px}
.ev-card-actions{margin-top:auto;padding-top:8px}
.ev-card--photo .ev-card-title{font-weight:600;margin-bottom:0}
.ev-card-actions{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px}
.lof-ev .ev-card-actions .ev-btn{min-height:44px;padding:6px 10px}
.lof-ev .ev-card-actions .ev-share{font-size:0;gap:0;min-width:48px}
/* Voted: the server-confirmed state reads as a choice made, not a disabled button. */
.lof-ev .ev-btn--primary.is-voted{box-shadow:inset 0 0 0 1px var(--ev-orange)}
/* One short pulse of the heart after the server confirms a vote. */
.ev-btn.is-just-voted::before{animation:ev-heart .6s ease-out}
@keyframes ev-heart{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
.ev-enter{margin-top:28px}
#ev-more{margin-top:24px}

/* Entry / photo detail */
.ev-gallery.is-detail>.ev-back{margin:14px 0 0}
.ev-gallery.is-detail .ev-header{padding-top:8px}
.ev-gallery.is-detail .ev-subnav{display:none}
.ev-back{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:17px;font-weight:500;text-decoration:none;margin:4px 0 6px}
.ev-back:hover{text-decoration:underline;text-underline-offset:4px}
.ev-detail{max-width:560px;margin:0 auto}
/* The whole photo, never cropped: the image keeps its own shape inside the frame. */
.ev-detail-photo{display:flex;justify-content:center;margin:0 0 20px}
.ev-detail-photo img{display:block;width:auto;max-width:100%;height:auto;max-height:78vh;object-fit:contain}
.ev-detail-title{font-size:clamp(28px,8vw,36px);font-weight:800;line-height:1.1;letter-spacing:-.02em;outline:none}
.ev-detail-category{color:var(--ev-muted);font-size:19px;margin-top:4px}
.ev-detail .ev-stack{border-top:1.5px solid var(--ev-line);margin-top:18px;padding-top:18px}
#ev-detail-closes{margin-top:20px;font-size:17px;text-align:center}

@media (min-width:720px){
  .ev-gallery{max-width:1140px;padding-left:32px;padding-right:32px}
  .ev-gallery .ev-hero img{aspect-ratio:4/1}
  .ev-gallery .ev-header--stacked .ev-title{font-size:40px}
  .ev-gallery .ev-intro{max-width:720px}
  .ev-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 20px}
  .ev-gallery .ev-enter{max-width:420px;margin-left:auto;margin-right:auto}
  .ev-gallery #ev-more{max-width:420px;margin-left:auto;margin-right:auto}
}
/* Desktop detail: large photo beside its title and actions. */
@media (min-width:960px){
  .ev-detail{max-width:none}
  .ev-detail-body:not([hidden]){display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:48px;align-items:start}
  .ev-detail-body .ev-detail-photo{margin:0;background:var(--ev-soft)}
  .ev-detail-body .ev-detail-photo img{max-height:80vh}
  .ev-detail-info{position:sticky;top:24px;padding-top:4px}
}
@media (min-width:1024px){.ev-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Outline buttons may shrink on very small phones; white-on-orange text stays at the 18.7px bold large-text size. */
@media (max-width:360px){.lof-ev{padding:0 14px 36px}.ev-grid{gap:20px 10px}.lof-ev .ev-btn--outline{font-size:17px}.ev-card-actions{grid-template-columns:1fr}.ev-filter{font-size:16px;padding:10px}.ev-views a{min-width:0;flex:1}}
@media (prefers-reduced-motion:reduce){.lof-ev *,.lof-ev *::before,.lof-ev *::after{animation:none!important;transition:none!important}}

.lof-software-footer{padding:20px;text-align:center;font:14px/1.5 "Plus Jakarta Sans",system-ui,sans-serif}.lof-software-footer a{display:inline-flex;align-items:center;min-height:44px;color:#555;text-underline-offset:3px}

/* Root visual review: account for the shared header without creating an extra screen of blank space. */
body.lof-page.has-site-nav>.lof-container{min-height:calc(100vh - 100px);min-height:calc(100dvh - 100px)}
@media(min-width:960px){body.lof-page.has-site-nav>.lof-container{min-height:calc(100vh - 96px);min-height:calc(100dvh - 96px)}}

.lof-ev .ev-album-invite{margin-top:32px;padding-top:24px;border-top:1px solid var(--ev-line,#ddd)}
.lof-ev .ev-album-invite h2{font-size:24px;line-height:1.2;margin-bottom:8px}

/* A persistent, readable account of the current request. */
.ev-print-feedback{display:flex;align-items:flex-start;gap:12px;padding:16px;margin:16px 0 10px;background:#f2f4f6;border-radius:12px;color:var(--ev-ink,#151515)}
.ev-print-feedback p{margin:0 0 5px;line-height:1.5}.ev-print-feedback .ev-spinner{width:24px;height:24px;margin-top:3px}
.ev-print-check{font-size:24px;line-height:1.2;color:#176536;font-weight:700}.ev-pickup-location{font-weight:700;white-space:pre-line;line-height:1.5}
.ev-spinner--button{width:18px;height:18px;border-width:2px;vertical-align:middle;margin-right:8px;border-color:currentColor;border-top-color:transparent}
#lof-print-btn[aria-busy="true"]{opacity:1;cursor:wait}.lof-ev[data-status-animation="0"] .ev-spinner{animation:none!important}
.ev-print-feedback[hidden],.ev-print-feedback [hidden],.ev-spinner--button[hidden]{display:none!important}
