/*
   Styles for Lifestyle Redesign site.
*/

/* General styles. */

body { font-family: helvetica, arial, sans-serif; margin: 0; background-color: white; }
img, table, tr, td, div, a, form { border: 0; padding: 0; margin: 0; }
a { text-decoration: none; color: black; }


/* Main page container. */

#container { width: 100%; margin: auto; background-color: white; }


/* USC and OS/OT identity. */

#uscchan-identity { width: 100%; }
@media (min-width: 768px) { #uscchan-identity { height: 135px; position: relative; } }


/* USC identity. */

#usc-identity-mobile { display: block; width: 100%; text-align: right; }
#usc-identity-mobile img { width: 120px; height: 39px; margin: 10px 10px 0 0; }
#usc-identity { display: none; }

@media (min-width: 768px) {
   #usc-identity { display: block; position: absolute; right: 10px; top: 15px; }
   #usc-identity img { width: auto; height: 48px; }
   #usc-identity-mobile { display: none; }
}

@media (min-width: 926px) { #usc-identity { right: 18px; } }


/* Chan/LR identity. */

#lr-identity-mobile { display: block; margin: 5px 10px; }
#lr-identity-mobile img { max-width: 100%; height: auto; }
#lr-identity { display: none; }

@media (min-width: 768px) {
   #lr-identity { display: block; position: absolute; left: 15px; top: 15px; }
   #lr-identity img { width: auto; height: 100px; }
   #lr-identity-mobile { display: none; }
}


/* Banner images. */

#banner img.mobilebanner, #banner img.mobilegradient { display: block; width: 100%; height: auto; }
#banner img.desktopbanner, #banner img.desktopgradient { display: none; }

@media (min-width: 768px) {
   #banner img.desktopbanner, #banner img.desktopgradient { display: block; width: 100%; height: auto; }
   #banner img.mobilebanner, #banner img.mobilegradient { display: none; }
}


/* Main menu. */

nav, #main-menu { background-color: transparent; }
#main-menu li a.title
   { font-size: 110%; font-weight: bold; text-transform: uppercase; color: #999999;
     pointer-events: none; cursor: default;
     padding-top: 4px !important; padding-bottom: 4px !important; }


/* Content. */

#content { font-family: 'Source Sans', helvetica, arial; }
/* @media (min-width: 768px) { #content { } } */

#content h1
   { font-size: 240%; font-weight: 700; margin-top: 0.75em; margin-bottom: 0.75em;
     line-height: 120%; color: #990000; clear: both; }


#content p, #content li, #content blockquote { font-weight: 300; line-height: 150%; color: #000000; }
#content li { margin-top: 0; margin-bottom: 0; }
#content .image-text-section li { margin-top: 0; margin-bottom: 0; font-size: clamp(16px, 120%, 22px) }

#content p { font-weight: bold; font-size: 120%; }
#content li a { font-weight: bold; font-size: 100%; color: #4f4a21}
@media (min-width: 1200px) { #content p { font-size: min(140%,40px); } }
@media (min-width: 1500px) { #content p { font-size: min(150%,44px); } }
#content p.hanging { padding-left: 0.25in; text-indent: -0.25in; }
@media (min-width: 768px) { #content p.hanging { padding-left: 0.5in; text-indent: -0.5in; } }

#content li p, #content li li, #content li li li, #content blockquote { font-size: 100%; }
/* #content a { text-decoration: none; font-weight: 500; color: #444444; background-color: #eeeeee; padding: 0 4px; border-radius: 3px; } */
/* Section has .image-text-section, not the <a> — override pill links to match general-css-2025 .links (e.g. research) */
#content a:hover { background-color: unset; }



#content h1 a, #content h2 a, #content h3 a, #content h4 a
   { font-weight: 700; color: black; background-color: white; padding: 0; border-radius: 0; }
#content h1 a:hover, #content h2 a:hover, #content h3 a:hover, #content h4 a:hover
   { background-color: white; text-decoration-line: underline; text-decoration-thickness: 1px; }
/* #content a:hover { color: black; background-color: #dddddd; } */

#content .entrydate { font-weight: 700; color: #990000; }
#content .pronouns { display: block; font-weight: 300; font-size: 60%; margin-top: -0.3em; }

#content #social-media { margin: 1em 0 1em 0; }
#content #social-media a { background-color: white; padding: 0; margin: 0; }
#content #social-media img { height: 40px; width: 40px; padding: 0; opacity: 0.25; filter: alpha(opacity=25); }
#content #social-media img:hover { opacity: 1.0; filter: alpha(opacity=100); }

#content h1.flat, #content h2.flat, #content h3.flat, #content h4.flat, #content p.flat
   { margin-top: 0; margin-bottom: 0; }
#content h1.thin, #content h2.thin, #content h3.thin, #content h4.thin, #content p.thin
   { margin-top: 0.25em; margin-bottom: 0.25em; }
#content h1.flattop, #content h2.flattop, #content h3.flattop, #content h4.flattop, #content p.flattop
   { margin-top: 0; }
#content h1.thintop, #content h2.thintop, #content h3.thintop, #content h4.thintop, #content p.thintop
   { margin-top: 0.25em; }
#content h1.flatbase, #content h2.flatbase, #content h3.flatbase, #content h4.flatbase, #content p.flatbase
   { margin-bottom: 0; }
#content h1.thinbase, #content h2.thinbase, #content h3.thinbase, #content h4.thinbase, #content p.thinbase
   { margin-bottom: 0.25; }


/* Styles for news page. */

#content .newsitem
   { clear: both; overflow: auto; padding-bottom: 1em; border-bottom: 5px solid #eeeeee; margin-bottom: 3em; }
#content .newsitem h2, #content .newsitem h3 { margin-top: 0; }


/* Styles for About Us page / Twitter feed. */

@media (min-width: 768px) {
   #aboutus { float: left; width: 400px; margin-bottom: 2em; }
   #twitter { float: right; width: 300px; height: 650px; }
}


/* Styles for research labs/projects. */

#content .researchteam { font-size: 110%; }
#content .researchteam p { margin-top: 0.5em; margin-bottom: 0.5em; }


/* Styles for APA/publication list. */

#content p.apa { padding-left: 0.25in; text-indent: -0.25in; }
@media (min-width: 768px) { #content p.apa { padding-left: 0.5in; text-indent: -0.5in; } }
#content div.abstract { padding: 0.5em 1em; background-color: #f0f0f0; }
#content div.abstract p { padding: 0.5em 0; margin: 0; }
#content .hide-abstract { display: none; }
#content .hidden { display: none; }
#content .hide { display: none; }


/* Styles for mini-bios on /people page. */

#content .personsummary { margin-top: 1em; margin-bottom: 0.75em; font-size: 90%; overflow: auto; }
#content .personsummary .personinfo { margin-left: 30%; padding-bottom: 10px; }
#content .personsummary .personinfo p { margin: 0; }
#content .personsummary .personinfo h3 { clear: none; margin: 0 0 0.25em 0; }
@media (min-width: 768px) { #content .personsummary { font-size: 100%; }
                            #content .personsummary .personinfo { padding-bottom: 20px; }}


/* Styles for annotated inline image blocks. */

#content .imageblock { display: inline-block; width: 45%; vertical-align: top; text-align: left; font-size: 90%; padding: 0 5px 20px 5px; }
#content .imageblock .imageblockimage a { border: 0; padding: 0; margin: 0; background-color: white; }
#content .imageblock .imageblockimage a img:hover { opacity: 0.75; filter: alpha(opacity=75); }
#content .imageblock img { width: 100%; height: auto; }
#content .imageblock h3 { margin: 0.25em 0; font-size: 130%; }
#content .imageblock p { margin: 0.25em 0; line-height: 130%; }
@media (min-width: 768px) { #content .imageblock { width: 33%; max-width: 225px; padding: 0 10px 30px 10px; } }


/* Forms. */

.chanform input[type="text"], .chanform input[type="password"], .chanform textarea
   { font-family: 'Source Sans'; font-size: 100%; font-weight: 300; width: 95%;
     border: 1px solid #cccccc; padding: 3px; -webkit-appearance: none; appearance: none; }
.chanform input[type="text"].additional { width: auto; }

.chanform > table { table-layout: fixed; width: 100%; font-size: 120%; line-height: 125%; }
.chanform td { vertical-align: top; }
.chanform td.label { width: 35%; text-align: right; padding: 5px;
                     font-weight: 300; font-size: 110%; line-height: 150%; }
.chanform td.value { width: 65%; text-align: left; padding: 5px;
                     font-weight: 300; font-size: 100%; line-height: 150%; }
#content .chanform td.label p { margin: 0; font-size: 90%; }
#content .chanform .required { color: #990000; font-weight: bold; }
.chanform #Your_URL { display: none; }


/* Timeline. */

#content div.timeline h3 { font-weight: 700; font-size: 280%; color: #990000; margin: 0; }
#content div.timeline p, #content div.timeline a { font-weight: 500; color: #990000; }
#content div.timeline p.caption { color: black; }


/* Horizontal rules. */

#content hr
   { width: 75%; height: 2px; margin: 1.5em auto;
     background-color: #990000; border: 0; opacity: 20%; }
#content hr.wide { margin: 3em auto; }


/* Specific content sections. */

.content-section { display: flex; flex-direction: column; /* align-items: flex-start; */ }
.content-section > div { padding-bottom: 1em; }
.content-section.border { border-bottom: 2px solid #eeeeee; }
@media (min-width: 768px)
   { .content-section { flex-direction: row; justify-content: space-between; }
     .content-section div.half { flex-basis: 48%; flex-grow: 1; }
     .content-section div.third { flex-basis: 31%; }
     .content-section div.twothirds { flex-basis: 64%; } }


/* Search terms. */

#content .criterion { margin-bottom: 0.75em; }
#content .criterion p { margin: 0; }
#content .criterion p.criterion-title { font-size: 85%; }
#content .criterion select { margin: 0; }


/* Search results. */

#content .lr-section { font-size: 175%; font-weight: 500; }
#content .lr-resource { margin-bottom: 1.5em; }
#content .lr-resource .lr-resource-title { margin: 0; }
#content .lr-resource .lr-resource-description { margin: 0; }
#content .lr-resource .lr-resource-tags { margin: 0.25em 0 0 0; font-size: 110%; line-height: 160%; }


/* Single-resource styles. */

#content .lr-title { font-size: 125%; }
#content .lr-title, .lr-primary, .lr-secondary, .lr-downloads { margin-bottom: 1em; }
#content .lr-title p, .lr-primary p { margin: 0 0 0.1em 0; }
#content .lr-primary p.tags { line-height: 175%; }
#content .lr-secondary, .lr-downloads { text-align: center; font-size: 90%; }
#content .lr-secondary p, .lr-downloads p { margin: 0 0 0.3em 0; }

#content span.tag, #content a.tag { padding: 0 8px; }
#content span.tag.whatever { background-color: rgb(212 48 154 / 0.6); } /* Purple */


/* Form elements. */

input[type="text"], input[type="password"], input[type="submit"], textarea, select
   { box-sizing: border-box; -moz-appearance: none; -webkit-appearance: none; appearance: none;
     width: 100%; margin: 0; border: 1px solid #999; border-radius: 5px;
     font-family: open-sans, sans-serif; font-size: 100%; font-weight: 300; }
input[type="button"] { font-size: 100%; font-weight: 300;
                       border: 1px solid #999; border-radius: 5px; }
input[type="text"], input[type="submit"], input[type="button"] { padding: 5px 8px; }
input[type="submit"], input[type="button"] { color: black; background-color: white; }
input[type="submit"]:hover, input[type="button"]:hover { background-color: #e0e0e0; }
fieldset { border: 0; padding: 0; margin: 0; }

select { padding: 5px 20px 5px 8px;
         line-height: 1.3; cursor: default;
         background-color: transparent; background-repeat: no-repeat; background-position: right 8px center; background-size: 9px; color: #333;
         background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='292.4' height='292.4'%3E%3Cpath fill='%23333' d='M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z'/%3E%3C/svg%3E"); }

select:hover { border-color: #777; }
select:focus { border-color: #999; box-shadow: 0 0 1px 2px #6db4ff; outline: none; }
select::-ms-expand { display: none; }



/* General hero section  */

/* Hero section */
#content .hero-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 394px;
  }

  /* Hero wrapper */
  #content .hero-wrapper {
    padding: 0 var(--Desktop-Side-Margin);
    height: 394px;
  }

  /* Hero header */
  #content .hero-header {
    flex: 1;
    z-index: 2; /* stays above image */
  }
  #content .hero-header h1 {
      margin-top: 0.5em;

      /* Desktop - H1 */
      font-family: "National 2";
      font-size: 125px;
      font-style: normal;
      font-weight: 800;
      line-height: 100px; /* 80% */
      letter-spacing: -5px;
      text-transform: uppercase;
  }

  /* Hero image */
  #content .hero-image {
    right: 0; /* Push outside container */
    left: 0; /* Push outside container */
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
  }

  /* Hero section action button - page-specific styles */
#content .hero-section .wrapper-action {
    justify-content: left;
    padding-left: 15%;
    /* padding-top: 140px; */
  }

  #content .hero-section .wrapper-action a {
    background: var(--color-usc-cardinal);
    color: var(--color-usc-gold);
  }
  #content .hero-header p {
    margin-top: 2em;
    font-size: clamp(24px, 150%, 30px);
    display: flex;
    justify-content: center;
    width: 35%;
    padding-right: 60%;
    padding-left: 5%;
    /* Same halo as main hero H1 — body copy on full-bleed photo (e.g. CE subscribe hero) */
    text-shadow:
      0 0 1px rgb(255 255 255 / 1),
      0 0 10px rgb(255 255 255 / 0.88),
      0 0 24px rgb(255 255 255 / 0.55);
}


  /* Hero section caption */
  #content .hero-section .hero-caption {
    position: absolute;
    bottom: 24px; /* distance from bottom of .hero-wrapper */
    left: 40px;
    max-width: 554px;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    color: var(--color-black);
    font-family: "National 2";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.64px;
  }


/* Mobile hero caption toggle functionality */
.hero-caption-toggle {
    display: none; /* Hide the checkbox */
    }

@media (max-width: 767px) {
    #page {
        display: block;
    }
     #content .hero-wrapper {
        max-width: 100%;
        padding: 24px var(--Mobile-Side-Margin) 0px var(--Mobile-Side-Margin);
        min-height: 511px;
        height: max(511px, 60%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Push content to bottom */
      }

      #content .hero-header h1 {
        font-size: 50px;
        line-height: 42px; /* 86.957% */
        letter-spacing: -1.84px;
        margin-top: 0.25em;
        margin-bottom: 0.25em;
      }
      #content .hero-section .hero-header h2 {
        margin: .25em 0 .35em 0;
        font-size: clamp(20px, 4vw, 32px);
        font-style: normal;
        font-weight: 500;
        line-height: 1.6;
        letter-spacing: -1.6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      #content .hero-header p {
        width: 70%;
        padding-right: 15%;
        padding-left:  15%;
      }
    /* Mobile hero image positioning */
    #content .hero-image {
        right: 0; /* Push outside container */
        left: 0; /* Push outside container */
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center center;
        }

    #content .hero-caption-toggle-label {
      position: absolute;
      bottom: 30px;
      right: 20px;
      width: 37px;
      height: 36px;
      cursor: pointer;
      z-index: 3;
      display: block; /* Show the info icon on mobile */
      transition: bottom 1.3s ease-in-out;
    }

    #content .hero-caption-toggle-label::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 37px;
      height: 36px;
      background-image: url('/assets/chan/icons/info-icon.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
    }

    /* Mobile hero caption toggle - position at bottom right */
      #content .hero-section .hero-wrapper .hero-caption-toggle-label {
        position: absolute;
        bottom: 30px;
        right: 20px;
        width: 37px;
        height: 36px;
        cursor: pointer;
        z-index: 3;
        display: block;
        transition: transform 0.3s ease-in-out;
      }

      /* Mobile hero caption - full width at bottom */
      #content .hero-section .hero-wrapper .hero-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgb(255 255 255 / 0.8);
        border-radius: 8px 8px 0 0;
        padding: 0 16px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
        font-size: 14px;
        z-index: 2;
      }

      /* Show caption when checkbox is checked */
      #content .hero-section .hero-wrapper .hero-caption-toggle:checked ~ .hero-caption {
        max-height: 200px;
        padding-top: 16px;
        padding-bottom: 16px;
      }

      /* Move icon up when caption expands */
      #content .hero-section .hero-wrapper .hero-caption-toggle:checked ~ .hero-caption-toggle-label {
        transform: translateY(-50px);
      }
  }
