/* ==========================================================================
   SySpace — classic profile stylesheet
   --------------------------------------------------------------------------
   Reconstructs the observable look of a 2007 "Profile 1.0" page (see
   references/README.md for the measured sources). Every customizable color,
   font and size is a CSS custom property (--sy-*) so the theme editor and
   user custom CSS can restyle the page without touching this file.

   Class names marked "classic" (nametext, orangetext15, whitetext12, ...)
   reuse the period's public CSS class *names* so old-school layout snippets
   that target them keep working. The rules themselves are original.
   ========================================================================== */

:root {
  /* page */
  --sy-page-bg: #e5e5e5;
  --sy-page-bg-image: none;
  --sy-page-bg-repeat: repeat;
  --sy-page-bg-position: top center;
  --sy-page-bg-attachment: scroll;
  --sy-content-bg: #ffffff;
  --sy-text: #000000;
  --sy-font: Verdana, Arial, Helvetica, sans-serif;
  --sy-font-size: 8pt;
  --sy-link: #003399;
  --sy-link-hover: #cc0000;
  --sy-red: #cc0000;

  /* site chrome */
  --sy-header-bg: #003399;
  --sy-nav-bg: #6698cb;
  --sy-nav-link: #ffffff;
  --sy-nav-hover: #040c5c;

  /* blue boxes (left column) */
  --sy-box-border: #6699cc;
  --sy-box-head-bg: #6699cc;
  --sy-box-head-text: #ffffff;
  --sy-label-bg: #b1d0f0;
  --sy-label-text: #336699;
  --sy-value-bg: #d5e8fb;
  --sy-value-text: #000000;

  /* orange boxes (right column) */
  --sy-blurb-head-bg: #ffcc99;
  --sy-blurb-head-text: #ff6600;
  --sy-comment-name-bg: #ff9933;
  --sy-comment-body-bg: #f9d6b4;
  --sy-comment-frame: #ffcccc;

  /* name + misc */
  --sy-name-color: #000000;
  --sy-network-border: #000000;
}

/* ---------- base ---------------------------------------------------------- */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--sy-page-bg);
  background-image: var(--sy-page-bg-image);
  background-repeat: var(--sy-page-bg-repeat);
  background-position: var(--sy-page-bg-position);
  background-attachment: var(--sy-page-bg-attachment);
  color: var(--sy-text);
  font-family: var(--sy-font);
  font-size: var(--sy-font-size);
  line-height: normal;
}

body, td, th, li, p, div, textarea, input, select, button {
  font-family: var(--sy-font);
}
td, th, li, p, div { font-size: inherit; color: inherit; }
table { border-collapse: separate; }

/* Links: period default was bold blue, no underline, red underline on hover. */
a { color: var(--sy-link); font-weight: bold; text-decoration: none; }
a:visited { color: var(--sy-link); }
a:hover, a:focus { color: var(--sy-link-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px dotted var(--sy-link-hover);
  outline-offset: 1px;
}

img { border: 0; }
p { margin: 0 0 1em; }

.sy-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;
}

/* classic text classes (names only; values match the measured defaults).
   Zero specificity via :where() so a member's CSS always beats them. */
:where(.text)          { font-size: 8pt; }
:where(.nametext)      { font-size: 12pt; font-weight: bold; color: var(--sy-name-color); }
:where(.orangetext15)  { font-size: 9pt; font-weight: bold; color: var(--sy-blurb-head-text); }
:where(.whitetext12)   { font-size: 9pt; font-weight: bold; color: var(--sy-box-head-text); }
:where(.lightbluetext8){ font-size: 8pt; font-weight: bold; color: var(--sy-label-text); }
:where(.blacktext12)   { font-size: 12pt; font-weight: bold; color: var(--sy-text); }
:where(.blacktext10)   { font-size: 10pt; font-weight: bold; color: var(--sy-text); }
:where(.btext)         { font-size: 8pt; font-weight: bold; }
:where(.redtext)       { font-size: 10pt; color: var(--sy-red); font-weight: normal; }
:where(.redbtext)      { font-size: 10pt; color: var(--sy-red); font-weight: normal; }
:where(a.redlink, a.redlink:visited, a.redlink:hover) { color: var(--sy-red); text-decoration: underline; }

/* <blink> died in browsers; bring it back for nostalgia. */
blink { animation: sy-blink 1s steps(2, start) infinite; }
@keyframes sy-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  blink { animation: none; }
}

/* ---------- page frame (800px, centered) --------------------------------- */

/* --sy-page-width is set by a profile's layout settings (Pimp My Profile). */
.sy-page { width: var(--sy-page-width, 800px); max-width: 100%; margin: 0 auto; }

/* ---------- header band --------------------------------------------------- */

.sy-band { background: var(--sy-header-bg); color: #fff; position: relative; }
.sy-band-top {
  height: 96px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 0 14px;
}
.sy-logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: normal; }
.sy-logo:hover, .sy-logo:visited, .sy-logo:focus { color: #fff; text-decoration: none; }
.sy-logo-mark { display: block; flex: none; border-radius: 10px; }
.sy-logo-text { display: block; line-height: 1; }
.sy-logo-word { font-family: "Arial Black", Arial, Helvetica, sans-serif; font-weight: 900; font-size: 30px; letter-spacing: -1px; }
.sy-logo-word .tld { font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; letter-spacing: 0; }
.sy-logo-tag { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-style: italic; margin-top: 3px; color: #cfe0ff; }

.sy-utility { position: absolute; top: 4px; right: 8px; font-size: 8pt; color: #fff; }
.sy-utility a, .sy-utility a:visited, .sy-utility button.linklike { color: #fff; font-weight: normal; }
.sy-utility a:hover, .sy-utility button.linklike:hover { color: #ffcc99; }

/* 468x60 house banner where the period page carried a leaderboard ad */
.sy-banner {
  width: 468px; height: 60px; margin-top: 10px; border: 1px solid #000; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #ffe680 0 14px, #ffd24d 14px 28px);
  color: #222; font-family: Arial, Helvetica, sans-serif; text-decoration: none; position: relative;
}
.sy-banner:hover, .sy-banner:visited, .sy-banner:focus { color: #222; text-decoration: none; }
.sy-banner .sy-banner-big { display: block; font-size: 17px; font-weight: 900; font-family: "Arial Black", Arial, sans-serif; color: #003399; text-shadow: 1px 1px 0 #fff; }
.sy-banner .sy-banner-small { display: block; font-size: 11px; font-weight: bold; margin-top: 2px; }
.sy-banner .sy-banner-tag { position: absolute; right: 3px; bottom: 1px; font-size: 8px; font-weight: normal; color: #6b5300; }

.sy-search { padding: 6px 0 10px; text-align: center; font-size: 8pt; }
.sy-search form { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.sy-search input[type="search"] { height: 22px; width: 400px; font-size: 12px; padding: 1px 4px; border: 1px solid #7f9db9; }
.sy-search select, .sy-search button { font-size: 12px; height: 22px; }
.sy-search .sy-search-note { color: #cfe0ff; font-size: 8pt; margin-left: 4px; }

/* ---------- nav bar ------------------------------------------------------- */

.sy-nav {
  background: var(--sy-nav-bg); min-height: 26px; padding: 5px 4px;
  text-align: center; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; color: #000;
  line-height: 16px;
}
.sy-nav a, .sy-nav a:visited {
  font-family: var(--sy-font); font-size: 8pt; font-weight: normal;
  color: var(--sy-nav-link); text-decoration: none;
}
.sy-nav a:hover, .sy-nav a:focus { color: var(--sy-nav-hover); text-decoration: underline; }
.sy-nav a[aria-current="page"] { font-weight: bold; }
.sy-nav .sep { color: #000; padding: 0 1px; }

/* ---------- main content area -------------------------------------------- */

.sy-main { background: var(--sy-content-bg); padding: 0 0 20px; }
.sy-main.sy-pad { padding: 16px 22px 24px; }

/* footer */
.sy-footer { text-align: center; padding: 14px 8px 24px; font-size: 8pt; }
.sy-footer a, .sy-footer a:visited {
  font-family: Arial, Helvetica, sans-serif; font-weight: bold; color: var(--sy-link); text-decoration: underline;
}
.sy-footer .sy-copy { margin-top: 18px; font-family: Arial, Helvetica, sans-serif; font-size: 10px; }

/* Headings on the resume page keep the period's small inline look. */
.orangebox-head h2 { margin: 0; font-family: inherit; line-height: 1.25; }

/* ---------- music player (295x51 like the 2007 mini player) --------------- */

.sy-player {
  position: relative; width: 295px; height: 51px; border-radius: 6px;
  background: linear-gradient(#6b6b6b 0%, #4a4a4a 45%, #2e2e2e 100%);
  border: 1px solid #1c1c1c; box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  font-family: Verdana, Arial, sans-serif; color: #fff; user-select: none;
}
.sy-player button { font-family: inherit; }
.sy-player .pl-play {
  position: absolute; left: 6px; top: 8px; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid #e9e9e9; background: radial-gradient(circle at 50% 35%, #5b5b5b, #1d1d1d 70%);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  box-shadow: 0 0 0 1px #111;
}
.sy-player .pl-play:hover { border-color: #fff; }
.sy-player .pl-screen {
  position: absolute; left: 46px; top: 4px; width: 243px; height: 22px;
  background: linear-gradient(#141414, #262626); border: 1px solid #0a0a0a; border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.15);
  overflow: hidden;
}
.sy-player .pl-title {
  position: absolute; left: 5px; top: 4px; right: 44px; height: 14px; overflow: hidden;
  font-size: 9px; line-height: 14px; white-space: nowrap; color: #f0f0f0;
}
.sy-player .pl-title span { display: inline-block; padding-right: 30px; }
.sy-player.is-playing .pl-title.scrolls span { animation: sy-marquee 12s linear infinite; }
@keyframes sy-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sy-player .pl-eq { position: absolute; right: 5px; bottom: 3px; display: flex; align-items: flex-end; gap: 2px; height: 15px; }
.sy-player .pl-eq i { display: block; width: 5px; height: 3px; background: linear-gradient(to top, #2fbf2f, #c7e81c 60%, #ffb000); }
.sy-player.is-playing .pl-eq i { animation: sy-eq .9s ease-in-out infinite alternate; }
.sy-player.is-playing .pl-eq i:nth-child(2) { animation-delay: -.3s; }
.sy-player.is-playing .pl-eq i:nth-child(3) { animation-delay: -.6s; }
.sy-player.is-playing .pl-eq i:nth-child(4) { animation-delay: -.15s; }
.sy-player.is-playing .pl-eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes sy-eq { 0% { height: 3px; } 50% { height: 13px; } 100% { height: 7px; } }
.sy-player .pl-controls {
  position: absolute; left: 46px; top: 30px; width: 243px; height: 15px;
  display: flex; align-items: center; gap: 4px;
}
.sy-player .pl-progress {
  flex: 1 1 auto; height: 9px; border: 1px solid #111; border-radius: 2px; cursor: pointer; position: relative;
  background: repeating-linear-gradient(90deg, #d9d9d9 0 2px, #9a9a9a 2px 3px);
}
.sy-player .pl-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(40,40,40,.55); }
.sy-player .pl-vol-icon { flex: none; display: flex; }
.sy-player .pl-volume { flex: none; width: 34px; height: 9px; position: relative; border: 1px solid #111; border-radius: 2px; background: #bdbdbd; cursor: pointer; }
.sy-player .pl-volume-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #5d5d5d; }
.sy-player .pl-time { flex: none; font-size: 8px; color: #fff; width: 24px; text-align: right; }
.sy-player .pl-btn {
  flex: none; width: 14px; height: 13px; border: 1px solid #111; border-radius: 2px; padding: 0;
  background: linear-gradient(#f4f4f4, #bcbcbc); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sy-player .pl-btn:hover { background: linear-gradient(#ffffff, #d6d6d6); }
.sy-player-caption { font-size: 7pt; color: #666; margin-top: 3px; padding-left: 2px; }

/* Streaming-service song (Spotify/SoundCloud/YouTube/Apple Music) in a classic frame */
.sy-player-embed {
  width: 295px; max-width: 100%; border-radius: 6px; border: 1px solid #1c1c1c; padding: 4px;
  background: linear-gradient(#6b6b6b 0%, #4a4a4a 45%, #2e2e2e 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.sy-player-embed-head { display: flex; justify-content: space-between; gap: 6px; color: #f0f0f0; font: bold 8px Verdana, Arial, sans-serif; padding: 1px 3px 4px; }
.sy-player-embed-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-player-embed-via { color: #bdbdbd; font-weight: normal; flex: none; }
.sy-player-embed iframe { display: block; width: 100%; border: 0; border-radius: 4px; background: #222; }
.sy-player-embed-msg { color: #ddd; font-size: 8pt; padding: 8px; }
@media (prefers-reduced-motion: reduce) {
  .sy-player.is-playing .pl-title.scrolls span, .sy-player.is-playing .pl-eq i { animation: none; }
  .sy-player.is-playing .pl-eq i { height: 9px; }
}

/* ---------- video player (430 wide, after the Blurbs, like the 2007 profile) */

.sy-vplayer { width: 430px; max-width: 100%; border: 1px solid #5a7fb5; background: #fff; font-family: Verdana, Arial, sans-serif; }
.sy-vplayer .vp-tabs { display: flex; background: linear-gradient(#86b0e3, #4d7fc4); border-bottom: 1px solid #3c68a8; }
.sy-vplayer .vp-tabs button {
  flex: 1 1 0; background: none; border: 0; border-right: 1px solid rgba(255,255,255,.45); color: #fff; cursor: pointer;
  font: bold 7.5pt Verdana, Arial, sans-serif; text-transform: uppercase; padding: 4px 2px; letter-spacing: .3px;
}
.sy-vplayer .vp-tabs button:last-child { border-right: 0; }
.sy-vplayer .vp-tabs button:hover { background: rgba(255,255,255,.15); text-decoration: underline; }
.sy-vplayer .vp-screen { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 560px; background: #000; overflow: hidden; }
.sy-vplayer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; cursor: pointer; }
.sy-vplayer .vp-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; cursor: pointer; }
.sy-vplayer .vp-big:hover svg circle { fill: rgba(102,153,204,.8); }
.sy-vplayer .vp-mark { position: absolute; right: 6px; bottom: 4px; color: rgba(255,255,255,.55); font: bold 9px Arial, sans-serif; pointer-events: none; }
.sy-vplayer .vp-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 8pt; padding: 10px; text-align: center; }
.sy-vplayer .vp-controls {
  display: flex; align-items: center; gap: 5px; padding: 4px 6px; background: linear-gradient(#f4f4f4, #cfcfcf); border-top: 1px solid #999;
}
.sy-vplayer .vp-btn {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #222; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 35%, #777, #2b2b2b 75%); display: flex; align-items: center; justify-content: center;
}
.sy-vplayer .vp-btn.vp-plain { border: 0; border-radius: 2px; background: none; width: 16px; }
.sy-vplayer .vp-btn.vp-plain:hover { background: rgba(0,0,0,.08); }
.sy-vplayer .vp-time { flex: none; font-size: 7pt; color: #333; min-width: 62px; text-align: center; }
.sy-vplayer input[type="range"] { -webkit-appearance: none; appearance: none; height: 14px; background: transparent; cursor: pointer; margin: 0; }
.sy-vplayer .vp-seek { flex: 1 1 auto; min-width: 40px; }
.sy-vplayer .vp-vol { flex: none; width: 46px; }
.sy-vplayer input[type="range"]::-webkit-slider-runnable-track { height: 5px; background: #fff; border: 1px solid #888; border-radius: 3px; }
.sy-vplayer input[type="range"]::-moz-range-track { height: 5px; background: #fff; border: 1px solid #888; border-radius: 3px; }
.sy-vplayer input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 13px; margin-top: -5px; border-radius: 2px; border: 1px solid #333; background: linear-gradient(#fff, #aaa); }
.sy-vplayer input[type="range"]::-moz-range-thumb { width: 8px; height: 12px; border-radius: 2px; border: 1px solid #333; background: linear-gradient(#fff, #aaa); }
.sy-vplayer .vp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 6px;
  background: linear-gradient(#cfe1f6, #93b8e4); border-top: 1px solid #6f97cc;
}
.sy-vplayer .vp-logo { font: bold italic 12px Arial, Helvetica, sans-serif; color: #fff; text-shadow: 0 1px 0 #3c68a8; letter-spacing: -.3px; }
.sy-vplayer .vp-logo span { font-style: normal; font-size: 9px; background: #fff; color: #3c68a8; border-radius: 3px; padding: 0 3px; margin-left: 2px; text-shadow: none; vertical-align: 1px; }
.sy-vplayer .vp-title { font-size: 7.5pt; font-weight: bold; color: #1d3f66; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- shared pieces used outside the profile --------------------------- */

/* orange heading bar (resume page) */
.orangebox-head {
  background: var(--sy-blurb-head-bg); min-height: 17px; padding: 1px 4px 1px 12px;
  display: flex; align-items: center; word-wrap: break-word;
}
/* user-written HTML (blog, comments); zero specificity so member CSS wins */
:where(.user-html) { overflow-wrap: anywhere; }
:where(.user-html img) { max-width: 100%; height: auto; }
:where(.user-html table) { max-width: 100%; }

/* friends list page */
.fs-friend { text-align: center; padding: 0 2px; word-wrap: break-word; overflow-wrap: anywhere; }
.fs-friend .fs-name { display: block; margin-bottom: 3px; min-height: 1em; }
.fs-friend img { display: inline-block; width: 90px; max-width: 100%; height: auto; vertical-align: top; }
.fs-friend .fs-note { display: block; font-size: 7pt; color: #333; font-weight: normal; margin-top: 1px; }
.fs-friend .fs-rank { color: #cc0000; font-weight: bold; }
.fs-friend .fs-muted { color: #666; }
.fs-friend.is-target { outline: 2px dashed #cc0000; }

/* comment form */
.sy-form-classic { background: var(--sy-comment-body-bg); padding: 8px; margin: 6px 3px 0; border: 1px solid var(--sy-comment-name-bg); }
.sy-form-classic label { display: block; font-weight: bold; margin: 4px 0 2px; }
.sy-form-classic textarea, .sy-form-classic input[type="text"] { width: 100%; font-size: 9pt; }
.sy-form-classic .note { font-size: 7pt; color: #6b3d00; margin: 4px 0; }

/* ---------- buttons, link-like buttons, period button --------------------- */

button.linklike {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  color: var(--sy-link); font-weight: bold; font-size: inherit; font-family: inherit; text-decoration: none;
}
button.linklike:hover { color: var(--sy-link-hover); text-decoration: underline; }

.sy-button, button.sy-button, a.sy-button {
  display: inline-block; padding: .2em .6em; color: #000; background: #d5e8fb; font-weight: bold;
  font-size: 8pt; border: 2px groove #6699cc; cursor: pointer; text-decoration: none; font-family: var(--sy-font);
}
.sy-button:hover { background: #e6f1fd; color: #000; text-decoration: none; }
.sy-button.sy-danger { background: #fde0d5; border-color: #cc6633; }
.sy-button[disabled] { opacity: .5; cursor: default; }

/* ---------- classic dialog ------------------------------------------------- */

dialog.sy-dialog {
  border: 1px solid #6699cc; padding: 0; width: min(420px, calc(100vw - 32px));
  font-family: Verdana, Arial, sans-serif; font-size: 8pt; color: #000; background: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.25);
}
dialog.sy-dialog::backdrop { background: rgba(0, 0, 0, .35); }
dialog.sy-dialog.sy-dialog-wide { width: min(720px, calc(100vw - 32px)); }
.sy-dialog-head { background: #6699cc; color: #fff; font-weight: bold; font-size: 9pt; padding: 4px 8px; display: flex; justify-content: space-between; align-items: center; }
.sy-dialog-head button { background: none; border: 0; color: #fff; font-weight: bold; cursor: pointer; font-size: 10pt; }
.sy-dialog-body { padding: 12px 12px 6px; line-height: 1.45; }
.sy-dialog-body p { margin: 0 0 .8em; }
.sy-dialog-foot { padding: 6px 12px 12px; text-align: right; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.sy-toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: #ffffcc; border: 1px solid #d4a017; color: #000; padding: 6px 12px; font-size: 8pt; font-weight: bold;
  box-shadow: 2px 2px 0 rgba(0,0,0,.2); z-index: 1000; max-width: calc(100vw - 32px);
}

/* safe-mode strip */
.sy-safe-bar { width: 800px; margin: 0 auto; background: #ffe0e0; border: 1px solid #cc0000; border-top: 0; padding: 4px 8px; font-size: 8pt; text-align: center; }

/* ==========================================================================
   SIMPLE CLASSIC PAGES (friends list, search, status)
   ========================================================================== */

.page-title { font-size: 12pt; font-weight: bold; margin: 0 0 4px; }
.page-sub { margin: 0 0 12px; color: #333; }
.classic-panel { border: 1px solid var(--sy-box-border); margin-bottom: 14px; }
.classic-panel-head { background: var(--sy-box-head-bg); color: var(--sy-box-head-text); font-weight: bold; font-size: 9pt; padding: 3px 8px; }
.classic-panel-body { padding: 8px; }
.friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px 6px; }

table.status { width: 100%; border-spacing: 3px; }
table.status th { background: var(--sy-box-head-bg); color: #fff; text-align: left; padding: 3px 5px; font-size: 8pt; }
table.status td { background: var(--sy-value-bg); padding: 3px 5px; vertical-align: top; }
table.status td:first-child { background: var(--sy-label-bg); font-weight: bold; color: var(--sy-label-text); width: 150px; }
table.status tr.is-target td { outline: 2px solid #cc0000; }
.pill { display: inline-block; padding: 0 5px; font-size: 7pt; font-weight: bold; border: 1px solid; white-space: nowrap; }
.pill-works { background: #dff5d8; border-color: #3a8f2a; color: #245c19; }
.pill-partly { background: #ffff99; border-color: #d4a017; color: #6b5300; }
.pill-later { background: #eeeeee; border-color: #888; color: #444; }

.search-results li { margin-bottom: 10px; }
.search-results mark, .search-people mark, .search-posts mark { background: #ffff99; }
.search-h { font-size: 9pt; margin: 6px 0 6px; color: var(--sy-label-text); }
.search-people, .search-posts { list-style: none; margin: 0 0 12px; padding: 0; }
.search-person { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dotted #ccc; }
.search-person img { width: 50px; height: auto; display: block; }
.search-posts li { padding: 4px 0; border-bottom: 1px dotted #ccc; }
.search-muted { color: #666; font-size: 7.5pt; }

/* ---------- Home (member dashboard), front page, Browse --------------------- */

.home-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0 20px; align-items: start; }
.home-hello { display: flex; gap: 10px; align-items: flex-start; }
.home-hello img { width: 90px; height: auto; display: block; border: 1px solid #ccc; }
.home-hello .home-photo-btn { display: block; margin-top: 3px; font-size: 7pt; font-weight: normal; text-decoration: underline; }
.home-hello h1 { font-size: 11pt; margin: 0 0 4px; }
.home-links { line-height: 1.7; }
.home-stat { display: flex; justify-content: space-between; gap: 8px; padding: 3px 4px; background: var(--sy-value-bg); margin-bottom: 3px; }
.home-stat b { color: var(--sy-label-text); }
.home-check { list-style: none; margin: 0; padding: 0; }
.home-check li { padding: 2px 0 2px 18px; position: relative; }
.home-check li::before { content: "\2610"; position: absolute; left: 0; color: #888; }
.home-check li.is-done { color: #666; }
.home-check li.is-done::before { content: "\2611"; color: #2a7a2a; }
.home-list { list-style: none; margin: 0; padding: 0; }
.home-list > li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dotted #ccc; }
.home-list > li:last-child { border-bottom: 0; }
.home-list img { width: 45px; height: auto; display: block; flex: none; }
.home-list .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.home-list .mini-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.home-empty { color: #666; font-style: italic; margin: 0; }
.home-muted { color: #666; font-size: 7.5pt; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px 6px; }
.person { text-align: center; overflow-wrap: anywhere; }
.person a { display: block; }
.person img { width: 90px; max-width: 100%; height: auto; display: block; margin: 3px auto; }
.person .person-where { display: block; font-size: 7pt; color: #555; font-weight: normal; }

.front-cols { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 0 20px; align-items: start; }
.front-hero { background: linear-gradient(#eaf2fc, #fff); border: 1px solid var(--sy-box-border); padding: 14px 16px; margin-bottom: 14px; }
.front-hero h1 { margin: 0 0 6px; font-size: 15pt; color: #003399; }
.front-hero p { margin: 0 0 8px; font-size: 9pt; line-height: 1.45; }
.front-join { display: inline-block; font-size: 11pt; padding: 4px 14px; }
.front-featured { display: flex; gap: 12px; align-items: flex-start; }
.front-featured img { width: 110px; height: auto; display: block; border: 1px solid #ccc; }
.front-login label { display: block; font-weight: bold; margin: 6px 0 2px; }
.front-login input[type="text"], .front-login input[type="password"] { width: 100%; box-sizing: border-box; font-size: 9pt; padding: 2px 3px; }
.front-login .sy-button { margin-top: 8px; }

.browse-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.browse-bar input[type="search"] { width: 240px; max-width: 100%; font-size: 9pt; padding: 2px 3px; }
.browse-pager { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }

@media (max-width: 760px) {
  .home-cols, .front-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- resume page (SySpace addition, in the profile's visual language) */

.resume { line-height: 1.45; }
.resume-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.resume-photo { width: 110px; height: auto; border: 1px solid #ccc; }
.resume-name { margin: 0; font-size: 16pt; }
.resume-title { color: var(--sy-blurb-head-text); font-weight: bold; font-size: 10pt; margin-top: 2px; }
.resume-contact { margin-top: 4px; }
.resume-actions { margin-top: 8px; }
.resume-section { margin-bottom: 14px; }
.resume-body { padding: 6px 8px 0; }
.resume-skill { margin: 0 0 5px; }
.resume-job { margin-bottom: 10px; }
.resume-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.resume-org { text-transform: uppercase; }
.resume-job ul { margin: 4px 0 0; padding-left: 20px; }
.resume-job li { margin-bottom: 3px; }

@media print {
  .sy-safe-bar, .sy-owner-bar, #sy-header, #sy-footer, .resume-actions, .sy-toast { display: none !important; }
  body, .sy-main { background: #fff !important; }
  .sy-page { width: auto; }
  .sy-main.sy-pad { padding: 0; }
  .orangebox-head { background: none; border-bottom: 1px solid #000; padding-left: 0; }
  .orangebox-head h2 { color: #000; }
  .resume-title { color: #000; }
  a { color: #000; }
}

/* ==========================================================================
   BLOG (2006 default blog skin, measured from the reference's stylesheet:
   header #D5E8FB w/ 1px black border, entries on #B1D0F0, comments
   #FF9933 / #F9D6B4, 90% wide main table on a white page)
   ========================================================================== */

body.blog-page { background-color: #ffffff; }
.blog-wrap { width: 90%; max-width: 1000px; margin: 0 auto; padding: 12px 0 30px; text-align: left; }
.blog-header { background: #d5e8fb; border: 1px solid #000; display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; gap: 8px; }
.blog-header h1 { font-size: x-large; font-weight: normal; margin: 0; overflow-wrap: anywhere; }
.blog-header .blog-sub { font-size: x-small; text-align: right; }
.blog-toplinks { text-align: right; padding: 8px 0 10px; font-size: x-small; }
.blog-toplinks a { font-weight: normal; text-decoration: underline; }
.blog-cols { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.blog-side > * + * { margin-top: 12px; }
.blog-profile { border: 1px solid #b1d0f0; background: #fff; text-align: center; padding: 6px 4px; font-size: x-small; }
.blog-profile img { max-width: 100px; height: auto; display: block; margin: 6px auto; }
.blog-profile a { font-weight: normal; text-decoration: underline; display: block; }
.blog-profile .lu { margin: 10px 0 4px; font-weight: bold; }
.blog-archive { border: 1px solid #b1d0f0; padding: 6px 4px; text-align: center; font-size: x-small; }
.blog-archive ul { list-style: none; margin: 6px 0 0; padding: 0; text-align: left; }
.blog-archive li { margin: 3px 0; }
.blog-archive a { font-weight: normal; text-decoration: underline; }
.blog-day { font-weight: bold; margin: 0 0 6px; font-size: x-small; }
.blog-entry { background: #b1d0f0; padding: 10px 14px; margin-bottom: 22px; font-size: x-small; overflow-wrap: anywhere; }
.blog-entry .be-subject { font-weight: bold; }
.blog-entry .be-meta { font-weight: bold; margin-bottom: 12px; }
.blog-entry .be-meta svg { vertical-align: middle; }
.blog-entry .be-body { margin-bottom: 14px; }
.blog-entry .be-foot a { font-weight: bold; text-decoration: underline; }
.blog-entry .be-foot button.linklike { text-decoration: underline; }
.blog-comments-title { font-weight: bold; margin: 18px 0 6px; font-size: x-small; }
table.blog-comments { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: x-small; }
table.blog-comments td { border: 2px solid #fff; padding: 6px; vertical-align: top; overflow-wrap: anywhere; }
table.blog-comments td.bc-who { width: 25%; background: #ff9933; text-align: center; font-weight: bold; }
table.blog-comments td.bc-who img { width: 70px; max-width: 100%; height: auto; display: block; margin: 6px auto 0; }
table.blog-comments td.bc-body { background: #f9d6b4; }
.blog-empty { background: #b1d0f0; padding: 14px; font-size: x-small; }

/* ==========================================================================
   SMALL SCREENS
   The desktop layout stays a fixed 800px (like the original). Below ~820px
   the same boxes stack into one column so the page is usable on phones.
   ========================================================================== */

@media (max-width: 760px) {
  :root { --sy-font-size: 9pt; }
  .sy-page, .sy-safe-bar { width: 100%; }
  .sy-band-top { height: auto; flex-direction: column; gap: 8px; padding: 26px 16px 4px; }
  .sy-banner { width: 100%; max-width: 468px; margin-top: 0; }
  .sy-search { padding: 6px 16px 10px; }
  .sy-search form { display: flex; width: 100%; }
  .sy-search input[type="search"] { width: auto; flex: 1 1 auto; min-width: 0; }
  .sy-search .sy-search-note { display: none; }
  .sy-nav { padding: 6px 10px; line-height: 22px; }
  .sy-nav .sep { padding: 0; }

  .fs-friend { font-size: 8pt; overflow-wrap: break-word; }
  .sy-main.sy-pad { padding: 14px 16px 20px; }
  .blog-wrap { width: auto; padding: 12px 16px 24px; }
  .blog-cols { grid-template-columns: minmax(0, 1fr); }
  .blog-header { flex-direction: column; align-items: flex-start; }
  .blog-header .blog-sub { text-align: left; }
}
