:root {
  --paper: #f6f3ed; --white: #fffefa; --ink: #17212b; --muted: #63707a;
  --line: #d7d7d1; --orange: #b5532c; --orange-dark: #8c3d20; --green: #426a56;
  --serif: Georgia, 'Times New Roman', serif; --sans: 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.topbar { min-height: 76px; padding: 0 6.5%; display: flex; align-items: center; gap: 38px; border-bottom: 1px solid var(--line); background: rgba(246,243,237,.94); }
.wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 11px; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.wordmark-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 20px var(--serif); letter-spacing: 0; }
.main-nav { min-height: 76px; display: flex; flex: 1; align-items: stretch; gap: 29px; }
.main-nav > a, .nav-menu > summary { display: inline-flex; align-items: center; color: #46525b; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.main-nav > a:hover, .nav-menu > summary:hover, .account-menu > summary:hover { color: var(--orange); }
.nav-menu, .account-menu { position: relative; }
.nav-menu > summary, .account-menu > summary { cursor: pointer; list-style: none; }
.nav-menu > summary::-webkit-details-marker, .account-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary span { padding-left: 7px; }
.menu-panel, .account-panel { position: absolute; z-index: 20; top: calc(100% - 10px); right: 0; min-width: 190px; padding: 8px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 14px 32px rgba(23,33,43,.1); }
.menu-panel { left: 0; right: auto; }
.menu-panel a { display: block; padding: 10px 12px; font-size: 12px; }
.menu-panel a:hover { background: #f5eee7; color: var(--orange-dark); }
.account-menu { margin-left: auto; }
.account-menu > summary { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 600; }
.account-menu > summary > span:last-child { color: var(--muted); }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font: 15px var(--serif); }
.account-panel { top: calc(100% + 16px); width: min(330px, calc(100vw - 28px)); padding: 20px; }
.account-panel > strong { font-size: 14px; }
.account-panel .eyebrow { margin-bottom: 3px; }
.password-form { margin: 17px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.password-form h2 { margin: 0 0 11px; font: 18px var(--serif); }
.password-form label { margin-top: 10px; display: block; color: var(--muted); font-size: 10px; }
.password-form input { width: 100%; margin-top: 4px; padding: 8px 9px; border: 1px solid var(--line); background: white; }
.header-caption { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.messages { width: min(1120px, 86%); margin: 18px auto 0; }
.message { margin: 0 0 8px; padding: 11px 14px; border-left: 2px solid var(--green); background: #eaf0ea; font-size: 12px; }
.message-error { border-color: #a83f2a; background: #f8eae5; }
.page-shell, .content-shell { width: min(1120px, 86%); margin: 0 auto; }
.home-dashboard { min-height: calc(100vh - 150px); padding: 95px 0 72px; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 9%; position: relative; }
.home-copy { padding: 0 0 38px 4%; }
.eyebrow { margin: 0 0 16px; color: var(--orange); font-size: 9px; font-weight: 750; letter-spacing: .2em; }
.eyebrow-mark { width: 7px; height: 7px; margin: 0 8px 1px 0; display: inline-block; border-radius: 50%; background: var(--orange); }
h1, h2, h3 { margin-top: 0; }
h1, .latest-panel h2 { font-family: var(--serif); font-weight: 400; }
.home-copy h1, .login-copy h1 { margin: 0; font-size: clamp(56px, 7vw, 84px); line-height: .99; }
.home-copy h1 em, .login-copy h1 em { color: var(--green); font-weight: 400; }
.lede { max-width: 490px; margin: 25px 0 29px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.button { min-height: 43px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: space-between; gap: 23px; border: 1px solid transparent; border-radius: 2px; font-size: 11px; font-weight: 650; transition: background .16s, color .16s, border-color .16s; }
.button span { font-size: 15px; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--orange-dark); }
.button-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--orange); color: var(--orange-dark); }
.button-danger { background: #a83f2a; color: white; }
.button-danger:hover { background: #782c1d; }
.button-wide { width: 100%; margin-top: 9px; }
.home-meta { margin-top: 54px; padding-top: 14px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.home-meta strong { color: var(--ink); letter-spacing: .03em; }
.latest-panel { min-height: 325px; padding: 24px 28px 27px; display: flex; flex-direction: column; position: relative; border: 1px solid var(--line); background: rgba(255,254,250,.72); }
.panel-topline, .list-heading { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.panel-index { color: var(--orange); }
.date-label { margin: 58px 0 9px; color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.latest-panel h2 { max-width: 420px; margin: 0 0 12px; font-size: 31px; line-height: 1.13; }
.latest-description { max-width: 400px; margin-bottom: 17px; color: var(--muted); font-size: 12px; }
.text-link { width: fit-content; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; }
.text-link span { margin-left: 10px; }
.text-link:hover { border-color: var(--orange); color: var(--orange-dark); }
.latest-rule { width: 42px; height: 2px; margin-top: auto; background: var(--orange); }
.empty-latest { margin: auto 0; }
.empty-latest h2 { margin: 15px 0 7px; }
.empty-latest p { max-width: 300px; color: var(--muted); font-size: 12px; }
.empty-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); font: 20px var(--serif); }
.home-index { position: absolute; right: 0; bottom: 28px; left: 0; display: flex; justify-content: space-between; color: #8b9498; font-size: 8px; letter-spacing: .16em; }
.login-page { width: min(1120px, 86%); min-height: calc(100vh - 150px); margin: 0 auto; padding: 90px 4% 100px; display: grid; grid-template-columns: 1fr .72fr; align-items: center; gap: 13%; }
.login-copy h1 { font-size: clamp(54px, 5.6vw, 66px); }
.login-copy .lede { max-width: 380px; }
.login-note { margin-top: 58px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 8px; line-height: 1.7; letter-spacing: .12em; }
.note-line { width: 31px; height: 1px; background: var(--orange); }
.login-wrap { padding: 27px; border: 1px solid var(--line); background: var(--white); }
.login-heading { margin-bottom: 26px; display: flex; align-items: center; gap: 13px; }
.login-number { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); font: 15px var(--serif); }
.login-heading .eyebrow { margin-bottom: 4px; }
.login-heading h2 { margin: 0; font: 27px var(--serif); }
.login-form label { margin: 17px 0 6px; display: block; color: #49545b; font-size: 10px; font-weight: 650; }
.login-form input { width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid var(--line); background: white; outline: none; }
.login-form input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(181,83,44,.12); }
.login-footnote { margin: 20px 0 0; color: var(--muted); font-size: 10px; }
.form-alert { margin: 17px 0; padding: 11px 13px; border: 1px solid #e8c2b6; background: #f8eae5; color: #81351f; font-size: 11px; }
.errorlist, .field-error { margin: 5px 0 0; padding: 0; display: block; color: #a33c26; font-size: 10px; list-style: none; }
.content-shell { padding: 57px 0 86px; }
.page-heading { margin-bottom: 29px; display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 19px; }
.page-heading .eyebrow { margin-bottom: 7px; }
.page-heading h1, .event-header h1, .eggs-page h1 { margin: 0; font: 43px/1.05 var(--serif); }
.admin-count { color: var(--muted); font-size: 10px; }
.entry-create { margin: 25px 0 40px; border: 1px solid var(--line); background: var(--white); }
.entry-create > summary, .organization-row > summary { min-height: 69px; padding: 12px 17px; display: flex; align-items: center; gap: 13px; cursor: pointer; list-style: none; }
.entry-create > summary::-webkit-details-marker, .organization-row > summary::-webkit-details-marker, .edit-event > summary::-webkit-details-marker, .danger-disclosure > summary::-webkit-details-marker { display: none; }
.summary-icon { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); font-size: 18px; }
.entry-create summary strong, .organization-row summary strong { display: block; font-size: 12px; }
.entry-create summary small, .organization-row summary small { display: block; color: var(--muted); font-size: 10px; }
.summary-arrow { margin-left: auto; color: var(--muted); }
.entry-create[open] .summary-arrow { transform: rotate(180deg); }
.entry-form { padding: 21px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.field { min-width: 0; display: block; color: #46525b; font-size: 10px; font-weight: 650; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea, .field select { width: 100%; min-height: 39px; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); outline: none; font-size: 12px; font-weight: 400; }
.field textarea { min-height: 75px; resize: vertical; }
.upload-label { max-width: 420px; margin-top: 17px; }
.upload-label input[type=file] { display: block; width: 100%; min-height: unset; padding: 9px; font-size: 10px; }
.upload-label small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 400; }
.selected-files { margin-top: 12px; display: grid; gap: 8px; }
.selected-file { display: grid; grid-template-columns: minmax(0, .85fr) minmax(180px, 1fr); align-items: start; gap: 13px; padding: 11px; background: #f1f0eb; }
.selected-file-name { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; font-size: 10px; }
.selected-file-name span { color: var(--muted); }
.selected-file progress, .upload-overall progress { width: 100%; height: 8px; accent-color: var(--orange); }
.selected-file progress { grid-column: 1 / -1; }
.upload-overall { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; color: var(--muted); font-size: 10px; }
.upload-overall[hidden] { display: none; }
.upload-overall progress { grid-column: 1 / -1; }
.upload-status { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.file-description-field textarea { min-height: 52px; }
.form-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }
.list-heading { margin: 22px 0 12px; }
.list-heading h2, .admin-section h2 { margin: 0; color: var(--ink); font: 22px var(--serif); letter-spacing: 0; }
.list-heading > span { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.event-table-wrap, .table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.event-table, .admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.event-table { min-width: 640px; }
.event-table th, .admin-table th { padding: 11px 15px; background: #eeede8; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.event-table td, .admin-table td { padding: 14px 15px; border-top: 1px solid #e7e6e0; vertical-align: top; }
.date-cell, .description-cell, .file-count { color: var(--muted); font-size: 11px; }
.event-title { font-size: 12px; font-weight: 650; }
.event-title:hover { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.align-right { text-align: right !important; }
.empty-state { min-height: 190px; padding: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #c9c9c1; text-align: center; }
.empty-state h2 { margin: 12px 0 5px; font: 23px var(--serif); }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }
.empty-state.compact { min-height: 110px; padding: 20px; border: 0; }
.event-detail { max-width: 960px; }
.back-link { color: var(--muted); font-size: 11px; font-weight: 650; }
.back-link:hover { color: var(--orange-dark); }
.back-link span { margin-right: 7px; }
.event-header { margin: 24px 0 23px; padding: 0 0 23px; border-bottom: 1px solid var(--line); }
.event-header .eyebrow { margin-bottom: 11px; }
.event-header h1 { max-width: 790px; font-size: clamp(36px, 5vw, 54px); }
.event-lede { max-width: 720px; margin: 14px 0 0; color: var(--muted); white-space: pre-line; }
.edit-event, .danger-disclosure { margin: 12px 0; }
.edit-event > summary, .danger-disclosure > summary { width: fit-content; padding: 9px 12px; border: 1px solid var(--line); cursor: pointer; font-size: 10px; font-weight: 650; list-style: none; }
.edit-event > summary:hover { border-color: var(--orange); color: var(--orange-dark); }
.edit-event[open] .entry-form { margin-top: 8px; border: 1px solid var(--line); background: var(--white); }
.danger-disclosure > summary { border-color: #e6c4ba; color: #9b3d27; }
.danger-confirm { margin-top: 8px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #e6c4ba; background: #f8eae5; }
.danger-confirm p { margin: 0; font-size: 11px; }
.files-section { margin-top: 38px; }
.files-section .list-heading { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.file-list { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.file-row { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); background: var(--white); }
.file-summary { min-width: 0; display: flex; align-items: center; gap: 13px; }
.file-thumbnail { width: 88px; height: 64px; flex: 0 0 auto; overflow: hidden; background: #e8e7e1; }
.file-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.file-icon { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); color: var(--orange); font-size: 17px; }
.file-info { min-width: 0; }
.file-name { display: block; overflow-wrap: anywhere; font-size: 11px; font-weight: 700; }
.file-name:hover { color: var(--orange-dark); }
.video-play-button { min-height: 34px; padding: 0 10px; gap: 10px; }
.file-type { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.file-info p { margin: 6px 0 0; color: var(--muted); font-size: 10px; white-space: pre-line; }
.file-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; }
.file-actions details > summary { cursor: pointer; color: var(--muted); font-size: 10px; list-style: none; }
.file-actions details > summary:hover { color: var(--orange-dark); }
.description-form { width: 260px; padding: 12px; position: absolute; z-index: 5; border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 20px rgba(23,33,43,.12); }
.plain-button { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 650; }
.plain-button:hover, .danger-text { color: #a33c26; }
.description-form .button { margin-top: 8px; }
.video-viewer { width: min(1000px, calc(100vw - 28px)); max-width: none; max-height: calc(100vh - 24px); margin: auto; padding: 0; border: 1px solid #3c4549; background: #131a1d; color: var(--white); }
.video-viewer::backdrop { background: rgba(10, 16, 18, .88); }
.video-viewer-head { min-height: 56px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.video-viewer-head h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; font: 18px/1.3 var(--serif); }
.video-viewer-close { flex: 0 0 auto; color: #fffefa; }
.video-viewer video { width: 100%; max-height: calc(100vh - 100px); aspect-ratio: 16 / 9; display: block; background: #000; object-fit: contain; }
.admin-page { width: min(1220px, 90%); }
.admin-section { margin-top: 32px; }
.admin-section > h2 { margin-bottom: 13px; }
.admin-section .entry-form { border: 1px solid var(--line); background: var(--white); }
.inline-create { max-width: 540px; display: flex; align-items: end; gap: 12px; }
.inline-create .field { flex: 1; }
.admin-table { min-width: 760px; }
.admin-table td input:not([type=checkbox]) { width: 100%; min-width: 95px; padding: 7px 8px; border: 1px solid var(--line); background: white; font-size: 10px; }
.admin-table td input:focus { outline: 1px solid var(--orange); }
.admin-table td:first-child { font-weight: 600; }
.role-checks { margin: 15px 0 0; padding: 12px; border: 1px solid var(--line); }
.role-checks legend { padding: 0 5px; color: #46525b; font-size: 10px; font-weight: 650; }
.role-checks ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; }
.role-checks li label, .compact-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.role-checks input[type=checkbox] { accent-color: var(--orange); }
.compact-checks { min-width: 110px; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 4px; }
.admin-actions { white-space: nowrap; }
.small-button { margin-right: 5px; padding: 6px 9px; border: 1px solid var(--ink); background: var(--ink); color: white; font-size: 9px; font-weight: 650; }
.small-button:hover { background: var(--orange-dark); }
.danger-outline { border-color: #dcb7ab; background: transparent; color: #963b25; }
.danger-outline:hover { background: #f8eae5; }
.table-empty { padding: 25px !important; color: var(--muted); text-align: center; font-size: 11px; }
.organization-row { margin-bottom: 9px; border: 1px solid var(--line); background: var(--white); }
.organization-row > summary { min-height: 59px; padding: 12px 17px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.organization-form { border-top: 1px solid var(--line); }
.eggs-page { min-height: 60vh; padding-top: 13vh; }
.eggs-page h1 { font-size: 54px; }
.eggs-page .lede { margin-top: 14px; }
.access-mark { margin-top: 50px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.access-mark span { margin: 0 8px; color: var(--orange); }
.site-footer { min-height: 72px; padding: 14px 6.5%; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.site-footer a { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.site-footer a:hover { color: var(--orange-dark); }
.footer-dot { padding: 0 7px; color: var(--orange); }
@media (max-width: 760px) {
  .topbar { min-height: 67px; padding: 0 5%; gap: 20px; }
  .main-nav { min-height: 67px; gap: 16px; }
  .main-nav > a, .nav-menu > summary { font-size: 9px; }
  .home-dashboard { min-height: auto; padding: 70px 0 82px; grid-template-columns: 1fr; gap: 32px; }
  .home-copy { padding: 0; }
  .latest-panel { min-height: 270px; }
  .login-page { min-height: auto; padding: 65px 0 75px; grid-template-columns: 1fr; gap: 30px; }
  .login-copy h1 { font-size: 62px; }
  .login-note { margin-top: 28px; }
  .login-wrap { max-width: 460px; }
  .content-shell { width: 90%; padding-top: 40px; }
  .admin-page { width: 92%; }
  .file-row { align-items: flex-start; flex-direction: column; }
  .file-actions { align-self: flex-end; }
}
@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; gap: 0 14px; padding-top: 10px; padding-bottom: 10px; }
  .wordmark { font-size: 9px; }
  .wordmark-icon { width: 31px; height: 31px; }
  .main-nav { min-height: 39px; order: 3; width: 100%; gap: 18px; }
  .main-nav > a, .nav-menu > summary { font-size: 8px; }
  .account-menu { margin-left: auto; }
  .account-name { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-caption { font-size: 7px; }
  .home-copy h1, .login-copy h1 { font-size: 48px; }
  .latest-panel { padding: 19px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1, .event-header h1 { font-size: 39px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .selected-file { grid-template-columns: 1fr; }
  .inline-create { align-items: stretch; flex-direction: column; }
  .danger-confirm { align-items: flex-start; flex-direction: column; }
  .site-footer { padding: 14px 5%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
