/* Admin: pitch pages and the video library ------------------------------ */

.admin-body { font-size: 15px; }

.admin-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 18px var(--gutter); background: var(--denim); color: #fff; }
.admin-wordmark { font-family: var(--display-font); font-size: 24px; font-weight: 600; text-decoration: none; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.admin-nav a { padding: 2px 0; border-bottom: 1px solid transparent; color: #c9d4dc; font-size: 13px; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.admin-nav a:hover { color: #fff; }
.admin-nav a[aria-current="page"] { color: #fff; border-bottom-color: currentColor; }

.admin-main { max-width: 1100px; margin: 0 auto; padding: 28px var(--gutter) 64px; }

.admin-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.admin-title-row h1 { margin: 0; font-family: var(--display-font); font-size: 34px; font-weight: 600; line-height: 1.1; }

.admin-muted { color: var(--ink-muted); }
.admin-hint { margin: 6px 0 0; color: var(--ink-muted); font-size: 13.5px; }
.admin-empty { padding: 28px; border: 1px dashed #c3cad1; color: var(--ink-muted); text-align: center; }

.admin-flash { margin-bottom: 18px; padding: 12px 16px; border-left: 3px solid var(--denim); background: #fff; }
.admin-flash--alert { border-left-color: #a33a2b; }
.admin-errors { margin-bottom: 18px; padding: 12px 16px; border: 1px solid #e2b4ac; background: #fbefed; color: #7c2a1f; }
.admin-errors ul { margin: 6px 0 0; padding-left: 20px; }

.admin-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid #c3cad1; background: #fff; color: var(--ink); font: 500 14px var(--body-font); text-decoration: none; cursor: pointer; }
.admin-button:hover { border-color: var(--ink-muted); }
.admin-button--primary { border-color: var(--denim); background: var(--denim); color: #fff; }
.admin-button--primary:hover { background: #1b2840; }
.admin-button--danger { color: #a33a2b; }
.admin-button--danger:hover { border-color: #a33a2b; }
.admin-link-button { padding: 0; border: 0; background: none; color: var(--denim); font: inherit; text-decoration: underline; cursor: pointer; }

.admin-tabs { display: flex; gap: 20px; margin-bottom: 14px; border-bottom: 1px solid #dde1e5; }
.admin-tabs a { margin-bottom: -1px; padding: 8px 0; border-bottom: 2px solid transparent; color: var(--ink-muted); text-decoration: none; }
.admin-tabs a[aria-current="page"] { border-bottom-color: var(--denim); color: var(--ink); font-weight: 700; }

.admin-table-wrap { overflow-x: auto; border: 1px solid #dde1e5; background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 10px 14px; border-bottom: 1px solid #dde1e5; color: var(--ink-muted); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid #eef0f2; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-number { text-align: right; font-variant-numeric: tabular-nums; }
.admin-actions { white-space: nowrap; }
.admin-actions > * + * { margin-left: 14px; }
.admin-actions form { display: inline; }
.admin-actions a { color: var(--denim); }
.admin-thumbnail { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; }

.admin-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.admin-status--live { background: #dcefe2; color: #1e5a33; }
.admin-status--draft { background: #e8ebee; color: var(--ink-muted); }
.admin-status--deleted { background: #f6dfdb; color: #7c2a1f; }

.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.admin-toolbar form { display: inline; }
.admin-toolbar-visits { margin-left: auto; }

.admin-form fieldset { margin: 0 0 18px; padding: 18px 20px 20px; border: 1px solid #dde1e5; background: #fff; }
.admin-form legend { padding: 0 6px; font-family: var(--display-font); font-size: 20px; font-weight: 600; }
.admin-field { display: flex; flex: 1 1 260px; flex-direction: column; gap: 5px; margin-top: 12px; min-width: 0; }
.admin-field--narrow { flex: 0 1 140px; }
.admin-field-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.admin-field label { font-size: 13.5px; font-weight: 700; }
.admin-form input[type="text"], .admin-form input[type="url"], .admin-form textarea, .admin-form select {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #c3cad1; border-radius: 0; background: #fff; color: var(--ink); font: 15px var(--body-font);
}
.admin-form textarea { resize: vertical; line-height: 1.5; }
.admin-form :focus-visible { outline: 2px solid var(--denim); outline-offset: 1px; }
.admin-url-input { display: flex; align-items: stretch; }
.admin-url-input span { display: flex; align-items: center; padding: 0 10px; border: 1px solid #c3cad1; border-right: 0; background: #eef0f2; color: var(--ink-muted); font-size: 14px; white-space: nowrap; }
.admin-slot { padding: 14px 0 16px; border-top: 1px solid #eef0f2; }
.admin-slot:first-of-type { border-top: 0; }
.admin-slot-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--denim); }
.admin-form-actions { display: flex; gap: 10px; }

/* Shown above a pitch page in preview only. */
.admin-preview-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 8px var(--gutter); background: #f3e3b5; color: #4d3d0e; font-size: 13.5px; }
.admin-preview-bar a { color: inherit; }

/* The lines to paste into a submission, above the form with a copy button. */
.admin-submission-message { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid #c3cad1; background: #f5f7f9; }
.admin-submission-message p { margin: 0; line-height: 1.5; }

/* Visits */
.admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 14px; color: var(--ink-muted); font-size: 14px; }
.admin-filters select { padding: 6px 8px; font: inherit; }
.visit-row td { font-size: 13px; vertical-align: top; }
.visit-row td:first-child { white-space: nowrap; }
.visit-row--bot td { color: var(--ink-muted); }
.visit-browser { max-width: 320px; overflow-wrap: anywhere; }
