/*
Theme Name: Nabbd News
Theme URI: https://nabbd.cloud
Author: Nabbd Editorial
Description: Arabic RTL newspaper theme for جريدة نبض.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: nabbd-news
*/
:root{--nabbd-red:#b51e2a;--nabbd-ink:#171717;--nabbd-bg:#f7f7f7;--nabbd-border:#e5e5e5}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;direction:rtl;text-align:right;background:var(--nabbd-bg);color:var(--nabbd-ink);font-family:Tahoma,Arial,sans-serif;line-height:1.8}
a{color:inherit;text-decoration:none}
a:hover{color:var(--nabbd-red)}
img{max-width:100%;height:auto}
.container{width:min(1200px,calc(100% - 32px));margin-inline:auto}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.screen-reader-text:focus{position:fixed;top:12px;right:12px;z-index:999;width:auto;height:auto;padding:10px;background:#fff;clip:auto}

/* Issue 001 cover — isolated styles */
.nb-cover-main{max-width:1200px;padding-block:18px 48px}
.nb-cover-ribbon{display:flex;justify-content:space-between;gap:12px;background:#101010;color:white;padding:8px 16px;font-weight:800}
.nb-cover-ribbon span:first-child{background:#f65b14;padding:1px 14px}
.nb-cover-lead{text-align:center;padding-top:20px}
.nb-cover-eyebrow{font-size:clamp(17px,2.5vw,28px);font-weight:800;color:#171717}
.nb-cover-lead h1{font-size:clamp(28px,4.8vw,52px);font-weight:900;line-height:1.24;color:#c92026;margin:5px auto 22px;max-width:1100px}
.nb-cover-features{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;text-align:right;align-items:stretch}
.nb-cover-card{background:#fff;border:1px solid #e5e5e5;overflow:hidden;min-width:0}
.nb-cover-picture{display:block;position:relative;background:#f1f1f1;overflow:hidden}
.nb-cover-features .nb-cover-picture{height:clamp(280px,42vw,520px)}
.nb-cover-picture>img{display:block;width:100%;height:100%;object-fit:cover}
.nb-cover-photo-pair{display:grid;grid-template-columns:1fr 1fr;height:100%;width:100%}
.nb-cover-photo-pair img{width:100%;height:100%;object-fit:cover;min-width:0}
.nb-cover-photo-empty{display:grid;place-items:center;min-height:160px;color:#aaa;font-size:28px;font-weight:800}
.nb-cover-card-text{padding:13px 16px}
.nb-cover-card-text h2{font-size:clamp(19px,2.3vw,29px);line-height:1.36;margin:0;font-weight:800}
.nb-cover-card-text p{margin:4px 0 0;font-size:14px;color:#666}
.nb-cover-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px;text-align:right}
.nb-cover-secondary .nb-cover-picture{display:none}
.nb-cover-secondary .nb-cover-card{border-top:4px solid #e9551a}
.nb-cover-secondary .nb-cover-card-text h2{font-size:19px}
.nb-cover-section{margin-top:28px}
.nb-cover-section-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #b91e25;margin-bottom:10px}
.nb-cover-section-heading h2{font-size:23px;margin:0 0 6px}
.nb-cover-section-heading a{color:#b91e25;font-weight:700}
.nb-cover-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.nb-cover-list article{background:#fff;border:1px solid #e5e5e5;padding:12px 14px}
.nb-cover-list h3{font-size:18px;line-height:1.4;margin:0}
/* Global article readability: compact lines and paragraph rhythm */
body.single-post .entry-content,body.single-post .post-content,body.single-post .article-content,body.single-post .nabbd-article-body,body.single-post article .content{line-height:1.62!important}
body.single-post .entry-content p,body.single-post .post-content p,body.single-post .article-content p,body.single-post .nabbd-article-body p,body.single-post article .content p{line-height:1.62!important;margin-block:0 0.85em!important}
body.single-post .entry-content h2,body.single-post .entry-content h3,body.single-post .post-content h2,body.single-post .post-content h3{line-height:1.35!important;margin-block:1.1em .4em!important}
@media(max-width:700px){.nb-cover-features{grid-template-columns:1fr 1fr;gap:9px}.nb-cover-features .nb-cover-picture{height:240px}.nb-cover-card-text{padding:9px}.nb-cover-card-text h2{font-size:18px}.nb-cover-secondary,.nb-cover-list{grid-template-columns:1fr 1fr}.nb-cover-secondary .nb-cover-card-text h2{font-size:16px}.nb-cover-ribbon{font-size:12px}}
@media(max-width:440px){.nb-cover-features .nb-cover-picture{height:190px}.nb-cover-features .nb-cover-card-text h2{font-size:16px}.nb-cover-secondary,.nb-cover-list{grid-template-columns:1fr}.nb-cover-main{padding-top:8px}}


/* ORIGINAL_COVER_20261109 */
.nb-original-full-cover{margin:18px auto 0;max-width:945px;width:100%;background:#fff}
.nb-original-full-cover img{display:block;width:100%;height:auto;object-fit:contain}
.nb-original-cover-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:14px auto 24px}
.nb-original-cover-links a{padding:10px 14px;background:#fff;border:1px solid #ddd;border-bottom:3px solid #b51e2a;font-weight:700}
body.single-post .nabbd-v4-body{font-size:clamp(17px,1.6vw,19px);line-height:1.72}
body.single-post .nabbd-v4-body p{line-height:1.72;margin:0 0 .85em}
@media(max-width:600px){.nb-original-cover-links{display:grid;grid-template-columns:1fr;gap:8px}}

/* NABBD_HOME_FULL_WIDTH_START */
/* Expand homepage layout only */

body.home .container,
body.home .nabbd-main {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1800px;
    margin-inline: auto;
}

body.home img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    body.home .container,
    body.home .nabbd-main {
        width: calc(100% - 20px);
    }
}

/* NABBD_HOME_FULL_WIDTH_END */

/* NABBD_INTERVIEW_FORMATTED_V1 */

.nabbd-interview-formatted {
    direction: rtl;
    text-align: right;
    font-size: 20px;
    line-height: 1.65;
    letter-spacing: normal;
    word-spacing: normal;
    max-width: 100%;
}

.nabbd-interview-formatted p {
    font-size: 20px;
    line-height: 1.65;
    margin: 0 0 14px;
    white-space: normal;
}

.nabbd-interview-formatted h2 {
    font-size: 32px;
    line-height: 1.4;
    margin: 22px 0 14px;
}

.nabbd-interview-formatted h3 {
    font-size: 27px;
    line-height: 1.45;
    margin: 20px 0 12px;
}

.nabbd-interview-formatted h4 {
    font-size: 23px;
    line-height: 1.5;
    margin: 18px 0 10px;
}

.nabbd-interview-formatted blockquote {
    font-size: 23px;
    line-height: 1.6;
    margin: 16px 0;
    padding: 12px 18px;
    border-right: 4px solid #b32935;
    background: #f8f5f2;
}

@media (max-width: 768px) {
    .nabbd-interview-formatted,
    .nabbd-interview-formatted p {
        font-size: 18px;
        line-height: 1.65;
    }

    .nabbd-interview-formatted h2 {
        font-size: 26px;
    }

    .nabbd-interview-formatted h3 {
        font-size: 23px;
    }
}

/* END NABBD_INTERVIEW_FORMATTED_V1 */

/* NABBD_INTERVIEW_FONT_V2 */

/* Article 51 - interview typography */
body.postid-51 .nabbd-interview-formatted,
body.postid-51 .nabbd-interview-formatted p {
    font-size: 22px;
    line-height: 1.6;
}

body.postid-51 .nabbd-interview-formatted h2 {
    font-size: 34px;
    line-height: 1.35;
}

body.postid-51 .nabbd-interview-formatted h3 {
    font-size: 29px;
    line-height: 1.4;
}

body.postid-51 .nabbd-interview-formatted h4 {
    font-size: 25px;
    line-height: 1.4;
}

body.postid-51 .nabbd-interview-formatted blockquote {
    font-size: 25px;
    line-height: 1.55;
}

@media (max-width: 768px) {
    body.postid-51 .nabbd-interview-formatted,
    body.postid-51 .nabbd-interview-formatted p {
        font-size: 19px;
        line-height: 1.65;
    }

    body.postid-51 .nabbd-interview-formatted h2 {
        font-size: 28px;
    }

    body.postid-51 .nabbd-interview-formatted h3 {
        font-size: 25px;
    }

    body.postid-51 .nabbd-interview-formatted h4 {
        font-size: 22px;
    }
}

/* END NABBD_INTERVIEW_FONT_V2 */
