@import url('partials/_separators.css');

/* Custom Properties for Headings */
:root {
    --mmp-h1-size: 2rem; /* Default size for H1 */
    --mmp-h2-size: 1.5rem; /* Default size for H2 */
}

/* Responsive Font Sizes */
@media (min-width: 992px) {
    :root {
        --mmp-h1-size: 2.5rem; /* 40px equivalent */
        --mmp-h2-size: 2rem; /* 32px equivalent */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --mmp-h1-size: 2.25rem; /* 36px equivalent */
        --mmp-h2-size: 1.75rem; /* 28px equivalent */
    }
}

@media (max-width: 767px) {
    :root {
        --mmp-h1-size: 2rem; /* 32px equivalent */
        --mmp-h2-size: 1.5rem; /* 24px equivalent */
    }
}

/* General Article Styles */
.mmp-stories article,
.mmp-stories .story {
    overflow: hidden;
    padding: 0;
    margin-bottom: 20px;
    clear: both;
}

.mmp-stories article > header {
    margin-bottom: 20px;
}

/* Header Styles for Archive List */
.mmp-stories article > header > h1 {
    font-size: var(--mmp-h1-size);
    line-height: 1.2;
    margin: 0.5em 0;
}

.mmp-stories article > header h1 + h2 {
    font-size: var(--mmp-h2-size);
    line-height: 1.2;
    margin: 0.5em 0;
}

/* Header Styles for Full Page View */
.mmp-stories article.full > header > h1 {
    font-size: var(--mmp-h1-size);
    line-height: 1.2;
    margin: 0.5em 0;
}

.mmp-stories article.full > header h1 + h2 {
    font-size: var(--mmp-h2-size);
    line-height: 1.2;
    margin: 0.5em 0;
}

/* Attribution Styles */
.mmp-stories article > header .attribution {
    margin: 20px 0;
}

.mmp-stories article > header > .attribution .posted-by,
.mmp-stories article > header > .attribution .edited-by {
    font-weight: 400;
    padding-bottom: 15px;
}

.mmp-stories article > header > .attribution .posted-by strong,
.mmp-stories article > header > .attribution .edited-by strong {
    font-weight: 800;
}

.mmp-stories article > header > .attribution .edited-by {
    font-style: italic;
    color: var(--pewter);
    display: block;
    font-size: 0.9em;
}

.mmp-stories article > header > .attribution .posted-on {
    color: var(--pewter);
    display: block;
    font-size: 0.9em;
}

/* Image Styles */
.mmp-stories article img {
    padding: 10px;
    width: 150px;
    height: auto;
}

.mmp-stories article > img.left {
    float: left;
    margin-right: 10px;
}

.mmp-stories article > img.right {
    float: right;
    margin-left: 10px;
}

/* Full Page Image Styles */
.mmp-stories article.full img {
    padding: 0;
    margin: 20px auto;
    width: 100%;
    height: auto;
}

.mmp-stories article.full figure {
    padding: 0;
    margin: 0;
    width: 100%;
    height: auto;
}

.mmp-stories article.full figure img {
    padding: 0;
    width: 100%;
    height: auto;
}

.mmp-stories article.full figure figcaption {
    padding: 4px 20px 1px 20px;
    margin: 0 0 20px 0;
    font-size: 0.8em;
    line-height: 1.6em;;
}

/* Description Styles */
.mmp-stories .description {
    display: none;
}

/* Image Float Styles */
.mmp-stories .image {
    width: 150px;
    margin: 10px;
}

.mmp-stories .image.left {
    float: left;
}

.mmp-stories .image.right {
    float: right;
}

/* Date and Byline Styles */
.mmp-stories .date,
.mmp-stories .byline {
    font-size: 0.9em;
    color: var(--charcoal);
}

/* Full Article Styles */
.mmp-stories .full {
    margin: 0;
    padding: 0;
}

.mmp-stories .image-full {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.mmp-stories .description-full {
    font-size: 1.1em;
    line-height: 1.6em;
}

.mmp-stories .description {
    clear: both;
    overflow: auto;
}

/* Read More Link Styles */
.mmp-stories .read-more-link,
.mmp-stories .read-more {
    display: block;
    clear: both;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.5s ease;
}

/* Back to List Styles */
.mmp-stories .back-to-list {
    display: block;
    clear: both;
    margin-top: 20px;
    padding: 10px;
    background-color: var(--silver);
    color: var(--mmp-blue);
    text-align: center;
    text-decoration: none;
    transition: all 0.5s ease;
}

.mmp-stories .back-to-list:hover {
    background-color: var(--mmp-red);
    color: white;
}

/* Permalink Styles */
.mmp-stories .permalink {
    font-size: 0.8em;
    margin-top: 0;
    text-transform: uppercase;
    font-style: italic;
    color: var(--smoke);
}

.mmp-stories .permalink a {
    text-transform: none;
    color: var(--silver);
}

/* Share Link Styles */
.mmp-stories .share {
    font-size: 0.8em;
    margin-top: 10px;
    text-transform: uppercase;
    display: inline-block;
    color: inherit;
}

.mmp-stories .share .share-link {
    font-size: 1.4em;
    padding: 5px;
    margin-left: 5px;
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.mmp-stories .share .share-link:hover {
    color: var(--slate);
    text-decoration: none;
}

.mmp-stories .share .share-link i {
    display: inline-block;
    width: auto;
    height: auto;
}

/* Accessibility Styles */
.a11y-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
