/* Cyberstead portal: a restrained 1998 internet directory. Scoped to body.portal. */
body.portal {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}
.portal a { color: #0000cc; text-decoration: underline; }
.portal a:visited { color: #551a8b; }
.portal a:focus { outline: 2px solid #ff6600; outline-offset: 1px; }
.portal h1, .portal h2 { font-family: Georgia, "Times New Roman", serif; }
.portal h1 { font-size: 20px; margin: 8px 0; }
.portal hr { border: 0; border-top: 2px groove #999999; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 4px; top: 4px; background: #ffff99; padding: 2px 4px; }

.masthead {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  padding: 6px 10px;
  background: linear-gradient(#cfe4ff, #8fb8f0);
  border-bottom: 2px solid #001a4d;
}
.masthead p, .session { margin: 0; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none !important; }
.logo-text {
  font: bold italic 32px Georgia, "Times New Roman", serif;
  color: #ffffff; letter-spacing: 1px;
  text-shadow: 1px 1px 0 #001a4d, 2px 2px 0 #001a4d, 3px 3px 0 #0a3d91;
}
.logo-text-b { color: #ffe066; }
.tagline { font-style: italic; color: #001a4d; flex: 1 1 200px; }
.session { margin-left: auto; }
.inline-form { display: inline; margin: 0 0 0 6px; }

.bevel-button {
  font: 12px Verdana, Arial, sans-serif; padding: 2px 8px;
  background: #d4d0c8; color: #000000; cursor: pointer;
  border: 2px outset #ffffff; border-radius: 0;
}
.bevel-button:active { border-style: inset; }
.portal button[type="submit"] {
  font: 12px Verdana, Arial, sans-serif; padding: 2px 10px;
  background: #d4d0c8; color: #000000; cursor: pointer;
  border: 2px outset #ffffff; border-radius: 0;
}
.portal button[type="submit"]:active { border-style: inset; }

.directory-nav { background: #003399; border-bottom: 2px solid #001a4d; }
.directory-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.directory-nav li { border-right: 1px solid #6688cc; }
.directory-nav a { display: block; padding: 4px 12px; color: #ffffff; font-weight: bold; }
.directory-nav a:visited { color: #ffffff; }
.directory-nav a:hover, .directory-nav a:focus { background: #ffcc00; color: #000000; }

.flashes { background: #ffffcc; border: 1px solid #999900; margin: 8px 10px; padding: 2px 8px; }
.flashes p { margin: 4px 0; }

.page { padding: 10px; max-width: 960px; margin: 0 auto; }
.announce { background: #ffffcc; border: 1px solid #cc9900; padding: 4px 8px; margin-bottom: 10px; }
.columns { display: flex; flex-wrap: wrap; gap: 10px; }
.col-main { flex: 2 1 380px; }
.col-side { flex: 1 1 220px; }

.panel { border: 1px solid #666666; margin-bottom: 10px; padding: 0 0 6px; background: #f4f4f4; }
.panel > :not(.panel-title) { margin-left: 8px; margin-right: 8px; }
.panel-title {
  margin: 0 0 6px; padding: 2px 8px; font-size: 14px;
  background: #003399; color: #ffffff;
}
.directory { list-style: square; columns: 2 200px; margin-top: 0; padding-left: 24px; }
.directory li { margin-bottom: 6px; break-inside: avoid; }
.count { color: #666666; }
.small { font-size: 11px; }
.plain { list-style: none; padding: 0; margin-top: 0; }
.plain li { margin-bottom: 4px; }
.promo { background: #ffcc00; text-align: center; border: 2px dashed #000000; }

.footer { text-align: center; padding: 0 10px 16px; color: #333333; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.badge-88x31 {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 84px; height: 27px; font: bold 9px/1.1 Verdana, Arial, sans-serif;
  background: #003399; color: #ffffff; border: 2px outset #99bbff;
}
.badge-alt { background: #660066; border-color: #dd99dd; }
.badge-green { background: #006600; color: #ccffcc; border-color: #99dd99; }

/* Auth forms inherit portal look. */
.portal form p { margin: 6px 0; }
.portal input[type="text"], .portal input[type="password"] {
  font: 13px Verdana, Arial, sans-serif; border: 2px inset #999999; border-radius: 0; padding: 2px;
}

/* Auth forms and error pages. */
.auth-panel { max-width: 440px; margin: 0 auto 10px; }
.form-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 10px; align-items: center; }
.form-grid label { font-weight: bold; text-align: right; }
.form-grid .form-actions { grid-column: 2; }
.form-grid .field-error { grid-column: 2; margin: 0; }
.field-error, .form-error { color: #cc0000; font-weight: bold; }
.form-error { background: #ffeeee; border: 1px solid #cc0000; padding: 4px 8px; margin: 6px 8px; }
.error-code { font: bold 48px Georgia, "Times New Roman", serif; color: #003399; text-shadow: 2px 2px 0 #ffcc00; margin: 6px 0; }
.error-panel { max-width: 560px; margin: 10px auto; text-align: center; }
.construction-strip {
  height: 12px; margin: 6px 8px; border: 1px solid #000000;
  background: repeating-linear-gradient(45deg, #ffcc00 0 10px, #000000 10px 20px);
}
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label { text-align: left; }
  .form-grid .form-actions, .form-grid .field-error { grid-column: 1; }
}

/* Banner exchange: original, CSS-drawn promo banners (static, no animation). */
.banner-exchange li { margin-bottom: 8px; text-align: center; }
.promo-banner {
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: 234px; min-height: 60px; margin: 0 auto; padding: 4px 6px;
  border: 2px outset #cccccc; text-decoration: none; text-align: center;
}
.promo-banner-big { font: bold 15px Impact, "Arial Black", sans-serif; letter-spacing: 1px; }
.promo-banner-small { font: 10px Verdana, Arial, sans-serif; }
.portal a.promo-banner-ring { background: #000066; color: #ffff00; }
.portal a.promo-banner-ring:visited { color: #ffff00; }
.portal a.promo-banner-watch { background: #ffffff; color: #cc0000; border-color: #cc0000; border-style: double; }
.portal a.promo-banner-watch:visited { color: #cc0000; }
.portal a.promo-banner-new { background: repeating-linear-gradient(90deg, #ffcc00 0 12px, #ff9900 12px 24px); color: #000000; }
.portal a.promo-banner-new:visited { color: #000000; }
.portal a.promo-banner-web { background: linear-gradient(180deg, #33cc33, #006600); color: #ffffff; }
.portal a.promo-banner-web:visited { color: #ffffff; }
.promo-banner:hover, .promo-banner:focus { border-style: inset; }
.status-table { border-collapse: collapse; margin: 0 8px; }
.status-table th, .status-table td { border: 1px solid #999999; padding: 2px 8px; text-align: left; vertical-align: top; }
.status-table th { background: #dde6f5; }
@media (prefers-reduced-motion: reduce) {
  .portal * { animation: none !important; transition: none !important; }
}
/* Webrings and The Ringmaster: plain panels, same directory look. */
.ring-entry { border-top: 1px dotted #999999; padding: 2px 0; }
.ring-entry:first-of-type { border-top: 0; }
.ring-badge {
  display: inline-block; padding: 0 4px; font: bold 10px Verdana, Arial, sans-serif;
  background: #003300; color: #00ff00; border: 2px outset #66cc66; vertical-align: middle;
}
.portal a.ring-link-button, .portal a.ring-link-button:visited { display: inline-block; text-decoration: none; color: #000000; padding: 2px 8px; }
.board-post { border-top: 1px dashed #808080; padding: 4px 0; }
.board-meta { margin: 0 8px 2px; }
.board-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.portal textarea { font: 13px Verdana, Arial, sans-serif; border: 2px inset #999999; border-radius: 0; padding: 2px; width: 100%; box-sizing: border-box; }
.status-table caption { text-align: left; }
@media (max-width: 600px) { .status-table { display: block; overflow-x: auto; } }
