/* FSL KP — website update panel */
:root {
  --navy-950: #050f22; --navy-900: #081a38; --navy-800: #0b2146; --navy-700: #123063;
  --blue-600: #1d4f9e; --blue-50: #eef3fb; --gold-500: #c9a445; --gold-400: #d9b85f; --gold-100: #f7efd9;
  --green-600: #1b7f47; --green-50: #e8f5ee; --red-600: #b42318; --red-50: #fdecea; --amber-600: #b45309;
  --ink: #0f1a2e; --text: #33415a; --muted: #67748c; --line: #e3e8f0; --line-strong: #cfd7e3; --paper: #f4f6fa; --white: #fff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --serif: "Source Serif 4", Georgia, serif;
  --radius: 12px; --shadow: 0 10px 30px -14px rgba(8, 26, 56, .25);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-600); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.25; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn { color: var(--amber-600); }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1.5px solid transparent; font: 600 14.5px/1.2 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn--sm { padding: 7px 12px; font-size: 13.5px; border-radius: 8px; }
.btn--xs { padding: 5px 9px; font-size: 12.5px; border-radius: 7px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy-800); color: var(--white); }
.btn--primary:hover { background: var(--blue-600); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-400); }
.btn--light { background: rgba(255, 255, 255, .92); color: var(--navy-800); }
.btn--light:hover { background: var(--white); }
.btn--outline { background: var(--white); border-color: var(--line-strong); color: var(--navy-800); }
.btn--outline:hover { border-color: var(--navy-800); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--line-strong); color: var(--ink); }
.btn--danger { background: var(--white); border-color: #f1c1bc; color: var(--red-600); }
.btn--danger:hover { background: var(--red-50); border-color: var(--red-600); }

/* Shell */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; background: var(--navy-900); color: rgba(255, 255, 255, .75); overflow-y: auto; }
.side__brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--white); }
.side__brand strong { display: block; font-family: var(--serif); font-size: 17px; }
.side__brand small { color: var(--gold-400); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.side__nav { display: grid; gap: 3px; }
.side__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: rgba(255, 255, 255, .78); font-weight: 500; }
.side__nav a:hover { background: rgba(255, 255, 255, .06); color: var(--white); }
.side__nav a.is-active { background: rgba(201, 164, 69, .16); color: var(--white); box-shadow: inset 3px 0 0 var(--gold-500); }
.side__nav a.is-active .ic { color: var(--gold-400); }
.side__site { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .14); color: var(--white); font-weight: 600; }
.side__site:hover { background: rgba(255, 255, 255, .06); }

.main { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 14px 32px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar h1 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.bar__menu { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 9px; width: 40px; height: 40px; place-items: center; cursor: pointer; }
.bar__user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bar__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-400); font-weight: 700; }
.bar__name { font-weight: 600; color: var(--ink); }
.content { padding: 28px 32px 60px; display: grid; gap: 22px; align-content: start; max-width: 1400px; width: 100%; }

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 10px; background: var(--green-50); color: var(--green-600); font-weight: 600; border: 1px solid #bfe3cd; transition: opacity .4s; }
.flash ul { margin: 4px 0 0; padding-left: 18px; font-weight: 500; }
.flash--error { background: var(--red-50); color: var(--red-600); border-color: #f5c2bd; }

/* Cards, tables */
.panel-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(8, 26, 56, .04); min-width: 0; }
.panel-card:has(> .table) { padding: 0; overflow-x: auto; }
.panel-card__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-card__head h2, .card-title { font-size: 15px; font-weight: 700; }
.stack { display: grid; gap: 16px; align-content: start; }
.narrow { max-width: 640px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 18px; background: #fafbfd; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfe; }
.table__actions { text-align: right; white-space: nowrap; }
.table__actions > *, .table__actions form { display: inline-flex; margin-left: 6px; }
.indent { padding-left: 42px !important; position: relative; }
.indent::before { content: "↳"; position: absolute; left: 22px; color: var(--line-strong); }
.empty-row { text-align: center; padding: 34px !important; color: var(--muted); }
.thumb { width: 64px; height: 46px; object-fit: cover; border-radius: 7px; background: var(--paper); }
.thumb--round { width: 44px; height: 44px; border-radius: 50%; }
.thumb--empty { display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill--green { background: var(--green-50); color: var(--green-600); }
.pill--grey { background: #eef1f5; color: var(--muted); }
.pill--gold { background: var(--gold-100); color: #8a6a1c; margin-left: 6px; }

/* Dashboard */
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 30px; border-radius: 16px; color: rgba(255, 255, 255, .8); background: linear-gradient(120deg, var(--navy-900), var(--blue-600)); }
.welcome h2 { color: var(--white); font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.welcome p { margin: 0; }
.welcome__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tile__icon { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); }
.tile strong { font-family: var(--serif); font-size: 26px; color: var(--ink); line-height: 1.1; }
.tile span:last-child { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Toolbar & search */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolbar p { margin: 0; }
.search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 6px 0 12px; }
.search input, .search select { border: 0; padding: 10px 6px; font: inherit; background: none; outline: 0; }
.search input { width: 240px; }
.search select { border-left: 1px solid var(--line); }

/* Forms */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .segmented legend { font-size: 13px; font-weight: 700; color: var(--ink); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input:not([type=file]):not([type=radio]):not([type=checkbox]), .field select, .field textarea, .inline-edit input:not([type=file]), .slide-item__form input {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: 9px; background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .inline-edit input:focus, .slide-item__form input:focus { outline: 0; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(29, 79, 158, .12); }
.field textarea { min-height: 240px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row--3 { grid-template-columns: 1.4fr 1fr auto; align-items: end; }
.field--end { justify-content: flex-end; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.segmented { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.segmented legend { margin-bottom: 6px; padding: 0; width: 100%; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; padding: 9px 12px; border: 1.5px solid var(--line-strong); border-radius: 9px; font-weight: 600; cursor: pointer; }
.segmented input:checked + span { border-color: var(--navy-800); background: var(--navy-800); color: var(--white); }
.segmented input:focus-visible + span { outline: 3px solid var(--gold-400); }
.cover-now { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.cover-now--round { width: 120px; height: 120px; border-radius: 50%; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed var(--line-strong); border-radius: 12px; background: #fafbfd; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop--big { padding: 40px 22px; }
.drop:hover, .drop.is-over { border-color: var(--blue-600); background: var(--blue-50); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ic { width: 30px; height: 30px; color: var(--blue-600); }
.drop strong { color: var(--ink); }
.drop span { font-size: 13px; color: var(--muted); }
.preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.preview:empty { display: none; }
.preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pick { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pick label { display: flex; gap: 6px; align-items: center; padding: 5px 8px; cursor: pointer; }
.pick__remove { color: var(--red-600); border-top: 1px solid var(--line); }

/* Gallery */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.album-tile { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: box-shadow .2s, transform .2s; }
.album-tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.album-tile__img { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--paper); display: grid; place-items: center; margin-bottom: 8px; color: var(--muted); }
.album-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.album-tile strong, .album-tile > span { padding: 0 4px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--paper); aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo > span { display: grid; place-items: center; height: 100%; text-align: center; padding: 10px; font-size: 12px; color: var(--amber-600); font-weight: 600; word-break: break-all; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 6px; padding: 8px; background: linear-gradient(0deg, rgba(5, 15, 34, .8), transparent); opacity: 0; transition: opacity .2s; }
.photo:hover figcaption, .photo:focus-within figcaption, .photo.is-missing figcaption { opacity: 1; }

/* Slides */
.slide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.slide-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; gap: 10px; padding-bottom: 12px; }
.slide-item__img { aspect-ratio: 16 / 7; background: var(--paper); display: grid; place-items: center; }
.slide-item__img img { width: 100%; height: 100%; object-fit: cover; }
.slide-item__img span { font-size: 12.5px; color: var(--amber-600); font-weight: 600; text-align: center; }
.slide-item form { padding: 0 12px; }
.slide-item__form { display: flex; gap: 8px; }

/* People */
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.person > img, .person__ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; border-radius: 9px; background: linear-gradient(150deg, var(--navy-700), var(--navy-950)); }
.person__ph { display: grid; place-items: center; }
.person__ph img { width: 90px; }
.person strong { color: var(--ink); }
.person p { margin: 0; flex: 1; }
.person__actions { display: flex; gap: 8px; }

.inline-edit { display: grid; grid-template-columns: 1.2fr 1fr auto auto; gap: 12px; align-items: center; }
.inline-edit__file { font-size: 13.5px; overflow-wrap: anywhere; }
.inline-edit input[type=file] { font-size: 13px; max-width: 220px; }

.pager { display: flex; justify-content: center; gap: 6px; }
.pager__btn { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); font-weight: 600; background: var(--white); }
.pager__btn.is-active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.pager__btn.is-disabled { color: var(--line-strong); }

/* Login */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: var(--white); }
.login__art { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle at 30% 20%, var(--navy-700), var(--navy-950) 70%); color: var(--gold-400); }
.login__art::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: repeating-radial-gradient(circle at 50% 45%, transparent 0 16px, #fff 16px 17.5px); }
.login__art img { position: relative; width: min(300px, 50%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .4)); }
.login__art p { position: relative; font-family: var(--serif); font-style: italic; font-size: 24px; margin: 0; }
.login__card { align-self: center; justify-self: center; width: min(400px, 100% - 40px); display: grid; gap: 16px; }
.login__card h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.login__card p { margin: 0; }
.login__logo { display: none; }
.login__back { font-size: 14px; color: var(--muted); }

@media (max-width: 1100px) {
  .form-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; width: 270px; transform: translateX(-100%); transition: transform .3s; }
  .side.is-open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }
  .bar { padding: 12px 16px; }
  .bar__menu { display: grid; }
  .bar__name { display: none; }
  .content { padding: 20px 16px 50px; }
  .welcome { flex-direction: column; align-items: flex-start; }
  .field-row, .field-row--3, .inline-edit { grid-template-columns: 1fr; }
  .search input { width: 140px; }
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
  .login__logo { display: block; }
}

/* The address of an image, shown even when its file is missing. */
.img-url { display: block; font-size: 11px; line-height: 1.35; color: var(--muted); word-break: break-all; padding: 4px 8px; }
.img-url--missing { color: var(--amber-600); padding: 2px 0; }
