/* School-inspired layout. Colours remain editable in PortalConfig.gs. */
:root{--background:#faf9f6;--gold:#b69a45;--navy:#800c26;--ink:#302d2e;--line:#e7e1d9;--muted:#686165;--secondary:#f3eee6}
body{line-height:1.5}.topbar{background:var(--paper);color:var(--ink);border-top:5px solid var(--wine);border-bottom:1px solid var(--line);padding-top:20px;padding-bottom:20px}.topbar a{color:var(--wine);font-family:Georgia,serif;font-size:25px;letter-spacing:.12em}.topbar span{color:var(--muted)}
.layout{max-width:1140px;grid-template-columns:250px minmax(0,1fr);gap:48px;margin:40px auto}.event-info{min-width:0}.crest{max-width:170px;margin:0 0 24px}.event-info h1{font-size:29px;line-height:1.2;overflow-wrap:break-word}.eyebrow{font-size:11px;letter-spacing:.15em}.facts{font-size:15px}.price{border-top:1px solid var(--line);padding-top:18px;margin-top:22px;font-size:26px;color:var(--wine)}.venue{height:125px;object-fit:contain;object-position:center;background:var(--paper);padding:12px;border:1px solid var(--line);border-radius:4px;margin-top:26px}
.card{box-shadow:none;border-radius:6px;padding:34px}.card-head{border-bottom:2px solid var(--gold);padding-bottom:22px}.card-head h2{font-family:Georgia,serif;font-size:31px;font-weight:normal;color:var(--wine)}.card-head p{color:var(--muted);font-size:15px}fieldset{padding:0 0 26px;margin-bottom:26px;border-bottom:1px solid var(--line)}fieldset:last-of-type{border-bottom:0;padding-bottom:0}legend{font-size:16px;letter-spacing:.01em}label{font-size:14px;font-weight:600}.fields{gap:18px}#age-fields{margin-top:18px}#payment-fields{margin-bottom:18px}input,select,textarea{border-radius:4px;padding:11px 12px;min-height:45px;border-color:var(--line);background:var(--paper)}.consent input{min-height:20px}.instructions{background:var(--background);font-size:15px}.hint{font-size:13px}button,.button{border-radius:4px;font-size:15px}.consent{font-size:14px;line-height:1.7}#privacy-link{display:inline-block;text-decoration:underline}footer{color:var(--muted)}
.admin-wrap{max-width:1200px;padding-top:34px}.admin-title{margin-bottom:26px}.admin-title h1{font-size:29px}.counts{gap:12px}.count{border-radius:5px;box-shadow:none}.count strong{font-size:27px}th{background:var(--secondary);color:var(--wine)}th,td{padding:14px}dialog{border-radius:6px}#review-form label{font-size:14px}.toolbar button{white-space:nowrap}
@media(max-width:850px){.layout{grid-template-columns:1fr;gap:24px;margin-top:24px}.event-info{grid-template-columns:90px minmax(0,1fr);gap:10px 20px}.crest{width:90px;margin:0}.event-info h1{font-size:25px}.event-info .venue{display:block;grid-column:2;width:150px;height:90px;margin-top:8px}.event-info .organizer{grid-column:2}.event-info .facts{font-size:14px}.price{margin-top:10px;padding-top:10px}.card{padding:26px}.topbar{padding:16px 22px}}
@media(max-width:520px){.topbar{align-items:flex-start;gap:12px}.topbar span{max-width:160px;text-align:right}.topbar a{font-size:21px}.card{padding:20px}.card-head h2{font-size:27px}.event-info{grid-template-columns:72px minmax(0,1fr);gap:10px 16px}.crest{width:72px}.event-info h1{font-size:22px}.fields{gap:16px}.toolbar{gap:10px}.toolbar select{max-width:100%}#submit{width:100%}}

.player-group h3{margin:0 0 10px;font-size:15px;color:var(--wine)}.player-row{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:16px;align-items:end}.player-row label{min-width:0}.player-age input{width:100%}#age-fields:empty{display:none}@media(max-width:520px){.player-row{grid-template-columns:minmax(0,1fr) 96px;gap:12px}.player-row label{font-size:13px}}
/* Banner-led registration and reference-inspired player cards. */
.banner-registration .topbar{display:none}.event-banner{max-width:1400px;margin:0 auto;background:var(--paper)}.event-banner img{display:block;width:100%;height:auto;object-fit:contain}.banner-registration .layout{display:block;max-width:1000px;margin:24px auto 40px}.banner-registration .event-info{display:block;padding:0 0 18px;text-align:center}.banner-registration .event-info .crest,.banner-registration .event-info .eyebrow,.banner-registration .event-info .venue,.banner-registration .event-info .price,.banner-registration .event-info .facts>.hint{display:none}.banner-registration #event-name{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}.banner-registration .facts{font-size:14px;color:var(--muted)}.banner-registration .card{padding:38px;border:0;background:var(--paper);border-radius:10px}.banner-registration .card-head{border-bottom:0;margin-bottom:32px;padding-bottom:0}.banner-registration .card-head h2{font-family:Arial,Helvetica,sans-serif;font-weight:700;font-size:25px}.banner-registration fieldset{min-width:0;margin-bottom:36px;padding-bottom:32px}.section-heading{display:flex;align-items:center;gap:18px;width:100%;font-size:27px;font-weight:700;margin-bottom:8px}.step-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:52px;border-radius:50%;background:var(--wine);color:var(--onPrimary);font-size:23px}.section-description{color:var(--muted);font-size:16px;margin:0 0 24px;padding:0 0 22px 70px;border-bottom:2px solid var(--gold)}.banner-registration .player-group{padding:26px;background:color-mix(in srgb,var(--wine) 4%,var(--paper));border-radius:14px}.player-card-heading{display:flex;gap:18px;align-items:center;margin-bottom:24px;color:var(--wine)}.player-card-heading svg{width:36px;height:40px;flex-shrink:0}.player-card-heading h3{font-size:22px;margin:0 0 3px}.player-card-heading p{font-size:15px;color:var(--muted);margin:0}.banner-registration .player-row{grid-template-columns:minmax(0,1fr) minmax(140px,.42fr);gap:20px}.banner-registration .player-row label{font-size:15px}.banner-registration input,.banner-registration select{min-height:50px;border-radius:8px;border-color:#d9d2d3}.banner-registration .fields{gap:22px}.banner-registration .consent input{min-height:20px}.banner-registration footer{max-width:1000px}
@media(max-width:600px){.banner-registration .layout{margin-top:16px;padding:0 12px}.banner-registration .card{padding:20px 14px}.banner-registration .player-group{padding:18px 14px}.section-heading{font-size:23px;gap:12px}.step-number{flex-basis:42px;width:42px;height:42px;font-size:19px}.section-description{padding-left:0;font-size:14px;margin-top:10px}.player-card-heading{gap:12px;margin-bottom:18px}.player-card-heading h3{font-size:20px}.player-card-heading p{font-size:13px}.banner-registration .player-row{grid-template-columns:minmax(0,1fr) 100px;gap:12px}.banner-registration .player-row label{font-size:13px}.banner-registration .card-head h2{font-size:23px}.banner-registration input{padding:10px}.banner-registration .facts{font-size:13px}}

/* Consistent supporting cards and submission area. */
.banner-registration fieldset.detail-card{background:var(--background);border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:24px;min-width:0}
.banner-registration .detail-card .section-heading{float:left;margin:0 0 8px}.banner-registration .detail-card .section-description{clear:both;padding-bottom:16px;margin-bottom:18px}
.banner-registration .fields{gap:16px}.banner-registration .player-group{padding-top:22px;padding-bottom:22px}.banner-registration .player-card-heading{margin-bottom:18px}.banner-registration #age-fields{margin-top:14px}.banner-registration #payment-fields{margin-bottom:16px}
.banner-registration .hint,.banner-registration .player-card-heading p,.banner-registration .section-description{color:var(--muted);font-size:14px;line-height:1.6}.banner-registration .hint{margin:10px 0 0}
.payment-panel{background:var(--paper);border:1px solid var(--gold);border-left:5px solid var(--wine);border-radius:8px;padding:18px;margin-bottom:20px}.payment-panel-title{color:var(--wine);font-size:16px;font-weight:700;margin:0 0 10px}.banner-registration .payment-panel .instructions{padding:0;margin:0;background:transparent;border:0;font-size:15px}.payment-panel img{display:block;max-width:240px;width:100%;height:auto;margin:16px auto;object-fit:contain}
.banner-registration .submission-review{margin:20px 0 12px;padding:0;font-size:14px;line-height:1.6;color:var(--ink);text-align:center}.banner-registration #submit{width:100%;min-height:56px;background:var(--wine);color:var(--onPrimary);font-size:18px;font-weight:700;border-radius:8px}.banner-registration #submit:not(:disabled):hover{filter:brightness(.92)}.banner-registration #submit:disabled{opacity:.65}.banner-registration #submit+.hint{text-align:center;margin-top:12px}
@media(max-width:600px){.banner-registration fieldset.detail-card{padding:18px 14px;margin-bottom:20px}.banner-registration .fields{gap:14px}.banner-registration .player-group{padding:18px 14px}.payment-panel{padding:14px}.banner-registration .hint,.banner-registration .player-card-heading p,.banner-registration .section-description{font-size:13px}.banner-registration #submit{font-size:17px}}
.gcash-card{margin:0 0 20px;padding:20px;background:var(--paper);border:1px solid var(--line);border-radius:10px;text-align:center}.gcash-card figcaption strong{display:block;color:var(--wine);font-size:20px}.gcash-card figcaption span{display:block;color:var(--muted);margin-top:4px}.payment-panel .gcash-card img{max-width:240px;aspect-ratio:auto;height:auto;margin:18px auto 0}
/* Tournament-day admin: compact desktop table and mobile pair cards. */
.admin-event-banner{margin-bottom:26px;border-radius:8px;overflow:hidden;border:1px solid var(--line)}.admin-event-banner img{display:block;width:100%;height:auto}.admin-wrap .counts{grid-template-columns:repeat(5,minmax(0,1fr))}.arrived-count{border-color:var(--gold);background:var(--background)}.arrived-count strong{font-size:21px}.arrival-badge{display:inline-block;padding:4px 9px;border-radius:5px;border:1px solid var(--line);font-size:13px;font-weight:600;white-space:nowrap}.arrival-badge.is-arrived{background:var(--successBackground);color:var(--successText);border-color:var(--successText)}.row-actions{min-width:150px}.row-actions button{display:block;width:100%;padding:10px 12px;margin:4px 0;font-size:13px}.row-actions button:last-child{background:var(--secondary);color:var(--wine)}.checkin-notice:empty{display:none}.checkin-notice:not(:empty){padding:12px 16px;border-left:4px solid var(--gold);background:var(--background)}.admin-wrap .toolbar select{max-width:220px}.admin-wrap table{font-size:14px}.admin-wrap th,.admin-wrap td{padding:12px 10px}
@media(max-width:1000px){.admin-wrap .counts{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-wrap .toolbar{gap:10px}.admin-wrap .toolbar input{flex-basis:100%}}
@media(max-width:700px){.admin-wrap{padding:18px 12px}.admin-wrap .counts{grid-template-columns:repeat(2,minmax(0,1fr))}.arrived-count{grid-column:1/-1}.admin-wrap .table-scroll{overflow:visible}.admin-wrap table,.admin-wrap tbody,.admin-wrap tr,.admin-wrap td{display:block;width:100%;min-width:0}.admin-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.admin-wrap tr{border:1px solid var(--line);border-radius:9px;background:var(--paper);margin-bottom:16px;padding:12px}.admin-wrap td{border:0;padding:7px 4px;overflow-wrap:anywhere}.admin-wrap td:before{content:attr(data-label);display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:3px}.admin-wrap td.row-actions{display:flex;gap:8px}.admin-wrap td.row-actions:before{display:none}.row-actions button{min-height:44px}.admin-wrap .toolbar select{flex:1;max-width:none;min-width:135px}.admin-title h1{font-size:24px}.admin-title img{width:55px;height:60px}}

#consent-dialog{width:calc(100% - 28px);max-width:760px;max-height:85vh;overflow:auto;padding:24px;border:1px solid var(--gold);border-radius:12px}#consent-dialog::backdrop{background:#18050b88}#consent-full{white-space:pre-wrap;line-height:1.65}#consent-dialog .actions{display:flex;flex-wrap:wrap;gap:12px}#consent-dialog h2{font-size:23px;color:var(--wine)}
#consent-dialog{padding:0;width:calc(100% - 28px);max-width:780px;max-height:88vh;max-height:88dvh;overflow:hidden;background:var(--paper,#fff)}
#consent-dialog[open]{display:flex;flex-direction:column}
#consent-dialog .consent-modal-header{flex:none;padding:20px 24px;background:#faf7ef;border-bottom:2px solid var(--gold,#b18b40)}
#consent-dialog .consent-modal-header h2{margin:0;font-size:clamp(17px,2.5vw,23px);line-height:1.4}
#consent-dialog .consent-modal-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 24px 24px;line-height:1.7}
#consent-dialog #consent-full{white-space:normal;line-height:inherit}
#consent-dialog .consent-section{padding-top:18px;margin-top:18px;border-top:1px solid var(--line,#e5ddd1)}
#consent-dialog .consent-section h3{color:var(--wine,#800c26);font-size:18px;line-height:1.45;margin:0 0 14px}
#consent-dialog .consent-modal-body p{margin:0 0 16px}
#consent-dialog .consent-modal-body>div>p:first-child{margin-top:16px}
#consent-dialog .consent-modal-footer{display:flex;flex:none;justify-content:flex-end;gap:12px;width:100%;max-width:none;margin:0;padding:16px 24px;background:#faf7ef;border-top:1px solid var(--gold,#b18b40)}
#consent-dialog button{min-height:44px;white-space:normal}
#consent-dialog .consent{align-items:flex-start;margin:0}
#consent-summary.consent-accepted{color:#17633e;font-weight:600}
@media(max-width:520px){#consent-dialog .consent-modal-header{padding:14px 16px}#consent-dialog .consent-modal-body{padding:6px 16px 18px}#consent-dialog .consent-modal-footer{padding:12px 16px;gap:8px}#consent-dialog .consent-modal-footer button{flex:1;padding:10px;font-size:14px}}
.registration-types{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0 22px}.registration-types label{display:flex;align-items:center;gap:12px;border:1px solid var(--gold);border-radius:10px;background:var(--paper);padding:18px;font-weight:700;cursor:pointer}.registration-types label:has(input:checked){background:var(--secondary);outline:2px solid var(--wine)}.registration-types input{width:22px;height:22px;flex:none;margin:0}#player-cards .player-group{margin-top:20px;padding:20px}#player-cards .fields,#contact-players .fields{grid-template-columns:repeat(2,minmax(0,1fr))}#contact-players .contact-player{padding:16px 0}#amount-due{font-size:25px;font-weight:700;color:var(--wine)}#eligibility-message{color:var(--wine);font-weight:600}[hidden]{display:none!important}.banner-registration input,.banner-registration select{min-width:0;font-size:16px}#copy-contact-row{align-items:center}#copy-contact-row input{width:22px;min-height:22px}#player-cards h3,#contact-players h3{color:var(--wine)}
@media(max-width:600px){#player-cards .fields,#contact-players .fields{grid-template-columns:1fr}#player-cards .player-group{padding:15px}.registration-types label{padding:14px 10px}.banner-registration .layout{min-width:0}.banner-registration .card{min-width:0}}
#copy-contact-row,#contact-players{clear:both;width:100%;min-width:0}#copy-contact-row{padding-top:14px}.registration-types input[type=radio]{min-height:22px}.section-heading>span:last-child{min-width:0;overflow-wrap:break-word}
.banner-registration:has(>.event-banner[hidden]) #event-name{position:static;width:auto;height:auto;margin:0 0 12px;overflow:visible;clip-path:none;font-size:clamp(26px,4vw,38px)}

@media(max-width:600px){#player-cards .fields{grid-template-columns:minmax(0,1fr) 95px;align-items:end}#player-cards [data-player-field]:not([data-player-field=name]):not([data-player-field=age]){grid-column:1/-1}}
/* Keep the complete banner compact; native category menus use readable text. */
.banner-registration>.event-banner{max-width:1000px;padding:12px 16px 0}
.banner-registration>.event-banner img{width:100%;height:auto;max-height:320px;object-fit:contain}
.banner-registration select,.banner-registration select option{font-size:16px;font-weight:400}
.banner-registration select{max-width:100%;min-width:0}
@media(min-width:601px) and (max-width:1100px){.banner-registration>.event-banner img{max-height:260px}}
@media(max-width:600px){.banner-registration>.event-banner{padding:8px 12px 0}.banner-registration>.event-banner img{max-height:200px}}
/* Compact mechanics access above the form; no image fetch until the link opens. */
.banner-registration #mechanics-row{margin:0 0 16px;text-align:center}
.banner-registration #mechanics-link,.banner-registration #category-guide-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 18px;border:1px solid var(--gold);border-radius:8px;background:var(--paper);color:var(--wine);font-size:16px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.banner-registration #mechanics-link:focus-visible,.banner-registration #category-guide-link:focus-visible{outline:3px solid var(--wine);outline-offset:3px}
.banner-registration .event-info[hidden]{display:none}
@media(min-width:1101px){.banner-registration>.event-banner img{max-height:280px}}
/* A definite dialog height prevents the flex reading area collapsing on phones. */
body.consent-open{position:fixed;top:var(--consent-scroll-top,0);width:100%;overflow:hidden}
#consent-dialog{height:88vh;height:88dvh;max-height:88vh;max-height:88dvh;box-sizing:border-box}
#consent-dialog .consent-modal-body{flex:1 1 0;min-height:0;min-width:0;font-size:16px;overflow-x:hidden;overflow-wrap:anywhere;-webkit-overflow-scrolling:touch}
#consent-dialog .consent-modal-header,#consent-dialog .consent-modal-footer{flex-shrink:0}
@media(max-width:600px){
 #consent-dialog{width:calc(100% - 16px);max-width:none;height:94vh;height:94dvh;max-height:94vh;max-height:94dvh;margin:auto;border-radius:12px}
 #consent-dialog .consent-modal-header{padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top))}
 #consent-dialog .consent-modal-header h2{font-size:18px;line-height:1.3}
 #consent-dialog .consent-modal-body{padding:12px 16px;font-size:16px;line-height:1.65}
 #consent-dialog .consent-modal-footer{padding:12px; padding-bottom:max(12px,env(safe-area-inset-bottom));gap:8px}
 #consent-dialog .consent-modal-footer button{min-height:48px;min-width:0;font-size:15px;padding:10px;flex:1}
 #consent-dialog .consent-modal-footer #confirm-consent{flex:2}
}
.size-guide-link{display:block;background:transparent!important;color:var(--wine)!important;border:0!important;text-decoration:underline;font-size:14px;padding:6px 0!important;min-height:44px;box-shadow:none!important;text-align:left}
#shirt-size-guide{width:calc(100% - 24px);max-width:420px;max-height:90vh;max-height:90dvh;padding:16px;border:1px solid var(--gold);border-radius:12px;background:var(--paper)}
#shirt-size-guide[open]{display:flex;flex-direction:column;gap:12px}
#shirt-size-guide h2{font-size:21px;color:var(--wine);margin:0;flex:none}
#shirt-size-guide .shirt-guide-body{overflow-y:auto;min-height:0;overscroll-behavior:contain;font-size:16px}
#shirt-size-guide table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}
#shirt-size-guide th,#shirt-size-guide td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
#shirt-size-guide p{margin:0 0 12px}#shirt-size-guide>button{flex:none;min-height:48px}
#shirt-size-guide::backdrop{background:#18050b88}
#classification-dialog{width:calc(100% - 24px);max-width:580px;max-height:92vh;max-height:92dvh;box-sizing:border-box;padding:20px;border:1px solid var(--gold);border-radius:12px;background:var(--paper);color:var(--ink)}
#classification-dialog[open]{display:flex;flex-direction:column;gap:16px}
#classification-dialog h2{flex:none;font-family:inherit;font-weight:600;font-size:21px;line-height:1.35;color:var(--wine);margin:0}
.classification-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;font-family:inherit;font-weight:400;font-size:16px;line-height:1.6;overflow-wrap:anywhere}
.classification-body p{margin:0 0 18px}.classification-ack{display:flex;align-items:flex-start;gap:12px}.classification-ack input{flex:0 0 22px;width:22px;height:22px;margin-top:4px}.classification-ack{font-weight:400;margin:0}.classification-ack span{min-width:0;font-size:16px;font-weight:400;line-height:1.5}
.classification-actions{display:flex;gap:10px;flex:none;padding-bottom:env(safe-area-inset-bottom,0px)}.classification-actions button{flex:1;min-height:48px;padding:10px;font-size:15px}
#classification-dialog::backdrop{background:#18050b88}
@media(max-width:480px){#classification-dialog{padding:16px}.classification-actions{flex-wrap:wrap}.classification-actions button{min-width:100px}}

#mechanics-row a[hidden],#information-separator[hidden]{display:none!important}
#mechanics-row a{margin:4px;max-width:100%;box-sizing:border-box}
