/*
 Theme Name:   TTC General 2.0 (WP-Forge Child Theme)
 Theme URI:    https://ttc.iss.lsa.umich.edu/ttc/
 Description:  WP Forge Child Theme
 Author:       John Beals
 Author URI:   https://ttc.iss.lsa.umich.edu/ttc/
 Template:     wp-forge
 Version:      2.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, full-width-template, microformats, post-formats, sticky-post, translation-ready
 Text Domain:  ttc-general
*/

.header_with_image .header-info, .header_with_image .header-info a, .header_with_image .header-info a:visited, .header_with_image .site-title, .header_with_image .site-description, .header-info .site-title {
    color: white;
    text-shadow: 2px 2px 4px #000000;
}

.header-logo .header-image {
  height: 100%;
  width: 100%;
  display: flex;
  object-fit: cover;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.header-info {
  z-index: 20;
  height: 100%;
  width: 100%;
}

.header-info .site-title {
  font-size: 3rem;
  line-height: 1.3;
}

@media only screen and (max-width: 40em) { 
  .header-info .site-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

body {
    padding: 0;
    margin: 0;
    color: #333333;
    background-color: #e6e6e6;
    font-family: 'Verdana', sans-serif;
    font-weight: 500;
    line-height: 1.625;
    text-rendering: optimizeLegibility;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}

/* Remove gray band between main content and footer */
.content_container {
    margin-bottom: 0;
}

.footer_container {
    margin-top: 0;
}

.header_container {
  width: 100%;
  height: 200px;
}

.header_container header {
  width: 100%;
  height: 100%;
  position: relative;
}

.header-info {
  padding: 1rem;
}

.header-image, .header-info, .search, .site-header {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.site-header .header-info,
.site-header .header-info a,
.site-header .header-info a:visited,
.site-header .site-title,
.site-header .site-description {
  color: white;
  text-shadow: 2px 2px 4px #000000;
}

.top-bar {
    font-size: 1.2rem;
    padding-bottom: 0px;
    padding-top: 0px;
}

div.search {
  z-index: 35;
  width: 25%;
  height: 40px;
  margin-left: 70%;
  margin-top: 150px;
}

div.search #searchform {
    float: right;
    width: 25%;
    min-width: 300px;
}

#searchsubmit {
  height: 39px;
  width: 100px;
}

.nav_wrap {
  background-color: #2f65a7;
}

article.ttc_session {
  border-bottom: none;
}

.ttc-session-description {}
.ttc-session-details {}
  
.ttc-session-details h2 {
  font-size: x-large;
  font-weight: bold;
}

.ttc-session-details hr {
  margin: 1rem 0;
}

th#thumbnail {
  width: 150px;
  max-width: 30%;
  text-align: center;
}

th#date {
  min-width: 275px;
  text-align: center;
}

th#w {
  width: 30%;
}

th#status, th#action {
  width: 10%;
}

td.session-time {
    text-align: center;
}

#content article.ttc_session header > h1 {
  text-align: center;
}

div.search #searchform {
  float: right;
  width: 25%;
  min-width: 300px;
}

span.indent {
  padding-left: .5em;
  display: inline-block ;
}

/* Sort Toggle Bar Directives */

#toggle-descriptions {
  display: inline-block;
  float: left;
}

#sort-menu {
  display: inline-block;
  float: right;
}

#sort-menu div {
  display: inline-block;
  float: left;
  margin-left: 7px;
}


time.icon
{
  font-size: .75em; /* change icon size */
  display: block;
  position: relative;
  width: 7em;
  height: 7em;
  background-color: #fff;
  margin: 0 auto 1em auto;
  border-radius: 0.6em;
  box-shadow: 0 1px 0 #bdbdbd, 0 2px 0 #fff, 0 3px 0 #bdbdbd, 0 4px 0 #fff, 0 5px 0 #bdbdbd, 0 0 0 1px #bdbdbd;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-transform: rotate(0deg) skewY(0deg);
  -webkit-transform-origin: 50% 10%;
  transform-origin: 50% 10%;
}

time.icon *
{
  display: block;
  width: 100%;
  font-size: 1em;
  font-weight: bold;
  font-style: normal;
  text-align: center;
}

time.icon strong
{
  position: absolute;
  top: 0;
  padding: 0.4em 0;
  color: #fff;
  background-color: #fd9f1b;
  border-bottom: 1px dashed #f37302;
  box-shadow: 0 2px 0 #fd9f1b;
}

time.icon em
{
  position: absolute;
  bottom: 0.1em;
  color: #fd9f1b;
}

time.icon span
{
  width: 100%;
  font-size: 2.8em;
  letter-spacing: -0.05em;
  padding-top: 0.8em;
  color: #2f2f2f;
}

strong.session-time {
  text-transform: uppercase;
  text-align: center;
}

div.my-sessions table #register_link.button {
  width: 100%;
}

/* My Session History (wrapper is .my-sessions-history, not .my-sessions) */
#content.my-sessions-history table.lines th#date,
#content.my-sessions-history table.lines tbody td:first-child {
  min-width: 275px;
}

.grid-padding-x {
  display: block;
}

/* Enriching Scholarship Conference: breathing room above footer */
#content.enriching-scholarship-conference {
  padding-bottom: 2rem;
}

/* Override Foundation p margin on last paragraph so it doesn't expose gray body gap */
#content.enriching-scholarship-conference .entry-content > p:last-child {
  margin-bottom: 0;
}

/* Enriching Scholarship Conference: time block as section header */
.enriching-scholarship-conference .es-sessions-table .es-timeslot-header th {
  background: #e8e8e8;
  font-size: 1.0625rem;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid #ccc;
  border-top: 1px solid #ddd;
  text-align: left;
}

.enriching-scholarship-conference .es-sessions-table .es-timeslot-sessions td {
  padding: 1rem 1rem 3rem 1rem;
  vertical-align: top;
}

/* Enriching Scholarship Conference: session list within a timeslot cell */
.enriching-scholarship-conference .es-sessions-in-slot {
  list-style: none;
  margin: 0;
  padding: 0;
}

.enriching-scholarship-conference .es-sessions-in-slot li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Enriching Scholarship Conference: two-column layout for session + button */
.enriching-scholarship-conference .es-session-item {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

.enriching-scholarship-conference .es-session-main {
  flex: 1 1 auto;
  min-width: 0;
}

.enriching-scholarship-conference .es-sessions-in-slot li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.enriching-scholarship-conference .es-session-item .es-session-title {
  display: block;
  margin-bottom: 0.35rem;
}

/* Virtual + materials: "Zoom Link | Session Materials" inline */
.enriching-scholarship-conference .es-session-links-row {
  margin-bottom: 0.45rem;
}

.enriching-scholarship-conference .es-session-links-inline {
  display: inline;
  font-size: 0.875rem;
  color: #666;
}

.enriching-scholarship-conference .es-session-links-sep {
  display: inline;
  padding: 0 0.35em;
  color: #999;
  font-weight: 400;
}

.enriching-scholarship-conference .es-session-gcal-link {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  vertical-align: text-bottom;
}

.enriching-scholarship-conference .es-session-gcal-link img {
  display: block;
}

.enriching-scholarship-conference .es-session-description {
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #555;
}

.enriching-scholarship-conference .es-session-presenters {
  font-size: 0.875rem;
  color: #666;
}

.enriching-scholarship-conference .es-session-location {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

.enriching-scholarship-conference .es-session-links-inline a {
  font-weight: 700;
}

/* Enriching Scholarship Conference: status above button, aligned right */
.enriching-scholarship-conference .es-session-register {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 8rem;
}

/* Status line above the action button (Not registered / Pending / Registered / On waitlist) */
.es-session-register-status {
  font-size: 0.875em;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.25rem;
}

/* Reserve space for spinner so button width doesn’t change when it appears/disappears */
.es-session-register .button {
  position: relative;
  padding-left: 1.6em;
}

/* Spinner shown while checking registration status (pending → registered/waitlist) */
.es-session-register .es-session-register-spinner {
  position: absolute;
  left: 0.3em;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  display: block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: es-session-register-spin 0.6s linear infinite;
}

.es-session-register-checking .es-session-register-spinner {
  flex-shrink: 0;
}

@keyframes es-session-register-spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Enriching Scholarship Conference: bold day tabs for readability */
.enriching-scholarship-conference .tabs .tabs-title > a {
  font-weight: 700;
  color: #000;
}

/* Theme override: button color */
.button,
.button.primary {
  background-color: #2f65a7;
  border-color: #2f65a7;
}

.button:hover,
.button:focus,
.button.primary:hover,
.button.primary:focus {
  background-color: #234c7e;
  border-color: #234c7e;
  color: #fefefe;
}
