/* =========================================================
   FOX POST SYSTEM
   Base editorial layout
========================================================== */

.fox-single {
    width: 100%;
    max-width: 780px;
    margin-left: 0;
    margin-right: auto;
    padding-top: 11px;
    padding-bottom: 5rem;
}
/* =========================================================
   HERO
========================================================== */

.fox-post-hero {
    margin-bottom: 4rem;
}

.fox-post-title {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.005em;
    text-transform: none;
}

.fox-post-subtitle {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: clamp(2.4rem, 6vw, 2.4rem);
    line-height: 2.5rem;
    font-weight: 400;
    color: var(--fox-pink, var(--fox-accent));
}


/* Ensure hero widths override longform defaults from typography.css */
/*.fox-single .fox-post-hero .fox-post-title { max-width: 11ch; }
.fox-single .fox-post-hero .fox-post-subtitle { max-width: 34rem; }*/

.fox-post-kicker {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fox-pink, var(--fox-accent));
}

/* =========================================================
   IMAGES
========================================================== */

.fox-section-image {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius:  var(--fox-radius);
}

.fox-section-image img,
.fox-post-video video {
    display: block;
    width: 100%;
    height: auto;
}

.fox-section-image.fox-post-method-image {
    margin-bottom: 3rem;
    
}

.fox-section-image.fox-post-dialogue-image {
    max-width: 150px;
}

/* =========================================================
   SECTIONS
========================================================== */

.fox-section {
    margin-bottom: 4rem;
}

.fox-section-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 0.95;
    color: var(--fox-pink, var(--fox-accent));
}

.fox-section.fox-post-dialogue, .fox-section.fox-post-meta {
    border-top: 1px solid var(--fox-accent);
    padding-top: 5rem;
    margin-top: 6rem;
}

/* =========================================================
   CONTENT TYPOGRAPHY
========================================================== */
.fox-section-content.fox-post-intro-content p{
    font-weight: 600;
}

.fox-section-content {
    font-size: 1.1rem;
    line-height: 1.65rem;
    text-align: justify;
    hyphens: auto;
    word-break: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--fox-text);
}

.fox-section-content p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-kerning: normal;
    letter-spacing: 0.003em;
}

.fox-section-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.7rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.fox-section-content h3::before,
.fox-section-content h3::after {
    content: "";
    display: block;
    width: 110px;
}

.fox-section-content h3::before {
padding-bottom: 5px;
border-top: solid 1px var(--fox-accent);
}

.fox-section-content h3::after {
padding: 4px 0 5px;
border-bottom: solid 1px var(--fox-accent);
}

.fox-section-content ol {
    padding-left: 1.6rem;
}

/* =========================================================
   Lists
========================================================== */

.fox-section-content ul
{
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.fox-section-content ul li {
    margin-bottom: 0.4rem;
    padding-left: 2.9rem;
}

.fox-section-content ul li::before {
    top: 0.25em;
}

.fox-section-content blockquote {
    margin: 2rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--fox-pink, var(--fox-accent));
}

/* =========================================================
   DIALOGUE COLORS
========================================================== */

.fox-section-content .fox {
    color: #ff9a3d;
}

.fox-section-content .lisa {
    color: #31d7ff;
}

/* =========================================================
   META LAYER
========================================================== */

.fox-post-meta {
    padding-top: 1rem;
}

.fox-post-meta-content {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.fox-post-meta-item {
    line-height: 1.3rem;
    font-size: 0.85rem;
}

.fox-post-meta-item.fox-post-meta-topic {
    margin-bottom: 1rem;
}

/* =========================================================
   FOX & LISA DIALOGE
 ========================================================== */

.fox-dialog:first-child {
    margin-top: 3.5rem;
}

.fox-dialog {
    position: relative;
    margin-bottom: 2.6rem;
    border-radius: 0 0 0 4px;
    padding-top: 8px;
    padding-left: 12px;
    padding-bottom: 1px;
}

.fox-dialog::before {
    position: absolute;
    top: -1rem;
    left: -0.25rem;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    min-width: 50px;
    padding: 3px 3px 3px 18px;
    border-radius: 2px 2px 2px 0;
    letter-spacing: 1px;
}

.fox-dialog p {
margin-bottom: 0;
margin-top: 1rem;
}

/* FOX */

.fox-dialog-fox {
    border-left: 4px solid #e36b00;
}

.fox-dialog-fox::before {
    content: "FOX";
    background-color: #e36b00;
}

/* LISA */

.fox-dialog-lisa {
    border-left: 4px solid #229cb9;
}

.fox-dialog-lisa::before {
    content: "LISA";
    background-color: #229cb9;
}

/* =========================================================
   DOWNLOADS
========================================================== */

.fox-post-downloads {
    margin-top: 4rem;
}

.fox-download-button {
    padding: 0.8rem 1.4rem;
}

.fox-download-button,
.fox-button-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s ease;
    font-size: 1rem;
    line-height: 1rem;
}

.fox-button-back {
    width: 100%;
    padding: 0.6rem 1.4rem;
}

.fox-button-back::before {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.55rem;
    background-image: url(../img/arrow-left-wht.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.fox-download-button:hover,
.fox-button-back:hover {
    background: rgba(255,255,255,0.16);
    border: none;
    border-radius: 999px;
}

.fox-download-button,
.fox-button-back,
.fox-download-button:hover,
.fox-button-back:hover {
    color: #ffffff;
}

/* =========================================================
   TAGS
========================================================== */

.fox-post-tags {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--fox-accent);
    line-height: 1.2rem;
    margin-top: 5rem;
}


/* =========================================================
   FOOTER ACTIONS
========================================================== */

.fox-post-actions-footer {
    margin-top: 4rem;
    padding-top: 2rem;
}

/* =========================================================
   MOBILE
========================================================== */

@media (max-width: 980px) {

    .fox-single {
        margin-left: auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .fox-post-title {
        font-size: clamp(2.4rem, 12vw, 4.2rem);
    }
    
    .fox-post-subtitle {
        font-size: clamp(1.1rem, 6vw, 2.6rem);
        line-height: 1.05;
    }
    
    .fox-section-title {
        font-size: 2rem;
    }
    
    .fox-section-content {
        text-align: left;
    }

}
