/*
Theme Name: Capra Sphere
Theme URI: https://caprasphere.com/
Author: Capra Sphere
Description: Modern editorial news theme for Capra Sphere.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: capra-sphere
*/

/* =========================================================
   ROOT
========================================================= */

:root {
    --cs-ink: #101828;
    --cs-muted: #667085;
    --cs-border: #e4e7ec;
    --cs-surface: #f8fafc;
    --cs-accent: #0b6bcb;
    --cs-accent-dark: #084f96;
    --cs-breaking: #c62828;
    --cs-white: #ffffff;
    --cs-black: #000000;
    --cs-max: 1280px;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--cs-white);
    color: var(--cs-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed !important;
    top: 10px;
    left: 10px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 12px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--cs-black);
    color: var(--cs-white);
}

/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: calc(100% - 32px);
    max-width: var(--cs-max);
    margin-right: auto;
    margin-left: auto;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--cs-white);
    border-bottom: 1px solid var(--cs-border);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
}

.site-branding {
    min-width: 0;
    flex: 1 1 auto;
}

.site-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    margin: 0;
    color: var(--cs-ink);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1.5px;
}

.site-title a:hover {
    color: var(--cs-accent);
}

.site-tagline {
    margin-top: 6px;
    color: var(--cs-muted);
    font-size: 11px;
    line-height: 1.3;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 60px;
}

/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.header-search,
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    background: var(--cs-white);
    color: var(--cs-ink);
    font-size: 13px;
    font-weight: 700;
}

.header-search:hover,
.menu-toggle:hover {
    border-color: var(--cs-accent);
    color: var(--cs-accent);
}

.menu-toggle {
    display: none;
}

/* =========================================================
   NAVIGATION
========================================================= */

.navigation-wrapper {
    border-top: 1px solid var(--cs-border);
    background: var(--cs-white);
}

.main-navigation {
    width: 100%;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

.primary-menu li {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    display: block;
    padding: 13px 15px;
    color: var(--cs-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
    color: var(--cs-accent);
    background: var(--cs-surface);
}

/* =========================================================
   BREAKING NEWS
========================================================= */

.breaking-news {
    background: var(--cs-ink);
    color: var(--cs-white);
}

.breaking-inner {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 40px;
}

.breaking-label {
    flex: 0 0 auto;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.breaking-content {
    min-width: 0;
    padding-left: 14px;
    overflow: hidden;
}

.breaking-content a {
    display: block;
    overflow: hidden;
    color: var(--cs-white);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.breaking-content a:hover {
    text-decoration: underline;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.site-main {
    width: 100%;
}

.content-area {
    padding-top: 32px;
    padding-bottom: 40px;
}

/* =========================================================
   HEADINGS
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--cs-ink);
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(30px, 5vw, 52px);
}

h2 {
    font-size: clamp(24px, 4vw, 36px);
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
}

/* =========================================================
   LINKS
========================================================= */

.entry-content a,
.page-content a {
    color: var(--cs-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.entry-content a:hover,
.page-content a:hover {
    color: var(--cs-accent-dark);
}

/* =========================================================
   WORDPRESS ALIGNMENTS
========================================================= */

.alignleft {
    float: left;
    margin: 0 24px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 24px;
}

.aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    margin-top: 8px;
    color: var(--cs-muted);
    font-size: 13px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .container {
        width: calc(100% - 28px);
    }

    .site-header-inner {
        min-height: 76px;
    }

    .primary-menu a {
        padding-right: 11px;
        padding-left: 11px;
    }

    .custom-logo {
        max-width: 200px;
        max-height: 55px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .container {
        width: calc(100% - 22px);
    }

    .site-header-inner {
        min-height: 68px;
        gap: 10px;
    }

    .site-tagline {
        display: none;
    }

    .site-title {
        font-size: 24px;
    }

    .custom-logo {
        max-width: 180px;
        max-height: 48px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-search,
    .menu-toggle {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .menu-toggle {
        display: inline-flex;
        gap: 5px;
    }

    /* Mobile navigation */

    .navigation-wrapper {
        display: none;
        border-top: 1px solid var(--cs-border);
    }

    .navigation-wrapper.cs-menu-open {
        display: block;
    }

    .main-navigation {
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }

    .primary-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
        padding: 5px 0 10px;
    }

    .primary-menu li {
        width: 100%;
    }

    .primary-menu a {
        width: 100%;
        padding: 12px 4px;
        border-bottom: 1px solid var(--cs-border);
        font-size: 14px;
    }

    /* Breaking news */

    .breaking-inner {
        min-height: 38px;
    }

    .breaking-label {
        padding-right: 9px;
        font-size: 10px;
    }

    .breaking-content {
        padding-left: 9px;
    }

    .breaking-content a {
        font-size: 12px;
    }

    /* WordPress alignments */

    .alignleft,
    .alignright {
        float: none;
        margin-right: 0;
        margin-left: 0;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 18px);
    }

    .site-header-inner {
        min-height: 62px;
    }

    .site-title {
        font-size: 21px;
    }

    .custom-logo {
        max-width: 150px;
        max-height: 42px;
    }

    .header-search {
        display: none;
    }

    .menu-toggle {
        min-width: 38px;
        padding: 8px;
    }

    .breaking-label {
        font-size: 9px;
    }

    .breaking-content a {
        font-size: 11px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    margin-top: 60px;
    background: #101828;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-top: 50px;
    padding-bottom: 50px;
}

.footer-brand {
    min-width: 0;
}

.footer-title {
    display: inline-block;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
}

.footer-tagline {
    margin: 8px 0 15px;
    color: #d0d5dd;
    font-size: 13px;
}

.footer-description {
    max-width: 360px;
    margin: 0;
    color: #98a2b3;
    font-size: 14px;
    line-height: 1.7;
}

.footer-column h3 {
    margin: 0 0 15px;
    font-size: 15px;
    font-weight: 800;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 9px;
}

.footer-column a,
.footer-column p {
    color: #98a2b3;
    font-size: 14px;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.footer-social a {
    border: 1px solid #344054;
    border-radius: 6px;
    padding: 7px 10px;
}

.footer-social a:hover {
    background: #ffffff;
    color: #101828;
}

.footer-bottom {
    border-top: 1px solid #344054;
}

.footer-bottom-inner {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #98a2b3;
    font-size: 12px;
}


/* =========================================
   FOOTER RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
    }

}


@media (max-width: 600px) {

    .site-footer {
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .footer-bottom-inner {
        min-height: auto;
        padding-top: 18px;
        padding-bottom: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

}

/* =========================================
   HERO SECTION
========================================= */

.hero-section {
    padding: 30px 0 45px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 24px;
}

.hero-main {
    min-width: 0;
}

.hero-image-link {
    display: block;
    overflow: hidden;
    background: var(--cs-surface);
}

.hero-image-link img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-surface);
    color: var(--cs-muted);
    font-weight: 800;
}

.hero-content {
    padding-top: 17px;
}

.post-category {
    margin-bottom: 8px;
}

.post-category a {
    color: var(--cs-accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.hero-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    font-weight: 900;
}

.hero-title a:hover {
    color: var(--cs-accent);
}

.hero-excerpt {
    max-width: 780px;
    margin: 13px 0 0;
    color: var(--cs-muted);
    font-size: 16px;
    line-height: 1.6;
}

.post-meta {
    margin-top: 12px;
    color: var(--cs-muted);
    font-size: 12px;
}

.hero-secondary {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 15px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--cs-border);
}

.hero-secondary-image {
    display: block;
    overflow: hidden;
    background: var(--cs-surface);
}

.hero-secondary-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hero-secondary-content {
    min-width: 0;
}

.hero-secondary h2 {
    margin: 0;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.2;
    font-weight: 850;
}

.hero-secondary h2 a:hover {
    color: var(--cs-accent);
}


/* =========================================
   HERO TABLET
========================================= */

@media (max-width: 900px) {

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        padding-bottom: 25px;
        border-bottom: 1px solid var(--cs-border);
    }

    .hero-secondary {
        grid-template-columns: 180px minmax(0, 1fr);
    }

}


/* =========================================
   HERO MOBILE
========================================= */

@media (max-width: 600px) {

    .hero-section {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .hero-grid {
        gap: 18px;
    }

    .hero-title {
        font-size: clamp(27px, 8vw, 36px);
        letter-spacing: -1px;
    }

    .hero-excerpt {
        font-size: 14px;
    }

    .hero-secondary {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .hero-secondary h2 {
        font-size: 16px;
    }

    .post-category a {
        font-size: 10px;
    }

}

/* =========================================
   HOMEPAGE SECTIONS
========================================= */

.homepage-content {
    min-width: 0;
}

.homepage-main {
    min-width: 0;
}

.latest-section {
    padding: 10px 0 45px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cs-ink);
}

.section-heading h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.5px;
}

.section-heading > a {
    color: var(--cs-accent);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 30px;
    align-items: start;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.news-card {
    min-width: 0;
    border-bottom: 1px solid var(--cs-border);
    padding-bottom: 20px;
}

.news-card-image {
    display: block;
    overflow: hidden;
    background: var(--cs-surface);
}

.news-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-surface);
    color: var(--cs-muted);
    font-weight: 800;
}

.news-card-content {
    padding-top: 12px;
}

.news-card h3 {
    margin: 0;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.25;
    font-weight: 850;
}

.news-card h3 a:hover {
    color: var(--cs-accent);
}

.news-excerpt {
    margin: 9px 0 0;
    color: var(--cs-muted);
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   MOST READ
========================================= */

.most-read {
    min-width: 0;
}

.most-read .section-heading {
    margin-bottom: 0;
}

.most-read-list {
    border-top: 0;
}

.most-read-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 0;
    border-bottom: 1px solid var(--cs-border);
}

.most-read-number {
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
    color: var(--cs-accent);
}

.most-read-item h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.most-read-item h3 a:hover {
    color: var(--cs-accent);
}

.most-read-item .post-meta {
    display: block;
    margin-top: 6px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .news-layout {
        grid-template-columns: 1fr;
    }

    .most-read {
        margin-top: 10px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .latest-section {
        padding-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 13px;
    }

    .news-card-content {
        padding-top: 0;
    }

    .news-card h3 {
        font-size: 16px;
    }

    .news-excerpt {
        display: none;
    }

    .news-card-image img,
    .news-image-placeholder {
        aspect-ratio: 4 / 3;
    }

    .most-read-item {
        grid-template-columns: 35px minmax(0, 1fr);
    }

}

/* =========================================
   CATEGORY NEWS SECTIONS
========================================= */

.category-news-section {
    padding: 10px 0 45px;
}

.category-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.category-news-card {
    min-width: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cs-border);
}

.category-news-image {
    display: block;
    overflow: hidden;
    background: var(--cs-surface);
}

.category-news-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.category-news-content {
    padding-top: 11px;
}

.category-news-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 850;
}

.category-news-card h3 a:hover {
    color: var(--cs-accent);
}

.category-news-excerpt {
    margin: 8px 0 0;
    color: var(--cs-muted);
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================
   CATEGORY TABLET
========================================= */

@media (max-width: 1000px) {

    .category-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================
   CATEGORY MOBILE
========================================= */

@media (max-width: 600px) {

    .category-news-section {
        padding-bottom: 30px;
    }

    .category-news-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .category-news-card {
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 13px;
        padding: 15px 0;
    }

    .category-news-card:first-child {
        padding-top: 0;
    }

    .category-news-content {
        padding-top: 0;
    }

    .category-news-card h3 {
        font-size: 16px;
    }

    .category-news-excerpt {
        display: none;
    }

    .category-news-image img,
    .category-news-image .news-image-placeholder {
        aspect-ratio: 4 / 3;
    }

}

/* =========================================
   VIDEO SECTION
========================================= */

.video-section {
    padding: 10px 0 45px;
}

.video-section .section-heading span {
    color: var(--cs-muted);
    font-size: 13px;
    font-weight: 600;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.video-card {
    min-width: 0;
}

.video-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--cs-surface);
}

.video-image img,
.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-muted);
    font-weight: 800;
}

.video-play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .85);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.video-content {
    padding-top: 11px;
}

.video-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 850;
}

.video-card h3 a:hover {
    color: var(--cs-accent);
}

@media (max-width: 1000px) {

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    .video-section {
        padding-bottom: 30px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}

/* =========================================
   NEWSLETTER
========================================= */

.newsletter-section {
    margin: 10px 0 20px;
    padding: 35px;
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 35px;
    align-items: center;
}

.newsletter-label {
    color: var(--cs-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .7px;
}

.newsletter-content h2 {
    margin: 7px 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 900;
}

.newsletter-content p {
    max-width: 650px;
    margin: 0;
    color: var(--cs-muted);
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    min-width: 0;
    flex: 1;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--cs-border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--cs-ink);
    font: inherit;
}

.newsletter-form button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 6px;
    padding: 13px 18px;
    background: var(--cs-ink);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.newsletter-form button:hover {
    background: var(--cs-accent);
}

@media (max-width: 800px) {

    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}

@media (max-width: 500px) {

    .newsletter-section {
        padding: 25px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

}

/* =========================================
   ACCESSIBILITY
========================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   SINGLE ARTICLE
========================================= */

.single-post-page {
    padding-top: 30px;
}

.single-article {
    min-width: 0;
}

.article-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 30px;
    color: var(--cs-muted);
    font-size: 12px;
}

.article-breadcrumb a:hover {
    color: var(--cs-accent);
}


/* ARTICLE HEADER */

.article-header {
    max-width: 1000px;
    margin-bottom: 28px;
}

.article-category {
    margin-bottom: 12px;
}

.article-category a {
    color: var(--cs-accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.article-title {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 900;
}

.article-deck {
    max-width: 850px;
    margin: 18px 0 0;
    color: var(--cs-muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 22px;
    color: var(--cs-muted);
    font-size: 12px;
}

.article-author a {
    color: var(--cs-ink);
    font-weight: 800;
}

.article-author a:hover {
    color: var(--cs-accent);
}


/* FEATURED IMAGE */

.article-featured-image {
    max-width: 1100px;
    margin: 0 0 35px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: cover;
}

.article-featured-image figcaption {
    margin-top: 8px;
    color: var(--cs-muted);
    font-size: 12px;
    line-height: 1.5;
}


/* ARTICLE LAYOUT */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
    gap: 60px;
    align-items: start;
}

.article-main-column {
    min-width: 0;
}

.article-sidebar {
    min-width: 0;
}


/* SHARE */

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    margin-bottom: 25px;
    border-top: 1px solid var(--cs-border);
    border-bottom: 1px solid var(--cs-border);
}

.article-share > span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.native-share-button {
    border: 1px solid var(--cs-border);
    border-radius: 6px;
    padding: 8px 12px;
    background: #ffffff;
    color: var(--cs-ink);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.native-share-button:hover {
    border-color: var(--cs-accent);
    color: var(--cs-accent);
}


/* ARTICLE CONTENT */

.article-content {
    font-size: 18px;
    line-height: 1.8;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content p {
    margin: 0 0 24px;
}

.article-content h2 {
    margin: 42px 0 18px;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
}

.article-content h3 {
    margin: 32px 0 15px;
    font-size: 24px;
    line-height: 1.25;
}

.article-content h4 {
    margin: 28px 0 14px;
    font-size: 20px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 35px 0;
    padding: 5px 0 5px 22px;
    border-left: 4px solid var(--cs-accent);
    font-size: 22px;
    line-height: 1.5;
    font-weight: 700;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content iframe,
.article-content video {
    max-width: 100%;
}

.article-content a {
    color: var(--cs-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* TAGS */

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid var(--cs-border);
    font-size: 13px;
}

.article-tags a {
    padding: 6px 10px;
    border: 1px solid var(--cs-border);
    border-radius: 5px;
}

.article-tags a:hover {
    border-color: var(--cs-accent);
    color: var(--cs-accent);
}


/* RELATED STORIES */

.related-stories {
    margin-top: 50px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    min-width: 0;
}

.related-image {
    display: block;
    overflow: hidden;
    background: var(--cs-surface);
}

.related-image img,
.related-image .news-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.related-card h3 {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.3;
}

.related-card h3 a:hover {
    color: var(--cs-accent);
}


/* ARTICLE SIDEBAR */

.sidebar-block {
    position: sticky;
    top: 150px;
}

.sidebar-block .section-heading h2 {
    font-size: 20px;
}

.sidebar-news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--cs-border);
}

.sidebar-news-item:first-child {
    padding-top: 0;
}

.sidebar-news-item h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.sidebar-news-item h3 a:hover {
    color: var(--cs-accent);
}

.sidebar-news-item .post-meta {
    display: block;
    margin-top: 6px;
}


/* =========================================
   SINGLE ARTICLE RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .article-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 35px;
    }

}


@media (max-width: 800px) {

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        margin-top: 20px;
    }

    .sidebar-block {
        position: static;
    }

    .article-featured-image {
        max-width: none;
    }

}


@media (max-width: 600px) {

    .single-post-page {
        padding-top: 20px;
    }

    .article-breadcrumb {
        margin-bottom: 20px;
    }

    .article-title {
        font-size: clamp(31px, 9vw, 42px);
        letter-spacing: -1.2px;
    }

    .article-deck {
        font-size: 16px;
    }

    .article-meta {
        flex-direction: column;
        gap: 5px;
    }

    .article-featured-image {
        margin-bottom: 25px;
    }

    .article-content {
        font-size: 17px;
        line-height: 1.75;
    }

    .article-content blockquote {
        margin: 28px 0;
        font-size: 19px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

}