/* Palette, type and square-ish geometry inherited from publishing.metatopia.gr. */
:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --paper-deep: #eae6da;
  --ink: #20221f;
  --muted: #66695e;
  --accent: #596c39;
  --warn: #a4452c;
  --line: #d5d5c8;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: .75rem;
  --fs-s: .875rem;
  --fs-m: 1rem;
  --fs-l: 1.25rem;
  --fs-xl: 1.5rem;
  --r: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--fs-m)/1.5 var(--sans); }
h2, h3, p { margin: 0; }
h2, .brand { font-family: var(--serif); font-weight: 400; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-top: 1.5rem; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .5rem; height: 56px; padding: 0 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { font-size: var(--fs-l); margin-right: 1rem; }
.tabs { display: flex; gap: .25rem; margin-right: auto; }
.tabs button { border: 0; background: none; padding: .5rem .75rem; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

.btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .9rem; border: 1px solid var(--ink); border-radius: var(--r); background: none; cursor: pointer; text-decoration: none; font-size: var(--fs-s); white-space: nowrap; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.quiet { border-color: transparent; color: var(--muted); }
.btn:hover { border-color: var(--accent); }
input, select { min-height: 36px; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }

main { width: min(100% - 3rem, 1100px); margin: 1.5rem auto 4rem; }
.tools { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.tools > :first-child { flex: 1; }
.hint { color: var(--muted); font-size: var(--fs-s); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .5rem .75rem; border-bottom: 1px solid var(--ink); }
td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.num { text-align: right; }
td.num { font-size: var(--fs-l); }
tbody tr[data-item] { cursor: pointer; }
tbody tr[data-item]:hover { background: var(--paper-deep); }
.sub { display: block; font-size: var(--fs-xs); color: var(--muted); }
.tag { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.tag.warn { color: var(--warn); }
.tag.none { color: var(--muted); }

dialog { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); padding: 1.5rem; width: min(100% - 2rem, 26rem); }
dialog::backdrop { background: rgba(32, 34, 31, .35); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(100%, 30rem); border-width: 0 0 0 1px; border-radius: 0; overflow-y: auto; }
.close { position: absolute; top: .75rem; right: .75rem; border: 0; background: none; font-size: var(--fs-xl); cursor: pointer; line-height: 1; }
form label { display: grid; gap: .25rem; margin-top: .75rem; font-size: var(--fs-s); color: var(--muted); }
form label.check { display: flex; align-items: center; gap: .5rem; }
form label.check input { min-height: 0; }
.actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
.error { color: var(--warn); font-size: var(--fs-s); min-height: 1.3em; margin-top: .5rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.seg { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .75rem; }
.seg button { flex: 1; min-height: 36px; border: 1px solid var(--line); border-radius: var(--r); background: none; cursor: pointer; font-size: var(--fs-s); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.list { list-style: none; margin: .5rem 0 0; padding: 0; font-variant-numeric: tabular-nums; }
.list li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-s); }
details { margin-top: 1.5rem; }
summary { cursor: pointer; color: var(--muted); font-size: var(--fs-s); }
video { width: 100%; border-radius: var(--r); background: var(--ink); margin-top: .75rem; }

@media (max-width: 720px) {
  .bar { height: auto; flex-wrap: wrap; padding: .5rem 1rem; }
  .tabs { order: 9; width: 100%; margin: 0; }
  main { width: calc(100% - 1.5rem); }
}
.pair > * { min-width: 0; }
form label > input:not([type=checkbox]), form label > select { width: 100%; min-width: 0; }
