/* WedgeVault: a comfortable old-web portal. System fonts only, no outside requests. */
:root {
  --night: #071226;
  --navy: #17395c;
  --blue: #2a5d8f;
  --link: #1a5c96;
  --hot: #d96a00;
  --paper: #eef1f4;
  --row: #dee3e7;
  --line: #98aab1;
  --ink: #1b2430;
  --teal: #1fc8b4;
  --purple: #b46cff;
  --pink: #ff4f9a;
  --yellow: #ffd23f;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0; padding: 14px 8px 30px;
  font: 14px/1.55 Verdana, Tahoma, Geneva, sans-serif;
  color: var(--ink);
  background-color: var(--night);
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 120px, #9fd 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 150px 60px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 170px, #ccd 50%, transparent 51%),
    radial-gradient(1px 1px at 180px 190px, #fff 50%, transparent 51%);
  background-size: 220px 220px;
}
a { color: var(--link); }
a:hover { color: var(--hot); }
img { border: 0; max-width: 100%; }
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0; }
p { margin: 0 0 12px; }
.small { font-size: 12px; color: #4a5866; }
.c { text-align: center; }

#wrap {
  max-width: 980px; margin: 0 auto;
  background: #c8d1d9;
  border: 2px solid; border-color: #f2f6f9 #46525f #46525f #f2f6f9;
  box-shadow: 0 0 0 1px #000, 0 8px 30px rgba(0, 0, 0, .6);
}

/* banner */
#banner {
  padding: 16px 18px;
  background: linear-gradient(#071226, #103a63 70%, #1a6f80);
  position: relative; overflow: hidden;
}
#banner::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -92px; height: 110px;
  border-radius: 50%; background: #050c18; border-top: 2px solid #5fe0d6;
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; position: relative; z-index: 1; }
.brand .words { display: flex; flex-direction: column; }
.brand .name {
  font: italic bold 46px/1 "Trebuchet MS", Verdana, sans-serif; letter-spacing: -1px;
  color: #fff;
  background: linear-gradient(#fff 0%, #c3d2e0 46%, #7f95aa 54%, #f2f7fb 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 0 #04101f);
  padding-right: 8px;
}
.brand .tag { color: #bfe9ee; font-size: 12px; margin-top: 8px; letter-spacing: .5px; }

.stripes i { display: block; height: 3px; }
.stripes i:nth-child(1) { background: var(--teal); }
.stripes i:nth-child(2) { background: var(--purple); }
.stripes i:nth-child(3) { background: var(--pink); }
.stripes i:nth-child(4) { background: var(--yellow); }

/* browser-style toolbar */
#toolbar {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px;
  background: #c8d1d9; border-top: 1px solid #fff; border-bottom: 1px solid #7c8996;
}
.btn {
  font: bold 12px Tahoma, Verdana, sans-serif; color: var(--ink); text-decoration: none;
  padding: 6px 14px; background: #d8dfe5;
  border: 2px solid; border-color: #fff #5d6976 #5d6976 #fff;
}
.btn:hover { color: var(--hot); }
.btn:active, .btn.on { border-color: #5d6976 #fff #fff #5d6976; background: #b9c4cd; }
.btn:focus-visible, a:focus-visible { outline: 2px dotted var(--hot); outline-offset: 1px; }

#location {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  background: #c8d1d9; border-bottom: 1px solid #7c8996; font-size: 12px;
}
#location .lbl { font-weight: bold; }
#location .field {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: #fff; padding: 3px 6px; font-family: "Courier New", monospace;
  border: 2px solid; border-color: #5d6976 #fff #fff #5d6976;
}

#ticker {
  background: #04101f; color: #7df0e4; font: 12px "Courier New", monospace;
  overflow: hidden; white-space: nowrap; padding: 3px 0; border-bottom: 1px solid #000;
}
#ticker span { display: inline-block; padding-left: 100%; animation: tick 38s linear infinite; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { #ticker span { animation: none; padding-left: 8px; } }

/* columns */
#cols { display: flex; gap: 10px; padding: 10px; align-items: flex-start; }
#side { width: 212px; flex: none; }
#main { flex: 1; min-width: 0; }

.panel { background: var(--paper); border: 1px solid var(--line); margin-bottom: 10px; box-shadow: 1px 1px 0 #fff; }
.bar {
  font-size: 13px; color: #fff; padding: 6px 10px; letter-spacing: .3px;
  background: linear-gradient(var(--blue), var(--navy)); border-bottom: 1px solid #0b2238;
  text-shadow: 1px 1px 0 #0b2238;
}
h2.bar { font-size: 15px; }
.pad { padding: 12px; }

.menu { list-style: none; margin: 0; padding: 4px 0; }
.menu li { border-bottom: 1px dotted #b3c0c8; }
.menu li:last-child { border: 0; }
.menu a { display: block; padding: 5px 10px 5px 24px; text-decoration: none; font-weight: bold; font-size: 13px; position: relative; }
.menu a::before { content: "\00bb"; position: absolute; left: 10px; color: var(--hot); }
.menu a:hover { background: #fff; }

.status { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2fbf4a; border: 1px solid #14702a; }

.dl, .bigdl {
  display: inline-block; margin-top: 8px; padding: 6px 16px; font: bold 13px Tahoma, Verdana, sans-serif;
  color: #fff; text-decoration: none; background: linear-gradient(#f0932b, #c95f00);
  border: 2px solid; border-color: #ffd29c #7a3a00 #7a3a00 #ffd29c; text-shadow: 1px 1px 0 #7a3a00;
}
.dl:hover, .bigdl:hover { color: #fff; background: linear-gradient(#ffa94a, #d96a00); }
.bigdl { font-size: 16px; padding: 10px 26px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 10px 4px; }
.b88 {
  width: 92px; height: 33px; font: 9px/1.2 Tahoma, Verdana, sans-serif; text-align: center;
  white-space: nowrap; overflow: hidden; letter-spacing: -.2px;
  display: flex; flex-direction: column; justify-content: center;
  border: 2px solid; border-color: #fff #333 #333 #fff;
}
.b88 b { font-size: 10px; }
.b1 { background: #04101f; color: #7df0e4; }
.b2 { background: #fff; color: #b00020; }
.b3 { background: #a42e2b; color: #fff; }
.b4 { background: var(--yellow); color: #1b2430; }
.b5 { background: #3a1d5c; color: #f0d9ff; }
.b6 { background: #0f5132; color: #d6ffe6; }
.plans td.yes { color: #1b6b2b; font-weight: bold; }
.plans td:first-child { font-weight: bold; font-size: 13px; }

/* boards (forum-style tables) */
.board { width: 100%; border-collapse: collapse; }
.board th {
  background: linear-gradient(#f5a54a, #d96a00); color: #fff; font: bold 12px Tahoma, Verdana, sans-serif;
  padding: 5px 8px; text-align: left; border: 1px solid #a85200; text-shadow: 1px 1px 0 #a85200;
}
.board td { padding: 8px; border: 1px solid #fff; background: var(--row); vertical-align: middle; }
.board tr:nth-child(odd) td { background: #e6eaee; }
.board td.ico { width: 44px; text-align: center; }
.board td.c, .board th.c { text-align: center; white-space: nowrap; }
.topic { font-weight: bold; font-size: 15px; text-decoration: none; }
.folder {
  display: inline-block; width: 24px; height: 18px; background: linear-gradient(#ffe08a, #f0b429);
  border: 1px solid #9a6b00; border-radius: 1px 4px 2px 2px; position: relative; margin-top: 4px;
}
.folder::before {
  content: ""; position: absolute; left: -1px; top: -5px; width: 11px; height: 5px;
  background: #f0b429; border: 1px solid #9a6b00; border-bottom: 0; border-radius: 2px 2px 0 0;
}
.pill { display: inline-block; padding: 1px 8px; font-size: 11px; font-weight: bold; color: #fff; background: #2f9e44; border: 1px solid #1b6b2b; }
.pill.soon { background: #7a8794; border-color: #56626e; }

.welcome { display: flex; gap: 16px; align-items: center; }
.welcome img { flex: none; }
.welcome h1 { font-size: 24px; color: var(--navy); margin-bottom: 6px; }

.post h3 { color: var(--navy); font-size: 17px; margin: 18px 0 6px; }
.post ul { margin: 0 0 12px; padding-left: 22px; }
.byline { font-size: 12px; color: #4a5866; border-bottom: 1px dotted var(--line); padding-bottom: 8px; }
.back { margin-top: 18px; font-size: 13px; }
.note { background: #fffbe0; border: 1px solid #d9c66a; padding: 8px 10px; font-size: 13px; }
table.plain { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
table.plain td { padding: 6px 8px; border: 1px solid #fff; background: var(--row); vertical-align: top; font-size: 13px; }
table.plain td:first-child { font-weight: bold; white-space: nowrap; width: 1%; }

/* screenshot bar and full-size viewer */
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #b9c4cd; border-bottom: 1px solid var(--line); }
.thumbs a { flex: none; display: block; background: #fff; padding: 3px; border: 2px solid; border-color: #fff #5d6976 #5d6976 #fff; }
.thumbs a:hover { border-color: var(--hot); }
.thumbs img { display: block; height: 96px; width: auto; max-width: 220px; object-fit: cover; }
.thumbhint { padding: 5px; margin: 0; }
#viewer { position: fixed; inset: 0; z-index: 10; background: rgba(4, 16, 31, .88); display: flex; align-items: center; justify-content: center; padding: 12px; }
#viewer[hidden] { display: none; }
#viewer .frame { background: #c8d1d9; border: 2px solid; border-color: #f2f6f9 #46525f #46525f #f2f6f9; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; }
#viewer .vbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 4px 4px 10px; color: #fff; font: bold 13px "Trebuchet MS", Verdana, sans-serif; background: linear-gradient(var(--blue), var(--navy)); }
#viewer img { display: block; max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; background: #fff; margin: 6px; min-height: 0; }
#viewer .vnav { display: flex; justify-content: space-between; padding: 0 6px 6px; }
#viewer .vnav[hidden] { display: none; }
#viewer button { font: bold 12px Tahoma, Verdana, sans-serif; color: var(--ink); padding: 4px 12px; background: #d8dfe5; border: 2px solid; border-color: #fff #5d6976 #5d6976 #fff; cursor: pointer; }
#viewer button:active { border-color: #5d6976 #fff #fff #5d6976; }

#footer { background: #04101f; color: #bfd0dd; text-align: center; font-size: 12px; }
#footer p { margin: 0; padding: 10px 8px 0; }
#footer p:last-child { padding-bottom: 12px; }
#footer a { color: #7df0e4; }
#footer .small { color: #8ea3b5; }

@media (max-width: 720px) {
  body { padding: 0; }
  #cols { flex-direction: column-reverse; }
  #side { width: 100%; }
  .brand .name { font-size: 32px; }
  .brand img { width: 60px; height: 60px; }
  .welcome { flex-direction: column; text-align: center; }
  .board td.c:last-child, .board th.c:last-child { display: none; }
}
