/* Top 8: the profile page as it shipped by default, and the hooks every pasted-in layout restyles. */
:root {
  --page: #ffffff; --tile: none; --tw: auto; --th: auto; --att: scroll;
  --box: #ffffff; --text: #000000; --link: #003399; --label: #336699; --hbg: #6698cb; --htx: #ffffff; --ot: #ff6600; --hov: #003399;
  --border: 1px solid #6698cb; --font: Verdana, Arial, Helvetica, sans-serif; --hfont: Verdana, Arial, Helvetica, sans-serif; --nfont: Verdana, Arial, sans-serif;
  --cell: #d5e8fb; --cell2: #ffffff; --w: 960px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--page) var(--tile) repeat left top; background-size: var(--tw) var(--th); background-attachment: var(--att); scrollbar-color: var(--hbg) var(--page); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 12.5px/1.5 var(--font); color: var(--text); overflow-x: hidden; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ot); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#fx-back, #fx-front { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; display: none; }
#fx-back { z-index: 0; } #fx-front { z-index: 50; }
#fx-back.on, #fx-front.on { display: block; }

/* ---------- the blue bar along the top (it never changed, whatever the layout) */
.top, .page, .foot { position: relative; z-index: 1; width: min(var(--w), 100% - 16px); margin-inline: auto; }
.top { margin-top: 0; background: #6699cc; color: #fff; font: 11px/1.3 Verdana, Arial, sans-serif; }
.top-in { display: flex; align-items: center; justify-content: flex-end; padding: 7px 12px; background: linear-gradient(#7fa9d8, #6699cc); }
.search { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.search-l { font-weight: bold; }
.search-box { position: relative; }
.search input { width: 220px; max-width: 46vw; height: 22px; border: 1px solid #335c99; padding: 2px 4px; font: 12px Verdana, Arial, sans-serif; color: #000; background: #fff; border-radius: 0; -webkit-appearance: none; appearance: none; }
.search button { height: 22px; padding: 0 8px; font: bold 11px Verdana, Arial, sans-serif; color: #000; background: linear-gradient(#fff, #d4d0c8); border: 1px solid #335c99; border-radius: 0; cursor: pointer; }
.suggest { position: absolute; top: 24px; right: 0; width: max(100%, 260px); margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid #335c99; z-index: 40; box-shadow: 2px 2px 0 rgba(0, 0, 0, .25); }
.suggest a { display: flex; align-items: center; gap: 8px; padding: 4px 6px; color: #003399; text-decoration: none; font: bold 12px Verdana, Arial, sans-serif; }
.suggest small { display: block; font-weight: normal; color: #666; font-size: 10px; }
.suggest img { width: 24px; height: 36px; object-fit: cover; border: 1px solid #ccc; flex: none; }
.suggest li[aria-selected="true"] a, .suggest a:hover { background: #d5e8fb; }
.nav { background: #003399; padding: 5px 12px; font: bold 11px/1.4 Verdana, Arial, sans-serif; color: #fff; }
.nav a { color: #fff; text-decoration: none; } .nav a:hover { text-decoration: underline; }
.sep { margin: 0 7px; opacity: .85; }

/* ---------- the profile: two columns, the way it always was */
.page { margin-top: 10px; }
.profile { display: flex; gap: 12px; align-items: flex-start; }
.col-l { flex: 0 0 326px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.col-r { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.box { background: var(--box); border: var(--border); padding: 8px 10px 10px; min-width: 0; overflow-wrap: anywhere; }
.box p { margin: 0 0 6px; }
.box h2 { margin: -8px -10px 8px; padding: 3px 8px; font: bold 12.5px/1.45 var(--hfont); }
.box h2.bar { background: var(--hbg); color: var(--htx); }
.box h2.ot { margin: 0 0 8px; padding: 0; color: var(--ot); font-size: 15px; background: none; }
.box h3 { margin: 0 0 2px; font: bold 12.5px var(--hfont); color: var(--label); }

/* name, picture, the details beside it */
.namebox { border-color: transparent; }
:root:not([data-skin]) .namebox { background: transparent; padding: 0; }
.pname { margin: 0 0 8px; font: bold 18px/1.2 var(--nfont); color: var(--text); overflow-wrap: anywhere; }
.pname.plain { font: bold 18px/1.2 Verdana, Arial, sans-serif; }
.glit-host { display: block; min-height: 40px; }
.glit-host canvas { display: block; max-width: 100%; height: auto; }
.picrow { display: flex; gap: 12px; align-items: flex-start; }
.pic { flex: 0 0 180px; display: block; line-height: 0; }
.ppic { display: block; width: 180px; max-width: 100%; height: auto; border: 0; }
:root[data-skin] .ppic { border: var(--border); }
.info { flex: 1 1 0; min-width: 0; font-size: 12px; }
.headline { margin: 0 0 8px; font-style: italic; }
.headline.marq { overflow: hidden; white-space: nowrap; font-style: normal; font-weight: bold; }
.headline.marq span { display: inline-block; padding-left: 100%; animation: marq 11s linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }
.client { margin: 0 0 8px; }
.online { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0 0; padding: 2px 6px 2px 3px; font: bold 11px/1.2 Verdana, Arial, sans-serif; color: #fff; background: linear-gradient(#ff9a2e, #e8620c); border: 1px solid #b24a00; border-radius: 9px; }
.online-i { width: 11px; height: 12px; background: radial-gradient(circle at 50% 30%, #fff 0 2.6px, transparent 3px), radial-gradient(ellipse at 50% 112%, #fff 0 5px, transparent 5.5px); }
.viewmy { margin: 8px 0 0 !important; font-weight: bold; font-size: 11.5px; }

/* the profile song player: a plain player, the same in every layout */
.player { padding: 0; border: 0; background: transparent; }
.mp { display: flex; gap: 8px; align-items: center; padding: 6px 8px; color: #fff; background: linear-gradient(#5d5d5d, #262626 55%, #111); border: 1px solid #000; border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); font: 11px/1.3 Arial, Helvetica, sans-serif; }
.mp-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #000; background: radial-gradient(circle at 40% 30%, #9a9a9a, #3a3a3a 70%); cursor: pointer; position: relative; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.mp-play::before { content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.mp-play.playing::before { left: 11px; top: 11px; width: 4px; height: 12px; border: 0; background: #fff; box-shadow: 7px 0 0 #fff; }
.mp-mid { flex: 1 1 0; min-width: 0; }
.mp-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: bold; color: #ffcc33; }
.mp-artist { color: #ccc; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mp-row { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.mp-bar { flex: 1; height: 7px; background: #000; border: 1px solid #555; cursor: pointer; position: relative; }
.mp-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(#9cf, #36c); }
.mp-time { font-variant-numeric: tabular-nums; color: #ccc; min-width: 30px; text-align: right; }
.mp-list { margin: 0; padding: 4px 0 2px 26px; background: #1d1d1d; border: 1px solid #000; border-top: 0; font: 11px/1.3 Arial, Helvetica, sans-serif; color: #888; }
.mp-list li { padding: 1px 0; }
.mp-list button { all: unset; cursor: pointer; color: #ddd; padding: 2px 0; display: block; }
.mp-list button:hover, .mp-list button:focus-visible { color: #fff; text-decoration: underline; }
.mp-list li.on button { color: #ffcc33; font-weight: bold; }

/* contacting box */
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.ct { display: flex; align-items: center; gap: 6px; font-weight: bold; font-size: 11.5px; text-decoration: none; }
.ct:hover { text-decoration: underline; }
.ct-i { flex: none; width: 18px; height: 14px; position: relative; }
.ct-msg { background: #fff; border: 1px solid #335c99; }
.ct-msg::before { content: ""; position: absolute; left: 1px; right: 1px; top: 0; height: 7px; border-bottom: 1px solid #335c99; transform: skewY(0); background: linear-gradient(to bottom right, transparent 48%, #335c99 49%, #335c99 52%, transparent 53%) left/50% 100% no-repeat, linear-gradient(to bottom left, transparent 48%, #335c99 49%, #335c99 52%, transparent 53%) right/50% 100% no-repeat; border: 0; }
.ct-fwd { background: linear-gradient(#5fbf3f, #2f8f1f); clip-path: polygon(0 30%, 55% 30%, 55% 0, 100% 50%, 55% 100%, 55% 70%, 0 70%); }
.ct-add { background: radial-gradient(circle at 35% 28%, #f2a65a 0 3px, transparent 3.5px), radial-gradient(ellipse at 35% 105%, #3a77c9 0 6px, transparent 6.5px), linear-gradient(#2f9e2f, #2f9e2f) 13px 3px/2px 8px no-repeat, linear-gradient(#2f9e2f, #2f9e2f) 10px 6px/8px 2px no-repeat; }
.ct-fav { background: #f6c40c; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 77%, 20% 100%, 30% 60%, 0 38%, 38% 35%); }

/* URL box */
.url { font-size: 12px; }
.url a { word-break: break-all; }

/* tables */
.tbl table { width: 100%; border-collapse: separate; border-spacing: 3px; margin: -3px; width: calc(100% + 6px); }
.tbl th, .tbl td { padding: 4px 6px; vertical-align: top; text-align: left; }
.tbl th { width: 34%; background: var(--cell); color: var(--label); font: bold 11.5px/1.4 var(--hfont); }
.tbl td { background: var(--cell2); }
.companies th { width: 44%; }
:root:not([data-skin]) .tbl td { background: #e8f1fb; }

/* right column */
.ext b { font: bold 15px/1.3 var(--hfont); color: var(--ot); }
.blurbs p { margin: 0 0 4px; }
.kit { --ab-fg: var(--text); --ab-muted: var(--label); --ab-accent: var(--ot); --ab-gap: 12px; }
.kit .ab-heading { color: var(--label); font-family: var(--hfont); font-size: 13px; }
.kit .ab-text { font-size: 12px; }
.kit .ab-media figcaption { color: var(--label); font-weight: bold; }
.kit .ab-frame { outline: 1px solid rgba(0, 0, 0, .4); }
.kit .ab-audio audio { max-width: 100%; }
@media (min-width: 761px) {
  /* a long run of films: the first one big, the rest two to a row, so the Friend Space isn't miles down */
  .videos .ab-landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos .ab-landscape > .ab-film:first-child, .videos .ab-landscape > .ab-film:nth-child(even):last-child { grid-column: 1 / -1; }
}

/* friend space */
.fs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; text-align: center; }
.fr-n { display: block; font-weight: bold; font-size: 11.5px; line-height: 1.25; margin-bottom: 3px; text-decoration: none; }
.fr-n:hover { text-decoration: underline; }
.fr-p { display: block; line-height: 0; }
.fr-p img { width: 90px; max-width: 100%; height: auto; border: 0; }
:root[data-skin] .fr-p img { border: 2px solid var(--hbg); }
.mike .fs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }

/* search results */
.results .box { padding-bottom: 14px; }
.sr-q { margin: 0 0 10px !important; }
.sr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.sr-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #d5e8fb; }
.sr-p img { width: 60px; height: auto; display: block; }
.sr-n { font-weight: bold; font-size: 14px; }
.sr-h { font-style: italic; margin: 2px 0; }
.sr-c { color: #666; font-size: 11px; margin-bottom: 4px; }

.foot { margin-top: 14px; margin-bottom: 18px; padding: 8px; text-align: center; font: 11px Verdana, Arial, sans-serif; background: var(--box); border: var(--border); }
.err { padding: 20px; }

/* ---------- what the pasted-in layouts change */
:root[data-skin] .box h2.ot { color: var(--ot); }
:root[data-box="rule"] .box h2.bar { background: transparent; color: var(--ot); border-bottom: 1px dashed var(--ot); margin: 0 0 8px; padding: 0 0 3px; }
:root[data-box="gradient"] .box h2.bar { background: linear-gradient(90deg, var(--hbg), transparent); }
:root[data-box="outline"] .box h2.bar { background: transparent; color: var(--ot); border: var(--border); margin: 0 0 8px; text-align: center; }
:root[data-box="outline"] .box h2.ot { text-align: center; }
:root[data-upper] .box h2, :root[data-upper] .ext b, :root[data-upper] .tbl th { text-transform: uppercase; letter-spacing: .06em; }
:root[data-italic] .box h2, :root[data-italic] .ext b { font-style: italic; }
:root[data-hover="overline"] .page a:hover { text-decoration: underline overline; }
:root[data-hover="bg"] .page a:hover { background: var(--hov); color: var(--box); text-decoration: none; }
:root[data-hover="space"] .page a:hover { letter-spacing: .08em; }
:root[data-hover="underline"] .page a:hover { text-decoration: underline dashed; }
:root[data-skin] .top, :root[data-skin] .foot { box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }

/* ---------- phones: one column, the work first */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .top-in { justify-content: stretch; padding: 8px; min-height: 0; }
  .search { width: 100%; } .search-box { flex: 1; } .search input { width: 100%; max-width: none; height: 30px; font-size: 16px; } .search button { height: 30px; }
  .search-l { display: none; }
  .nav { padding: 6px 8px; font-size: 12px; }
  .profile { flex-direction: column; gap: 10px; align-items: stretch; }
  .col-l, .col-r { display: contents; }
  .namebox { order: 1; } .ext { order: 2; } .player { order: 3; } .blurbs { order: 4; } .videos { order: 5; } .pics { order: 6; } .friends { order: 7; }
  .contact { order: 8; } .url { order: 9; } .interests { order: 10; } .details { order: 11; } .companies { order: 12; }
  .pic { flex: 0 0 44%; } .ppic { width: 100%; }
  .info { font-size: 13px; }
  .box h2 { font-size: 14px; } .box h2.ot { font-size: 16px; }
  .fs { gap: 12px 6px; }
  .mike .fs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tbl th { width: 38%; font-size: 12.5px; }
  .companies th { width: 46%; }
  .ct { font-size: 13px; padding: 4px 0; }
  .mp-list button { padding: 5px 0; font-size: 13px; }
}
@media (max-width: 359px) {
  .fr-n { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .headline.marq span { animation: none; padding-left: 0; }
  .headline.marq { white-space: normal; }
}
