@import url(https://fonts.googleapis.com/css2?family=League+Spartan:wght@700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap);
html, body {
    overscroll-behavior: none;
    height: 100%;
    width: 100%;
    margin: 0;
}

body {
    overflow-x: hidden;
}
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("https://docksidelive.com/main-background.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
    pointer-events: none;
}

#home {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#home h1 {
    color: #8d3a06; /*#8d3a06;*/
    text-align: center;
    font-family: 'League Spartan', sans-serif;
    font-size: 3rem;
    letter-spacing: -.1rem;
    padding-top: 1rem;
    margin-top: 2rem;
    text-shadow: -1px -1px 0 #FBBB5B,
    1px -1px 0 #FBBB5B,
    -1px 1px 0 #FBBB5B,
    1px 1px 0 #FBBB5B;
}

#home p {
    font-family: 'Montserrat', sans-serif;
    text-align: justify;
}

#home .logoLink {
    cursor: pointer;
    width: 100%;
    margin: 0;
}

#home .logoLink:hover img:first-child {
    opacity: .6;
}

#home .logoLink:active img:first-child {
    opacity: .8;
}
.logo img {
    margin: 0 auto;
    text-align: center;
    height: 13.4rem;
    width: 20rem;
    padding-top: 1rem;
    z-index: 20;
}

.logo {
    display: flex;
    height: 14rem;
    border-bottom: 2px solid #20314c;
    background-color: #20314c;
    box-shadow: 1px 0 10px #20314caa;
}

.wide {
    position: relative;
    width: 100%;
}

.logo .background {
    padding-top: 0;
    position: absolute !important;
    z-index: 10;
    height: 13.8rem;
    width: 100%;
    object-fit: cover;
}
#homeMenu {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .5rem;
}

#homeMenu a {
    font-size: 1.25rem;
    margin: 1rem;
    padding: .5rem;
    border: 1px solid #20314c55;
    border-radius: .25rem;
    box-shadow: 1px 1px 5px #20314c55;
}

#homeMenu a:hover {
    text-decoration: none;
    background-color: #F7C475 !important;
    color: #1E324D !important;
}

#homeMenu a.active {
    text-decoration: none;
    background-color: #F7C475 !important;
    color: #1E324D !important;
}

#homeMenu a {
    font-family: "League Spartan", sans-serif;
    letter-spacing: -.05rem;
    margin: .25rem;
    text-align: center;
    background-color: #1E324D;
    color: white;
}

#homeMenu a span {
    display: flex;
    flex-direction: row;
}
#sponsors {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    width: 100vw;
}

#sponsors > h1 {
    margin: 3rem 0 0;
}

#sponsors #thirdPartyLogos {
    margin-top: 0;
}

#sponsors #thirdPartyLogos img {
    margin: .5rem;
}

#sponsors.content {
    margin: 0 auto;
    padding: 0 .5rem 0 .5rem;
    max-width: 40rem;
}

#sponsors .text {
    width: 100%;
}

#sponsors .images {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

#sponsors a {
    cursor: pointer;
    margin: 1rem;
}

#sponsors img {
    padding: 1rem;
    max-height: 18rem;
    width: 16rem;
}

#sponsors img:hover {
    opacity: .6;
}

#sponsors img:active {
    opacity: .8;
}

#sponsors .fqffb img {
    padding: 0;
    border-radius: .5rem;
}
.dsl-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    padding: 3rem 1rem;
    min-height: 14rem;
    width: 100%;
    box-sizing: border-box;
}

.dsl-loading-ring {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 4px solid rgba(32, 49, 76, .15);
    border-top-color: #8d3a06;
    animation: dsl-spin .8s linear infinite;
}

.dsl-loading-label {
    font-family: "Montserrat", sans-serif;
    font-size: .9rem;
    color: rgba(32, 49, 76, .6);
    letter-spacing: .02em;
}

@keyframes dsl-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dsl-loading-ring {
        animation: none;
    }
}

/* Musician Song Submission — public form.
   Same visual language as the rest of the site (card look shared with
   Song Request/About/Stories/Journeys): navy #20314c / rust #8d3a06,
   League Spartan display + Montserrat body, warm paper card surface. */

#submission {
    width: min(560px, 100%);
    margin: clamp(1.25rem, 3vw, 2.25rem) auto 0;
    padding: clamp(1.4rem, 4.5vw, 2.75rem);
    background: #faf7f2;
    border: 2px solid #20314c;
    border-radius: .75rem;
    box-shadow: 0 3px 10px rgba(15, 26, 46, .18);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    color: #2b3850;
}

#submission h1 {
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    letter-spacing: -.05rem;
    color: #8d3a06;
    margin: 0 0 .75rem;
}

#submission .submission-intro {
    font-size: .95rem;
    color: #55617a;
    margin: 0 0 1rem;
    max-width: 32rem;
}

#submission .submission-notice {
    font-size: .82rem;
    color: #55617a;
    background: rgba(32, 49, 76, .06);
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin: 0 0 1.5rem;
    text-align: left;
}

#submission .submission-notice b {
    color: #20314c;
}

#submission .submission-result {
    width: 100%;
    box-sizing: border-box;
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: .92rem;
}

#submission .submission-result.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

#submission .submission-result.error {
    background: #fce4ec;
    color: #8d3a06;
    border: 1px solid #f3b3c4;
}

#submission .submission-field {
    width: 100%;
    text-align: left;
    margin-bottom: 1.1rem;
}

#submission label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #20314c;
    margin-bottom: .4rem;
}

#submission .submission-optional {
    font-weight: 400;
    color: #8a93a6;
}

#submission input {
    width: 100%;
    box-sizing: border-box;
    padding: .7rem .9rem;
    border: 1.5px solid #20314c66;
    border-radius: .4rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

#submission input:focus {
    outline: none;
    border-color: #20314c;
    box-shadow: 0 0 0 3px rgba(32, 49, 76, .12);
}

#submission input.error {
    border-color: #c0392b;
}

#submission .submission-error-text {
    display: block;
    color: #c0392b;
    font-size: .8rem;
    margin-top: .3rem;
}

#submission .submission-submit {
    margin-top: .5rem;
    padding: .7rem 2.2rem;
    background: #8d3a06;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

#submission .submission-submit:hover:not(:disabled) {
    background: #a84e18;
}

#submission .submission-submit:disabled {
    background: #c9b7a8;
    cursor: not-allowed;
}

/* Song Request — public form.
   Same visual language as the rest of the site (card look shared with
   About/Stories/Journeys, colors/typography shared with Partners): navy
   #20314c / rust #8d3a06, League Spartan display + Montserrat body,
   warm paper card surface. */

#songRequest {
    width: min(560px, 100%);
    margin: clamp(1.25rem, 3vw, 2.25rem) auto 0;
    padding: clamp(1.4rem, 4.5vw, 2.75rem);
    background: #faf7f2;
    border: 2px solid #20314c;
    border-radius: .75rem;
    box-shadow: 0 3px 10px rgba(15, 26, 46, .18);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    color: #2b3850;
}

#songRequest h1 {
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    letter-spacing: -.05rem;
    color: #8d3a06;
    margin: 0 0 .5rem;
}

#songRequest .song-request-now-playing {
    font-size: .85rem;
    color: #20314c;
    background: rgba(32, 49, 76, .07);
    border-radius: 999px;
    padding: .35rem 1rem;
    margin: 0 0 .75rem;
}

#songRequest .song-request-intro {
    font-size: .95rem;
    color: #55617a;
    margin: 0 0 1.5rem;
    max-width: 30rem;
}

#songRequest .song-request-result {
    width: 100%;
    box-sizing: border-box;
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: .92rem;
}

#songRequest .song-request-result.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

#songRequest .song-request-result.error {
    background: #fce4ec;
    color: #8d3a06;
    border: 1px solid #f3b3c4;
}

#songRequest .song-request-field {
    width: 100%;
    text-align: left;
    margin-bottom: 1.1rem;
    position: relative;
}

#songRequest label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: #20314c;
    margin-bottom: .4rem;
}

#songRequest .song-request-optional {
    font-weight: 400;
    color: #8a93a6;
}

#songRequest input {
    width: 100%;
    box-sizing: border-box;
    padding: .7rem .9rem;
    border: 1.5px solid #20314c66;
    border-radius: .4rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

#songRequest input:focus {
    outline: none;
    border-color: #20314c;
    box-shadow: 0 0 0 3px rgba(32, 49, 76, .12);
}

#songRequest input.error {
    border-color: #c0392b;
}

#songRequest .song-request-error-text {
    display: block;
    color: #c0392b;
    font-size: .8rem;
    margin-top: .3rem;
}

#songRequest .song-request-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1.5px solid #20314c66;
    border-radius: .4rem;
    max-height: 14rem;
    overflow-y: auto;
    box-shadow: 0 6px 16px rgba(15, 26, 46, .15);
}

#songRequest .song-request-suggestions li {
    padding: .55rem .8rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

#songRequest .song-request-suggestions li:hover {
    background: #f4ede2;
}

#songRequest .song-request-suggestion-name {
    font-weight: 600;
    font-size: .9rem;
    color: #20314c;
}

#songRequest .song-request-suggestion-author {
    font-size: .78rem;
    color: #7a8398;
}

#songRequest .song-request-submit {
    margin-top: .5rem;
    padding: .7rem 2.2rem;
    background: #8d3a06;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

#songRequest .song-request-submit:hover:not(:disabled) {
    background: #a84e18;
}

#songRequest .song-request-submit:disabled {
    background: #c9b7a8;
    cursor: not-allowed;
}

.apps {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.apps a img {
    width: auto;
    height: 2.9rem;
}

.apps a {
    transition: .2s;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none;
    text-decoration: none;
    text-align: center;
}

.apps a:hover {
    opacity: 0.6;
}

.apps a:first-child:hover img {
    transform: rotateZ(5deg);
    transition: .2s;
}
.apps a:last-child:hover img {
    transform: rotateZ(-5deg);
    transition: .2s;
}

.apps a:active {
    opacity: 0.8;
}

.apps a p {
    margin-top: 1rem;
    font-family: 'Dela Gothic One', sans-serif;
    color: #8d3a06;
}

.apps a p {
    text-align: center !important;
}

@media (min-width: 992px) {
    .apps a {
        margin: 0 4rem;
    }

    .apps {
        justify-content: center;
    }

    .apps a img {
        width: auto;
        height: 3.5rem;
    }
}
#thirdPartyLogos {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

#thirdPartyLogos:last-child {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#thirdPartyLogos h1 {
    color: #8d3a06;  /*#8d3a06;*/
    text-align: center;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 1.5rem;
    padding-top: 1rem;
    margin-top: 2rem;
}

#thirdPartyLogos img {
    margin: 1rem 3rem;
    max-width: 12rem;
}

#thirdPartyLogos img:last-child {
    max-width: 6rem;
}

#thirdPartyLogos a:hover {
    cursor: pointer;
    opacity: 0.6;
}

#thirdPartyLogos a > img {
    max-width: 10rem !important;
}
#bottomMenu {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .5rem;
    width: 100%;
}

#bottomMenu a {
    margin: 1rem 3rem;
    font-size: 1rem;
    padding: .5rem;
    color: white;
    text-shadow: none;
}

#bottomMenu a:hover {
    text-decoration: none;
    color: #1E324D;
}
/* Privacy Policy */
.privacy {
    font-family: 'Open Sans', sans-serif;
    margin: 2rem auto 0 auto;
    padding: 2rem;
    text-align: justify;
    flex-grow: 1;
    max-width: 800px;
}

.privacy h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
}

.privacy h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    padding: 1rem 0;
}

.privacy h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    padding: .5rem 0;
    color: #444;
}


.privacy p {
    font-family: 'Open Sans', sans-serif;
    color: #555;
}

.privacy p b {
    color: #444;
}

.privacy aside {
    width: 100%;
    padding: 2rem;
}

.privacy aside p {
    text-align: center !important;
}
/* Terms of Use */
.terms {
    padding: 2rem;
    margin: 2rem auto;
    flex-grow: 1;
    max-width: 800px;
    text-align: center;
}

.terms h2 {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
}

.terms p {
    font-family: 'Open Sans', sans-serif;
    text-align: justify;
    color: #555;
}

.terms p b {
    color: #444;
}

.terms section {
    margin: 0;
}

.terms aside p {
    padding: 2rem;
    text-align: center;
}
#player {
    background-color: whitesmoke;
    max-width: 32rem;
    align-items: center;
    display: flex;
    flex-direction: row;
    margin: .5rem auto 1rem auto;
    border: 2px solid #20314c;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}

#player h2 {
    color: #20314c;
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 1.4rem;
    word-wrap: break-word;
    max-width: 17rem;
    text-align: left;
}

#player h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #8d3a06;
}

@media only screen and (max-width: 500px) {
    #player {
        margin: 0 auto 3rem auto;
        flex-direction: column;
    }

    #player h2 {
        text-align: center;
    }
}

#player section {
    margin: 1rem;
}

#player section:first-child {
    vertical-align: baseline;
    align-items: center;
    display: flex;
    flex-direction: row;
    position: relative;
}

#player section:first-child>div {
    padding: 3.4rem;
    border: 0.1rem solid #333;
    border-radius: 0.5rem;
}

#player section:first-child div>.cover, #player section:first-child .cover>img {
    margin: 0 auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 1px;
}

#player .placeholder, #player section:first-child .cover>img {
    color: #333;
    background-color: #333;
}

@media only screen and (max-width: 500px) {
    #player section {
        text-align: center;
        margin: 1rem 0 0 0;
    }

    #player section:first-child>div {
        padding: 5.5rem;
    }
}

#player section>div {
    vertical-align: baseline;
    align-items: center;
    display: flex;
    flex-direction: row;
}

#player span {
    margin: .25rem;
    font-family: 'Chivo Mono', sans-serif;
}

#player .bar {
    min-width: 10rem;
}

#player .hidden {
    display: none;
}

#player button {
    width: 4rem;
    height: 4rem;
    position: relative;
    border: none;
    color: white;
    background: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 0 auto;
    cursor: pointer;
}

#player button:disabled {
    cursor: wait;
    opacity: 0.9;
}

#player button:active, #player button:focus, #player button:hover {
    outline: none;
}

#player button .circle, #player button img {
    width: 4rem;
    height: 4rem;
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

#player button .circle {
    background-color: #20314c88;
    border-radius: 50%;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
}

#player button img {
    opacity: 0.8;
    padding: 0.15rem;
}

#player .play {
    opacity: 1;
    transition: 0.5s;
}

#player .stop {
    opacity: 0.7;
    transition: 1s;
}

#player .stop:hover, #player .stop:active {
    opacity: 1;
    transition: 1s;
}

#player .play:hover .circle {
    background-color: #20314c;
}

#player .play:active .circle {
    background-color: #20314c;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.19);
}

#player .stop:hover .circle {
    background-color: #8d3a06;
}

#player .stop:active .circle {
    background-color: #8d3a06;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.19);
}

/* Live badge */
#player .live-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

#player .live-badge .live-dot {
    margin-top: .35rem;
    width: 0.65rem;
    height: 0.65rem;
    background-color: #e53e3e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-live 1.5s ease-in-out infinite;
}

#player .live-badge span:last-child {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 0.9rem;
    color: #e53e3e;
    letter-spacing: 0.15rem;
    font-weight: bold;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Shared public article pages (Dock Talk Stories, Next Boat Journey, ...).
   Brand voice: League Spartan display + Montserrat body,
   navy #20314c / sand #FBBB5B / rust #8d3a06, warm paper surfaces.
   Selectors are generic technical names (#stories, .story-*), not tied to any
   one collection — both public pages render this CSS, never simultaneously. */

#stories, #latestStories {
    max-width: 95%;
    text-align: center;
    padding-top: clamp(1rem, 2.5vw, 2rem);
}

#stories h1, #latestStories h1 {
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3rem);
    letter-spacing: -.1rem;
    text-shadow: -1px -1px 0 #FBBB5B,
    1px -1px 0 #FBBB5B,
    -1px 1px 0 #FBBB5B,
    1px 1px 0 #FBBB5B;
}

#stories .stories-intro {
    display: block;
    width: fit-content;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: .95rem;
    color: #20314c;
    background: rgba(250, 247, 242, .88);
    border-radius: 999px;
    padding: .4rem 1.1rem;
    margin: 0 auto 2rem;
}

#stories .stories-empty {
    display: block;
    width: fit-content;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-style: italic;
    color: #20314c;
    background: rgba(250, 247, 242, .88);
    border-radius: 999px;
    padding: .5rem 1.2rem;
    margin: 0 auto;
}

/* --- cards ------------------------------------------------------------- */

#root .stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    width: min(920px, 100%);
    margin: 0 auto 1.5rem;
}

/* single-story grid: don't stretch one card across the full row */
#root .stories-grid > .story-card:only-child {
    max-width: 420px;
}

#root .story-card {
    display: flex;
    flex-direction: column;
    background: #faf7f2;
    border: 2px solid #20314c;
    border-radius: .75rem;
    box-shadow: 0 3px 10px rgba(15, 26, 46, .18);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    text-align: left;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease-out;
}

#root .story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 26, 46, .28);
    text-decoration: none;
    color: inherit;
}

#root .story-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 2px solid #F7C475;
}

#root .story-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

#root .story-card:hover .story-card-media img {
    transform: scale(1.045);
}

#root .story-card-body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1.1rem 1.3rem 1.3rem;
    font-family: "Montserrat", sans-serif;
}

#root .story-card-body time {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8d3a06;
}

#root .story-card-body h2 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.35rem;
    line-height: 1.12;
    color: #20314c;
    margin: 0;
    text-align: left;
}

#root .story-card-body p {
    text-align: left;
    font-size: .92rem;
    line-height: 1.55;
    color: #46536a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#root .story-read-more {
    margin-top: .35rem;
    font-size: .85rem;
    font-weight: 700;
    color: #8d3a06;
}

/* featured (newest) story: wide horizontal card above the grid */
#root .story-card.featured {
    width: min(920px, 100%);
    margin: 0 auto 1.5rem;
}

@media (min-width: 720px) {
    #root .story-card.featured {
        display: grid;
        grid-template-columns: 11fr 9fr;
    }

    #root .story-card.featured .story-card-media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 300px;
        border-bottom: none;
        border-right: 2px solid #F7C475;
    }

    #root .story-card.featured .story-card-body {
        justify-content: center;
        padding: 2rem 2.2rem;
    }

    #root .story-card.featured h2 {
        font-size: 1.9rem;
    }

    #root .story-card.featured p {
        -webkit-line-clamp: 4;
    }
}

#root .stories-back {
    display: inline-block;
    font-family: "Montserrat", sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: #8d3a06;
    margin-bottom: 1rem;
}

/* --- article ----------------------------------------------------------- */

#root .story-article {
    width: min(760px, 100%);
    margin: clamp(1.25rem, 3vw, 2.25rem) auto 0;
    padding: clamp(1.4rem, 4.5vw, 3rem);
    background: #faf7f2;
    border: 2px solid #20314c;
    border-radius: .75rem;
    box-shadow: 0 3px 10px rgba(15, 26, 46, .18);
    text-align: left;
    font-family: "Montserrat", sans-serif;
    color: #2b3850;
}

#root .story-article .story-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

#root .story-article h1 {
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    line-height: 1.06;
    letter-spacing: -.05rem;
    color: #20314c;
    text-shadow: none;
    margin: .25rem 0 .75rem;
}

#root .story-article .story-meta {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: .9rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8d3a06;
}

#root .story-article .story-sponsors,
#root #stories > .story-sponsors {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .9rem;
    margin: 0 0 1.5rem;
}

#root .story-article .story-sponsors-label,
#root #stories > .story-sponsors .story-sponsors-label {
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(32, 49, 76, .55);
}

#root .story-article .story-sponsors img,
#root #stories > .story-sponsors img {
    height: 2.75rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
}

#root .story-article .story-hero {
    margin: 0 0 1.75rem;
    text-align: center;
}

#root .story-article .story-hero img {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 30rem;
    border-radius: .5rem;
    border: 2px solid #F7C475;
}

/* readable measure for everything textual */
#root .story-article .story-body {
    max-width: 66ch;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
}

#root .story-article .story-lead {
    text-align: left;
    font-size: 1.28rem;
    line-height: 1.5;
    font-weight: 600;
    color: #20314c;
    margin-bottom: 1.1rem;
}

#root .story-article .story-lead::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: #FBBB5B;
    margin-top: 1.1rem;
}

#root .story-article .story-body p {
    text-align: left;
    margin: 0 0 1.15em;
}

#root .story-article .story-body a {
    color: #8d3a06;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #F7C475;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color .15s ease-out;
}

#root .story-article .story-body a:hover {
    color: #6d2c04;
    text-decoration-color: #8d3a06;
}

#root .story-article .story-body h2 {
    clear: both;
    font-family: 'League Spartan', sans-serif;
    font-size: 1.55rem;
    line-height: 1.15;
    color: #20314c;
    text-align: left;
    margin: 2.1rem 0 .8rem;
}

/* images inside the story */
#root .story-article figure {
    margin: 1.6rem 0;
    text-align: center;
}

#root .story-article figure img {
    max-width: 100%;
    border-radius: .5rem;
    border: 2px solid #F7C475;
}

#root .story-article figure.img-full {
    clear: both;
}

#root .story-article figure.img-medium {
    width: min(72%, 440px);
    margin-left: auto;
    margin-right: auto;
}

#root .story-article figure.img-small {
    float: right;
    width: min(44%, 300px);
    margin: .35rem 0 1rem 1.5rem;
}

#root .story-article figcaption {
    font-size: .78rem;
    line-height: 1.45;
    color: #6d7890;
    margin-top: .45rem;
}

#root .story-article figure.img-small figcaption {
    text-align: left;
}

/* inline audio player */
#root .story-article figure.story-audio {
    clear: both;
    margin: 1.6rem 0;
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
    border: 2px solid #F7C475;
    border-radius: .5rem;
    text-align: left;
}

#root .story-article figure.story-audio figcaption {
    font-size: .95rem;
    font-weight: 600;
    color: #20314c;
    margin: 0 0 .6rem;
    text-align: left;
}

#root .story-article figure.story-audio audio {
    width: 100%;
    display: block;
}

/* pull-quote */
#root .story-article .story-body blockquote {
    clear: both;
    margin: 2.2rem auto;
    padding: 0;
    max-width: 88%;
    text-align: center;
    border: none;
}

#root .story-article .story-body blockquote::before {
    content: '\201C';
    display: block;
    font-family: 'League Spartan', sans-serif;
    font-size: 3.2rem;
    line-height: .6;
    color: #FBBB5B;
    margin-bottom: .4rem;
}

#root .story-article .story-body blockquote p {
    text-align: center;
    font-size: 1.32rem;
    line-height: 1.45;
    font-weight: 600;
    font-style: italic;
    color: #20314c;
    margin: 0;
}

@media (max-width: 600px) {
    #root .story-article figure.img-small,
    #root .story-article figure.img-medium {
        float: none;
        width: 100%;
        margin: 1.4rem 0;
    }

    #root .story-article .story-body {
        font-size: 1rem;
    }
}

#marketingSignup {
    width: 100%;
    max-width: 34rem;
    margin: 1.5rem auto 0;
    padding: 0 0.75rem;
}

#marketingSignup .card {
    background: rgba(245, 245, 245, 0.96);
    border: 2px solid #20314c;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 10px 0 rgba(0, 0, 0, 0.19);
    padding: 1rem;
}

#marketingSignup .headline {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    text-align: center;
    margin: 0 0 0.5rem;
}

#marketingSignup .finePrint {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    text-align: center;
    margin: 0 0 0.9rem;
    opacity: 0.85;
}

#marketingSignup .finePrint a {
    color: #20314c;
    text-decoration: underline;
}

#marketingSignup .formRow {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#marketingSignup input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #20314caa;
    border-radius: 0.25rem;
    font-size: 1rem;
}

#marketingSignup input.error {
    border: 1px solid #8d3a06;
}

#marketingSignup input.success {
    border: 1px solid #0F5E0F;
}

#marketingSignup button {
    width: 10rem;
    text-align: center;
    font-size: 1.05rem;
    font-family: "League Spartan", sans-serif;
    letter-spacing: -0.03rem;
    padding: 0.55rem 0.75rem;
    background-color: #8d3a06;
    color: white;
    border: 1px solid #20314c55;
    border-radius: 0.25rem;
    box-shadow: 1px 1px 5px #20314c55;
    text-transform: uppercase;
}

#marketingSignup button:hover {
    background-color: #F7C475;
    color: #1E324D;
}

#marketingSignup button:hover.disabled {
    background-color: #8d3a06;
    color: white;
}

#marketingSignup button.success {
    background-color: #0F5E0F;
    color: white;
}

#marketingSignup .disabled {
    filter: grayscale(100%);
}

#marketingSignup .status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

#marketingSignup .status img {
    width: 40px;
    height: 40px;
    padding: 0.4rem;
    border-radius: 50%;
    background-color: #8d3a06;
}

#marketingSignup .statusText {
    font-family: "League Spartan", sans-serif;
    font-size: 1.05rem;
}

@media (max-width: 500px) {
    #marketingSignup .formRow {
        flex-direction: column;
        align-items: stretch;
    }

    #marketingSignup button {
        width: 100%;
    }
}

#calendar-page {
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem) .5rem 2rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #2b3850;
}

#calendar-page h1 {
    font-family: 'League Spartan', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3rem);
    letter-spacing: -.1rem;
    text-shadow: -1px -1px 0 #FBBB5B, 1px -1px 0 #FBBB5B, -1px 1px 0 #FBBB5B, 1px 1px 0 #FBBB5B;
    margin: 0 0 .5rem;
}

.calendar-intro {
    display: block;
    width: fit-content;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: .95rem;
    color: #20314c;
    background: rgba(250, 247, 242, .88);
    border-radius: 999px;
    padding: .4rem 1.1rem;
    margin: 0 auto 2rem;
}

.calendar-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.calendar-filter button {
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    padding: .4rem .9rem;
    border-radius: 999px;
    border: 1.5px solid #20314c;
    background: #fff;
    color: #20314c;
    cursor: pointer;
}

.calendar-filter button.active {
    background: #20314c;
    color: #fff;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: .78rem;
    color: rgba(32, 49, 76, .75);
}

.calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.calendar-legend-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    display: inline-block;
}

.calendar-legend-dot.category-our {
    background: #20314c;
}

.calendar-legend-dot.category-sponsor {
    background: #8d3a06;
}

.calendar-legend-dot.category-marina {
    background: #1c7a4a;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.calendar-nav h2 {
    font-family: 'League Spartan', sans-serif;
    font-size: 1.5rem;
    color: #20314c;
    margin: 0;
    min-width: 11rem;
}

.calendar-nav button {
    font-size: 1.4rem;
    line-height: 1;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1.5px solid #20314c;
    background: #fff;
    color: #20314c;
    cursor: pointer;
}

.calendar-nav button:hover {
    background: #F7C475;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .35rem;
    background: #faf7f2;
    border: 2px solid #20314c;
    border-radius: .75rem;
    padding: .75rem;
    box-shadow: 0 3px 10px rgba(15, 26, 46, .18);
}

.calendar-weekday {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8d3a06;
    padding-bottom: .35rem;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    min-height: 4.5rem;
    padding: .35rem;
    background: #fff;
    border: 1px solid #e4ddd0;
    border-radius: .4rem;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.calendar-day:hover {
    border-color: #F7C475;
}

.calendar-day.outside {
    background: #f5f2ec;
    color: #b4ac9c;
}

.calendar-day.today .calendar-day-number {
    background: #8d3a06;
    color: #fff;
    border-radius: 50%;
}

.calendar-day.selected {
    border-color: #20314c;
    border-width: 2px;
}

.calendar-day-number {
    font-size: .8rem;
    font-weight: 700;
    width: 1.4rem;
    height: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

/* Flat, non-buttony label — the day cell itself is the click target,
   so these pills deliberately don't look like independent controls
   (no pill shape, no solid fill, no hover state). */
.calendar-event-pill {
    font-size: .65rem;
    padding: 0 0 0 .35rem;
    border-left: 2px solid;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.calendar-event-pill.category-our {
    border-color: #20314c;
    color: #20314c;
}

.calendar-event-pill.category-sponsor {
    border-color: #8d3a06;
    color: #8d3a06;
}

.calendar-event-pill.category-marina {
    border-color: #1c7a4a;
    color: #1c7a4a;
}

.calendar-more {
    font-size: .62rem;
    color: #8d3a06;
    font-weight: 600;
}

.calendar-agenda {
    margin-top: 1.5rem;
    text-align: left;
}

.calendar-agenda h3 {
    font-family: 'League Spartan', sans-serif;
    color: #20314c;
    font-size: 1.2rem;
    margin: 0 0 .75rem;
}

.calendar-agenda-empty {
    color: rgba(32, 49, 76, .6);
    font-style: italic;
}

.calendar-agenda-card {
    display: block;
    background: #fff;
    border: 1.5px solid #e4ddd0;
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin-bottom: .6rem;
    text-decoration: none;
    color: inherit;
}

.calendar-agenda-card:hover {
    border-color: #F7C475;
}

.calendar-agenda-card h4 {
    margin: .3rem 0 .2rem;
    color: #20314c;
    font-size: 1.05rem;
}

.calendar-agenda-meta {
    margin: 0;
    font-size: .82rem;
    color: rgba(32, 49, 76, .65);
}

.calendar-category-tag {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .15rem .5rem;
    border-radius: 999px;
    color: #fff;
}

.calendar-category-tag.category-our {
    background: #20314c;
}

.calendar-category-tag.category-sponsor {
    background: #8d3a06;
}

.calendar-category-tag.category-marina {
    background: #1c7a4a;
}

@media (max-width: 600px) {
    .calendar-grid {
        gap: .2rem;
        padding: .5rem;
    }

    .calendar-day {
        min-height: 3.4rem;
        padding: .2rem;
        gap: .15rem;
    }

    .calendar-event-pill {
        font-size: 0;
        padding: 0;
        width: .4rem;
        height: .4rem;
        border-radius: 50%;
        display: inline-block;
        margin-right: .15rem;
    }

    .calendar-day-events {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .calendar-more {
        font-size: 0;
    }

    .calendar-weekday {
        font-size: .6rem;
    }
}

.error-404 {
    font-family: Oswald, sans-serif;
    margin: 0 auto;
    width: 100%;
    min-height: 100%;
    max-width: 50rem;
    padding: 2rem;
}

.error-404 section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
}
.error-404 div {
    padding: 2rem;
}

.error-404 h1 {
    padding: 1rem 0;
    font-size: 6rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0;
}

.error-404 h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #005E80;
}

@media all and (max-width: 500px) {

    /* CSS rules here for screens lower than 350px */
    .error-404 h1 {
        font-size: 4rem;
    }

    .error-404 h2 {
        font-size: 1.5rem;
    }

    .error-404 section {
        flex-direction: column-reverse;
    }
}

.error-404 p {
    font-family: Merriweather, sans-serif;
    color: #666;
    text-align: center;
    padding: 0.5rem;
    max-width: 20rem;
    margin: 0 auto;
    font-size: 0.8rem;
}

.error-404 img {
    border-radius: 1rem;
    max-width: 300px;
    max-height: 300px;
    min-width: 200px;
    margin-top: 2rem;
}

.error-404 a {
    color: #005E80;
}
#bottomNav {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    border-top: 2px solid #20314c;
    box-shadow: 0 -8px 8px -5px #20314caa;
    background-color: #20314c;
    font-family: "Montserrat", sans-serif;
    color: #F7C475;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100vw;
}

#bottomNav img {
    height: 4em;
    margin: .5rem 1em;
}
#bottomNav h4 {
    color: #F7C475;
}
#bottomNav h5 {
    margin-top: auto;
    margin-bottom: auto;
    font-size: 1rem;
    color: #F7C475;
}
#bottomNav a {
    display: flex;
    flex-direction: row;
    margin: 0;
    font-size: 1.25rem;
    text-shadow: -1px -1px 0 #F7C475,
    1px -1px 0 #F7C475,
    -1px 1px 0 #F7C475,
    1px 1px 0 #F7C475;
}




#copyrights {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#copyrights span {
    margin: 0 .25rem;
}

#copyrights a {
    margin-bottom: 4px;
    margin-left: 4px;
    margin-right: 4px;
    color: #8d3a06;
    padding-top: .1rem;
    font-weight: bold;
}

#copyrights a:hover {
    text-decoration: none;
    text-shadow: 0 0 4px #f0f8ff;
}

#slogan {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#slogan span {
    margin: 0 .25rem;
    color: white;
}

