/* temp cryptid agency :: classifieds  — hand-rolled, circa 2003, do not modernise */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #000000;
  --link: #0000cc;
  --visited: #551a8b;
  --rule: #999999;
  --box: #eeeeee;
  --boxline: #cccccc;
  --logo: #800080;
  --muted: #666666;
  --hot: #cc0000;
  --note: #ffffcc;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 8px 16px 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
a { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { color: var(--hot); }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 8px 0; }
.v, .v * { font-family: Verdana, Geneva, Arial, sans-serif; }
small, .sm { font-size: 12px; }
.muted { color: var(--muted); }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* ---------- home: the classic three column table ---------- */
.home {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 150px;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
}
.left, .right { font-family: Verdana, Geneva, Arial, sans-serif; font-size: 12px; }
.logo {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  line-height: 1;
  color: var(--logo) !important;
  text-decoration: none;
  letter-spacing: -0.5px;
  margin: 6px 0 2px;
}
.logo img { display: block; width: 64px; margin: 0 0 4px; }
.left ul, .right ul { list-style: none; margin: 6px 0; padding: 0; }
.left li, .right li { margin: 2px 0; }
.left h4, .right h4 {
  font-size: 12px; margin: 12px 0 2px; font-weight: bold;
}
.search input[type=text] { width: 100%; font-size: 12px; }
.search select, .search button { font-size: 11px; }

.cal { border-collapse: collapse; font-size: 11px; margin-top: 4px; width: 100%; }
.cal caption { text-align: left; font-weight: bold; padding-bottom: 2px; }
.cal th { font-weight: normal; color: var(--muted); }
.cal td, .cal th { text-align: center; padding: 1px 0; border: 1px solid var(--box); }
.cal td.today { background: var(--note); font-weight: bold; }
.cal td a { font-weight: bold; }

.topline { text-align: center; font-size: 13px; margin: 4px 0 10px; }
.topline b { font-size: 16px; }
.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.cat { border: 1px solid var(--boxline); }
.cat h3 {
  margin: 0; padding: 2px 4px;
  background: var(--box);
  font-size: 14px; text-align: center; font-weight: bold;
  border-bottom: 1px solid var(--boxline);
}
.cat h3 a { color: var(--ink); text-decoration: none; }
.cat h3 a:hover { text-decoration: underline; }
.cat ul {
  list-style: none; margin: 0; padding: 4px 6px;
  columns: 2; column-gap: 8px;
  font-size: 13px;
}
.cat.one ul { columns: 1; }
.cat li { break-inside: avoid; margin: 1px 0; }
.cat .new { color: var(--hot); font-size: 10px; font-family: Verdana, sans-serif; }

.policy {
  border: 1px solid var(--ink);
  padding: 6px 8px;
  margin: 12px 0 0;
  font-size: 13px;
  background: #fff;
}
.banner {
  display: block;
  border: 2px outset #ccc;
  background: #000;
  color: #fff !important;
  text-align: center;
  padding: 6px;
  font: bold 12px/1.3 Verdana, sans-serif;
  text-decoration: none;
  margin: 10px 0;
}
.banner em { color: #ff66cc; font-style: normal; }
.banner:hover { color: #ffff66 !important; }

.counter { margin: 10px 0 4px; font-size: 11px; }
.digits { display: inline-block; background: #000; padding: 2px; border: 2px inset #999; }
.digits span {
  display: inline-block;
  background: #111; color: #33ff33;
  font: bold 14px/1 "Courier New", Courier, monospace;
  padding: 2px 3px; margin: 0 1px;
  border: 1px solid #333;
}

/* ---------- inner pages ---------- */
.wrap { max-width: 780px; margin: 0 auto; }
.crumbs { font-size: 13px; margin: 6px 0; }
.crumbs a.home-link { font-weight: bold; color: var(--logo); }
.bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  font-size: 13px;
}
.bar .br a { white-space: nowrap; }
h2.ptitle { font-size: 20px; margin: 10px 0 4px; }
.meta { font-size: 14px; }
.body { margin: 12px 0; }
.body p { margin: 0 0 10px; }
.caps { text-transform: none; letter-spacing: 0.2px; }
.quote {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  background: #f7f7f7;
  border-left: 3px solid var(--rule);
  padding: 6px 8px;
  margin: 8px 0 10px;
}
.facts { font-size: 14px; margin: 10px 0; padding-left: 20px; }
.facts li { margin: 3px 0; }
.pics { margin: 10px 0; }
.pics figure { margin: 0 0 10px; display: inline-block; max-width: 100%; }
.pics img { border: 1px solid var(--boxline); display: block; }
.pics figcaption { font-size: 12px; color: var(--muted); }
.expired {
  background: var(--note); border: 1px solid #cc9; padding: 6px 8px; font-size: 14px; margin: 8px 0;
}
.pid { font-size: 12px; color: var(--muted); margin-top: 10px; }
.flags { font-size: 12px; margin: 6px 0; }
.flagged { display: none; font-size: 12px; background: var(--note); padding: 4px 6px; border: 1px solid #cc9; }
.flagged:target { display: block; }

/* results list */
.results h3 {
  font-size: 15px; margin: 14px 0 4px; padding: 2px 4px;
  background: var(--box); border-top: 1px solid var(--boxline);
}
.results p.row { margin: 4px 0 4px 8px; font-size: 15px; }
.results .pic { color: var(--hot); font-size: 12px; font-family: Verdana, sans-serif; }
.results .loc { color: var(--muted); font-size: 13px; }
.results .none { margin: 4px 0 4px 8px; font-size: 14px; color: var(--muted); }
.dateh { font-weight: bold; font-size: 14px; margin: 10px 0 2px; }

/* apply form: deliberately wonky */
.form { border: 1px solid var(--boxline); padding: 8px; background: #fafafa; }
.form table { border-collapse: collapse; width: 100%; }
.form td { padding: 4px 4px; vertical-align: top; font-size: 14px; }
.form td.l { text-align: right; width: 38%; font-weight: bold; }
.form td.l.off { padding-top: 12px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  font-family: "Courier New", Courier, monospace; font-size: 14px; max-width: 100%;
}
.form input[type=text].long { width: 100%; }
.form textarea.tiny { width: 11em; height: 2.2em; }
.form .hint { font-size: 11px; color: var(--muted); font-family: Verdana, sans-serif; display: block; }
.form .req { color: var(--hot); }
.captcha {
  display: inline-block; padding: 4px 10px; margin: 2px 0 4px;
  background: repeating-linear-gradient(45deg, #ddd 0 3px, #f4f4f4 3px 6px);
  font: italic bold 20px/1 "Courier New", monospace; letter-spacing: 3px;
  transform: skew(-12deg) rotate(-2deg); color: #444;
  border: 1px solid #aaa;
}
.captcha span { display: inline-block; }
.captcha span:nth-child(odd) { transform: translateY(3px) rotate(8deg); }
.captcha span:nth-child(3n) { transform: translateY(-2px) rotate(-10deg); color: #800080; }
.btns input, .btns button { font-size: 14px; margin: 4px 4px 0 0; }
#err { display: none; border: 2px solid var(--hot); padding: 8px; margin: 10px 0; font-family: Verdana, sans-serif; font-size: 13px; background: #fff0f0; }
#err.on { display: block; }

.tikanga {
  border: 1px solid var(--ink); padding: 12px 14px; margin: 12px 0;
  font-size: 16px; line-height: 1.45; background: #fff;
}
.tikanga p { margin: 0 0 10px; }
.tikanga cite { font-style: normal; font-size: 13px; color: var(--muted); }

/* search that finds nothing, on purpose */
.results .srch { display: none; }
.results .srch:target { display: block; background: var(--note); border: 1px solid #cc9; padding: 4px 6px; }

/* the one real link on the site */
a.regbtn { display: inline-block; margin-top: 4px; font-size: 14px; font-weight: bold; }

/* phone-only logo line at the top of the listings */
.mlogo { display: none; }

/* shared footer */
.foot {
  max-width: 1040px; margin: 20px auto 0; padding-top: 6px;
  border-top: 1px solid var(--rule);
  text-align: center; font-size: 12px;
  font-family: Verdana, Geneva, Arial, sans-serif;
}
.foot p { margin: 4px 0; }

/* ---------- small screens: the table collapses like it's 2003 on a nokia ---------- */
@media (max-width: 760px) {
  .home { grid-template-columns: minmax(0, 1fr); }
  .main { order: 1; }
  .left { order: 2; }
  .right { order: 3; }
  .mlogo {
    display: block; font-size: 22px; line-height: 1.1; color: var(--logo) !important;
    text-decoration: none; letter-spacing: -0.5px; margin: 4px 0 6px;
  }
  .left, .right { font-size: 14px; }
  .left li, .right li { margin: 6px 0; }
  .left h4, .right h4 { font-size: 14px; }
  .cat ul { font-size: 14px; }
  .cat li { margin: 4px 0; }
  .cats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .left .cal-wrap { max-width: 260px; }
  .logo { text-align: left; }
}
@media (max-width: 520px) {
  .cats { grid-template-columns: minmax(0, 1fr); }
  .form td { display: block; width: auto; }
  .form td.l { text-align: left; width: auto; padding-bottom: 0; }
  .form td.l.off { padding-top: 4px; }
  .form input[type=text].long { width: 100%; }
}

/* ---------- round 2 ---------- */
/* way home to cryptids.nz */
.foot .homebar { font-size: 14px; margin-bottom: 6px; }
.topcrumb { font-size: 12px; margin: 2px 0 6px; }
.topcrumb a.home-link { font-weight: bold; color: var(--logo); }

/* drobe gift sits where the bullet would */
.facts li.gbul { list-style: none; }
.facts li.gbul button.tca-gift { display: inline-block; width: 1em; margin-left: -1.05em; text-align: left; }

/* missed connections box on the home page */
.mc { border: 1px solid var(--boxline); margin: 12px 0 0; }
.mc h3 {
  margin: 0; padding: 2px 4px; background: var(--box);
  font-size: 14px; text-align: center; font-weight: bold;
  border-bottom: 1px solid var(--boxline);
}
.mc h3 a { color: var(--ink); text-decoration: none; }
.mc h3 a:hover { text-decoration: underline; }
.mc h3 .new { color: var(--hot); font: 10px Verdana, sans-serif; }
.mc-in { display: flex; gap: 10px; padding: 6px; align-items: flex-start; }
.mc-pic { flex: none; width: 84px; }
.mc-pic img { display: block; width: 84px; height: auto; border: 1px solid var(--boxline); }
.mc-txt { min-width: 0; flex: 1; }
.mc-txt p { margin: 0 0 6px; }
.mc ul { list-style: none; margin: 0 0 6px; padding: 0; font-size: 14px; }
.mc li { margin: 3px 0; }
.mc .loc { color: var(--muted); font-size: 12px; }

/* the one video on the site */
.vid { margin: 10px 0; max-width: 300px; }
.vid video { display: block; width: 100%; height: auto; border: 1px solid var(--boxline); background: #000; }
.vid figcaption { font-size: 12px; color: var(--muted); }
.mcpics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; margin: 10px 0; }
.mcpics figure { margin: 0; }
.mcpics img { display: block; width: 100%; height: auto; border: 1px solid var(--boxline); }
.mcpics figcaption { font-size: 12px; color: var(--muted); }
.post .pics img { max-width: min(100%, 420px); }
@media (max-width: 380px) { .mc-pic, .mc-pic img { width: 64px; } }
