/* =============================================================
   UMBC Single Post
   Layout, byline, sidebar (key points, subscribe), More Like
   This section, and dark mode for all of the above.

   Extracted from umbc-style.css 2026-04-29.
   ============================================================= */

/* =============================================================
   Stories masthead — single post context (no subscribe)
   ============================================================= */
.stories-masthead {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
    padding: 2rem 0 1.5rem;
}

/* Mobile: drop the masthead on single posts — the section nav
   already conveys section identity and the masthead just consumes
   vertical space above the fold. */
@media (max-width: 767px) {
    body.single-post .stories-masthead {
        display: none;
    }
}

.stories-masthead-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.stories-masthead-brand {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #252525;
    text-decoration: none;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
}

.stories-masthead-brand:hover {
    color: #007176;
}

.stories-masthead-tagline {
    font-size: 0.95rem;
    color: #888;
    font-weight: 400;
    white-space: nowrap;
    margin-left: auto;
}

[data-theme="dark"] .stories-masthead {
    border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .stories-masthead-brand {
    color: #e8e8e8;
}

[data-theme="dark"] .stories-masthead-brand:hover {
    color: #4db8bc;
}

[data-theme="dark"] .stories-masthead-tagline {
    color: #aaa;
}

/* =============================================================
   Single post layout
   ============================================================= */

/* ── Full-width header zone: pills → title → byline ── */
.single-post-header {
    margin-bottom: 2rem;
}

.single-post-title {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0.5rem 0 1.25rem;
}

/* Category pills — gold pills matching the Stories blocks (.stories-card__pill).
   NOTE: the markup is a single <ul class="single-post-cats entry-category-meta">,
   so the flex layout must target the element itself, not a descendant <ul>. */
.single-post-cats,
.entry-category-meta {
    list-style: none !important;
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.single-post-cats li,
.entry-category-meta li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* These pills win over the global teal pill style in css/umbc-nav.css
   (.entry-category-meta a, which sets color:#fff !important and
   padding:...!important). We must match its !important on color + padding,
   and re-assert flex centering — the global rule uses inline-flex/align-items
   to vertically center, so we keep that instead of inline-block. */
.single-post-cats li a,
.entry-category-meta li a {
    display: inline-flex;
    align-items: center;
    background: var(--umbc-btn-gold, #fdb515);
    color: #000 !important;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    min-height: 24px;
    padding: 0.3em 0.9em !important;
    border-radius: var(--umbc-radius-pill, 999px);
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.single-post-cats li a:hover,
.single-post-cats li a:focus,
.entry-category-meta li a:hover,
.entry-category-meta li a:focus {
    background: var(--umbc-btn-gold-hover, #e0a10e);
    color: #000 !important;
}

/* ── Two-column wrapper: sidebar left, content right ── */
.single-post-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 768px) {
    .single-post-wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }
}

/* ── Sidebar ── */
.single-post-sidebar {
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .single-post-sidebar {
        width: 260px;
        top: 1rem;
        align-self: flex-start;
    }
}

/* ── Main content column ── */
.single-post-content {
    min-width: 0;
    flex: 1;
}

/* Mobile: inset the header + body wrap so content isn't flush to the
   viewport edge. .type-post centers the article but adds no padding. */
@media (max-width: 900px) {
    .single-post-header,
    .single-post-wrap {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        box-sizing: border-box;
    }
}

/* Hero image */
.single-post-hero {
    margin: 0 0 1.5rem;
}
.single-post-hero img {
    width: 100%;
    height: auto;
    display: block;
}
.single-post-hero figcaption {
    font-size: 12px;
    color: #666;
    padding: 0.4rem 0;
}

/* Prose: article body text bumped to 17px with looser line-height for readability */
body.single-post .entry-content,
body.single-post .entry-content p,
body.single-post .entry-content li,
body.single-post .entry-content blockquote {
    font-size: var(--umbc-font-size-prose);
    line-height: var(--umbc-line-height-prose);
}

/* Hide Cover blocks embedded in article body on single posts —
   these are section-nav/pullquote blocks that belong only in hero areas */
body.single-post .entry-content > .wp-block-cover,
body.single-post .entry-content > .wp-block-group > .wp-block-cover {
    display: none !important;
}

.single-post-byline {
    margin: 0 0 0.35rem;
    font-weight: 700;
}
.single-post-date {
    margin: 0;
    color: #555;
    font-size: 14px;
}
.single-post-tags {
    font-size: 12px;
    color: #666;
    margin-top: 2rem;
}

/* Tags rendered as a semantic <ul> (WCAG 1.3.1) but kept visually inline,
   on one line with the "Tags:" label, no bullets. */
.single-post-tags__label {
    margin-right: 6px;
}

.single-post-tags__list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.single-post-tags__list li {
    margin: 0;
}

/* Share icons */
.single-post-share .a2a_kit {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.single-post-share .a2a_kit span {
    display: inline-block;
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    background-size: 28px 28px !important;
}
.single-post-share-bottom {
    margin-top: 1.5rem;
}

/* Video embeds */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Single blog posts only: smaller headings */
body.single-post .entry-content h2,
body.single-post .entry-content h2.h4,
body.single-post .entry-content h2 strong,
body.single-post .entry-content h2.wp-block-heading {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
}
body.single-post .entry-content h3,
body.single-post .entry-content h3.h4,
body.single-post .entry-content h3.wp-block-heading {
    font-size: 22px;
    line-height: 26px;
    font-weight: 700;
}
body.single-post .entry-content h4,
body.single-post .entry-content h4.wp-block-heading {
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
}

/* =============================================================
   Single post — byline row (date + share left, author card right)
   Lives inside .single-post-header, spans full article width.
   ============================================================= */
.single-post-byline-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.single-post-byline-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.single-post-author-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #e6e7e8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.single-post-author-card img,
.single-post-author-card .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
    flex-shrink: 0;
}
.single-post-author-card .single-post-byline {
    margin: 0 0 0.2rem;
    font-weight: 700;
}
.single-post-read-more-author {
    font-size: 12px;
    color: #007176;
    text-decoration: none;
}
.single-post-read-more-author:hover {
    text-decoration: underline;
}

/* =============================================================
   Single post sidebar — key points, callout, related articles
   ============================================================= */
.single-sidebar-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
    color: #222;
}
.single-sidebar-key-points {
    border: 1px solid #e6e7e8;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    font-size: 12px;
    line-height: 1.5;
}
.single-sidebar-key-points ul {
    margin: 0;
    padding-left: 1.1rem;
}
.single-sidebar-key-points li {
    margin-bottom: 0.35rem;
}
.single-sidebar-callout {
    background: #f5f5f5;
    border-left: 4px solid #007176;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 13px;
    line-height: 1.6;
}
.single-sidebar-callout-heading {
    font-weight: 700;
    margin: 0 0 0.5rem;
    font-size: 14px;
}
.single-sidebar-callout p {
    margin: 0 0 0.75rem;
}
.single-sidebar-callout-link {
    color: #007176;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}
.single-sidebar-callout-link:hover {
    text-decoration: underline;
}
/* "Mentioned in this story" group — College, Department, Programs, Faculty */
.single-sidebar-mentioned {
    margin-top: 1.5rem;
}
.single-sidebar-subheading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
    color: #222;
}

/* Faculty & Programs & Term lists — shared card */
.single-sidebar-related-media,
.single-sidebar-related-programs,
.single-sidebar-related-terms {
    border: 1px solid #e6e7e8;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 13px;
    line-height: 1.5;
}

/* College / Department term link lists */
.single-sidebar-related-terms ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.single-sidebar-related-terms li {
    margin: 0 0 0.35rem;
}
.single-sidebar-related-terms li:last-child {
    margin-bottom: 0;
}
.single-sidebar-related-terms a {
    color: #007176;
    font-weight: 600;
    text-decoration: none;
}
.single-sidebar-related-terms a:hover {
    text-decoration: underline;
}
.single-sidebar-person-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}
.single-sidebar-person-card:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.single-sidebar-person-card:first-of-type {
    padding-top: 0;
}
.single-sidebar-person-card img,
.single-sidebar-person-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.single-sidebar-person-placeholder {
    background: #e6e7e8;
}
.single-sidebar-person-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.single-sidebar-person-name {
    font-weight: 600;
    color: #007176;
    font-size: 13px;
    line-height: 1.3;
}
.single-sidebar-person-card:hover .single-sidebar-person-name {
    text-decoration: underline;
}
.single-sidebar-contact-title {
    display: block;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    margin-top: 1px;
}

/* Programs — text-only card (no image) */
.single-sidebar-program-card {
    display: block;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}
.single-sidebar-program-card:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.single-sidebar-program-card:first-of-type {
    padding-top: 0;
}
.single-sidebar-program-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #007176;
    line-height: 1.3;
}
.single-sidebar-program-card:hover .single-sidebar-program-name {
    text-decoration: underline;
}
.single-sidebar-program-type {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 1px;
    text-transform: capitalize;
}

.single-sidebar-related {
    border: 1px solid #e6e7e8;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 13px;
    line-height: 1.6;
}
.single-sidebar-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.single-sidebar-related li {
    margin-bottom: 0.5rem;
}
.single-sidebar-related a {
    color: #007176;
    text-decoration: none;
}
.single-sidebar-related a:hover {
    text-decoration: underline;
}

/* =============================================================
   Single post sidebar — subscribe widget
   ============================================================= */
.single-sidebar-subscribe {
    border: 1px solid #e6e7e8;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    background: #fafafa;
}
.single-sidebar-subscribe-heading {
    font-weight: 700;
    margin: 0 0 0.75rem;
    font-size: 13px;
}
.single-sidebar-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.single-sidebar-subscribe-form input[type="email"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}
.single-sidebar-subscribe-form button {
    background: #f0b429;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}
.single-sidebar-subscribe-form button:hover {
    background: #d9a020;
}

/* Section nav embedded in article sidebar — reset conflicting widths */
.single-post-sidebar .section-sidebar {
    width: auto !important;
    position: static !important;
    max-height: none !important;
    overflow-y: visible !important;
}

/* =============================================================
   Single post — More Like This section
   ============================================================= */
.single-more-like-this {
    margin-top: 3rem;
    border-top: 2px solid #e6e7e8;
    width: 100%;
}
.single-more-like-this-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    box-sizing: border-box;
}
.single-more-like-this-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 1.5rem;
}
.single-more-like-this-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 1024px) {
    .single-more-like-this-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .single-more-like-this-grid {
        grid-template-columns: 1fr;
    }
}
.single-more-card {
    border: 1px solid #e6e7e8;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.single-more-card-img-link {
    display: block;
    overflow: hidden;
}
.single-more-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}
.single-more-card:hover .single-more-card-img {
    transform: scale(1.03);
}
.single-more-card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.single-more-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.single-more-card-title a {
    color: #1a1a1a;
    text-decoration: none;
}
.single-more-card-title a:hover {
    color: #007176;
    text-decoration: underline;
}
.single-more-card-meta {
    font-size: 12px;
    color: #666;
    margin: 0;
}
.single-more-like-this-all {
    margin-top: 1.5rem;
    text-align: center;
}
.single-more-like-this-all a {
    font-weight: 700;
    color: #007176;
    text-decoration: none;
}
.single-more-like-this-all a:hover {
    text-decoration: underline;
}

/* =============================================================
   Single post dark mode pass
   Align blog/article surfaces with the shared charcoal palette.
   ============================================================= */
[data-theme="dark"] body.single-post .single-post-title {
    color: #fff;
}

[data-theme="dark"] body.single-post .single-post-date,
[data-theme="dark"] body.single-post .single-post-tags,
[data-theme="dark"] body.single-post .single-more-card-meta,
[data-theme="dark"] body.single-post-hero figcaption {
    color: #b0b0b0;
}

[data-theme="dark"] body.single-post .single-post-author-card,
[data-theme="dark"] body.single-post .single-sidebar-key-points,
[data-theme="dark"] body.single-post .single-sidebar-related-media,
[data-theme="dark"] body.single-post .single-sidebar-related-programs,
[data-theme="dark"] body.single-post .single-sidebar-related-terms,
[data-theme="dark"] body.single-post .single-sidebar-related,
[data-theme="dark"] body.single-post .single-sidebar-subscribe,
[data-theme="dark"] body.single-post .single-more-card {
    background-color: #1a1a1a;
    border-color: #333;
    color: #e0e0e0;
}

[data-theme="dark"] body.single-post .single-sidebar-person-card {
    border-bottom-color: #2a2a2a;
    color: #e0e0e0;
}

[data-theme="dark"] body.single-post .single-sidebar-person-placeholder {
    background: #2a2a2a;
}

[data-theme="dark"] body.single-post .single-sidebar-program-card {
    border-bottom-color: #2a2a2a;
}

[data-theme="dark"] body.single-post .single-sidebar-program-name {
    color: #b0c4c4;
}

[data-theme="dark"]
    body.single-post
    .single-sidebar-program-card:hover
    .single-sidebar-program-name {
    color: #fff;
}

[data-theme="dark"] body.single-post .single-sidebar-program-type {
    color: #888;
}

[data-theme="dark"] body.single-post .single-sidebar-callout {
    background: #242424;
    border-left-color: #fdb515;
    color: #e0e0e0;
}

[data-theme="dark"] body.single-post .single-sidebar-heading,
[data-theme="dark"] body.single-post .single-sidebar-subheading,
[data-theme="dark"] body.single-post .single-sidebar-callout-heading,
[data-theme="dark"] body.single-post .single-sidebar-subscribe-heading,
[data-theme="dark"] body.single-post .single-more-like-this-heading {
    color: #fff;
}

[data-theme="dark"] body.single-post .single-sidebar-related-terms a {
    color: #b0c4c4;
}
[data-theme="dark"] body.single-post .single-sidebar-related-terms a:hover {
    color: #fff;
    text-decoration: underline;
}

[data-theme="dark"] body.single-post .single-post-byline a,
[data-theme="dark"] body.single-post .single-post-read-more-author,
[data-theme="dark"] body.single-post .single-sidebar-related a,
[data-theme="dark"] body.single-post .single-sidebar-person-name,
[data-theme="dark"] body.single-post .single-more-like-this-all a,
[data-theme="dark"] body.single-post .entry-content a {
    color: #b0c4c4;
}

[data-theme="dark"] body.single-post .single-post-byline a:hover,
[data-theme="dark"] body.single-post .single-post-read-more-author:hover,
[data-theme="dark"] body.single-post .single-sidebar-related a:hover,
[data-theme="dark"]
    body.single-post
    .single-sidebar-person-card:hover
    .single-sidebar-person-name,
[data-theme="dark"] body.single-post .single-more-like-this-all a:hover,
[data-theme="dark"] body.single-post .entry-content a:hover {
    color: #fff;
    text-decoration: underline;
}

[data-theme="dark"] body.single-post .single-sidebar-contact-title {
    color: #888;
}

[data-theme="dark"] body.single-post .single-sidebar-callout-link {
    color: #fdb515;
}

[data-theme="dark"] body.single-post .single-sidebar-callout-link:hover {
    color: #ffd36a;
    text-decoration: underline;
}

[data-theme="dark"]
    body.single-post
    .single-sidebar-subscribe-form
    input[type="email"] {
    background-color: #242424;
    border-color: #444;
    color: #fff;
}

[data-theme="dark"]
    body.single-post
    .single-sidebar-subscribe-form
    input[type="email"]::placeholder {
    color: #a0a0a0;
}

[data-theme="dark"] body.single-post .single-sidebar-subscribe-form button {
    background: #fdb515;
    color: #1a1a1a;
}

[data-theme="dark"]
    body.single-post
    .single-sidebar-subscribe-form
    button:hover {
    background: #e6a510;
    color: #1a1a1a;
}

[data-theme="dark"] body.single-post .single-more-like-this {
    border-top-color: #333;
}

[data-theme="dark"] body.single-post .single-more-card-body {
    background-color: #1a1a1a;
}

[data-theme="dark"] body.single-post .single-more-card-title a,
[data-theme="dark"] body.single-post .single-more-card-title a:visited {
    color: #e0e0e0;
    text-decoration: underline;
    text-decoration-color: #fdb515;
    text-underline-offset: 0.15em;
}

[data-theme="dark"] body.single-post .single-more-card-title a:hover {
    color: #fff;
    text-decoration-color: #ffd36a;
}
