/* LaughParty editorial refresh: shared tokens and content-first homepage. */
:root {
    --primary-orange: #f05b4f;
    --primary-orange-dark: #d9433b;
    --accent-blue: #2479b8;
    --accent-blue-dark: #16598a;
    --heritage-gold: #ffca45;
    --warm-cream: #fff9f0;
    --gray-900: #14213d;
    --gray-800: #233452;
    --gray-700: #40516b;
    --gray-600: #58677c;
    --gray-500: #718097;
    --box-shadow: 0 8px 26px rgba(20, 33, 61, .08);
}

body { color: var(--gray-900); }
.container { max-width: 1440px; padding-inline: clamp(18px, 4vw, 58px); }
.site-header { background: #fffdf9; border-bottom: 1px solid #e9e3d9; box-shadow: none; }
.site-header .header-content { min-height: 76px; gap: 24px; }
.site-header .logo a { gap: 11px; }
.site-header .logo img {
    display: block; width: 60px; height: 60px; flex-shrink: 0;
    object-fit: contain; border: 0; border-radius: 50%;
}
.site-header .logo .site-name {
    font-size: clamp(27px, 2.4vw, 34px); letter-spacing: -.055em;
    line-height: 1; white-space: nowrap; color: #14213d;
    background: none; -webkit-text-fill-color: currentColor;
}
.site-header .site-name-party { color: #e34940; }
.site-header .main-nav > ul { gap: clamp(0px, 1vw, 12px); }
.site-header .main-nav a { color: #14213d; font-size: 14px; font-weight: 600; }
.site-header .main-nav a:hover { color: #e34940; background: #fff0e9; }
.site-header .main-nav .dropdown-menu a { color: #14213d; }
.site-header .user-menu .btn { padding: 9px 16px; font-size: 13px; }
.site-header .user-menu .btn-secondary { color: #14213d; background: transparent; border: 1px solid #14213d; }
.site-header .user-menu .btn-secondary:hover { color: #fff; background: #14213d; }
.site-header .user-button { color: #14213d; background: #fff; border-color: #d8e0e8; }
.site-header .mobile-menu-toggle span { background: #14213d; }
.btn-primary { box-shadow: 3px 3px 0 #14213d; }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #14213d; }
.site-footer { background: #14213d; border-top: 5px solid #ffca45; }
.site-footer .footer-content { grid-template-columns: minmax(250px, 1.45fr) repeat(2, minmax(130px, .65fr)) minmax(240px, 1.2fr); gap: clamp(24px, 3vw, 48px); }
.site-footer .footer-section h3 { color: #ffca45; font-size: 18px; letter-spacing: -.02em; margin-bottom: 15px; }
.site-footer .footer-about h3 { color: #fffdf9; font-size: 27px; letter-spacing: -.05em; }
.site-footer .footer-section p, .site-footer .footer-section a { opacity: 1; color: #d7e0ee; }
.site-footer .footer-section a:hover, .site-footer .footer-links a:hover { color: #ffca45; }
.site-footer .social-links a { background: #293d5e; color: #fff; }
.site-footer .newsletter-form { flex-wrap: wrap; }
.site-footer .newsletter-form input { min-width: 150px; min-height: 42px; }
.site-footer .newsletter-form button { white-space: nowrap; }
.site-footer .footer-bottom { border-top-color: #40516b; }

@media (max-width: 1050px) {
    .site-footer .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
    .site-footer .footer-content { grid-template-columns: 1fr; gap: 26px; }
    .site-footer .footer-bottom { align-items: start; flex-direction: column; gap: 12px; }
    .site-footer .footer-links { flex-wrap: wrap; }
}

/* The daily story and joke are the first content after navigation. */
.home-redesign .homepage-spotlight { padding: 30px 0 0; }
.home-redesign .today-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin-bottom: 18px;
}
.home-redesign .today-heading-title { display: flex; align-items: baseline; gap: 20px; min-width: 0; }
.home-redesign .today-heading h1 {
    font-family: 'Outfit', sans-serif; font-size: clamp(30px, 3.5vw, 52px);
    letter-spacing: -.055em; line-height: 1.1; color: #14213d; white-space: nowrap;
}
.home-redesign .today-heading h1 span { color: #f05b4f; }
.home-redesign .today-heading p { color: #546681; font-size: 15px; border-left: 1px solid #aab7c6; padding-left: 20px; }
.home-redesign .today-heading > a { font-weight: 800; color: #e34940; white-space: nowrap; }
.home-redesign .today-heading > a:hover { text-decoration: underline; }
.home-redesign .spotlight-grid { grid-template-columns: minmax(0, 1.8fr) minmax(325px, 1fr); gap: 18px; }
.home-redesign .spotlight-article-card {
    border: 1px solid #14213d; border-radius: 12px; background: #fffdf9;
    box-shadow: 4px 4px 0 rgba(20, 33, 61, .12);
}
.home-redesign .spotlight-article-card .article-image {
    height: clamp(259px, 27vw, 383px) !important; max-height: none !important;
    margin: 10px 10px 0; width: calc(100% - 20px); border-radius: 8px;
    background: #e3f2f9; border: none;
}
.home-redesign .spotlight-article-card .article-image img { object-fit: cover; }
.home-redesign .spotlight-article-card .article-image-fallback img { object-fit: contain; background: #fff9f0; }
.home-redesign .spotlight-article-card .article-body { padding: 16px 24px 21px; }
.home-redesign .spotlight-article-card .article-label { color: #2479b8; font-size: 12px; letter-spacing: .08em; }
.home-redesign .spotlight-article-card .article-title { font-family: 'Outfit', sans-serif; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.035em; }
.home-redesign .spotlight-article-card .article-excerpt { font-size: 15px; color: #52617a; -webkit-line-clamp: 2; margin-bottom: 10px; }
.home-redesign .spotlight-article-card .article-excerpt.joke-setup-text {
    display: block; flex: 0 0 auto; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.5;
    padding: 0; margin-bottom: 22px; overflow: visible; -webkit-line-clamp: unset;
}
.home-redesign .spotlight-article-card .article-footer { border-top: 0; padding-top: 4px; }
.home-redesign .spotlight-article-card .article-readmore { color: #e34940; font-size: 15px; font-weight: 800; }

/* Reactions start beside the submitter, with Read More immediately below the name. */
.home-redesign .jotd-card {
    border: 1px solid #14213d; border-radius: 12px; background: #ffca45;
    box-shadow: 4px 4px 0 rgba(20, 33, 61, .12); overflow: hidden;
}
.home-redesign .jotd-card::before { display: none; }
.home-redesign .jotd-reaction {
    display: block; grid-column: 2; grid-row: 1 / span 3; justify-self: end; align-self: start;
    width: min(280px, 100%); aspect-ratio: 1;
    pointer-events: none;
}
.home-redesign .jotd-reaction img { width: 100%; height: 100%; object-fit: contain; vertical-align: top; }
.home-redesign .jotd-reaction img[data-mirrored="true"] { transform: scaleX(-1); }
.home-redesign .jotd-card-inner { padding: 25px 26px 8px; position: relative; z-index: 1; }
.home-redesign .jotd-header { align-items: flex-start; margin-bottom: 18px; }
.home-redesign .jotd-badge {
    font-family: 'Outfit', sans-serif; font-size: clamp(23px, 2.2vw, 34px);
    line-height: 1.05; letter-spacing: -.04em; text-transform: none; padding: 0;
    color: #14213d; background: transparent;
}
.home-redesign .jotd-badge svg { display: none; }
.home-redesign .jotd-date { color: #34425d; font-size: 12px; }
.home-redesign .jotd-title { font-family: 'Outfit', sans-serif; font-size: 22px; line-height: 1.22; color: #14213d; }
.home-redesign .jotd-setup, .home-redesign .jotd-body-text, .home-redesign .jotd-punchline {
    background: rgba(255, 253, 249, .93); color: #14213d; border: 0; border-radius: 8px;
    padding: 12px 15px; font-size: 15px; line-height: 1.45;
}
.home-redesign .jotd-punchline { font-weight: 800; color: #14213d; }
.home-redesign .jotd-body { margin-bottom: 12px; }
.home-redesign .jotd-footer {
    display: grid; grid-template-columns: max-content minmax(0, 1fr);
    grid-template-rows: min-content min-content 1fr; gap: 12px;
    border: 0; padding-top: 0; margin-right: -18px; align-items: start;
}
.home-redesign .jotd-meta {
    grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; gap: 6px;
    max-width: 140px; overflow-wrap: anywhere;
}
.home-redesign .jotd-meta, .home-redesign .jotd-author { color: #34425d; }
.home-redesign .jotd-readmore {
    grid-column: 1; grid-row: 2; width: auto; padding-inline: 16px; white-space: nowrap;
    background: #f05b4f; border-radius: 8px; box-shadow: 2px 2px 0 #14213d;
}
.home-redesign .jotd-readmore:hover { background: #d9433b; box-shadow: 3px 3px 0 #14213d; }

/* Compact category rail and varied editorial feed. */
.home-redesign .feature-cards-section { padding: 18px 0 8px; }
.home-redesign .feature-cards-grid { gap: 12px; }
.home-redesign .feature-card {
    min-height: 90px; display: grid; grid-template-columns: 64px 1fr; align-content: center;
    column-gap: 12px; text-align: left; border: 0; border-radius: 9px;
    padding: 10px 14px; box-shadow: none;
}
.home-redesign .feature-card:nth-child(1) { background: #ff8d80; }
.home-redesign .feature-card:nth-child(2) { background: #ffca45; }
.home-redesign .feature-card:nth-child(3) { background: #9ed9f5; }
.home-redesign .feature-card:nth-child(4) { background: #f2e9dc; }
.home-redesign .feature-card:hover { transform: translateY(-3px); box-shadow: 3px 4px 0 #14213d; }
.home-redesign .feature-card-icon { width: 62px; height: 62px; grid-row: 1 / span 2; margin: 0; }
.home-redesign .feature-card h3 { font-size: 21px; line-height: 1.1; align-self: end; }
.home-redesign .feature-card p { color: #233452; font-size: 12px; line-height: 1.25; align-self: start; }
.home-redesign .section { padding-block: 32px 42px; }
.home-redesign .section-title { padding: 0; font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -.04em; }
.home-redesign .section-title::before, .home-redesign .section-title::after { display: none; }
.home-redesign .feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.home-redesign .feed-heading > div { display: flex; align-items: baseline; gap: 18px; }
.home-redesign .feed-heading .section-title { margin: 0; }
.home-redesign .feed-heading p { color: #5a6880; font-size: 13px; }
.home-redesign .feed-heading > a { color: #e34940; font-weight: 800; white-space: nowrap; }
.home-redesign .content-grid { gap: 16px; }
.home-redesign .content-card { border: 1px solid #e4ddd2; border-radius: 10px; box-shadow: none; background: #fffdf9; }
.home-redesign .content-card:hover { box-shadow: 3px 4px 0 rgba(20, 33, 61, .2); transform: translateY(-2px); }
.home-redesign .content-title { font-family: 'Outfit', sans-serif; font-size: 19px; letter-spacing: -.02em; }
.home-redesign .content-type { background: #2479b8; }
.home-redesign .cta-section { background: #14213d; }
.home-redesign .cta-content { position: relative; max-width: 720px; margin-left: 0; text-align: left; }
.home-redesign .cta-content h2 { font-family: 'Outfit', sans-serif; letter-spacing: -.04em; }
.home-redesign .cta-section .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.home-redesign .cta-art { width: min(32%, 310px); border-radius: 16px; transform: rotate(3deg); box-shadow: 6px 7px 0 #f05b4f; }

@media (max-width: 1120px) {
    .site-header .header-content { flex-wrap: wrap; }
    .site-header .main-nav { order: 3; width: 100%; }
    .site-header .main-nav > ul { justify-content: center; }
    .home-redesign .today-heading-title { display: block; }
    .home-redesign .today-heading p { border: 0; padding: 0; margin-top: 5px; }
    .home-redesign .spotlight-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
    .home-redesign .feature-card { grid-template-columns: 46px 1fr; padding-inline: 8px; }
    .home-redesign .feature-card-icon { width: 46px; height: 46px; }
    .home-redesign .feature-card h3 { font-size: 17px; }
}
@media (max-width: 768px) {
    .site-header .header-content { min-height: 64px; gap: 12px; }
    .site-header .logo { order: 0; }
    .site-header .logo img { width: 48px; height: 48px; }
    .site-header .mobile-menu-toggle { order: 2; margin-left: auto; }
    .site-header .user-menu { order: 1; justify-content: flex-end; }
    .site-header .main-nav { order: 3; width: 100%; }
    .home-redesign .homepage-spotlight { padding-top: 22px; }
    .home-redesign .today-heading { align-items: flex-start; }
    .home-redesign .today-heading h1 { white-space: normal; font-size: 35px; }
    .home-redesign .today-heading p { font-size: 13px; }
    .home-redesign .today-heading > a { font-size: 12px; margin-top: 10px; }
    .home-redesign .spotlight-grid { grid-template-columns: 1fr; }
    .home-redesign .spotlight-article-card .article-image { height: 270px !important; max-height: none !important; }
    .home-redesign .jotd-reaction { width: min(240px, 100%); }
    .home-redesign .feature-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .home-redesign .cta-art { width: 28%; }
    .home-redesign .feed-heading > div { display: block; }
}
@media (max-width: 470px) {
    .site-header .mobile-menu-toggle { order: 1; }
    .site-header .user-menu { order: 2; flex-basis: 100%; }
    .home-redesign .feature-card { min-height: 76px; }
    .home-redesign .feature-card p { display: none; }
    .home-redesign .feature-card-icon { grid-row: auto; }
    .home-redesign .spotlight-article-card .article-image { height: 205px !important; }
    .home-redesign .spotlight-article-card .article-body { padding: 16px; }
    .home-redesign .cta-section .container { display: block; }
    .home-redesign .cta-art { width: 66%; margin: 28px auto 0; display: block; }
}

/* Content-first browse, search, category, and story pages. */
.editorial-page .browse-page, .editorial-page .category-page, .editorial-page .search-page {
    padding: clamp(24px, 3vw, 42px) 0 72px;
}
.editorial-page .browse-page h1, .editorial-page .category-header h1,
.editorial-page .search-page h1 {
    font-family: 'Outfit', sans-serif; color: #14213d;
    font-size: clamp(34px, 4vw, 54px); line-height: 1.05;
    letter-spacing: -.055em; margin: 0 0 8px;
}
.editorial-page .listing-heading {
    display: flex; justify-content: space-between; align-items: end; gap: 20px;
    margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid #ddd7cd;
}
.editorial-page .listing-heading p, .editorial-page .search-intro,
.editorial-page .category-description { color: #596a82; font-size: 16px; }
.editorial-page .listing-heading > span, .editorial-page .category-count {
    white-space: nowrap; color: #2479b8; font-size: 13px; font-weight: 800;
    letter-spacing: .03em;
}
.editorial-page .browse-filters, .editorial-page .category-filters {
    display: flex; align-items: end; flex-wrap: wrap; gap: 12px;
    margin: 0 0 24px; padding: 17px; background: #fffdf9;
    border: 1px solid #e5e0d8; border-radius: 10px;
}
.editorial-page .filter-group { flex: 1 1 175px; flex-direction: column; align-items: stretch; gap: 5px; }
.editorial-page .filter-group label { color: #34445f; font-size: 12px; font-weight: 800; }
.editorial-page .filter-group select {
    width: 100%; min-height: 42px; border: 1px solid #bdcad8;
    background: #fff; border-radius: 6px; padding: 8px 12px;
    color: #14213d; font: 600 13px 'Inter', sans-serif;
}
.editorial-page .browse-filters .btn, .editorial-page .category-filters .btn {
    min-height: 42px; padding: 9px 18px; font-size: 13px; white-space: nowrap;
}
.editorial-page .content-grid { gap: 17px; }
.editorial-page .content-card {
    background: #fffdf9; border: 1px solid #e4ddd2; box-shadow: none;
    border-radius: 10px; min-height: 0;
}
.editorial-page .content-card:hover { box-shadow: 3px 4px 0 rgba(20, 33, 61, .2); transform: translateY(-2px); }
.editorial-page .content-card-body { padding: 18px; }
.editorial-page .content-card .content-title { font: 800 20px/1.2 'Outfit', sans-serif; letter-spacing: -.02em; }
.editorial-page .content-card .content-excerpt { color: #5d6b80; }
.editorial-page .content-card .content-category { background: #eaf5fc; color: #16598a; border-color: #d7eaf5; }
.editorial-page .pagination { border-color: #ddd7cd; gap: 16px; }
.editorial-page .pagination .btn { padding: 9px 16px; font-size: 13px; }
.editorial-page .empty-state { background: #fffdf9; border: 1px dashed #cdd7df; box-shadow: none; }
.editorial-page .category-header { margin-bottom: 22px; border-bottom: 1px solid #ddd7cd; padding-bottom: 19px; }
.editorial-page .category-header .breadcrumbs { margin-bottom: 20px; }
.editorial-page .category-count { margin-top: 9px; }
.editorial-page .search-page { max-width: 1080px; }
.editorial-page .search-intro { margin-bottom: 23px; }
.editorial-page .search-input-wrapper {
    border-color: #bdcad8; border-radius: 9px; box-shadow: 3px 4px 0 rgba(20,33,61,.08);
}
.editorial-page .search-results-info { margin-bottom: 21px; }
.editorial-page .search-suggestions { border: 1px solid #e4ddd2; border-radius: 10px; box-shadow: none; }
.editorial-page .suggestion-tag { border-radius: 6px; background: #eaf5fc; color: #16598a; border-color: #d7eaf5; }

/* Keep the reading column, with visible navigation beside it on wide screens. */
.editorial-story .content-detail { max-width: 920px; padding: 24px 0 76px; }
.editorial-story .content-detail > .breadcrumbs { margin: 0 0 22px; }
.editorial-story .content-with-sidebars { display: block; margin-bottom: 17px; }
.editorial-story .story-side-nav { display: none; }
.editorial-story .story-quick-nav {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin: 0 0 18px;
}
.editorial-story .story-quick-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px;
    background: #fffdf9; color: #14213d; border: 1px solid #d7cfc2; border-radius: 8px;
    font-weight: 700;
}
.editorial-story .story-quick-nav .story-next { margin-left: auto; }
.editorial-story .story-quick-nav a:hover { background: #fff1b9; }
.editorial-story .content-article {
    width: 100%; max-width: none; padding: clamp(22px, 4vw, 52px);
    background: #fffdf9; border: 1px solid #e4ddd2; border-radius: 12px; box-shadow: none;
}
.editorial-story .content-article .content-title {
    font-family: 'Outfit', sans-serif; font-size: clamp(34px, 4vw, 54px);
    line-height: 1.09; letter-spacing: -.05em; margin: 0 0 17px;
}
.editorial-story .content-badges .badge { border-radius: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.editorial-story .content-meta-bar { border-bottom: 1px solid #e4e9ed; padding-bottom: 18px; }
.editorial-story .content-hero-image { margin: 0 0 30px; border-radius: 9px; }
.editorial-story .content-hero-image img { max-height: 590px; }
.editorial-story .content-body { font-size: 18px; line-height: 1.75; color: #263750; }
.editorial-story .content-text p + p { margin-top: 1em; }
.editorial-story .joke-setup { background: #fff1b9; color: #14213d; border-radius: 9px; }
.editorial-story .joke-punchline { background: #ffe9e5; color: #ba382f; border-color: #f05b4f; border-radius: 9px; }
.editorial-story .story-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 32px; }
.editorial-story .story-pager a {
    display: block; background: #fffdf9; border: 1px solid #e4ddd2; border-radius: 9px;
    padding: 17px; color: #14213d; min-width: 0;
}
.editorial-story .story-pager a:hover { box-shadow: 3px 4px 0 rgba(20,33,61,.16); }
.editorial-story .story-pager span { display: block; font: 800 11px 'Inter', sans-serif; color: #e34940; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.editorial-story .story-pager strong { display: block; font: 800 17px/1.25 'Outfit', sans-serif; }
.editorial-story .story-pager .story-next { grid-column: 2; text-align: right; }
.editorial-story :is(.story-pager, .story-side-nav, .story-quick-nav) a:focus-visible {
    outline: 3px solid #2479b8; outline-offset: 4px;
}
.editorial-story .comments-section, .editorial-story .related-section { max-width: 920px; margin-inline: auto; }
.editorial-story .stars .star {
    border: 0; background: transparent; padding: 2px; line-height: 0;
    cursor: pointer; color: #b7bcc4;
}
.editorial-story .stars .star:is(:hover, .active, .filled) { color: #ffca45; }
.editorial-story .stars .star:focus-visible { outline: 2px solid #2479b8; outline-offset: 2px; border-radius: 4px; }

@media (min-width: 1200px) {
    .editorial-story .content-detail { max-width: 1320px; }
    .editorial-story .content-with-sidebars {
        display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 920px) minmax(120px, 160px);
        gap: 20px; align-items: start;
    }
    .editorial-story .content-article { grid-column: 2; grid-row: 1; min-width: 0; }
    .editorial-story .story-quick-nav { display: none; }
    .editorial-story .story-side-nav { display: block; position: sticky; top: 110px; grid-row: 1; }
    .editorial-story .story-side-prev { grid-column: 1; }
    .editorial-story .story-side-next { grid-column: 3; }
    .editorial-story .story-side-nav a { display: block; color: #14213d; text-align: center; }
    .editorial-story .story-side-nav img {
        /* The original artwork is 128 x 640: 280px tall made it just 56px wide. */
        display: block; width: auto; height: clamp(320px, calc(100svh - 240px), 600px);
        max-width: 100%; object-fit: contain; margin: 0 auto 16px;
    }
    .editorial-story .story-side-nav span { display: block; color: #ba382f; font-size: 20px; font-weight: 800; }
    .editorial-story .story-side-nav strong {
        display: block; margin-top: 9px; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere;
    }
    .editorial-story .story-side-nav a:hover strong { text-decoration: underline; }
    .editorial-story .story-pager { max-width: 920px; margin-inline: auto; }
}

@media (max-width: 700px) {
    .editorial-page .listing-heading { align-items: start; }
    .editorial-page .listing-heading > span { margin-top: 8px; }
    .editorial-page .browse-filters, .editorial-page .category-filters { padding: 12px; }
    .editorial-page .filter-group { flex-basis: 100%; }
    .editorial-page .browse-filters .btn, .editorial-page .category-filters .btn { width: 100%; }
    .editorial-story .story-pager { grid-template-columns: 1fr; }
    .editorial-story .story-pager .story-next { grid-column: 1; }
}
