/* Ulnus admin. Tokens as on ulnus.com (v1/site.css): white ground, one ink, hairlines,
   square corners, underline inputs; Claret only on the save button and on what blocks a save. */
:root {
  --claret: #9E1B28; --claret-dark: #7d141f; --ink: #2A2A2A; --white: #FFFFFF;
  --line: rgba(42, 42, 42, 0.12); --soft: rgba(42, 42, 42, 0.6);
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wordmark: 'Cormorant Garamond', Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0; }
body { font-family: var(--sans); background: var(--white); color: var(--ink); -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5; }
a { color: inherit; }
.wrap { padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

header.top { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.lockup { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.lockup svg { height: 24px; width: auto; transform: translateY(-16%); }
.lockup .wm { font-family: var(--wordmark); font-weight: 700; font-size: 1.25rem; letter-spacing: .20em; line-height: 1; }
.tool { font-size: 14px; letter-spacing: .02em; padding-left: 16px; border-left: 1px solid var(--line); }
.who { margin-left: auto; font-size: 13px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out { font-size: 13px; }
@media (max-width: 600px) { .tool, .who { display: none; } .out { margin-left: auto; } }

.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 64px); }
#nav { border-right: 1px solid var(--line); padding: 24px 12px; position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; }
#nav a { display: block; padding: 8px 12px; text-decoration: none; font-size: 15px; border-left: 2px solid transparent; }
#nav a:hover { background: rgba(42, 42, 42, 0.04); }
#nav a[aria-current="page"] { border-left-color: var(--ink); font-weight: 600; }
.nav-group { font-size: 12px; color: var(--soft); letter-spacing: .02em; padding: 20px 12px 6px; }
main { padding: 40px 32px 120px; max-width: 1040px; min-width: 0; }
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); align-content: start; }
  #nav { position: static; height: auto; display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; white-space: nowrap; }
  #nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 10px; }
  #nav a[aria-current="page"] { border-bottom-color: var(--ink); }
  .nav-group { display: none; }
  main { padding: 24px 16px 120px; }
}
h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 8px; }
h2 { font-size: 20px; font-weight: 700; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.note, .hint { color: var(--soft); font-size: 14px; }
.hint { margin-top: 4px; }
.divider { width: 48px; height: 3px; background: var(--claret); margin: 16px 0 24px; }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
table.list { width: 100%; border-collapse: collapse; margin-top: 24px; }
.list th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--ink); }
.list td { padding: 14px 8px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.list td.t a { font-weight: 600; text-decoration: none; }
.list td.t a:hover { text-decoration: underline; }
.list .num { width: 56px; white-space: nowrap; }
.list .state { white-space: nowrap; color: var(--soft); font-size: 13px; }
@media (max-width: 600px) { .list .hide-sm { display: none; } }

.field { margin-top: 24px; }
.field.bad { border-left: 2px solid var(--claret); padding-left: 12px; margin-left: -14px; }
label.l { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=number], input[type=date], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.35); border-radius: 0; padding: 8px 0; outline: none; }
input[type=text], input[type=email], input[type=number] { -webkit-appearance: none; appearance: none; }
input:focus, textarea:focus, select:focus { border-bottom: 1px solid var(--ink); box-shadow: 0 1px 0 var(--ink); }
input[readonly] { color: var(--soft); border-bottom-style: dotted; }
textarea { resize: vertical; min-height: 44px; line-height: 1.55; }
textarea.big { font-size: 18px; }
input.title { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 24px; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 28px; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.para { display: grid; grid-template-columns: 28px 1fr; gap: 8px; margin-top: 16px; }
.para .n { font-size: 13px; color: var(--soft); padding-top: 10px; text-align: right; }
.tools { display: flex; gap: 16px; margin-top: 4px; }
button.link { background: none; border: 0; font: inherit; font-size: 13px; color: var(--soft); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { color: var(--ink); }
.marker { margin: 12px 0 0 36px; padding: 8px 12px; border: 1px dashed var(--line); font-size: 13px; color: var(--soft); }

.btn { display: inline-block; background: var(--white); color: var(--ink); border: 1px solid var(--ink); font: inherit; font-size: 15px; font-weight: 600; padding: 10px 20px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn.primary { background: var(--claret); border-color: var(--claret); color: var(--white); }
.btn.primary:hover { background: var(--claret-dark); }
.btn[disabled] { opacity: .35; cursor: not-allowed; }

.img { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.img img { width: 100%; max-width: 560px; border: 1px solid var(--line); }
.img .empty { max-width: 560px; aspect-ratio: 16 / 9; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--soft); font-size: 13px; }
.card .img img, .card .img .empty { max-width: 360px; aspect-ratio: 1200 / 630; }
input[type=file] { font: inherit; font-size: 13px; }
.box { border: 1px solid var(--line); padding: 16px; margin-top: 16px; }

.savebar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--line); z-index: 10; }
.savebar .wrap { display: flex; gap: 16px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.savebar .status { font-size: 14px; flex: 1; min-width: 0; }
.checks { margin-top: 32px; }
.checks li { list-style: none; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checks .e { color: var(--claret); }
.checks .ctx { display: block; color: var(--soft); font-size: 13px; }
.banner { border: 1px solid var(--ink); padding: 16px; margin-top: 24px; font-size: 15px; }
.banner.error { border-color: var(--claret); color: var(--claret); }
.banner p + p { margin-top: 8px; }

/* admin tools */
.muted { color: var(--soft); }
.small { font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.metric { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); text-decoration: none; }
.metric:hover { border-color: var(--ink); }
.metric-l { font-size: 13px; color: var(--soft); }
.metric-v { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.panel { margin-top: 32px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.panel-head h2 { margin: 0; padding: 0; border: 0; font-size: 18px; }
.rows li { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows li a { text-decoration: none; font-weight: 600; }
.rows li a:hover { text-decoration: underline; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .board { grid-template-columns: minmax(0, 1fr); } }
.col-head { font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-bottom: 8px; }
.card-item { border: 1px solid var(--line); padding: 12px; margin-bottom: 8px; background: var(--white); }
.card-title { background: none; border: 0; font: inherit; font-weight: 600; text-align: left; cursor: pointer; padding: 0; color: var(--ink); }
.card-title:hover { text-decoration: underline; }
.card-item .tools { margin-top: 8px; flex-wrap: wrap; }
.actions-row { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.actions-row .status { font-size: 14px; color: var(--soft); }
iframe.preview { width: 100%; height: 75vh; border: 1px solid var(--line); margin-top: 8px; background: var(--white); }
.list td input[type=date], .list td select { font-size: 14px; padding: 4px 0; }
.head-row select { width: auto; min-width: 180px; }
