* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/*
 * -- BASE STYLES --
 * Most of these are inherited from Base, but I want to change a few.
 */
body {
    line-height: 1.7em;
    color: #7f8c8d;
    font-size: 13px;
}

h1,
h2,
h3,
h4,
h5,
h6,
label {
    color: #34495e;
}

.pure-img-responsive {
    max-width: 100%;
    height: auto;
}

/*
 * -- LINK STYLES --
 * Updated for better contrast and aesthetics
 */
a {
    color: #036564;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #023c3c;
    text-decoration: underline;
}

/*
 * -- LAYOUT STYLES --
 * These are some useful classes which I will need
 */
.l-box {
    padding: 1em;
}

.l-box-lrg {
    padding: 2em;
}

.is-center {
    text-align: center;
}

/*
 * -- PURE FORM STYLES --
 * Style the form inputs and labels
 */
.pure-form label {
    margin: 1em 0 0;
    font-weight: bold;
    font-size: 100%;
}

.pure-form input[type] {
    border: 2px solid #ddd;
    box-shadow: none;
    font-size: 100%;
    width: 100%;
    margin-bottom: 1em;
}

/*
 * -- PURE BUTTON STYLES --
 * I want my pure-button elements to look a little different
 */
.pure-button {
    background-color: #021414;
    color: white;
    padding: 0.5em 2em;
    border-radius: 5px;
}

a.pure-button-primary {
    background: white;
    color: #021414;
    border-radius: 5px;
    font-size: 120%;
}

/*
 * -- MENU STYLES --
 * I want to customize how my .pure-menu looks at the top of the page
 */
.home-menu {
    padding: 0.5em;
    text-align: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.10);
}

.home-menu {
    background: white;
    color: #0d0c2e;
}

.max-widthed {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0em 1em;
}

.pure-menu.pure-menu-fixed {
    border-bottom: none;
    z-index: 4;
}

.home-menu .pure-menu-heading {
    font-weight: 400;
    font-size: 120%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.home-menu .pure-menu-selected a {
    color: white;
}

.home-menu a {
    color: #021414;
}

.home-menu li a:hover,
.home-menu li a:focus {
    background: none;
    border: none;
    color: #036564; /* Updated to match new link style */
}

/*
 * -- SPLASH STYLES --
 * This is the blue top section that appears on the page.
 */
.splash-container {
    background: #aaa;
    z-index: 1;
    overflow: hidden;
    width: 100%;
    height: 88%;
    top: 0;
    left: 0;
    position: fixed !important;
    background-image: url("splash.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

@media (max-width: 767px) {
    .splash-container {
        background-attachment: scroll;
        position: relative !important;
        height: 100vh; /* Ensure the background has height */
        background-position: center center;
        background-size: cover;
    }
}
#attribution {
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 20px;
    font-size: 12px;
    color: white;
}

#attribution a {
    color: inherit;
}

.splash {
    width: 100%;
    height: 50%;
    margin: auto;
    position: absolute;
    top: 150px;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    text-transform: uppercase;
    color: white;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

span.bold {
    font-weight: bold;
}

/* This is the main heading that appears on the blue section */
.splash-head {
    font-size: 20px;
    font-weight: bold;
    color: white;
    border-radius: 5px;
    line-height: 1em;
}

/* This is the subheading that appears on the blue section */
.splash-subhead {
    color: white;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.splash-subhead .nowrap {
    white-space: nowrap;
}

@media (max-width: 47.99em) {
    .splash {
        padding: 0 16px;
    }

    .splash-subhead {
        letter-spacing: 0.02em;
    }

    .splash-subhead .seg {
        display: block;
    }

    .splash-subhead .sep {
        display: none;
    }
}

/*
 * -- CONTENT STYLES --
 * This represents the content area (everything below the blue section)
 */
.content-wrapper {
    position: absolute;
    top: 87%;
    width: 100%;
    min-height: 12%;
    z-index: 2;
    background: white;
}

.content {
    padding: 1em 1em 3em;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.content p {
    text-align: justify;
}

.content-head {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 2em 0 1em;
}

.content-head-ribbon {
    color: white;
}

.content-subhead {
    color: #021414;
}

.content-subhead i {
    margin-right: 7px;
}

.ribbon {
    background: #F9F9F9;
}

.program-table {
    width: 100%;
    border: none;
}

.program-table td {
    border: none;
    vertical-align: top;
    padding: 0.4em 1em;
}

.program-table td.schedule {
    white-space: nowrap;
    width: 1%;
    color: #7f8c8d;
}

.program-table tr.session-header td {
    color: #34495e;
    padding: 1.2em 1em 0.8em;
}

.program-table tr.break-before td {
    border-top: 1px solid #ccc;
}

.program-table tr.break-after td {
    border-bottom: 1px solid #ccc;
}

/*
 * -- MOBILE MENU TOGGLE --
 */
.menu-toggle {
    display: none;
    position: absolute;
    right: 1em;
    top: 0.5em;
    font-size: 1.4em;
    color: #021414;
    padding: 0.3em 0.5em;
}

.menu-toggle:hover,
.menu-toggle:focus {
    text-decoration: none;
    color: #036564;
}

@media (max-width: 47.99em) {
    .menu-toggle {
        display: block;
    }

    .home-menu .pure-menu-list {
        display: none;
        width: 100%;
        text-align: center;
    }

    .home-menu .pure-menu-list.active {
        display: block;
    }

    .home-menu .pure-menu-list .pure-menu-item {
        display: block;
    }

    .home-menu .pure-menu-list .pure-menu-link {
        padding: 0.6em 1em;
    }

    .home-menu .pure-menu-heading {
        text-align: left;
    }
}

/*
 * -- TABLET (AND UP) MEDIA QUERIES --
 */
@media (min-width: 48em) {
    body {
        font-size: 16px;
    }

    .home-menu {
        text-align: left;
    }

    .home-menu ul {
        float: right;
    }

    .splash-head {
        font-size: 250%;
    }

    .l-box-lrg {
        border: none;
    }
}

/*
 * -- DESKTOP (AND UP) MEDIA QUERIES --
 */
@media (min-width: 78em) {
    .splash-head {
        font-size: 300%;
    }
}

/*
 * -- DEADLINE COUNTDOWN --
 * Driven by countdown.js. Elements stay hidden until the script runs.
 */
[data-cd][hidden],
[data-cd-cta][hidden] {
    display: none !important;
}

/* Center the splash content in the visible part of the photo (between the
   fixed menu and the content starting at 87vh), so the countdown never gets
   clipped on short screens. */
.splash {
    top: 3.5em;
    bottom: calc(100% - 87vh + 1.8em);
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-content: safe center;
}

.splash > * {
    flex: none;
}

.splash-head {
    margin: 0 0 0.5em;
}

.splash-subhead {
    margin: 0;
}

@media (max-height: 700px) {
    .splash-head {
        margin-bottom: 0.3em;
    }

    .splash-subhead {
        line-height: 1.5;
    }
}

/* Hero countdown: one big number */
.cd-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.8em;
    text-align: left;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.8);
}

.cd-hero-num {
    font-size: 5em;
    font-weight: 200;
    line-height: 1;
    padding-right: 0.15em;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    font-variant-numeric: tabular-nums;
}

.cd-hero-text {
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 1.35;
}

.cd-hero-text small {
    font-size: 0.8em;
    opacity: 0.9;
}

@media (max-width: 47.99em), (max-height: 700px) {
    .cd-hero-num {
        font-size: 3.6em;
    }
}

@media (min-width: 78em) {
    .cd-hero {
        font-size: 18px;
    }
}

/* News countdown with milestone timeline (currently commented out in index.html) */
.cd-news {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5em 3em;
    margin: 0 2em;
    padding: 1.6em 2em;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.cd-news-big {
    color: #021414;
    font-size: 3.2em;
    font-weight: 300;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cd-news-big small {
    font-size: 0.4em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cd-news-sub {
    margin: 0.6em 0 1em;
    line-height: 1.4;
}

.cd-news-sub strong {
    color: #34495e;
}

.cd-news-cta,
.cd-news-cta:hover,
.cd-news-cta:focus {
    color: white;
    text-decoration: none;
    font-size: 0.9em;
}

.cd-news-tl {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.cd-news-tl li {
    flex: 1;
    position: relative;
    padding-top: 1.8em;
    text-align: center;
    font-size: 0.85em;
    line-height: 1.35;
}

.cd-news-tl li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
}

.cd-news-tl li:first-child::before {
    left: 50%;
}

.cd-news-tl li:last-child::before {
    right: 50%;
}

.cd-news-tl li.is-past::before {
    background: #036564;
}

.cd-news-tl .dot {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: 1.2em;
    height: 1.2em;
    margin-left: -0.6em;
    border-radius: 50%;
    background: white;
    border: 2px solid #ccc;
}

.cd-news-tl b {
    display: block;
    color: #34495e;
}

.cd-news-tl .is-past .dot {
    background: #036564;
    border-color: #036564;
}

.cd-news-tl .is-next .dot {
    border-color: #036564;
    box-shadow: 0 0 0 4px rgba(3, 101, 100, 0.2);
}

.cd-news-tl .is-next b {
    color: #036564;
}

.cd-urgent .cd-news-big {
    color: #c0392b;
}

@media (max-width: 63.99em) {
    .cd-news {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 47.99em) {
    .cd-news {
        margin: 0 1em;
        padding: 1.4em 1.4em 0.6em;
        text-align: left;
    }

    .cd-news-tl {
        flex-direction: column;
    }

    .cd-news-tl li {
        text-align: left;
        padding: 0 0 1.1em 2em;
    }

    .cd-news-tl li::before {
        top: 0;
        bottom: 0;
        left: 0.55em;
        right: auto;
        width: 2px;
        height: auto;
    }

    .cd-news-tl li:first-child::before {
        top: 0.6em;
        left: 0.55em;
    }

    .cd-news-tl li:last-child::before {
        bottom: auto;
        height: 0.6em;
    }

    .cd-news-tl .dot {
        left: 0;
        margin-left: 0;
        top: 0.1em;
    }
}
