/*
 * SUpost clone - ported from original style.css
 * Author: Greg Wientjes (original) | Copyright 2009 Greg Wientjes
 */

#thoughts {
  padding-left: 15px;
}

#thoughts .homepage-right-column-info {
  padding-bottom: 10px;
}

#thoughts .nearby-section {
  font-size: 13px;
  font-weight: bold;
  color: #3b5898;
  margin-top: 10px;
  margin-bottom: 30px;
}

.price-tag {
  padding: 0 5px;
  color: white;
  background: #038cfe;
  border: 1px solid #038cfe;
  border-radius: 10px;
}

.icon_photo {
  width: 16px;
}

.classifiedsOverviewRow {
  width: 145px;
  float: left;
}

div.buy_job_post a {
  display: block;
}

div.buy_job_post .buy_job_post_note {
  color: #999999;
  padding-top: 3px;
  font-weight: normal;
  font-size: 10pt;
}

div.buy_job_post_lower {
  padding-top: 10px;
  padding-bottom: 5px;
}

.buy_job_post,
.buy_job_post_lower {
  color: #0000cc;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding-bottom: 10px;
}

.at_stanford_required {
  color: #999999;
  padding-top: 3px;
}

.category-header-title.campus-jobs-icon a {
  padding-left: 10px;
}

.category-header-title.off-campus-jobs-icon a {
  font-size: 16px;
  padding-left: 16px;
}

.post_button {
  padding-left: 60px;
}

.post_photos {
  width: 720px;
  max-width: 741px;
  margin: 0 auto;
  margin-top: 5px;
  margin-bottom: 15px;
}

.post_photo {
  float: left;
  width: 170px;
  text-align: center;
  padding: 5px;
  word-wrap: break-word;
}

.post_photo * {
  vertical-align: middle;
}

.post_photo a {
  display: block;
}

.photo_image_tag {
  height: 120px;
  max-width: 170px;
}

.photo_image_tag[src] {
  object-fit: cover;
}

.photo-placeholder {
  height: 120px;
  min-width: 120px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 11px;
  border: 1px dashed #ccc;
}

.photo-placeholder-large {
  width: 340px;
  height: 200px;
  min-width: 340px;
}

.post_photo:hover {
  background: #fff7c0;
}

.post_photo:active {
  background: #fec321;
  font-weight: 700;
}

.post_photo_title {
  text-align: center;
}

.days-ago {
  text-align: center;
}

.searchText {
  width: 80px;
}

/* Add post form styles - connected to header with no gap, full width */
.addFormRow td.addFormCell {
  padding: 0;
  vertical-align: top;
  width: 100%;
}

.addFormContent {
  padding: 0;
  margin: 0;
}

.addFormBanner {
  background-color: #bccded;
  width: 100%;
  height: 27px;
  font-weight: 700;
  font-size: 16px;
  padding-top: 3px;
  text-align: right;
  vertical-align: middle;
  margin: 0;
}

.collegeAddForm {
  padding-right: 3px;
}

.addFormCategory {
  padding: 30px;
}

.addFormHeader {
  font-weight: 700;
  margin-bottom: 15px;
}

.addFormCategory ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.addFormCategory li {
  padding-left: 30px;
  padding-top: 15px;
}

/* Single outer border around form - full width to match header */
.add_post_form {
  margin: 0 0 20px 0;
  border: 1px solid #bccded;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.add_post_form #errorExplanation {
  margin: 0;
  border: none;
  border-bottom: 2px solid red;
  padding: 7px 5px 12px;
  background-color: #f0f0f0;
}

.add_post_form #errorExplanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12pt;
  margin: -7px -5px 0 -5px;
  background-color: #c00;
  color: #fff;
}

.add_post_form #errorExplanation p {
  color: #333;
  margin-bottom: 0;
  padding: 5px;
}

.add_post_form #errorExplanation ul {
  margin: 0;
  padding-left: 40px;
}

/* Form rows: dividers only, no full borders (avoids double border) */
.form_row {
  border-bottom: 1px solid #bccded;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

.add_post_form .form_row:last-of-type {
  border-bottom: none;
}

.form_row::after {
  content: "";
  display: table;
  clear: both;
}

.form_row .field_with_errors {
  display: inline;
  background-color: transparent;
  text-align: right;
  margin: 0;
  padding: 0;
}

.form_label {
  display: block;
  float: left;
  width: 140px;
  text-align: right;
  margin-top: 3px;
  margin-right: 0.4em;
  font-weight: 700;
}

.form_input {
  display: block;
  margin-left: 145px;
}

.form_input .email-notes {
  margin: 0;
  padding-top: 2px;
  padding-left: 0;
  color: #555555;
}

.form_input .note-line {
  display: block;
}

.form_photo_label {
  margin-top: 2px;
}

.form_photo_field {
  margin-left: 0;
  padding-top: 5px;
}

.form_photo_field.first {
  padding-top: 0;
}

.photo_optional {
  color: #555555;
  font-weight: normal;
  padding-left: 20px;
}

.input_text_field {
  padding: 2px;
  width: 100%;
  max-width: 730px;
}

.input_textarea_field {
  padding: 2px;
  width: 100%;
  max-width: 732px;
  min-height: 306px;
  max-height: 540px;
  border-color: #ccc;
}

.submit_row {
  padding: 30px;
  margin: 0;
}

.submit {
  padding: 5px 15px;
  font-weight: 700;
  cursor: pointer;
}

.no-spam.no-housing-spam {
  margin: 20px 0;
}

/* Post success / posting confirmation */
#posting-confirmation {
  background-color: #d1e6b3;
  border-top: 2px solid #8cbf40;
  padding: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

#posting-confirmation-message {
  color: #264409;
  font-size: 14px;
  font-weight: normal;
  text-align: center;
  margin: 0;
  padding: 0;
}

#posting-confirmation-message p {
  margin: 0 0 12px 0;
  line-height: 1.5;
}

#posting-confirmation-message p:last-child {
  margin-bottom: 0;
}

.post-success-warning {
  color: #8a1f11 !important;
}

.post-success-links {
  padding: 25px 15px 40px;
  text-align: left;
}

.post-success-links p {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.post-success-links a {
  color: #0000cc;
  text-decoration: underline;
}

.post-success-links a:hover {
  text-decoration: underline;
}

/* Global Styles */
html,
body {
  margin: 0;
  padding: 5px 0;
}

body {
  background-color: #fff;
}

body,
textarea,
input {
  font-family: Arial, sans-serif;
  font-size: 10pt;
}

img {
  border-width: 0;
}

a {
  color: #0000cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

fieldset {
  background: #eee;
}

label {
  cursor: pointer;
}

.hidden {
  display: none;
}

table,
td,
tr,
ul,
li {
  padding: 0px;
  margin: 0px;
}

li {
  list-style-type: none;
}

a img {
  border: 0px;
}

#foot td {
  padding-top: 50px;
  text-align: center;
}

ul#supost-links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e0e9fb;
  text-align: center;
  white-space: nowrap;
}

ul#supost-links li {
  width: 3em;
  display: inline;
  margin: 0 2px;
  padding: 0 3px;
}

ul#supost-links a {
  background-color: transparent !important;
  padding: 0 0 3px;
  color: #666677;
}

ul#supost-links a:hover {
  color: #000 !important;
}

#disclaimer {
  padding-top: 20px;
}

/* Universe / Main Table */
#universe {
  table-layout: fixed;
  margin: 0 auto;
  width: 67em;
  border-collapse: separate;
  border-spacing: 0;
}

/* Header - continuous bar, no gaps, rounded corners both sides */
#header td {
  padding: 0;
  margin: 0;
  border: none;
  vertical-align: top;
}

#h0 {
  width: 12em;
  text-align: center;
  background-color: #fff;
  padding: 0;
}

#h1 {
  width: 18em;
  text-align: center;
  background: linear-gradient(to bottom, #3b65a0 0%, #284c9e 50%, #1a3a7a 100%);
  padding: 0;
  border-top-left-radius: 10px;
}

#h_new {
  width: 26em;
  text-align: center;
  background: linear-gradient(to bottom, #3b65a0 0%, #284c9e 50%, #1a3a7a 100%);
  padding: 0;
}

.header_school {
  font-size: 24px;
  color: #ffffff;
  padding-top: 23px;
  padding-right: 79px;
  font-weight: 700;
}

#h2 {
  width: 12em;
  padding: 0;
  background: linear-gradient(to bottom, #3b65a0 0%, #284c9e 50%, #1a3a7a 100%);
  border-top-right-radius: 10px;
}

#head {
  font-size: 1.5em;
  height: 28px;
  padding-top: 19px;
}

#header {
  width: 100%;
}

/* Breadcrumb / Hi-path */
#hi-path {
  height: 1.5em;
  background-color: #eef2fa;
  border-bottom: 1px solid #ccc;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

#hi-path div {
  height: 21px;
  line-height: 21px;
}

#hi-path #bread_crumb_header {
  float: left;
  width: 630px;
  max-width: 630px;
  padding-left: 15px;
}

#hi-path .current-time,
#hi-path #time_header {
  float: right;
  max-width: 255px;
  padding-right: 15px;
  color: #284c9e;
  font-weight: bold;
}

/* Main Content */
#mainContent {
  vertical-align: top;
}

#leftNavBar {
  width: 150px;
  min-height: 1000px;
  padding-right: 10px;
}

#leftNavBar .category {
  margin-top: 10px;
}

#indexBody {
  padding-left: 5px;
}

#indexBodyContent,
#leftNavBar,
#thoughts,
#tickerTd {
  vertical-align: top;
}

/* Category Overview & Sections */
#h2 table {
  font-size: larger;
  border-right: 1px solid #063371;
  border-left: 1px solid #3b65a0;
  text-align: center;
}

#h2 a:link,
#h2 a:visited {
  display: block;
  padding: 1.15em 15px;
  text-decoration: none;
  border-left: 1px solid #063371;
  border-right: 1px solid #3b65a0;
  color: #dee0e5;
}

#h2 a:hover {
  background: #5f7ba3;
  color: #fff !important;
  text-decoration: underline;
}

#postToDiv {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

#postToDiv a {
  color: #0000cc;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

#postToDiv a:hover {
  color: #0000cc;
  text-decoration: underline;
}

.job-posts-container {
  padding-bottom: 25px;
}

.moduleTitle {
  padding: 1px 0;
  background-color: #e8eaff;
  text-align: center;
  color: #3b5898;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #bccded;
}

.moduleTitle a {
  color: #3b5898;
}

.classifiedsOverviewTitle a {
  font-size: 13px;
  text-decoration: none;
  color: #0000cc;
  font-weight: 700;
}

.classifiedsOverviewTitle a:hover {
  text-decoration: underline;
}

.categoryColumn li a:hover,
.category-header-title a:hover {
  text-decoration: underline;
}

.category-header-title {
  text-align: center;
}

.category-header-title a {
  font-weight: 700;
  font-size: 20px;
  color: #0000cc;
  text-decoration: none;
}

.category-header-timeAgo {
  margin-left: 4px;
  font-size: 13px;
  color: black;
  font-weight: 700;
}

.categoryColumn li a {
  font-size: 12px;
  text-decoration: none;
  color: #0000cc;
  font-weight: 700;
}

.categoryColumn {
  vertical-align: top;
}

.category .cat-col-1,
.category .cat-left-col {
  border-right-width: 0px;
}

.category .cat-col-2,
.category .cat-right-col {
  border-left-width: 0px;
}

.classifiedOverviewHeader {
  background-color: #e8eaff;
  text-align: center;
  color: #3b5898;
  font-size: 13px;
  font-weight: 700;
  margin-left: 0px;
  margin-right: 0px;
  border-bottom: 1px solid #bccded;
}

.classifiedsOverviewTitle {
  text-align: left;
  padding-left: 22px;
  margin-left: 0px;
  float: left;
  width: 80px;
  line-height: 20px;
}

.classifiedsOverviewRow {
  width: 145px;
  float: left;
}

#classifiedsOverview td {
  border: 1px solid #bccded;
  padding: 0px;
}

.timeAgoShort {
  float: right;
  width: 40px;
  font-size: 10px;
  color: #af008f;
  line-height: 10px;
  padding-top: 5px;
}

.category {
  width: 150px;
  border: 1px solid #bccded;
}

.categoryColumn {
  width: 75px;
}

/* Recent Posts */
#recentPosts {
  width: 375px;
}

#indexBodyContent p {
  padding: 0px;
  margin: 0px;
}

.one-result {
  padding-top: 2px;
  padding-bottom: 2px;
}

.one-result:hover {
  background-color: #fff7c0;
}

.one-result a.post-link,
.one-result span {
  vertical-align: middle;
}

.one-result span.verified,
.one-result span.photo-tag {
  display: inline-block;
}

.one-result span.verified {
  color: #999;
}

.one-result a.post-link {
  font-size: 13px;
  word-break: break-all;
}

.one-result a.post-link:visited {
  color: blue;
  text-decoration: none;
  font-weight: 400 !important;
}

.one-result a.post-link:link {
  color: blue;
  text-decoration: none;
  font-weight: 700;
}

.one-result a.post-link:hover {
  text-decoration: underline;
}

.days-ago {
  color: #af008f;
  font-size: 13px;
}

/* Category colors */
.forsale .category_header {
  background-color: #fec321;
}

.forsale .categoryColumn {
  border-color: #fec321;
  background-color: #fff7c0;
}

.personals .category_header {
  background-color: #ffb5da;
}

.personals .categoryColumn {
  border-color: #ffb5da;
  background-color: #ffe5f3;
}

.housing .category_header {
  background-color: #b1db79;
}

.housing .categoryColumn {
  border-color: #b1db79;
  background-color: #e4f3d1;
}

.off_campus_jobs .category_header {
  background-color: #ecb7ff;
}

.off_campus_jobs .categoryColumn {
  border-color: #ecb7ff;
  background-color: #f8e6ff;
}

.campus_jobs .category_header {
  background-color: #92cadd;
}

.campus_jobs .categoryColumn {
  border-color: #92cadd;
  background-color: #dff4fb;
}

.community .category_header {
  background-color: #b5a3c2;
}

.community .categoryColumn {
  border-color: #b5a3c2;
  background-color: #f2f0f5;
}

.services .category_header {
  background-color: #8ed9fb;
}

.services .categoryColumn {
  border-color: #8ed9fb;
  background-color: #e2f4ff;
}

/* Category icons - from SUpost icons.gif sprite (matches reference style.css) */
.for-sale-icon {
  background: url(/images/site/icons.gif) -0px -240px no-repeat;
  padding-left: 22px;
  min-height: 20px;
}

.personals-icon {
  background: url(/images/site/icons.gif) -0px -40px no-repeat;
  padding-left: 22px;
  min-height: 20px;
}

.housing-icon {
  background: url(/images/site/icons.gif) -400px -160px no-repeat;
  padding-left: 22px;
  min-height: 20px;
}

.off-campus-jobs-icon {
  background: url(/images/site/icons.gif) -0px -440px no-repeat;
  padding-left: 22px;
  min-height: 20px;
}

.campus-jobs-icon {
  background: url(/images/site/icons.gif) -0px -1040px no-repeat;
  padding-left: 22px;
  min-height: 20px;
}

.resumes-icon {
  background: url(/images/site/icons.gif) -0px -760px no-repeat;
  padding-left: 22px;
  min-height: 20px;
}

.community-icon {
  background: url(/images/site/icons.gif) -0px -1400px no-repeat;
  padding-left: 22px;
  min-height: 20px;
}

.services-icon {
  background: url(/images/site/icons.gif) -400px -1000px no-repeat;
  padding-left: 22px;
  min-height: 20px;
}

/* Reference overrides for category header icons */
.category-header-title.campus-jobs-icon a {
  padding-left: 10px;
}

.category-header-title.off-campus-jobs-icon a {
  font-size: 16px;
  padding-left: 16px;
}

/* Search results page */
.search-title {
  max-width: 100%;
}

.all-results {
  margin-bottom: 20px;
}

/* Post detail page */
.post-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
  max-width: 700px;
}

.post-photos .post-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

#item-content .post-table {
  table-layout: fixed;
}

.postBodyBox {
  width: 80%;
  vertical-align: top;
  padding-right: 20px;
}

#item-content .messagePosterBox {
  width: 20%;
  min-width: 0;
  overflow: hidden;
}

#item-content .messagePosterBox #message-box,
#item-content .messagePosterBox #message-table,
#item-content .messagePosterBox #message-table td {
  max-width: 100%;
}

#item-content .messagePosterBox #message-table {
  table-layout: fixed;
  width: 100%;
}

#item-content .messagePosterBox form,
#item-content .messagePosterBox .new_message {
  max-width: 100%;
}

#item-content .messagePosterBox textarea,
#item-content .messagePosterBox input[type="text"],
#item-content .messagePosterBox input[type="email"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

#item-body .post-photo {
  max-width: 100%;
  height: auto;
}

.reservation-explanation-section #why-reserve {
  color: #0296e2;
  font-weight: bold;
}

#benefits-of-reservation {
  font-size: 13px;
}

/* Clearfix */
.clearfix:before,
.clearfix:after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

/* Post publish / delete pages (/post/publish/[token], /post/delete/[token]) */
.post-publish-realm {
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

/* Light green action box (Thank you, Deleted) */
.post-action-box {
  padding: 2rem;
  background: #d4edda;
  border: 1px solid #28a745;
  border-radius: 4px;
  text-align: center;
}

.post-action-title {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: bold;
}

.post-thank-you-title {
  color: #155724;
}

.post-deleted-title {
  color: #721c24;
}

.post-action-message {
  margin: 0 0 1.25rem 0;
  font-size: 1rem;
  color: #333;
}

.post-action-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.post-action-link {
  text-decoration: underline;
}

.post-action-link-blue {
  color: #007bff;
}

.post-action-link-blue:hover {
  color: #0056b3;
}

.post-action-link-red {
  color: #dc3545;
}

.post-action-link-red:hover {
  color: #c82333;
}

.post-action-link-black {
  color: #333;
}

.post-action-link-black:hover {
  color: #000;
}

.post-action-link-bold {
  font-weight: bold;
}

.post-action-error {
  color: #721c24;
  margin-bottom: 1rem;
}

/* Publish form (when post is hidden) */
.post-publish-summary {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}

.post-publish-post-name {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.post-publish-meta {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.post-status-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.post-status-active {
  background: #d4edda;
  color: #155724;
}

.post-status-inactive {
  background: #f8d7da;
  color: #721c24;
}

.post-publish-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.post-publish-photo {
  max-width: 120px;
  height: auto;
  border-radius: 4px;
}

.post-publish-body {
  font-size: 0.95rem;
  line-height: 1.5;
}

.post-publish-actions {
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  background: #fff;
}

.post-publish-error {
  color: #721c24;
  background: #f8d7da;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.post-publish-btn {
  cursor: pointer;
}

.post-publish-help {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0.75rem 0 0 0;
}

/* Message poster (post detail page) */
.message-poster-error {
  color: #721c24;
  background: #f8d7da;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.message-sent-success {
  padding: 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
}

/* Pagination (category/subcategory pages) */
.pagination-nav {
  margin: 1rem 0;
}

.pagination-nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1rem;
  background: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.pagination-link {
  color: blue;
  text-decoration: none;
}

.pagination-link:hover {
  color: blue;
  text-decoration: underline;
}
