/* MUSHclient function reference - static replacement for
   /scripts/function.php. Shares the visual language of the
   forum archive (archive.css). */

:root {
  --box-border: #b8a070;
  --code-bg:    #FFE4B5;
  --tip-bg:     #EEE8AA;
  --accent:     #CD5C5C;
  --muted:      #666;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  max-width: 62rem;
  color: #222;
  background: #fff;
}

a         { color: #1a5276; }
a:visited { color: #6c3483; }

code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

/* ---- chrome ---------------------------------------------------- */

.site-header {
  border-bottom: 2px solid var(--accent);
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.breadcrumbs { font-size: 0.9rem; }

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
  color: var(--muted);
  font-size: 0.85rem;
}

h1 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.25rem; }

h2 {
  font-size: 1.15rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.15em;
  margin: 1.5em 0 0.5em;
}

.fn-meta    { color: var(--muted); font-size: 0.9rem; margin-top: 0; }
.fn-summary { font-size: 1.05rem; }

.aside { font-size: 0.85rem; color: var(--muted); }

/* ---- search ----------------------------------------------------- */

.fn-search input[type=search] {
  font: inherit;
  padding: 0.25em 0.5em;
  border: 1px solid var(--box-border);
  border-radius: 4px;
}

.fn-search-main { margin: 1rem 0 0.25rem; }

.fn-search-main input[type=search] {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.4em 0.6em;
}

/* ---- code blocks ------------------------------------------------- */

.prototype, .example {
  background: var(--code-bg);
  border: 1px solid var(--box-border);
  padding: 0.6em 1em;
  margin: 0.5em 0;
  font-size: 0.88em;
  line-height: 1.35;
  overflow: auto;
}

/* ---- function / error listings ----------------------------------- */

.fn-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.75rem 0 1.5rem;
}

.fn-list th {
  text-align: left;
  background: #f5f0e6;
  border-bottom: 2px solid var(--box-border);
  padding: 0.35rem 0.6rem;
}

.fn-list td {
  border-bottom: 1px solid #eee;
  padding: 0.35rem 0.6rem;
  vertical-align: top;
}

.fn-list tr:hover td { background: #faf7f0; }

.fn-list .num { text-align: right; white-space: nowrap; width: 1%; }

.fn-list td:first-child { white-space: nowrap; }

/* quilt gallery */
.quilt-strip img { margin: 4px; vertical-align: middle; }
.quilt-main      { max-width: 100%; height: auto; }
.fn-list td img  { display: block; }