
body{margin:0;background:#8f8f8f;color:#111;font-family:"Times New Roman",serif}
a{color:#0000cc}a:visited{color:#551a8b}
.site-shell{width:min(920px,95vw);margin:18px auto;background:#d9d9d9;border:3px ridge #eee;box-shadow:4px 4px 0 #555}
.school-header{background:#143b70;color:#fff;text-align:center;padding:18px 12px 12px;border-bottom:5px solid #d6b24a}
.school-header h1{margin:0;font-size:34px;letter-spacing:2px}
.nav{text-align:center;padding:8px;background:#c8c8c8;border-bottom:2px groove #eee;font:13px Arial}
.nav a{margin:0 6px}.content{padding:18px}.panel{background:#efefef;border:2px inset #fff;padding:12px;margin:14px 0}
.small{font-size:12px}.center{text-align:center}.mono{font-family:"Courier New",monospace}
.notice{background:#fff7bf;border:2px solid #8d7a00;padding:8px}
.fake-counter{display:inline-block;background:#000;color:#32ff32;padding:2px 7px;font-family:"Courier New",monospace;letter-spacing:2px;border:2px inset #888}

.studentnet-body{background:#111;font-family:Verdana,Arial,sans-serif}
.studentnet-shell{width:min(900px,95vw);margin:18px auto;background:#d8d8d8;border:2px solid #777}
.studentnet-header{background:#001a5a;color:#fff;padding:12px 16px;border-bottom:4px solid #ffcc00}
.studentnet-header h1{margin:0;font-size:26px}
.studentnet-nav{background:#222;padding:7px 10px;font-size:12px}
.studentnet-nav a{color:#fff;margin-right:14px}
.studentnet-content{padding:16px}
.directory{width:100%;border-collapse:collapse;background:#fff}
.directory th,.directory td{border:1px solid #999;padding:7px;text-align:left}
.directory th{background:#0a2f78;color:#fff}
.status-private{color:#777;font-style:italic}.status-live{color:#006400;font-weight:bold}

.stu-body{
  background:#0a0a0a;
  background-image:
    repeating-linear-gradient(0deg,rgba(255,255,255,.025),rgba(255,255,255,.025) 1px,transparent 1px,transparent 3px),
    radial-gradient(circle at 15% 20%,rgba(120,0,0,.25),transparent 20%),
    radial-gradient(circle at 85% 70%,rgba(120,0,0,.18),transparent 24%);
  font-family:Verdana,Arial,sans-serif
}
.stu-wrap{width:min(900px,95vw);margin:20px auto;background:rgba(95,8,8,.9);border:2px dashed #eadfcb;border-radius:18px;padding:14px;box-shadow:0 0 0 4px #111,0 0 28px #000}
.stu-topbar{background:#111;color:#eee;border:2px solid #8b0000;padding:7px 10px;font:12px "Courier New",monospace}
.stu-topbar a{color:#eee}
.stu-name{color:#fff0dc;margin:10px 0;font-size:34px;text-shadow:2px 2px #450000}
.stu-grid{display:grid;grid-template-columns:240px 1fr;gap:14px;margin-top:14px}
.stu-card,.stu-mainbox{background:rgba(244,235,218,.97);border:2px dotted #fff4dd;border-radius:12px;overflow:hidden;box-shadow:3px 3px 0 rgba(0,0,0,.45)}
.stu-card{padding:12px}
.profile-placeholder{width:100%;aspect-ratio:4/5;background:linear-gradient(135deg,#333,#777);border:3px solid #111;display:grid;place-items:center;color:#eee;text-align:center;font:12px "Courier New",monospace}
.quickfacts{margin-top:10px;font-size:12px;line-height:1.55}.online{color:#087f23;font-weight:bold}
.stu-heading{background:#6f0000;color:#fff;padding:7px 10px;font-weight:bold;letter-spacing:.5px;border-bottom:2px dotted #f8ead3}
.stu-section{padding:12px}.stu-note{background:#ddcfb6;border:2px dashed #6f0000;border-radius:8px;padding:9px;margin:10px 0}
.stu-marquee{overflow:hidden;white-space:nowrap;background:#111;color:#f0dfc5;border:2px solid #6f0000;padding:6px 0;font-weight:bold}
.stu-marquee span{display:inline-block;padding-left:100%;animation:scroll 12s linear infinite}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-100%)}}
.friend-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.friend{text-align:center;font-size:11px}.friend-pic{aspect-ratio:1/1;background:#c5b59a;border:2px solid #111;display:grid;place-items:center;font-weight:bold;margin-bottom:4px}
.comments{width:100%;border-collapse:collapse}.comments td{padding:8px;vertical-align:top;border-bottom:1px dotted #9d8d77}
.comments td:first-child{width:120px;background:#dfd0b7;font-weight:bold}
.badge-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:10px}
.badge{width:88px;height:31px;border:2px outset #ddd;background:#111;color:#fff;display:grid;place-items:center;text-align:center;font:9px Arial}
.stu-footer{text-align:center;color:#cbbca5;font-size:11px;padding:12px 0 2px}

.simple-page{width:min(820px,94vw);margin:20px auto;background:#ddd;border:3px ridge #eee;padding:16px}
.simple-page h1{margin-top:0}
.forum-topic{background:#fff;border:1px solid #777;padding:10px;margin:10px 0;font-family:Arial,sans-serif}
.forum-topic b{color:#001a5a}
.message-box{background:#fff;border:2px inset #ccc;padding:10px;margin:10px 0;font-family:Arial,sans-serif}
.private{color:#666;font-style:italic}

@media(max-width:700px){.stu-grid{grid-template-columns:1fr}.friend-grid{grid-template-columns:repeat(2,1fr)}}


/* =========================================================
   CHARACTER HOMEPAGES V2
   Each page deliberately has its own teenage-1996 identity.
   ========================================================= */

/* Shared profile chrome */
.profile-backbar{
  width:min(900px,95vw);
  margin:12px auto 0;
  font:12px "Courier New",monospace;
}
.profile-backbar a{color:inherit}
.profile-photo-box{
  width:100%;
  aspect-ratio:4/5;
  display:grid;
  place-items:center;
  text-align:center;
  font:12px "Courier New",monospace;
  box-sizing:border-box;
}

/* TATUM */
.tatum-body{
  margin:0;
  background:#f1cddd;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(255,255,255,.5) 2px, transparent 2px);
  background-size:24px 24px;
  color:#3d1430;
  font-family:Verdana,Arial,sans-serif;
}
.tatum-wrap{
  width:min(900px,95vw);
  margin:18px auto;
  background:#fff4fa;
  border:4px double #b05083;
  box-shadow:6px 6px 0 #6f3557;
}
.tatum-header{
  background:#7a2657;
  color:#fff;
  text-align:center;
  padding:14px;
  border-bottom:6px dotted #ffd7e9;
}
.tatum-header h1{margin:0;font:32px Georgia,serif}
.tatum-nav{
  background:#efbdd5;
  text-align:center;
  padding:7px;
  font:12px Arial;
  border-bottom:2px solid #a4577c;
}
.tatum-nav a{color:#5a163e;margin:0 7px}
.tatum-grid{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:14px;
  padding:14px;
}
.tatum-card,.tatum-box{
  background:#fff;
  border:2px solid #c66b98;
  box-shadow:2px 2px 0 #dba1bc;
}
.tatum-card{padding:10px}
.tatum-photo{
  background:linear-gradient(135deg,#f2bdd7,#fff,#d27ba6);
  border:3px solid #7a2657;
  color:#6d244d;
}
.tatum-title{
  background:#b64d82;
  color:#fff;
  padding:6px 9px;
  font-weight:bold;
  letter-spacing:.4px;
}
.tatum-content{padding:10px;font-size:13px;line-height:1.45}
.tatum-note{
  background:#fff1a8;
  border:1px solid #aa8b00;
  padding:8px;
  margin:8px 0;
  font-family:"Comic Sans MS",cursive;
}
.tatum-friends{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.tatum-friend{
  background:#f7d7e7;
  border:1px solid #b95c8a;
  text-align:center;
  padding:8px;
  font-size:11px;
}

/* RANDY */
.randy-body{
  margin:0;
  background:#020202;
  color:#ddd;
  font-family:"Courier New",monospace;
}
.randy-wrap{
  width:min(930px,95vw);
  margin:18px auto;
  background:#151515;
  border:3px solid #d4d4d4;
  box-shadow:0 0 0 5px #4c0000;
}
.randy-header{
  background:#250000;
  color:#fff;
  padding:12px 15px;
  border-bottom:4px solid #f0d000;
}
.randy-header h1{margin:0;font-size:30px}
.randy-nav{
  background:#d6d6d6;
  color:#000;
  padding:6px 10px;
  font-size:12px;
}
.randy-nav a{color:#0000aa;margin-right:14px}
.randy-grid{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:14px;
  padding:14px;
}
.randy-card,.randy-box{
  background:#eee;
  color:#111;
  border:2px solid #777;
}
.randy-card{padding:10px}
.randy-photo{
  background:repeating-linear-gradient(45deg,#222,#222 8px,#444 8px,#444 16px);
  border:3px solid #000;
  color:#fff;
}
.randy-title{
  background:#111;
  color:#f0d000;
  padding:6px 8px;
  font-weight:bold;
}
.randy-content{padding:10px;font-size:13px;line-height:1.45}
.randy-rule{
  background:#fff6b0;
  border-left:5px solid #a00000;
  padding:8px;
  margin:8px 0;
}
.randy-rating{font-weight:bold;color:#8a0000}
.randy-tape{
  display:inline-block;
  background:#111;
  color:#fff;
  border:2px outset #888;
  padding:4px 7px;
  margin:3px;
  font-size:10px;
}

/* SIDNEY */
.sidney-body{
  margin:0;
  background:#d9d9d9;
  color:#222;
  font-family:Arial,Helvetica,sans-serif;
}
.sidney-wrap{
  width:min(780px,94vw);
  margin:22px auto;
  background:#fff;
  border:1px solid #888;
}
.sidney-header{
  padding:16px 18px 8px;
  border-bottom:1px solid #aaa;
}
.sidney-header h1{margin:0;font:28px Georgia,serif;color:#24354a}
.sidney-nav{
  padding:7px 18px;
  background:#ececec;
  border-bottom:1px solid #aaa;
  font-size:12px;
}
.sidney-nav a{margin-right:12px;color:#234d7b}
.sidney-grid{
  display:grid;
  grid-template-columns:190px 1fr;
  gap:18px;
  padding:18px;
}
.sidney-photo{
  background:#efefef;
  border:1px solid #aaa;
  color:#777;
}
.sidney-box{
  border-top:1px solid #777;
  margin-bottom:18px;
}
.sidney-title{
  padding:7px 0 4px;
  font:18px Georgia,serif;
  color:#24354a;
}
.sidney-content{
  font-size:13px;
  line-height:1.5;
}
.sidney-note{
  background:#f7f7f7;
  border:1px solid #ccc;
  padding:8px;
  margin:8px 0;
}

/* BILLY */
.billy-body{
  margin:0;
  background:#0b0b0b;
  color:#d8d8d8;
  font-family:"Courier New",monospace;
}
.billy-wrap{
  width:min(760px,94vw);
  margin:24px auto;
  background:#151515;
  border:1px solid #555;
}
.billy-head{
  background:#090909;
  border-bottom:1px solid #555;
  padding:12px 14px;
}
.billy-head h1{margin:0;font-size:22px;font-weight:normal}
.billy-nav{
  padding:7px 14px;
  background:#1e1e1e;
  border-bottom:1px solid #444;
  font-size:11px;
}
.billy-nav a{color:#bbb;margin-right:12px}
.billy-private{
  padding:28px 20px;
  text-align:center;
  border-bottom:1px solid #444;
}
.billy-private .code{
  font-size:32px;
  color:#fff;
  margin-bottom:8px;
}
.billy-public{
  padding:16px;
}
.billy-meta{
  border:1px solid #444;
  background:#0f0f0f;
  padding:10px;
  font-size:12px;
  line-height:1.5;
  margin-bottom:14px;
}
.billy-guestbook-note{
  color:#aaa;
  font-size:11px;
  margin-bottom:8px;
}

/* better guestbook fit inside colorful profile pages */
.tatum-body .whs-guestbook-shell,
.randy-body .whs-guestbook-shell,
.sidney-body .whs-guestbook-shell,
.billy-body .whs-guestbook-shell{
  box-shadow:none;
}

@media(max-width:700px){
  .tatum-grid,.randy-grid,.sidney-grid{grid-template-columns:1fr}
  .tatum-friends{grid-template-columns:repeat(2,1fr)}
}

/* StudentNet forum thread */
.thread-path{font:12px Arial,sans-serif;margin:2px 0 10px;color:#444}
.thread-head{background:#001a5a;color:#fff;border:1px solid #555;padding:9px 10px;font-family:Arial,sans-serif}
.thread-head span{float:right;font-size:11px;font-weight:normal;color:#ddd}
.forum-post{display:grid;grid-template-columns:135px 1fr;background:#fff;border:1px solid #777;border-top:0;font:13px Arial,sans-serif;min-height:72px}
.forum-post aside{background:#e7e7e7;border-right:1px solid #aaa;padding:9px}
.forum-post aside b{display:block;color:#001a5a;margin-bottom:7px}
.forum-post aside span{font-size:10px;color:#666;line-height:1.5}
.forum-post>div{padding:12px;line-height:1.5}
.deadboy-outlink{font-weight:bold}
.thread-footer{background:#eee;border:1px solid #777;border-top:0;padding:7px 10px;text-align:right;font:10px Arial,sans-serif;color:#555}
@media(max-width:560px){.forum-post{grid-template-columns:95px 1fr}.thread-head span{float:none;display:block;margin-top:4px}}

/* activities + puzzle additions */
.activity-table{width:100%;border-collapse:collapse;background:#fff;font:13px Arial,sans-serif;margin:14px 0}
.activity-table th,.activity-table td{border:1px solid #888;padding:7px;text-align:left}.activity-table th{background:#ddd}
.council-table{margin-bottom:14px}.jackson-page blockquote{margin:14px 8px;font:italic 17px Georgia,serif;line-height:1.45;color:#222}
.jackson-quote{background:#f7f7f7}.locked-topic{background:#e5e5e5;color:#666}.locked-topic a{color:#555}

/* V9 uploaded profile photos */
.profile-placeholder img,.profile-photo-box img{width:100%;height:100%;display:block;object-fit:cover;}

/* V10 profile photo sizing fix: keep uploaded portraits contained in their sidebar cards */
.profile-placeholder,
.profile-photo-box{
  aspect-ratio:1 / 1 !important;
  height:auto !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.profile-placeholder img,
.profile-photo-box img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center center !important;
}


/* V11 definitive profile photo fix: preserve each uploaded image's natural aspect ratio, never crop */
.profile-placeholder,
.profile-photo-box{
  aspect-ratio:auto !important;
  height:auto !important;
  min-height:0 !important;
  overflow:visible !important;
  display:block !important;
  background:none !important;
}
.profile-placeholder img,
.profile-photo-box img{
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:none !important;
  display:block !important;
  object-fit:contain !important;
  object-position:center center !important;
}
