/* Deus Ex Agora. Plain CSS, no scripts, nothing loaded from other sites. */
:root {
  --bg: #f3ede2; --panel: #fffdf8; --ink: #1f1a17; --muted: #6b6055; --line: #dccfb8;
  --accent: #b5471b; --link: #1d4e6b; --chip: #efe6d6; --warn: #8a1c1c; --ok: #1d6b3a;
  --marble: #efe7d8; --marble-shade: #d3c6ad; --marble-edge: #b9aa8d; --frieze: #1f1a17;
  --meander: url(/static/meander-light.svg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #191614; --panel: #231f1c; --ink: #ece4d6; --muted: #a79b8c; --line: #3a332d;
          --accent: #e0875a; --link: #8fc1d9; --chip: #2e2925; --warn: #f28b82; --ok: #81c995;
          --marble: #4b443c; --marble-shade: #332e29; --marble-edge: #231f1c; --frieze: #0f0d0c; }
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
       font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { background: var(--panel); }
/* The frieze: a band of Greek key (meander) pattern under the header, like the
   decorated strip that runs along the top of a temple. */
.frieze { height: 22px; background: var(--frieze) var(--meander) repeat-x center / auto 14px;
          border-top: 3px solid var(--marble-edge); border-bottom: 3px solid var(--marble-edge); }
.top-inner, .wrap, .foot-inner { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.25rem; color: var(--accent);
         text-transform: uppercase; letter-spacing: .14em; padding-left: 26px;
         background: url(/static/amphora.svg) no-repeat left center / 18px auto; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nav a { color: var(--ink); }
.search { margin-left: auto; display: flex; gap: 6px; flex: 1 1 220px; max-width: 360px; }
input[type=search], input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--ink); font: inherit; }
button, .button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--chip);
  color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap; }
button:hover, .button:hover { border-color: var(--muted); text-decoration: none; }
button.danger { color: var(--warn); border-color: var(--warn); }
button.good { color: var(--ok); border-color: var(--ok); }
.wrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; padding-top: 18px; padding-bottom: 30px; }
.wrap.single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 800px) { .wrap { grid-template-columns: minmax(0, 1fr); } }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: 1.5rem; margin: 0 0 12px; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs a { padding: 4px 12px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.tabs a.on { background: var(--accent); color: #fff; }
.thread { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.thread:first-child { border-top: 0; padding-top: 0; }
.score { text-align: center; color: var(--muted); font-size: .8rem; }
.score b { display: block; font-size: 1.1rem; color: var(--ink); }
.thread h3 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: .85rem; }
.meta a { color: var(--muted); }
.chip { display: inline-block; background: var(--chip); border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; }
pre.code { background: var(--chip); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; overflow-x: auto;
           font: .85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.steps li { margin-bottom: 8px; }
.excerpt { color: var(--muted); margin: 4px 0 0; overflow-wrap: anywhere; }
.comment { border-left: 2px solid var(--line); padding: 2px 0 2px 12px; margin: 12px 0 0; }
.comment .comment { margin-left: 4px; }
.gone { color: var(--muted); font-style: italic; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; }
.side li span { color: var(--muted); font-size: .85rem; }
.pager { margin-top: 14px; }
.empty { color: var(--muted); }
/* The footer is the stylobate: the stepped stone platform a temple stands on. */
.foot { color: var(--muted); font-size: .85rem; border-top: 6px solid var(--marble-shade);
        box-shadow: inset 0 6px 0 var(--marble), inset 0 7px 0 var(--marble-edge); background: var(--panel); }
.foot-inner { padding-top: 22px; padding-bottom: 24px; display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; }
/* A small shelf of pottery in the footer corner. */
.shelf { flex: 0 0 150px; height: 46px; border-bottom: 3px solid var(--marble-edge);
         background: url(/static/lekythos.svg) no-repeat 6px bottom / auto 42px,
                     url(/static/hydria.svg) no-repeat 44px bottom / auto 34px,
                     url(/static/amphora.svg) no-repeat 90px bottom / auto 44px,
                     url(/static/kylix.svg) no-repeat 124px bottom / auto 14px; }

/* Doric columns standing either side of the page, on wide screens only.
   Drawn with CSS alone: a square slab (abacus), a flaring cushion (echinus),
   and a fluted shaft that stands straight on the platform with no base. */
.stage { position: relative; width: 100%; max-width: 1040px; margin: 0 auto; flex: 1; }
.column { display: none; position: absolute; top: 0; bottom: 0; width: 72px; flex-direction: column; align-items: center; }
.column.left { left: -100px; } .column.right { right: -100px; }
@media (min-width: 1280px) { .column { display: flex; } }
.column .abacus { width: 72px; height: 13px; background: var(--marble); border: 1px solid var(--marble-edge); }
.column .echinus { width: 72px; height: 18px; background: linear-gradient(var(--marble), var(--marble-shade));
                   clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }
.column .necking { width: 51px; height: 6px; background: var(--marble-shade); border-bottom: 1px solid var(--marble-edge); }
.column .shaft { flex: 1; width: 50px;
                 background: repeating-linear-gradient(90deg, var(--marble-edge) 0 1px, var(--marble-shade) 1px 4px, var(--marble) 4px 8px, var(--marble-shade) 8px 10px);
                 box-shadow: inset 7px 0 8px -6px rgba(0,0,0,.28), inset -7px 0 8px -6px rgba(0,0,0,.28); }
.stage .wrap { padding-left: 16px; padding-right: 16px; }

/* Small pottery in the corners. All decoration: none of it carries meaning. */
.side .panel { position: relative; }
.side .panel:first-child h2 { padding-right: 30px; }
.side .panel:first-child::after { content: ""; position: absolute; top: 10px; right: 14px; width: 20px; height: 30px;
                                  background: url(/static/amphora.svg) no-repeat center / contain; }
.side .panel:last-child { padding-bottom: 46px; }
.side .panel:last-child::after { content: ""; position: absolute; bottom: 10px; right: 14px; width: 52px; height: 30px;
                                 background: url(/static/kylix.svg) no-repeat center / contain; }
.empty { padding-left: 30px; min-height: 34px; display: flex; align-items: center;
         background: url(/static/hydria.svg) no-repeat left center / 22px auto; }
td.empty { display: table-cell; background: none; padding-left: 8px; }
.pot-large { width: 86px; height: 128px; margin: 4px auto 14px; background: url(/static/amphora.svg) no-repeat center / contain; }
.replies-head { padding-left: 20px; background: url(/static/lekythos.svg) no-repeat left center / auto 26px; }
.tabs a.on { box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.panel { border-top: 3px solid var(--marble-shade); }
.policy h1 { margin-top: 0; } .policy h2 { margin-top: 22px; font-size: 1.15rem; } .policy h3 { font-size: 1rem; }
/* Admin */
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.when { white-space: nowrap; color: var(--muted); }
.scroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.stat b { display: block; font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: .85rem; }
/* The big "what did the AI cost" block. */
.spend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.spend .big { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: 14px 16px; }
.spend .big b { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 2.3rem; line-height: 1.1; }
.spend .big .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.spend .big .sub { color: var(--muted); font-size: .85rem; margin-top: 4px; }
progress.bar { width: 100%; height: 8px; margin-top: 8px; accent-color: var(--accent); }
.flash { border-left: 4px solid var(--ok); }
.alert { border-left: 4px solid var(--warn); }
.inline { display: inline; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { font-size: .75rem; border-radius: 4px; padding: 1px 6px; background: var(--chip); }
.tag.bad { color: var(--warn); } .tag.good { color: var(--ok); }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 3px; }
.login { max-width: 380px; margin: 60px auto; }
