/* Nabbd editorial issue pages */
.nbm-issue{max-width:1180px;margin:2rem auto;padding:1rem;direction:rtl;color:#182638}
.nbm-issue-head{text-align:center;border-bottom:4px solid #b32935;margin-bottom:1.5rem}
.nbm-issue-head h1{font-size:clamp(1.7rem,3vw,2.6rem);margin:.4rem 0 1rem}
.nbm-issue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;align-items:start}
.nbm-story{border-top:2px solid #bd2731;padding:.7rem;background:#fff;min-width:0}
.nbm-story a{text-decoration:none;color:inherit}.nbm-story h2{font-size:1.35rem;line-height:1.45;margin:.7rem 0}
.nbm-story p{line-height:1.75;margin:.5rem 0;overflow-wrap:anywhere}
.nbm-pos-lead{grid-column:1/-1}.nbm-pos-wide{grid-column:span 2}
.nbm-story img{display:block;max-width:100%;height:auto;object-fit:contain}
@media(max-width:750px){.nbm-issue-grid{grid-template-columns:1fr}.nbm-pos-lead,.nbm-pos-wide{grid-column:auto}}

/* v0.2: issue pagination and newsroom */
.nbm-issue .nbm-page{margin:0 0 2.5rem;padding:1rem 0;border-bottom:3px solid #b32935}
.nbm-page-head{display:flex;justify-content:space-between;gap:1rem;border-bottom:2px solid #1d2e42;padding:.5rem 0;margin-bottom:1rem;font-weight:800}
.nbm-issue .nbm-image-column img{max-width:70%;margin-inline:auto}
.nbm-issue .nbm-image-wide img{width:100%;height:auto}
.nbm-admin table th,.nbm-admin table td{text-align:right;vertical-align:middle}
.nbm-admin .widefat{margin-top:1rem}
@media(max-width:760px){.nbm-admin .widefat{display:block;overflow-x:auto}}

/* v0.3 newspaper layouts */
.nbm-template-cover .nbm-page-head{border-bottom:4px solid #b32935;font-size:1.2rem}
.nbm-template-cover .nbm-pos-lead h2{font-size:clamp(1.8rem,3.2vw,3rem);color:#a91f2d}
.nbm-template-interview .nbm-story{border-top-color:#bf8e30}
.nbm-template-opinion .nbm-story{border-top-color:#193c60}
.nbm-template-gallery .nbm-issue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.nbm-template-gallery .nbm-story img{width:100%}
.nbm-template-gallery .nbm-story p{font-size:.95rem}
.nbm-visual .nbm-editor-page{margin:1.5rem 0;padding:1rem;background:#fff;border-right:4px solid #b32935}
.nbm-visual .nbm-editor-page h2{margin:0 0 .8rem}
.nbm-visual .nbm-thumb{width:90px;height:65px;object-fit:contain;vertical-align:middle;margin-left:12px}
.nbm-visual td{min-width:140px}
@media(max-width:750px){.nbm-template-gallery .nbm-issue-grid{grid-template-columns:1fr}}

/* NABBD_ISSUE_FULL_WIDTH_START */
/* Issue preview: full-width newspaper layout */

body.single-nabbd_issue .nabbd-main {
    width: calc(100% - 48px);
    max-width: 1800px;
    margin-inline: auto;
}

body.single-nabbd_issue .nabbd-v4-columns {
    display: block;
    width: 100%;
}

body.single-nabbd_issue .nabbd-v4-author-rail,
body.single-nabbd_issue .nabbd-v4-related {
    display: none;
}

body.single-nabbd_issue .nabbd-v4-reading,
body.single-nabbd_issue .nabbd-v4-body,
body.single-nabbd_issue .nbm-issue {
    width: 100%;
    max-width: none;
    min-width: 0;
}

body.single-nabbd_issue .nbm-story img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    body.single-nabbd_issue .nabbd-main {
        width: calc(100% - 24px);
    }
}

/* NABBD_ISSUE_FULL_WIDTH_END */

/* NABBD_PAGE_2_TYPOGRAPHY_START */

/* Second page only */
body.single-nabbd_issue .nbm-page:nth-of-type(2) .nbm-story h2 {
    font-size: 32px;
    line-height: 1.35;
    margin: 10px 0 14px;
    letter-spacing: normal;
    word-spacing: normal;
}

body.single-nabbd_issue .nbm-page:nth-of-type(2) .nbm-story p {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 12px;
    letter-spacing: normal;
    word-spacing: normal;
    text-align: right;
}

body.single-nabbd_issue .nbm-page:nth-of-type(2) .nbm-issue-grid {
    gap: 14px;
}

@media (max-width: 768px) {
    body.single-nabbd_issue .nbm-page:nth-of-type(2) .nbm-story h2 {
        font-size: 26px;
    }

    body.single-nabbd_issue .nbm-page:nth-of-type(2) .nbm-story p {
        font-size: 18px;
        line-height: 1.65;
    }
}

/* NABBD_PAGE_2_TYPOGRAPHY_END */
