/* v4 */
/*
 * DECKSPACE — Visual Design System
 * Faithful OG MySpace recreation for cruise social networking
 * Optimized for low-bandwidth, mobile-first, progressive enhancement
 *
 * Color system:
 *   --ds-navy:      #003399  (nav bar, primary blue)
 *   --ds-blue-mid:  #336699  (secondary blue)
 *   --ds-blue-lt:   #6699cc  (hover states)
 *   --ds-orange:    #ff6600  (section headers)
 *   --ds-orange-dk: #cc5200  (hover)
 *   --ds-white:     #ffffff
 *   --ds-bg:        #f5f5f5
 *   --ds-border:    #cccccc
 *   --ds-text:      #333333
 *   --ds-link:      #003399
 */

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   BASE
   ============================================================ */
:root {
  --ds-navy:       #1752B0;  /* MySpace royal blue — brighter, clearly blue */
  --ds-blue-mid:   #3A7BD5;  /* secondary / sailing bar blue */
  --ds-blue-lt:    #6699cc;
  --ds-blue-bg:    #dce9f5;
  --ds-orange:     #ff6600;
  --ds-orange-dk:  #cc5200;
  --ds-white:      #ffffff;
  --ds-bg:         #f5f5f5;
  --ds-border:     #cccccc;
  --ds-border-dk:  #999999;
  --ds-text:       #333333;
  --ds-text-light: #666666;
  --ds-link:       #1752B0;
  --ds-link-hover: #cc5200;
  --ds-error:      #cc0000;
  --ds-success:    #006600;
  --ds-online:     #00aa00;
}

html {
  font-size: 12px;
  line-height: 1.35;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--ds-text);
  background: var(--ds-bg);
  min-height: 100vh;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 300;
  background: #fff4cf;
  color: #001b55;
  border: 2px solid #ff9900;
  padding: 6px 10px;
  font-weight: bold;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}
.ds-main {
  min-height: calc(100vh - 120px);
}

a {
  color: var(--ds-link);
  text-decoration: none;
}
a:hover {
  color: var(--ds-link-hover);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ============================================================
   TOP NAVIGATION BAR — deep blue, MySpace faithful
   ============================================================ */
#ds-nav {
  background: linear-gradient(to bottom, #2266CC 0%, #1144AA 100%);
  border-bottom: 2px solid #0A3080;
  padding: 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
}

#ds-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 6px;
  gap: 0;
}

#ds-logo {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  padding: 5px 8px 5px 0;
  border-right: 1px solid #334488;
  margin-right: 4px;
  font-style: italic;
  letter-spacing: -0.5px;
}
#ds-logo:hover {
  color: #ffcc00;
  text-decoration: none;
}
#ds-logo .logo-deck { color: #ffffff; }
#ds-logo .logo-space { color: #99bbff; }

#ds-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  flex: 1;
}

#ds-nav-links a {
  color: #ccddff;
  font-size: 11px;
  padding: 6px 7px;
  display: block;
  white-space: nowrap;
  transition: background 0.1s;
}
#ds-nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  text-decoration: none;
}
#ds-nav-links a.active {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  font-weight: bold;
}

#ds-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 11px;
}

.nav-mobile-only,
.nav-mobile-divider {
  display: none;
}

.nav-inline-form,
.nav-mobile-form {
  margin: 0;
}

#ds-nav-right .nav-user-name {
  color: #ccddff;
}
#ds-nav-right .nav-user-name strong {
  color: #ffffff;
}

.nav-notif-badge {
  background: var(--ds-orange);
  color: #fff;
  border-radius: 2px;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: bold;
  text-decoration: none;
}
.nav-notif-badge:hover {
  background: var(--ds-orange-dk);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   SECONDARY / SAILING BAR
   ============================================================ */
#ds-sailing-bar {
  background: #3A7BD5;
  border-bottom: 1px solid #2A5AAA;
  text-align: center;
  padding: 3px 8px;
  font-size: 11px;
  color: #cce0ff;
}
#ds-sailing-bar strong {
  color: #ffffff;
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
#ds-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 5px 4px;
}

/* Full-width override */
#ds-page.full-width {
  max-width: 100%;
}

.ds-footer {
  border-top: 1px solid #9eb7e5;
  background: linear-gradient(to bottom, #f3f7ff 0%, #e3edf9 100%);
  margin-top: 14px;
}
.ds-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 8px 14px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.ds-footer-copy {
  max-width: 620px;
  font-size: 11px;
  color: #4b5d79;
  line-height: 1.45;
}
.ds-footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ds-footer-links a {
  font-size: 11px;
  font-weight: bold;
}

/* ============================================================
   MODULE SYSTEM
   The heart of the MySpace look: bordered boxes with orange headers
   ============================================================ */
.ds-module {
  background: var(--ds-white);
  border: 1px solid var(--ds-border);
  margin-bottom: 5px;
  overflow: hidden;
}

.ds-module-header {
  background: linear-gradient(to bottom, #ff7722 0%, #dd5500 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  user-select: none;
}
.ds-module-header a {
  color: #ffe0cc;
  font-size: 10px;
  font-weight: normal;
  text-transform: none;
}
.ds-module-header a:hover {
  color: #ffffff;
}

.ds-module-body {
  padding: 6px;
}

/* Blue module header variant */
.ds-module-header.blue {
  background: linear-gradient(to bottom, #336699 0%, #224477 100%);
}

/* Light/info module header variant */
.ds-module-header.light {
  background: linear-gradient(to bottom, #e8eef8 0%, #d0dbee 100%);
  color: #003399;
}

/* ============================================================
   PROFILE LAYOUT — Two-column, OG MySpace anatomy
   ============================================================ */
.profile-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px;
  align-items: start;
}

.profile-left {
  /* Left utility rail */
}

.profile-right {
  /* Main content column */
  min-width: 0; /* prevent grid blowout */
}

/* ============================================================
   PROFILE PHOTO BLOCK
   ============================================================ */
.profile-photo-block {
  background: var(--ds-white);
  border: 1px solid var(--ds-border);
  padding: 5px;
  text-align: center;
  margin-bottom: 5px;
}

.profile-photo-block img.avatar {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--ds-border-dk);
  display: block;
  margin: 0 auto 4px;
}
.pixel-avatar {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #f6f2e7;
}
.profile-photo-block .no-photo {
  width: 160px;
  height: 160px;
  background: #e8e8e8;
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-text-light);
  font-size: 11px;
  margin: 0 auto 4px;
}

.profile-display-name {
  font-size: 14px;
  font-weight: bold;
  color: #000;
  display: block;
  margin-bottom: 2px;
}

.profile-status-line {
  font-size: 11px;
  color: var(--ds-text-light);
}

.online-indicator {
  color: var(--ds-online);
  font-weight: bold;
  font-size: 11px;
}
.online-indicator::before {
  content: "● ";
}

/* ============================================================
   CONTACT / ACTION BOX
   ============================================================ */
.contact-box {
  background: var(--ds-white);
  border: 1px solid var(--ds-border);
  margin-bottom: 8px;
  overflow: hidden;
}
.contact-box .ds-module-header {
  font-size: 10px;
}

.contact-actions {
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(to bottom, #f0f0f0 0%, #dcdcdc 100%);
  border: 1px solid #aaaaaa;
  padding: 3px 6px;
  font-size: 11px;
  color: var(--ds-navy);
  cursor: pointer;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
}
.contact-btn:hover {
  background: linear-gradient(to bottom, #dce9f5 0%, #b8d0e8 100%);
  border-color: var(--ds-blue-mid);
  color: var(--ds-navy);
  text-decoration: none;
}
.contact-btn.primary {
  background: linear-gradient(to bottom, #336699 0%, #224477 100%);
  color: #ffffff;
  border-color: #224477;
}
.contact-btn.primary:hover {
  background: linear-gradient(to bottom, #4477aa 0%, #336699 100%);
  color: #ffffff;
}
.contact-btn.danger {
  color: var(--ds-error);
}

/* ============================================================
   PROFILE DETAILS TABLE
   ============================================================ */
.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.details-table td {
  padding: 2px 3px;
  vertical-align: top;
  border-bottom: 1px solid #eeeeee;
}
.details-table td.label {
  font-weight: bold;
  color: #555;
  white-space: nowrap;
  width: 40%;
}
.details-table td.value {
  color: #333;
  word-break: break-word;
}

/* ============================================================
   PROFILE URL / SONG MODULE
   ============================================================ */
.profile-url-field {
  font-size: 10px;
  padding: 4px 6px;
  color: var(--ds-text-light);
  border-top: 1px solid var(--ds-border);
  word-break: break-all;
}
.profile-url-field a { color: var(--ds-link); font-size: 10px; }

.song-player {
  padding: 5px 6px;
  font-size: 11px;
  border-top: 1px solid var(--ds-border);
}
.song-player .song-title {
  font-weight: bold;
  display: block;
  margin-bottom: 2px;
}
.song-player .song-artist {
  color: var(--ds-text-light);
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
}
.song-play-btn {
  background: var(--ds-navy);
  color: #fff;
  border: none;
  padding: 2px 8px;
  font-size: 10px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}
.song-play-btn:hover {
  background: var(--ds-blue-mid);
}

/* ============================================================
   BLURBS / ABOUT ME
   ============================================================ */
.blurb-body {
  font-size: 12px;
  line-height: 1.5;
  padding: 6px;
  word-break: break-word;
}
.blurb-body p + p {
  margin-top: 6px;
}

/* ============================================================
   VIBE TAGS
   ============================================================ */
.vibe-tags {
  padding: 4px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.vibe-tag {
  background: var(--ds-blue-bg);
  border: 1px solid var(--ds-blue-mid);
  color: var(--ds-navy);
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 0;
  white-space: nowrap;
}

/* ============================================================
   FRIEND SPACE / TOP FRIENDS GRID
   ============================================================ */
.friend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
}
.friend-grid-item {
  text-align: center;
}
.friend-grid-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--ds-border);
  display: block;
  margin: 0 auto 2px;
}
.friend-grid-item .pixel-avatar {
  border: 1px solid var(--ds-border);
  margin: 0 auto 2px;
}
.friend-grid-item .no-photo-thumb {
  width: 60px;
  height: 60px;
  background: #e8e8e8;
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2px;
  font-size: 9px;
  color: #999;
}
.friend-grid-item .friend-name {
  font-size: 9px;
  color: var(--ds-link);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 64px;
  margin: 0 auto;
}
.friend-grid-item .friend-name:hover {
  text-decoration: underline;
}
.friend-count-line {
  font-size: 11px;
  padding: 0 6px 4px;
  color: var(--ds-text-light);
}
.friend-count-line a { color: var(--ds-link); }

/* ============================================================
   WALL POSTS / GUESTBOOK — public comment entries
   ============================================================ */
.comment-list {
  padding: 0;
}
.comment-entry {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-bottom: 1px solid #eeeeee;
}
.comment-entry:last-child {
  border-bottom: none;
}
.comment-avatar {
  flex-shrink: 0;
}
.comment-avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--ds-border);
}
.comment-avatar .pixel-avatar {
  border: 1px solid var(--ds-border);
}
.comment-avatar .no-photo-xs {
  width: 40px;
  height: 40px;
  background: #e8e8e8;
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #aaa;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-author {
  font-weight: bold;
  font-size: 11px;
  color: var(--ds-link);
}
.comment-author:hover { text-decoration: underline; }
.comment-text {
  font-size: 12px;
  margin-top: 2px;
  word-break: break-word;
  line-height: 1.35;
}
.comment-time {
  font-size: 10px;
  color: var(--ds-text-light);
  margin-top: 2px;
}
.comment-actions {
  font-size: 10px;
  margin-top: 2px;
}
.comment-actions a { color: var(--ds-text-light); }
.comment-actions a:hover { color: var(--ds-error); text-decoration: underline; }

/* Comment post form */
.comment-form {
  padding: 6px;
  border-top: 1px solid var(--ds-border);
  background: #fafafa;
}
.comment-form textarea {
  width: 100%;
  height: 50px;
  border: 1px solid var(--ds-border-dk);
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 3px;
  resize: vertical;
}
.comment-form .form-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  align-items: center;
}

/* ============================================================
   SHATTERED SHORES SCHEDULE PAGE
   MySpace-style two-column events layout
   ============================================================ */

/* Outer grid: narrow left rail + main content */
.ss-wrap {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px;
  align-items: start;
}

/* ---- LEFT RAIL ---- */
.ss-rail {}
.ss-rail-module { margin-bottom: 6px; }
.ss-rail-module .ds-module-body { padding: 5px 6px; font-size: 11px; }

/* Badge / logo block */
.ss-rail-badge {
  background: linear-gradient(to bottom, #1752B0 0%, #0A3080 100%);
  color: #fff;
  text-align: center;
  padding: 10px 6px 8px;
  margin-bottom: 6px;
  border: 1px solid #001166;
}
.ss-badge-title {
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  letter-spacing: -0.5px;
  line-height: 1;
}
.ss-badge-sub {
  font-size: 10px;
  color: #ffcc66;
  margin-top: 3px;
}
.ss-badge-ship {
  font-size: 9px;
  color: #aabbee;
  margin-top: 2px;
}

/* Now Boarding info table */
.ss-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  line-height: 1.5;
}
.ss-info-table td { padding: 1px 2px; vertical-align: top; }
.ss-info-key {
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  padding-right: 4px !important;
  width: 60px;
}
.ss-status-val { color: #cc0000; font-style: italic; }

/* Top 8 list */
.ss-top8 {
  margin: 0;
  padding: 0 0 0 14px;
  font-size: 10px;
  line-height: 1.8;
  color: #333;
}
.ss-top8 li { padding: 0; }

/* Bulletin */
.ss-bulletin {
  font-size: 10px;
  font-style: italic;
  line-height: 1.5;
  color: #333;
}

/* Who's Here */
.ss-online-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  line-height: 1.7;
}
.ss-online-table td { padding: 0 2px; vertical-align: top; }
.ss-online-num {
  font-weight: bold;
  color: var(--ds-navy);
  text-align: right;
  padding-right: 5px !important;
  width: 24px;
}

/* Legend */
.ss-legend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  line-height: 1.8;
}
.ss-legend-table td { padding: 0 3px; vertical-align: middle; }
.ss-legend-table td:first-child { width: 18px; text-align: center; }

/* Create event link in rail */
.ss-create-link {
  margin-top: 6px;
  font-size: 11px;
  text-align: center;
}

/* ---- MAIN CONTENT ---- */
.ss-main {}

/* Title banner */
.ss-banner {
  background: linear-gradient(to bottom, #1752B0 0%, #0A3080 100%);
  color: #fff;
  padding: 10px 12px 8px;
  margin-bottom: 6px;
  border: 1px solid #0A3080;
}
.ss-banner-title {
  font-size: 16px;
  font-weight: bold;
  font-style: italic;
  line-height: 1.1;
}
.ss-banner-sub {
  font-size: 11px;
  color: #aaccff;
  margin-top: 4px;
}

/* Status bar */
.ss-status-bar {
  background: #ffffcc;
  border: 1px solid #cccc66;
  padding: 4px 8px;
  font-size: 10px;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.6;
}
.ss-status-sep {
  margin: 0 6px;
  color: #999;
}

/* Intro copy */
.ss-intro {
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  background: #f9f9f9;
  border: 1px solid #cccccc;
  padding: 8px 10px;
  margin-bottom: 6px;
}

/* Day module header */
.ss-day-module { margin-bottom: 6px; }
.ss-day-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.ss-day-label {
  font-weight: bold;
  font-size: 12px;
}
.ss-day-sub {
  font-size: 10px;
  font-weight: normal;
  opacity: 0.9;
}

/* Schedule table */
.ss-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.ss-schedule thead tr {
  background: #f0f0f0;
  border-bottom: 1px solid #cccccc;
}
.ss-schedule th {
  padding: 4px 6px;
  text-align: left;
  font-size: 10px;
  font-weight: bold;
  color: #444;
  white-space: nowrap;
}
.ss-th-time  { width: 64px; }
.ss-th-icon  { width: 18px; text-align: center; }
.ss-th-loc   { width: 28%; }
.ss-th-rsvp  { width: 52px; text-align: right; }

.ss-row { border-bottom: 1px solid #eeeeee; }
.ss-row:last-child { border-bottom: none; }
.ss-row:hover { background: #fffbe6; }

.ss-row td { padding: 5px 6px; vertical-align: top; }
.ss-time {
  white-space: nowrap;
  font-size: 10px;
  color: #666;
  width: 64px;
}
.ss-icon {
  text-align: center;
  font-size: 12px;
  width: 18px;
}
.ss-evtitle {
  font-weight: bold;
  font-size: 11px;
}
.ss-evtitle a { color: #1752B0; }
.ss-evtitle a:hover { text-decoration: underline; }
.ss-loc {
  font-size: 10px;
  color: #555;
}
.ss-rsvp {
  font-size: 10px;
  color: #888;
  text-align: right;
  white-space: nowrap;
}

/* Random Incidents */
.ss-incidents {
  margin: 0;
  padding: 0 0 0 14px;
  font-size: 11px;
  line-height: 1.8;
  color: #333;
}

/* Fake comments */
.ss-fake-comment {
  padding: 6px 10px;
  border-bottom: 1px solid #eeeeee;
  font-size: 11px;
  line-height: 1.5;
}
.ss-fake-comment:last-child { border-bottom: none; }
.ss-fc-user {
  font-weight: bold;
  color: #1752B0;
}
.ss-fc-body { color: #333; }

/* Mobile: stack to single column */
@media (max-width: 640px) {
  .ss-wrap {
    grid-template-columns: 1fr;
  }
  .ss-status-bar {
    display: none; /* too cramped on mobile */
  }
  .ss-th-loc, .ss-loc,
  .ss-th-rsvp, .ss-rsvp { display: none; }
}

/* ============================================================
   EVENTS — list cards
   ============================================================ */
.event-list {
  padding: 0;
}
.event-card {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-bottom: 1px solid #eeeeee;
}
.event-card:last-child { border-bottom: none; }
.event-card:hover { background: #fafafa; }

.event-thumb {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: #e0e8f0;
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--ds-navy);
  text-align: center;
  font-weight: bold;
}
.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-info {
  flex: 1;
  min-width: 0;
}
.event-title {
  font-weight: bold;
  font-size: 12px;
  color: var(--ds-link);
  display: block;
}
.event-title:hover { text-decoration: underline; }
.event-meta {
  font-size: 10px;
  color: var(--ds-text-light);
  margin-top: 1px;
}
.event-card-rsvp-count {
  font-size: 10px;
  color: var(--ds-navy);
  font-weight: bold;
}
.event-category-badge {
  display: inline-block;
  background: var(--ds-blue-bg);
  border: 1px solid var(--ds-blue-mid);
  color: var(--ds-navy);
  font-size: 9px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 2px;
}
.event-official-badge {
  display: inline-block;
  background: #fff3cc;
  border: 1px solid #cc9900;
  color: #886600;
  font-size: 9px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 2px;
}

/* Event tabs */
.ds-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #1752B0;
  margin-bottom: 8px;
}
.ds-tab {
  padding: 4px 10px;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
  background: #e8f0f8;
  color: #1752B0;
  text-decoration: none;
  border: 1px solid #cccccc;
  border-bottom: none;
  margin-right: 2px;
}
.ds-tab:hover { background: #d0e0f0; text-decoration: none; }
.ds-tab.ds-tab-active {
  background: #1752B0;
  color: #ffffff;
  border-color: #1752B0;
}

/* Event detail page */
.event-detail-header { }
.event-detail-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin-bottom: 4px;
}
.event-detail-meta {
  font-size: 11px;
  color: var(--ds-text-light);
  margin-top: 4px;
  line-height: 1.5;
}
.event-rsvp-count {
  font-size: 14px;
  font-weight: bold;
  color: #1752B0;
  margin: 6px 0;
}
.event-rsvp-actions {
  margin-bottom: 6px;
}
.event-description {
  border-top: 1px solid #eeeeee;
  padding-top: 6px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

/* RSVP button */
.rsvp-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #336699 0%, #224477 100%);
  color: #ffffff;
  border: 1px solid #224477;
  padding: 4px 12px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  text-decoration: none;
}
.rsvp-btn:hover {
  background: linear-gradient(to bottom, #4477aa 0%, #336699 100%);
  color: #fff;
  text-decoration: none;
}
.rsvp-btn.going {
  background: linear-gradient(to bottom, #006600 0%, #004400 100%);
  border-color: #004400;
}
.rsvp-btn.going:hover {
  background: linear-gradient(to bottom, #008800 0%, #006600 100%);
}

/* Photo detail view */
.photo-view-img {
  background: #111111;
  text-align: center;
  padding: 8px;
  border-bottom: 1px solid #333333;
}
.photo-view-img img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: inline-block;
}
.photo-view-unavailable { color: #aaaaaa; }
.photo-view-caption {
  font-size: 13px;
  margin-bottom: 6px;
}
.photo-view-actions {
  margin-top: 6px;
}

/* ============================================================
   PHOTO GALLERY — thumbnail grid
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
}
.photo-thumb-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid var(--ds-border);
}
.photo-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-thumb-item:hover img {
  opacity: 0.85;
}
.photo-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 9px;
  padding: 2px 4px;
  display: none;
}
.photo-thumb-item:hover .photo-caption-overlay {
  display: block;
}

/* ============================================================
   PEOPLE BROWSE
   ============================================================ */
.people-list {
  padding: 0;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-bottom: 1px solid #eeeeee;
}
.person-row:last-child { border-bottom: none; }
.person-row:hover { background: #fafafa; }
.person-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--ds-border);
}
.person-thumb-placeholder {
  width: 44px;
  height: 44px;
  background: #e8e8e8;
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #aaa;
  flex-shrink: 0;
}
.person-row .pixel-avatar {
  flex-shrink: 0;
  border: 1px solid var(--ds-border);
}
.person-info {
  flex: 1;
  min-width: 0;
}
.person-name {
  font-weight: bold;
  font-size: 12px;
  color: var(--ds-link);
  display: block;
}
.person-name:hover { text-decoration: underline; }
.person-meta {
  font-size: 10px;
  color: var(--ds-text-light);
  margin-top: 1px;
}
.person-action {
  flex-shrink: 0;
}

/* ============================================================
   NOTIFICATIONS LIST
   ============================================================ */
.notif-list {
  padding: 0;
}
.notif-item {
  padding: 5px 8px;
  border-bottom: 1px solid #eeeeee;
  font-size: 11px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.notif-item.unread {
  background: #f0f5ff;
}
.notif-item:last-child { border-bottom: none; }
.notif-icon {
  flex-shrink: 0;
  font-size: 13px;
  width: 16px;
  text-align: center;
  margin-top: 1px;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-time {
  font-size: 10px;
  color: var(--ds-text-light);
  flex-shrink: 0;
}

/* ============================================================
   FORMS — shared across all pages
   ============================================================ */
.ds-form {
  font-size: 12px;
}
.ds-form-row {
  margin-bottom: 6px;
}
.ds-form-row label {
  display: block;
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 2px;
  color: #444;
}
.ds-form-row .hint {
  font-size: 10px;
  color: var(--ds-text-light);
  margin-top: 1px;
}
.ds-input {
  width: 100%;
  border: 1px solid var(--ds-border-dk);
  padding: 4px 5px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ds-white);
  color: var(--ds-text);
}
.ds-input:focus {
  outline: none;
  border-color: var(--ds-blue-mid);
  background: #f8fbff;
}
.ds-textarea {
  width: 100%;
  border: 1px solid var(--ds-border-dk);
  padding: 4px 5px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ds-white);
  color: var(--ds-text);
  resize: vertical;
  min-height: 80px;
}
.ds-textarea:focus {
  outline: none;
  border-color: var(--ds-blue-mid);
  background: #f8fbff;
}
.ds-select {
  width: 100%;
  border: 1px solid var(--ds-border-dk);
  padding: 4px 5px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ds-white);
}
.ds-select:focus {
  outline: none;
  border-color: var(--ds-blue-mid);
  background: #f8fbff;
}

/* Checkbox/radio row */
.ds-check-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-bottom: 4px;
}
.ds-check-row input[type=checkbox],
.ds-check-row input[type=radio] {
  margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ds-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #e8e8e8 0%, #cccccc 100%);
  border: 1px solid #aaaaaa;
  padding: 3px 10px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
}
.ds-btn:hover {
  background: linear-gradient(to bottom, #dddddd 0%, #bbbbbb 100%);
  border-color: #888888;
  text-decoration: none;
  color: #333;
}
.ds-btn:focus-visible,
.contact-btn:focus-visible,
.reaction-btn:focus-visible,
.comment-delete-btn:focus-visible,
.nav-link-subtle:focus-visible,
.nav-link-admin:focus-visible,
.nav-link-signin:focus-visible,
#nav-toggle:focus-visible,
.ds-input:focus-visible,
.ds-textarea:focus-visible,
.ds-select:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid #ffb347;
  outline-offset: 2px;
}
.ds-btn:active { transform: translateY(1px); }

.ds-btn-primary {
  background: linear-gradient(to bottom, #336699 0%, #224477 100%);
  border-color: #224477;
  color: #ffffff;
}
.ds-btn-primary:hover {
  background: linear-gradient(to bottom, #4477aa 0%, #336699 100%);
  color: #fff;
}
/* Anchor tags styled as primary buttons — override global a:hover color/underline */
a.ds-btn-primary,
a.ds-btn-primary:link,
a.ds-btn-primary:visited,
a.ds-btn-primary:hover,
a.ds-btn-primary:active {
  color: #ffffff;
  text-decoration: none;
}
a.ds-btn-primary:hover {
  background: linear-gradient(to bottom, #4477aa 0%, #336699 100%);
}

.ds-btn-orange {
  background: linear-gradient(to bottom, #ff7722 0%, #dd5500 100%);
  border-color: #cc4400;
  color: #ffffff;
}
.ds-btn-orange:hover {
  background: linear-gradient(to bottom, #ff8833 0%, #ee6611 100%);
  color: #fff;
}
/* Anchor tags styled as orange buttons — override global a:hover color/underline */
a.ds-btn-orange,
a.ds-btn-orange:link,
a.ds-btn-orange:visited,
a.ds-btn-orange:hover,
a.ds-btn-orange:active {
  color: #ffffff;
  text-decoration: none;
}
a.ds-btn-orange:hover {
  background: linear-gradient(to bottom, #ff8833 0%, #ee6611 100%);
}

.ds-btn-danger {
  background: linear-gradient(to bottom, #dd2222 0%, #aa0000 100%);
  border-color: #880000;
  color: #ffffff;
}
.ds-btn-danger:hover {
  background: linear-gradient(to bottom, #ee3333 0%, #bb1111 100%);
  color: #fff;
}

.ds-btn-sm {
  padding: 2px 7px;
  font-size: 11px;
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.ds-flash {
  padding: 5px 8px;
  font-size: 12px;
  border: 1px solid;
  margin-bottom: 8px;
}
.ds-flash.success {
  background: #eeffee;
  border-color: #66aa66;
  color: var(--ds-success);
}
.ds-flash.error {
  background: #ffeeee;
  border-color: #cc6666;
  color: var(--ds-error);
}
.ds-flash.info {
  background: #eef2ff;
  border-color: #8899cc;
  color: var(--ds-navy);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ds-pager {
  display: flex;
  gap: 3px;
  padding: 6px;
  font-size: 11px;
  align-items: center;
  flex-wrap: wrap;
}
.ds-pager a,
.ds-pager span {
  padding: 2px 6px;
  border: 1px solid var(--ds-border);
  background: var(--ds-white);
}
.ds-pager a { color: var(--ds-link); }
.ds-pager a:hover {
  background: var(--ds-blue-bg);
  border-color: var(--ds-blue-mid);
  text-decoration: none;
}
.ds-pager .current {
  background: var(--ds-navy);
  color: #fff;
  border-color: var(--ds-navy);
}

/* ============================================================
   STATUS / SYSTEM INDICATORS
   ============================================================ */
.ds-empty-state {
  padding: 8px 6px;
  text-align: center;
  color: var(--ds-text-light);
  font-size: 11px;
  font-style: italic;
}

.ds-loading {
  padding: 8px;
  text-align: center;
  color: var(--ds-text-light);
  font-size: 11px;
}

/* Pending write state (optimistic UI) */
.ds-pending {
  opacity: 0.6;
}
.ds-pending-label {
  color: var(--ds-text-light);
  font-size: 10px;
  font-style: italic;
}

/* Retry block */
.ds-retry-block {
  padding: 6px 8px;
  background: #fff8ee;
  border: 1px solid #ccaa66;
  font-size: 11px;
  margin-bottom: 6px;
}
.ds-retry-block a {
  color: var(--ds-orange-dk);
  font-weight: bold;
}

/* ============================================================
   HOME PAGE MODULES
   ============================================================ */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.activity-item {
  display: flex;
  gap: 6px;
  padding: 5px 6px;
  border-bottom: 1px solid #eeeeee;
  font-size: 11px;
  align-items: flex-start;
}
.activity-item:last-child { border-bottom: none; }
.activity-item img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid var(--ds-border);
  flex-shrink: 0;
}
.activity-body { flex: 1; min-width: 0; }
.activity-time { font-size: 10px; color: var(--ds-text-light); }

/* Home new members grid */
.home-member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
}
.home-member-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  text-align: center;
}
.home-member-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid var(--ds-border);
  display: block;
}
.home-member-thumb-placeholder {
  width: 44px;
  height: 44px;
  background: #e8e8e8;
  border: 1px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #aaaaaa;
}
.home-member-item .pixel-avatar {
  border: 1px solid var(--ds-border);
}
.home-member-name {
  font-size: 10px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  margin-top: 2px;
}

.home-trust-note {
  padding: 2px 2px 4px;
  font-size: 11px;
  line-height: 1.45;
  color: #333;
}
.home-trust-note p {
  margin: 0 0 6px;
}
.home-trust-list {
  margin: 0 0 0 16px;
  padding: 0;
  color: #555;
}
.home-trust-list li {
  margin-bottom: 4px;
}

.home-ship-desk {
  padding: 2px 0 0;
}
.home-ship-desk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.home-ship-stat {
  border: 1px solid #bfd0ee;
  background: #f5f8fe;
  padding: 7px 8px;
  min-width: 0;
}
.home-ship-stat strong {
  display: block;
  font-size: 12px;
  color: var(--ds-navy);
  line-height: 1.3;
}
.home-ship-stat span {
  display: block;
  font-size: 10px;
  color: #666;
  line-height: 1.35;
}
.home-ship-stat-label {
  margin-bottom: 2px;
  font-weight: bold;
  color: var(--ds-blue-mid) !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.home-ship-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.home-ship-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: bold;
  color: var(--ds-link);
}

/* ============================================================
   ADMIN / MODERATION
   ============================================================ */
.admin-section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--ds-navy);
  padding: 5px 0;
  border-bottom: 2px solid var(--ds-navy);
  margin-bottom: 6px;
}

.report-item {
  padding: 6px;
  border: 1px solid var(--ds-border);
  margin-bottom: 6px;
  background: var(--ds-white);
  font-size: 11px;
}
.report-item .report-reason {
  color: var(--ds-text);
  margin: 3px 0;
}
.report-item .report-meta {
  font-size: 10px;
  color: var(--ds-text-light);
}
.report-actions {
  margin-top: 5px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-dashboard {
  display: grid;
  gap: 8px;
}
.admin-quick-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
}
.admin-stat-card {
  background: #f0f5ff;
  border: 1px solid #aabbdd;
  padding: 8px 10px;
  text-align: center;
}
.admin-stat-value {
  font-size: 22px;
  font-weight: bold;
  color: var(--ds-navy);
  line-height: 1.1;
}
.admin-stat-label {
  font-size: 10px;
  color: #666;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.admin-live-status {
  display: grid;
  gap: 6px;
}
.admin-live-row {
  display: grid;
  grid-template-columns: 74px 1.2fr 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid #eee;
  font-size: 11px;
}
.admin-live-row:last-child {
  border-bottom: none;
}
.admin-live-label {
  color: var(--ds-blue-mid);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.admin-live-row strong {
  color: var(--ds-navy);
}
.admin-action-item {
  padding: 4px 6px;
  border-bottom: 1px solid #eee;
  font-size: 11px;
  line-height: 1.45;
}
.admin-action-item:last-child {
  border-bottom: none;
}
.admin-playbook {
  margin: 0 0 0 18px;
  padding: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #333;
}
.admin-playbook li {
  margin-bottom: 4px;
}
.admin-bulletin-copy {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.5;
}

/* ============================================================
   ARCHIVE / POST-CRUISE
   ============================================================ */
.archive-banner {
  background: #f5f0e0;
  border: 1px solid #ccaa55;
  color: #886600;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 10px;
  text-align: center;
}
.archive-banner strong { color: #664400; }

/* ============================================================
   LANDING PAGE (unauthenticated home)
   OG MySpace split: 60% left marketing + people, 40% right login
   ============================================================ */
.landing-wrap {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 10px;
  align-items: start;
}
.landing-left {}
.landing-right {}

/* Hero block */
.landing-hero {
  background: var(--ds-blue-bg);
  border: 1px solid #aabbdd;
  padding: 12px;
  margin-bottom: 8px;
}
.landing-hero-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--ds-navy);
  margin: 0 0 6px 0;
  line-height: 1.2;
}
.landing-hero-sub {
  font-size: 12px;
  font-weight: bold;
  color: #1752B0;
  margin: 0 0 6px 0;
}
.landing-hero-copy {
  font-size: 12px;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

/* Cool New People module */
.landing-people-module { margin-bottom: 0; }
.landing-people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.landing-person-item {
  text-align: center;
}
.landing-person-item img,
.landing-person-placeholder {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 3px;
  border: 1px solid #cccccc;
  background: #e8e8e8;
  object-fit: cover;
}
.landing-person-placeholder {
  line-height: 60px;
  font-size: 22px;
  font-weight: bold;
  color: #999;
  text-align: center;
}
.landing-person-item .pixel-avatar {
  border: 1px solid #cccccc;
}
.landing-person-name {
  font-size: 12px;
  color: #336699;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Right column: logo */
.landing-logo-wrap {
  text-align: center;
  padding: 12px 0 8px;
}
.landing-logo {
  font-size: 32px;
  font-weight: bold;
  font-style: italic;
  color: var(--ds-navy);
}
.landing-logo-accent { color: var(--ds-orange); }
.landing-logo-sub {
  font-size: 11px;
  color: var(--ds-text-light);
  margin-top: 2px;
}

/* Login box */
.landing-login-module { margin-bottom: 8px; }
.landing-login-form { width: 100%; }
.landing-login-table {
  display: grid;
  gap: 6px;
  width: 100%;
}
.landing-login-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}
.landing-login-label {
  padding: 3px 0;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}
.landing-login-input {
  padding: 0;
}
.landing-login-input .ds-input {
  width: 100%;
  box-sizing: border-box;
}
.landing-login-btn { width: 100%; }

/* Sign up CTA box */
.landing-signup-box {
  background: #fffbe6;
  border: 1px solid #e6c800;
  padding: 10px;
}
.landing-signup-header {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}
.landing-signup-copy {
  font-size: 11px;
  color: #555;
  line-height: 1.4;
  margin: 0 0 8px 0;
}
.landing-signup-btn { width: 100%; text-align: center; }

.landing-trust-module {
  margin-top: 8px;
}
.landing-trust-intro {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.45;
  color: #333;
}
.landing-trust-list {
  margin: 0 0 0 16px;
  padding: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #555;
}
.landing-trust-list li {
  margin-bottom: 4px;
}

/* Mobile: stack columns */
@media (max-width: 640px) {
  .landing-wrap {
    grid-template-columns: 1fr;
  }
  .landing-right {
    order: -1; /* login box first on mobile */
  }
  .landing-people-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   REGISTRATION PAGE (two-column OG MySpace layout)
   ============================================================ */
.reg-wrap {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 10px;
  align-items: start;
}
.reg-left {}
.reg-right {}
.reg-optional {
  font-weight: normal;
  color: #999;
}

/* Why Join box */
.reg-why-body { padding: 8px 10px; }
.reg-why-intro {
  font-size: 12px;
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.reg-why-list {
  margin: 0 0 10px 14px;
  padding: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #333;
}
.reg-why-list li { margin-bottom: 4px; }
.reg-why-footer {
  font-size: 11px;
  color: #555;
  background: var(--ds-blue-bg);
  border: 1px solid #aabbdd;
  padding: 6px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .reg-wrap {
    grid-template-columns: 1fr;
  }
  .reg-right { order: -1; }
}

/* ============================================================
   ACCESS / LOGIN PAGE
   ============================================================ */
.access-page {
  max-width: 420px;
  margin: 20px auto;
  padding: 0 8px;
}
.access-logo {
  text-align: center;
  margin-bottom: 12px;
}
.access-logo .big-logo {
  font-size: 36px;
  font-weight: bold;
  font-style: italic;
  color: var(--ds-navy);
}
.access-logo .big-logo .logo-space { color: var(--ds-orange); }
.access-tagline {
  font-size: 12px;
  color: var(--ds-text-light);
  text-align: center;
  margin-bottom: 12px;
}
.access-explainer {
  font-size: 11px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
  padding: 6px;
  background: var(--ds-blue-bg);
  border: 1px solid #aabbdd;
}

/* ============================================================
   PROFILE THEMES (class on .profile-wrap parent)
   ============================================================ */
.theme-ocean .ds-module-header          { background: linear-gradient(to bottom, #1188aa 0%, #006688 100%); }
.theme-ocean .ds-nav                    { background: linear-gradient(to bottom, #006688 0%, #004466 100%); }
.theme-sunset .ds-module-header         { background: linear-gradient(to bottom, #dd6622 0%, #bb4400 100%); }
.theme-night .ds-module-header          { background: linear-gradient(to bottom, #4422aa 0%, #221166 100%); }
.theme-night body                       { background: #1a1a2e; color: #dddddd; }
.theme-retro-pink .ds-module-header     { background: linear-gradient(to bottom, #cc0066 0%, #880044 100%); }
.theme-retro-pink .contact-btn.primary  { background: linear-gradient(to bottom, #cc0066 0%, #880044 100%); border-color: #660033; }

/* ============================================================
   RESPONSIVE — Mobile first adaptations
   Preserve MySpace density; adapt layout for narrow screens
   ============================================================ */
@media (max-width: 640px) {
  #ds-nav-inner {
    padding: 0 4px;
    flex-wrap: nowrap;
    position: relative;
  }
  #nav-toggle {
    display: block;
  }
  #ds-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1144AA;
    border-top: 1px solid #001166;
    border-bottom: 2px solid #001166;
    z-index: 99;
    flex-direction: column;
    gap: 0;
  }
  #ds-nav-links.open {
    display: flex;
  }
  #ds-nav-links a {
    padding: 9px 12px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  #ds-nav-links .nav-mobile-only {
    display: flex;
    color: #d9e7ff;
  }
  .nav-mobile-button {
    width: 100%;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
  }
  .nav-mobile-divider {
    display: block;
    height: 1px;
    margin: 4px 0;
    background: rgba(255,255,255,0.12);
  }
  #ds-nav-links .nav-mobile-only.nav-mobile-highlight {
    color: #fff4d2;
    font-weight: bold;
  }
  #ds-nav-links .nav-mobile-only.nav-mobile-admin {
    color: #ffd777;
    font-weight: bold;
  }
  #ds-nav-links .nav-mobile-only.nav-mobile-signin {
    color: #ffffff;
    font-weight: bold;
  }
  #ds-nav-right {
    display: none;
  }
  #ds-logo {
    font-size: 14px;
  }

  #ds-page {
    padding: 6px 4px;
  }

  /* Stack profile columns on mobile */
  .profile-wrap {
    grid-template-columns: 1fr;
  }

  /* Profile photo block goes inline */
  .profile-photo-block {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 6px;
  }
  .profile-photo-block img.avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin: 0;
  }
  .profile-photo-block .no-photo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin: 0;
  }

  /* Compress friend grid */
  .friend-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .friend-grid-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  /* Stack home grid */
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-ship-desk-grid {
    grid-template-columns: 1fr;
  }
  .home-ship-links {
    flex-direction: column;
    gap: 4px;
  }

  /* Photo grid: 3 cols on mobile */
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Full-width buttons on mobile */
  .ds-btn,
  .ds-btn-sm,
  .contact-actions .contact-btn,
  .reaction-btn,
  .nav-link-subtle,
  .nav-link-admin,
  .nav-link-signin,
  #nav-toggle {
    min-height: 44px;
  }
  .ds-btn,
  .ds-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .contact-actions .contact-btn {
    padding: 5px 8px;
  }
  .reaction-btn {
    padding: 6px 10px;
  }
  .comment-delete-btn {
    min-width: 32px;
    min-height: 32px;
  }
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-live-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 400px) {
  .friend-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #ds-nav-links a {
    font-size: 9px;
    padding: 5px 4px;
  }
}

/* ============================================================
   ICON SYSTEM — .ds-ic inline SVG alignment
   ============================================================ */
.ds-ic {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}

/* ============================================================
   NAV — supplemental link classes (inside #ds-nav-right)
   ============================================================ */
.nav-link-subtle {
  color: #aabbee;
  font-size: 11px;
  text-decoration: none;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.nav-link-button {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-link-subtle:hover {
  color: #ffffff;
  text-decoration: none;
}
.nav-link-admin {
  color: #ffcc44;
  font-size: 11px;
  text-decoration: none;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: bold;
}
.nav-link-admin:hover {
  color: #ffee88;
  text-decoration: none;
}
.nav-link-signin {
  background: var(--ds-orange);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link-signin:hover {
  background: var(--ds-orange-dk);
  color: #fff;
  text-decoration: none;
}

/* Hamburger button — hidden by default, shown below 640px */
#nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ccddff;
  padding: 4px 6px;
  cursor: pointer;
  margin-left: auto;
  border-radius: 2px;
  line-height: 1;
}
#nav-toggle:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* ============================================================
   CONTACT BOX — additional variant classes
   ============================================================ */
.contact-btn.muted {
  color: var(--ds-text-light);
  border-color: #cccccc;
}
.contact-btn.muted:hover {
  color: #333;
}
.contact-btn.success {
  background: linear-gradient(to bottom, #448833 0%, #336622 100%);
  color: #ffffff;
  border-color: #336622;
}
.contact-btn.success:hover {
  background: linear-gradient(to bottom, #559944 0%, #448833 100%);
  color: #ffffff;
}
.contact-btn.subtle {
  background: none;
  border-color: #bbbbbb;
  color: #555;
  font-style: italic;
}
.contact-btn.subtle:hover {
  background: #f5f5f5;
  color: #333;
}

/* Friend status badges (appear inside contact actions) */
.friends-badge,
.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid;
  border-radius: 2px;
}
.friends-badge {
  color: #336622;
  border-color: #aaccaa;
  background: #eef6ee;
}
.pending-badge {
  color: #885500;
  border-color: #ddbb88;
  background: #fff8ee;
}

/* ============================================================
   COMMENT — delete button and inline forms
   ============================================================ */
.comment-delete-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  color: var(--ds-text-light);
  line-height: 1;
  vertical-align: middle;
}
.comment-delete-btn:hover {
  color: var(--ds-error);
}
.inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

/* ============================================================
   EVENTS — category icon block
   ============================================================ */
.event-cat-icon-block {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ds-navy);
}

/* ============================================================
   RESPONSIVE — Tablet (768px) breakpoint
   Profile and home grid adapt at 768px before collapsing at 640px
   ============================================================ */
@media (max-width: 768px) {
  /* Narrow profile left col */
  .profile-wrap {
    grid-template-columns: 160px 1fr;
    gap: 8px;
  }

  /* Home grid: narrow sidebar */
  .home-grid {
    grid-template-columns: 200px 1fr;
    gap: 8px;
  }

  /* Events schedule: hide location col to save space */
  .ss-th-loc, .ss-loc {
    display: none;
  }

  /* People grid: 4 cols */
  .people-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Photo grid: 4 cols */
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-right    { text-align: right; }
.text-center   { text-align: center; }
.text-small    { font-size: 10px; }
.text-muted    { color: var(--ds-text-light); }
.text-bold     { font-weight: bold; }
.text-error    { color: var(--ds-error); }
.text-success  { color: var(--ds-success); }
.mb-0          { margin-bottom: 0; }
.mb-4          { margin-bottom: 4px; }
.mb-8          { margin-bottom: 8px; }
.mt-4          { margin-top: 4px; }
.mt-8          { margin-top: 8px; }
.p-4           { padding: 4px; }
.p-6           { padding: 6px; }
.flex          { display: flex; }
.flex-gap-4    { gap: 4px; }
.flex-gap-6    { gap: 6px; }
.align-center  { align-items: center; }
.flex-wrap     { flex-wrap: wrap; }
.w-full        { width: 100%; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* For htmx pending states */
.htmx-request .ds-btn   { opacity: 0.6; pointer-events: none; }
.htmx-indicator          { display: none; }
.htmx-request .htmx-indicator { display: inline; }

/* ============================================================
   PROFILE STATUS / MOOD LINE
   ============================================================ */
.profile-status-mood {
  font-size: 11px;
  color: #555;
  font-style: italic;
  margin: 4px 2px;
  line-height: 1.3;
}

/* ============================================================
   WHO'S ONLINE MODULE
   ============================================================ */
.online-faces {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 4px;
}
.online-faces a { display: block; }
.online-faces img {
  border: 1px solid #ccc;
  display: block;
}
.online-face-placeholder {
  width: 28px;
  height: 28px;
  background: #e8e8e8;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #666;
}
.online-faces .pixel-avatar {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
}
.online-count {
  font-size: 10px;
  color: var(--ds-text-light);
}

/* ============================================================
   ADMIN BULLETIN BOARD
   ============================================================ */
.ds-bulletin {
  background: #fffde7;
  border: 2px solid #f0c040;
  margin-bottom: 8px;
  font-size: 12px;
}
.ds-bulletin-header {
  background: #f0c040;
  color: #333;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ds-bulletin-body {
  padding: 6px 8px;
  line-height: 1.4;
}
.ds-bulletin-meta {
  padding: 2px 8px 5px;
  font-size: 10px;
  color: #888;
}

/* ============================================================
   VIBE FILTER PILLS
   ============================================================ */
.vibe-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.vibe-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--ds-border);
  font-size: 10px;
  background: #f5f5f5;
  color: var(--ds-navy);
  text-decoration: none;
  white-space: nowrap;
}
.vibe-pill:hover {
  background: var(--ds-blue-bg);
  border-color: var(--ds-blue-mid);
  text-decoration: none;
}
.vibe-pill.active-pill {
  background: var(--ds-navy);
  color: #fff;
  border-color: var(--ds-navy);
  font-weight: bold;
}

/* ============================================================
   EVENT CATEGORY PILL NAV
   ============================================================ */
.event-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 6px 0 10px;
}
.event-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border: 1px solid var(--ds-border);
  font-size: 10px;
  background: #f5f5f5;
  color: var(--ds-navy);
  text-decoration: none;
  white-space: nowrap;
}
.event-cat-pill:hover {
  background: var(--ds-blue-bg);
  border-color: var(--ds-blue-mid);
  text-decoration: none;
}
.event-cat-pill.active {
  background: var(--ds-navy);
  color: #fff;
  border-color: var(--ds-navy);
  font-weight: bold;
}

/* ============================================================
   REACTIONS
   ============================================================ */
.reaction-bar {
  display: flex;
  gap: 3px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.reaction-bar.readonly {
  gap: 6px;
}
.reaction-btn {
  background: none;
  border: 1px solid #e0e0e0;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 11px;
  color: var(--ds-text-light);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 2px;
  min-height: 22px;
}
.reaction-btn:hover {
  background: var(--ds-blue-bg);
  border-color: var(--ds-blue-mid);
  color: var(--ds-navy);
}
.reaction-btn.active {
  background: var(--ds-blue-bg);
  border-color: var(--ds-navy);
  color: var(--ds-navy);
  font-weight: bold;
}
.reaction-count {
  font-size: 10px;
  color: var(--ds-text-light);
}
.reaction-btn.active .reaction-count { color: var(--ds-navy); }

/* ============================================================
   VOYAGE PAGE
   ============================================================ */
.voyage-header {
  margin-bottom: 8px;
  padding: 8px 10px;
  background: #e8f0ff;
  border: 1px solid #aabbdd;
}
.voyage-ship {
  font-size: 15px;
  font-weight: bold;
  color: var(--ds-navy);
  display: flex;
  align-items: center;
  gap: 5px;
}
.voyage-name {
  font-size: 11px;
  color: var(--ds-text-light);
  margin-top: 2px;
}
.voyage-schedule {
  padding: 0;
}
.voyage-day {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}
.voyage-day:last-child { border-bottom: none; }
.voyage-day.voyage-today {
  background: #fffde7;
  border-left: 3px solid #f0c040;
}
.voyage-day-date {
  font-size: 10px;
  color: var(--ds-text-light);
  margin-bottom: 2px;
}
.voyage-day.voyage-today .voyage-day-date { color: #885500; font-weight: bold; }
.voyage-day-port {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.voyage-day-type {
  font-size: 10px;
  color: var(--ds-text-light);
  font-weight: normal;
}
.voyage-times {
  font-size: 10px;
  color: #555;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.voyage-day-notes {
  font-size: 11px;
  color: #555;
  margin-top: 3px;
  font-style: italic;
}
.htmx-request .htmx-indicator { display: inline; }

/* ============================================================
   FLASH MESSAGE ICON
   ============================================================ */
.ds-flash {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.flash-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   BUTTON ICON SPACING
   Icons inside buttons get a small right gap from the label.
   ============================================================ */
.ds-btn .ds-ic {
  margin-right: 3px;
}

/* ============================================================
   WEATHER WIDGET
   ============================================================ */
.weather-widget {
  padding: 4px 2px;
}
.weather-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.weather-icon-big {
  color: var(--ds-blue-mid);
  flex-shrink: 0;
}
.weather-temps {
  line-height: 1.2;
}
.weather-temp-f {
  font-size: 22px;
  font-weight: bold;
  color: var(--ds-navy);
}
.weather-temp-c {
  font-size: 12px;
  color: var(--ds-text-light);
  margin-left: 5px;
}
.weather-conditions {
  font-size: 12px;
  font-weight: bold;
  color: var(--ds-text);
  margin-bottom: 4px;
}
.weather-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: var(--ds-text-light);
  align-items: center;
}
.weather-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.weather-demo-note {
  font-size: 9px;
  color: #aaa;
  font-style: italic;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #eee;
}

/* ============================================================
   ANIMATIONS & TRANSITIONS
   Lightweight, fast — responsive without feeling "modern."
   ============================================================ */

/* Page entrance — barely-there fade, keeps things feeling alive */
@keyframes dsPageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#ds-page {
  animation: dsPageIn 0.18s ease;
}

/* Flash / alert entrance — slides down from just above */
@keyframes dsFlashIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ds-flash {
  animation: dsFlashIn 0.2s ease-out;
}

/* Online indicator dot — gentle pulse, never distracting */
@keyframes dsPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.online-indicator::before {
  display: inline-block;
  animation: dsPulse 2.4s ease-in-out infinite;
}

/* Smooth focus transitions on all form controls */
.ds-input,
.ds-textarea,
.ds-select {
  transition: border-color 0.12s, background-color 0.12s;
}

/* Module hover: very subtle shadow lift */
.ds-module {
  transition: box-shadow 0.15s ease;
}
.ds-module:hover {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.09);
}

/* Button: smooth gradient on hover, press snap on active */
.ds-btn {
  transition: background 0.1s, border-color 0.1s, opacity 0.1s;
}

/* Disabled/loading state */
.ds-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ============================================================
   LANDING PAGE — HOW IT WORKS steps
   ============================================================ */
.landing-howto {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
  border: 1px solid #aabbdd;
  background: #f4f7fc;
}
.landing-howto-step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 8px;
  border-right: 1px solid #aabbdd;
  font-size: 11px;
  line-height: 1.4;
}
.landing-howto-step:last-child {
  border-right: none;
}
.landing-howto-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--ds-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.landing-howto-step > div strong {
  display: block;
  font-size: 11px;
  color: var(--ds-navy);
  margin-bottom: 2px;
}
.landing-howto-step > div span {
  color: #555;
  font-size: 10px;
  line-height: 1.4;
}

/* Hero eyebrow line */
.landing-hero-eyebrow {
  font-size: 11px;
  color: var(--ds-blue-mid);
  margin-bottom: 5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Login context line inside the right-col login module */
.landing-login-context {
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Voyage info box at the bottom of the right column */
.landing-voyage-box {
  background: var(--ds-blue-bg);
  border: 1px solid #aabbdd;
  padding: 8px 10px;
  margin-top: 6px;
  text-align: center;
}
.landing-voyage-label {
  font-size: 9px;
  color: var(--ds-blue-mid);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}
.landing-voyage-ship {
  font-size: 13px;
  font-weight: bold;
  color: var(--ds-navy);
}
.landing-voyage-name {
  font-size: 11px;
  color: #555;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .landing-howto {
    flex-direction: column;
  }
  .landing-howto-step {
    border-right: none;
    border-bottom: 1px solid #aabbdd;
  }
  .landing-howto-step:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   REGISTER PAGE — additional styles
   ============================================================ */

/* Intro copy banner above the form */
.reg-intro-copy {
  font-size: 11px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
  padding: 6px 8px;
  background: #fafafa;
  border-left: 3px solid var(--ds-orange);
}

/* Inline field hint (after label) */
.reg-hint {
  font-size: 10px;
  font-weight: normal;
  color: #999;
}

/* "On a cruise to relax?" note in right column */
.reg-note-box {
  background: #fffbe6;
  border: 1px solid #ddc855;
  padding: 9px 10px;
  font-size: 11px;
  color: #555;
  margin-top: 6px;
  line-height: 1.5;
}
.reg-note-box strong {
  display: block;
  color: #333;
  margin-bottom: 3px;
  font-size: 12px;
}
.reg-note-box p {
  margin: 0;
}

/* ============================================================
   INLINE VALIDATION HINTS
   Username pattern check + password match indicator
   ============================================================ */
.username-hint {
  font-size: 10px;
  margin-top: 2px;
}
.username-hint.ok  { color: var(--ds-success); }
.username-hint.bad { color: var(--ds-error); }

.pw-match-hint          { font-size: 10px; margin-top: 2px; }
.pw-match-hint.match    { color: var(--ds-success); }
.pw-match-hint.no-match { color: var(--ds-error); }

/* ============================================================
   LANDING PAGE — EVENTS PREVIEW + HOW IT WORKS
   ============================================================ */
.landing-events-module { margin-bottom: 8px; }
.landing-events-more {
  float: right;
  font-weight: normal;
  font-size: 10px;
}
.landing-events-more a { color: #ffd; }
.landing-events-list { padding: 0; }
.landing-event-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 0;
  border-bottom: 1px dotted #ddd;
  font-size: 11px;
  flex-wrap: wrap;
}
.landing-event-item:last-child { border-bottom: none; }
.landing-event-time {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
  min-width: 60px;
}
.landing-event-title {
  font-weight: bold;
  color: #1752B0;
  flex: 1;
}
.landing-event-title:hover { color: #cc5200; }
.landing-event-loc {
  font-size: 10px;
  color: #888;
  white-space: nowrap;
}
.landing-events-cta {
  margin-top: 6px;
  font-size: 11px;
}


/* ============================================================
   LOGIN PAGE — INSTRUCTIONS + HELP TEXT
   ============================================================ */
.login-instructions {
  font-size: 11px;
  color: #333;
  line-height: 1.5;
  padding: 6px 8px;
  background: var(--ds-blue-bg);
  border: 1px solid #aabbdd;
  margin-bottom: 10px;
}
.login-help-text {
  font-size: 11px;
  color: #666;
  line-height: 1.5;
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dotted #ccc;
}

/* ============================================================
   REGISTER PAGE — PRIVACY BADGE + TIME NOTE + REQUIRED STAR
   ============================================================ */
.reg-privacy-badge {
  font-size: 11px;
  color: #333;
  line-height: 1.5;
  padding: 6px 8px;
  background: var(--ds-blue-bg);
  border: 1px solid #aabbdd;
  margin-bottom: 8px;
}
.reg-time-note {
  font-size: 11px;
  color: #555;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px dotted #ddd;
}
.reg-required {
  color: #cc0000;
  font-weight: bold;
}

/* ============================================================
   ONBOARDING PAGE — INTRO BOX
   ============================================================ */
.onboarding-intro {
  font-size: 12px;
  color: #333;
  line-height: 1.5;
  padding: 6px 8px;
  background: #f0f8ff;
  border: 1px solid #aabbdd;
  margin-bottom: 10px;
}

/* ============================================================
   LANDING PAGE — VENUE HOURS + ITINERARY
   ============================================================ */
.landing-venue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.landing-venue-table tr {
  border-bottom: 1px dotted #ddd;
}
.landing-venue-table tr:last-child { border-bottom: none; }
.landing-venue-name {
  padding: 4px 6px 4px 0;
  color: #333;
  font-weight: bold;
  width: 55%;
}
.landing-venue-hours {
  padding: 4px 0;
  color: #555;
}

.landing-demo-note {
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px dotted #eee;
}

.landing-voyage-tagline {
  font-size: 11px;
  font-weight: bold;
  color: #1752B0;
  margin-bottom: 6px;
}
.landing-itin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.landing-itin-table tr {
  border-bottom: 1px dotted #ddd;
}
.landing-itin-table tr:last-child { border-bottom: none; }
.landing-itin-sea td { color: #999; font-style: italic; }
.landing-itin-date {
  padding: 3px 6px 3px 0;
  white-space: nowrap;
  font-weight: bold;
  width: 30px;
}
.landing-itin-port {
  padding: 3px 6px;
  flex: 1;
}
.landing-itin-note {
  padding: 3px 0;
  font-size: 12px;
  color: #777;
  white-space: nowrap;
  text-align: right;
}
.landing-tz {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dotted #eee;
}

/* ============================================================
   DESKTOP EXPANSION — bigger, cleaner, more breathing room
   Mobile/tablet layouts (max-width rules above) are untouched.
   ============================================================ */
@media (min-width: 1025px) {
  html, body {
    font-size: 15px;
  }

  #ds-nav-inner {
    max-width: 1280px;
    padding: 0 16px;
  }

  #ds-logo {
    font-size: 22px;
    padding: 7px 14px 7px 0;
  }

  #ds-nav-links a {
    font-size: 13px;
    padding: 9px 11px;
  }

  #ds-nav-right {
    font-size: 12px;
    gap: 8px;
  }

  .nav-link-subtle,
  .nav-link-admin {
    font-size: 12px;
  }

  #ds-page {
    max-width: 1280px;
    padding: 12px 16px;
  }

  .ds-module {
    margin-bottom: 14px;
  }

  .ds-module-header {
    font-size: 13px;
    padding: 6px 12px;
  }

  .ds-module-body {
    padding: 14px;
  }

  /* Profile layout: wider left column, bigger photo */
  .profile-wrap {
    grid-template-columns: 250px 1fr;
    gap: 16px;
  }

  .profile-photo-block {
    padding: 8px;
  }

  .profile-photo-block img.avatar {
    width: 210px;
    height: 210px;
  }

  .profile-photo-block .no-photo {
    width: 210px;
    height: 210px;
  }

  .profile-display-name {
    font-size: 17px;
  }

  .profile-status-line {
    font-size: 13px;
  }

  /* Contact buttons */
  .contact-actions {
    padding: 8px 10px;
    gap: 5px;
  }

  .contact-btn {
    font-size: 13px;
    padding: 6px 10px;
  }

  /* Details table */
  .details-table {
    font-size: 13px;
  }

  .details-table td {
    padding: 3px 5px;
  }

  /* About Me */
  .blurb-body {
    font-size: 14px;
    padding: 12px;
    line-height: 1.6;
  }

  /* Friends grid */
  .friend-grid {
    padding: 12px;
    gap: 10px;
  }

  .friend-grid-item img {
    width: 80px;
    height: 80px;
  }

  .friend-grid-item .no-photo-thumb {
    width: 80px;
    height: 80px;
  }

  .friend-grid-item .friend-name {
    font-size: 11px;
    max-width: 84px;
  }

  /* Wall posts */
  .comment-entry {
    padding: 12px;
    gap: 12px;
  }

  .comment-avatar img {
    width: 52px;
    height: 52px;
  }

  .comment-avatar .no-photo-xs {
    width: 52px;
    height: 52px;
  }

  .comment-author {
    font-size: 13px;
  }

  .comment-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .comment-time {
    font-size: 11px;
  }

  /* Buttons */
  .ds-btn {
    padding: 6px 16px;
    font-size: 13px;
  }

  .ds-btn-sm {
    padding: 3px 10px;
    font-size: 12px;
  }

  /* Form inputs */
  .ds-input,
  .ds-textarea,
  .ds-select {
    font-size: 13px;
    padding: 6px 8px;
  }

  .ds-form-row label {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .ds-form-row .hint {
    font-size: 11px;
  }

  /* Events */
  .event-card {
    padding: 12px;
    gap: 14px;
  }

  .event-title {
    font-size: 14px;
  }

  .event-meta {
    font-size: 12px;
  }

  .event-thumb {
    width: 68px;
    height: 68px;
  }

  /* Home grid */
  .home-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  /* Landing page */
  .landing-wrap {
    gap: 20px;
  }

  .landing-hero {
    padding: 24px;
    margin-bottom: 14px;
  }

  .landing-hero-eyebrow {
    font-size: 13px;
  }

  .landing-hero-title {
    font-size: 30px;
    margin-bottom: 8px;
  }

  .landing-hero-sub {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .landing-hero-copy {
    font-size: 14px;
    line-height: 1.6;
  }

  .landing-howto-step {
    font-size: 13px;
    padding: 14px 12px;
  }

  .landing-howto-step > div strong {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .landing-howto-step > div span {
    font-size: 12px;
  }

  .landing-howto-num {
    width: 32px;
    height: 32px;
  }

  .landing-logo {
    font-size: 52px;
  }

  .landing-logo-sub {
    font-size: 14px;
  }

  .landing-signup-box {
    padding: 18px;
  }

  .landing-signup-header {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .landing-signup-copy {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .landing-events-module .ds-module-header {
    font-size: 13px;
  }

  .landing-event-item {
    padding: 6px 0;
    font-size: 13px;
    gap: 8px;
  }

  .landing-event-time {
    font-size: 12px;
    min-width: 72px;
  }

  .landing-venue-table {
    font-size: 13px;
  }

  .landing-itin-table {
    font-size: 13px;
  }

  .landing-tz {
    font-size: 12px;
  }

  /* Login page */
  .access-page {
    max-width: 520px;
    margin: 32px auto;
  }

  .access-logo .big-logo {
    font-size: 52px;
  }

  .access-tagline {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .login-instructions {
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .login-help-text {
    font-size: 13px;
    margin-top: 14px;
  }

  .landing-login-label {
    font-size: 14px;
    width: 90px;
  }

  /* Register page */
  .reg-wrap {
    gap: 20px;
  }

  .reg-why-body {
    padding: 14px 16px;
  }

  .reg-why-intro {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .reg-why-list {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 12px;
  }

  .reg-why-footer {
    font-size: 13px;
    padding: 10px 12px;
  }

  .reg-privacy-badge {
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .reg-time-note {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .reg-note-box {
    padding: 12px 14px;
    font-size: 13px;
  }

  .reg-note-box strong {
    font-size: 14px;
  }

  /* Notifications */
  .notif-item {
    padding: 10px 14px;
    font-size: 13px;
    gap: 8px;
  }

  /* People browse */
  .person-row {
    padding: 10px 12px;
    gap: 12px;
  }

  .person-name {
    font-size: 14px;
  }

  .person-meta {
    font-size: 12px;
  }

  .person-thumb {
    width: 52px;
    height: 52px;
  }

  .person-thumb-placeholder {
    width: 52px;
    height: 52px;
  }

  /* Empty states */
  .ds-empty-state {
    padding: 16px 12px;
    font-size: 13px;
  }

  /* Onboarding */
  .onboarding-intro {
    font-size: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
  }

  /* Vibe tags */
  .vibe-tag {
    font-size: 12px;
    padding: 2px 7px;
  }

  /* Flash messages */
  .ds-flash {
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Activity items */
  .activity-item {
    padding: 8px 10px;
    font-size: 13px;
  }

  .activity-time {
    font-size: 11px;
  }

  /* Online module */
  .online-faces img {
    width: 36px;
    height: 36px;
  }

  .online-face-placeholder {
    width: 36px;
    height: 36px;
  }

  .online-count {
    font-size: 12px;
  }
}
