/* Rep Resources (reps.html), on top of site.css: same noir look. */
.rep-main { padding: 120px 0 72px; min-height: 100vh; }
.rep-nav { display: flex; align-items: center; gap: 14px; }
.rep-nav a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid #fff; padding-bottom: 2px; }
.rep-nav .btn { padding: 10px 16px; }
@media (max-width: 460px) { .hide-small { display: none; } }
.rep-loading { font-family: var(--serif); font-size: 1.5rem; text-align: center; padding: 60px 0; }
.rep-card { max-width: 460px; margin: 30px auto; display: grid; gap: 20px; }
.rep-card h1 { font-size: 2.2rem; }
.rep-small { font-size: 0.92rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rep-empty { font-family: var(--serif); font-size: 1.4rem; padding: 30px 0; }

.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border: 1px dashed #fff; padding: 12px 16px; margin-bottom: 26px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.admin-bar select { width: auto; min-width: 200px; text-transform: none; letter-spacing: 0; }
.admin-bar a { letter-spacing: 0.14em; }

.portal-head { margin-bottom: 30px; }
.portal-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.block { border-top: 1px solid #fff; padding: 30px 0 40px; }
.block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.block-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.block-note { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }

/* The slideshow: two stacked pictures that cross-fade. */
.show { border: 1px solid #fff; background: #000; }
.show-stage { position: relative; aspect-ratio: 16 / 10; max-height: 72vh; width: 100%; overflow: hidden; cursor: pointer; }
.show-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.8s ease; }
.show-img.on { opacity: 1; }
.show-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-family: var(--serif); font-size: 1.4rem; max-width: none; }
.show-controls { display: flex; align-items: center; gap: 8px; padding: 10px; border-top: 1px solid #fff; }
.show-controls .spacer { flex: 1; }
.show-pos { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.ctl { background: #000; color: #fff; border: 1px solid #fff; padding: 8px 14px; font: 500 0.75rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; min-width: 44px; min-height: 40px; }
.ctl:hover { background: #fff; color: #000; }
#show-prev, #show-next { font-size: 1.2rem; letter-spacing: 0; padding: 4px 14px; }
/* Full screen: black, picture as big as the screen. */
.show:fullscreen { display: flex; flex-direction: column; border: 0; }
.show:fullscreen .show-stage { flex: 1; aspect-ratio: auto; max-height: none; }
.show:-webkit-full-screen { display: flex; flex-direction: column; width: 100%; height: 100%; }
.show:-webkit-full-screen .show-stage { flex: 1; aspect-ratio: auto; max-height: none; }

/* Manage photos */
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 16px 0 20px; }
.upload-row .btn { cursor: pointer; }
.upload-row .btn.disabled { opacity: 0.35; pointer-events: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.thumb { border: 1px solid #fff; display: flex; flex-direction: column; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; }
.thumb.current { outline: 2px solid #fff; outline-offset: 3px; }
.thumb-tools { display: flex; align-items: center; border-top: 1px solid #fff; }
.thumb-tools button { flex: 1; background: #000; color: #fff; border: 0; border-right: 1px solid #fff; padding: 8px 0; font: 500 0.9rem var(--sans); cursor: pointer; }
.thumb-tools button:last-child { border-right: 0; }
.thumb-tools button:hover:not([disabled]) { background: #fff; color: #000; }
.thumb-tools button[disabled] { opacity: 0.3; cursor: default; }
.thumb-num { font-size: 0.75rem; padding: 0 8px; letter-spacing: 0.1em; }

/* Presentation */
.pres-list { list-style: none; display: grid; gap: 8px; counter-reset: pres; }
.pres-list li { counter-increment: pres; display: flex; gap: 14px; align-items: baseline; border: 1px solid #fff; padding: 12px 16px; }
.pres-list li::before { content: counter(pres) "."; font-family: var(--serif); font-size: 1.3rem; }
.pres-kind { margin-left: auto; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid #fff; padding: 2px 8px; white-space: nowrap; }
.pres-empty { font-style: italic; }

/* The calendar reuses the website's .pcal look; private entries get a dashed edge. */
.pcal-chip.private { background: #000; color: #fff; border: 1px dashed #fff; }
.pcal-ev.private { border-style: dashed; }
.pcal-tag { display: inline-block; margin-top: 6px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid #fff; padding: 1px 7px; }

.rep-account summary { cursor: pointer; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.rep-account form { display: grid; gap: 20px; max-width: 640px; }
.cal-form { margin: 0 0 24px; display: grid; gap: 20px; }
.cal-form h3 { font-size: 1.6rem; }
.cal-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.cal-times > div:not(.field-error) { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cal-times .field-error { grid-column: 1 / -1; }
.pcal-ev-tools { display: flex; gap: 8px; margin-top: 10px; }
.pcal-ev-tools .ctl { min-height: 34px; padding: 6px 12px; }
.pcal-tag { margin-right: 6px; }
/* My presentation: upload + Google Slides link, and ▲ ▼ ✕ on each item */
.link-form { display: flex; gap: 10px; flex: 1; min-width: 240px; }
.link-form input { flex: 1; min-width: 0; }
.pres-list li .pres-tools { display: flex; gap: 6px; }
.pres-list li .pres-tools button { background: #000; color: #fff; border: 1px solid #fff; min-width: 38px; min-height: 34px; cursor: pointer; font: inherit; }
.pres-list li .pres-tools button:hover:not([disabled]) { background: #fff; color: #000; }
.pres-list li .pres-tools button[disabled] { opacity: 0.3; cursor: default; }
.pres-list li { flex-wrap: wrap; }
.pres-list li .pres-name { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.pres-list li .pres-kind { margin-left: 0; }
