/*
Theme Name: SiteCreater NewsCulture
Description: NewsCulture-style news layout with a navy masthead, pink accents, a full-width lead and three-column cards.
Version: 1.1.2
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sitecreater-newsculture
*/

/* Scope page chrome so article blocks and plugins keep their semantics. */
.nc-newsroom {
    --nc-ink: #1a1a2e;
    --nc-nav: #16213e;
    --nc-accent: #e94560;
    --accent: #e94560;
    --line: #e0e0e0;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
    overflow-wrap: anywhere;
}
.nc-newsroom *, .nc-newsroom *::before, .nc-newsroom *::after { box-sizing: border-box; }
.nc-newsroom h1, .nc-newsroom h2, .nc-newsroom h3, .nc-newsroom p { margin: 0; }
.nc-newsroom a { color: inherit; text-decoration: none; }
.nc-newsroom img { max-width: 100%; height: auto; }
.nc-newsroom button, .nc-newsroom input, .nc-newsroom textarea { font: inherit; }
.nc-newsroom a:focus-visible, .nc-newsroom button:focus-visible, .nc-newsroom input:focus-visible { outline: 3px solid var(--nc-accent); outline-offset: 3px; }
.nc-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
#content:focus { outline: none; }
.nc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    color: #fff;
    background: var(--nc-ink);
    box-shadow: 0 2px 10px rgb(0 0 0 / 30%);
}
.admin-bar .nc-header { top: 32px; }
.nc-header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.nc-newsroom .nc-brand { min-width: 0; font: inherit; line-height: inherit; }
.nc-newsroom .nc-logo { font-size: 28px; font-weight: 800; letter-spacing: -1px; color: #fff; }
.nc-logo .nc-brand-logo { display: block; width: auto; height: auto; max-height: 45px; max-width: min(260px, 55vw); object-fit: contain; }
.nc-header-date { flex-shrink: 0; font-size: 13px; color: #aaa; }
.nc-nav { background: var(--nc-nav); }
.nc-nav ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.nc-nav li { min-width: 0; max-width: 100%; margin: 0; padding: 0; }
.nc-nav li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #ccc;
    transition: background .2s, color .2s;
}
.nc-nav li a:hover, .nc-nav li a.active { color: #fff; background: var(--nc-accent); }
.nc-menu-toggle { display: none; border: 0; padding: 10px; font-size: 24px; line-height: 1; background: none; color: #fff; cursor: pointer; }
.nc-hero-article { position: relative; height: 400px; margin-bottom: 30px; overflow: hidden; border-radius: 12px; background: #222; }
.nc-hero-article > a { display: block; height: 100%; color: #fff; }
.nc-hero-article img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.nc-hero-overlay { position: absolute; inset: auto 0 0; padding: 30px; background: linear-gradient(transparent, rgb(0 0 0 / 85%)); color: #fff; }
.nc-section-badge, .nc-card-section, .nc-article-section-badge { display: inline-block; max-width: 100%; padding: 4px 12px; margin-bottom: 10px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--nc-accent); }
.nc-hero-overlay h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.3; }
.nc-hero-overlay .nc-date { font-size: 13px; color: #ccc; }
.nc-newsroom .nc-section-title { margin: 0 0 20px; padding: 0 0 10px; border-bottom: 3px solid var(--nc-accent); font-size: 22px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--nc-ink); }
.nc-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 25px; margin-bottom: 40px; }
.nc-news-card { min-width: 0; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 8%); transition: transform .2s, box-shadow .2s; }
.nc-news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgb(0 0 0 / 12%); }
.nc-card-image { height: 180px; overflow: hidden; }
.nc-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nc-news-card:hover .nc-card-image img { transform: scale(1.05); }
.nc-card-body { padding: 18px; }
.nc-card-section { padding: 3px 10px; border-radius: 3px; font-size: 11px; }
.nc-newsroom .nc-card-title { display: -webkit-box; overflow: hidden; margin: 0 0 8px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--nc-ink); }
.nc-newsroom .nc-card-summary { display: -webkit-box; overflow: hidden; margin: 0 0 10px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.5; color: #666; }
.nc-card-date { font-size: 12px; color: #999; }
.nc-article-page { max-width: 800px; margin: 0 auto; }
.nc-article-header { margin-bottom: 25px; }
.nc-breadcrumb { margin-bottom: 15px; font-size: 13px; color: #888; overflow-wrap: anywhere; }
.nc-breadcrumb a { color: var(--nc-accent); }
.nc-article-section-badge { padding: 4px 14px; margin-bottom: 12px; }
.nc-newsroom .nc-article-page h1 { margin: 0 0 10px; font-size: 32px; font-weight: 800; line-height: 1.3; color: var(--nc-ink); }
.nc-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; font-size: 14px; color: #888; }
.nc-newsroom .nc-article-author-link { font-weight: 600; color: var(--nc-accent); }
.nc-article-author-link:hover { text-decoration: underline; }
.nc-article-image { display: block; width: 100%; max-height: 450px; margin-bottom: 25px; border-radius: 10px; object-fit: cover; }
.nc-article-body { font-size: 17px; line-height: 1.8; color: #444; overflow-wrap: anywhere; }
.nc-newsroom .nc-article-body p { margin-bottom: 18px; }
.nc-article-body h2, .nc-article-body h3, .nc-article-body h4 { margin: 25px 0 12px; color: var(--nc-ink); }
.nc-article-body h2 { font-size: 26px; }
.nc-article-body h3 { font-size: 22px; }
.nc-article-body a { color: var(--nc-accent); text-decoration: underline; }
.nc-article-body ul, .nc-article-body ol { padding-inline-start: 24px; margin: 0 0 18px; }
.nc-article-body blockquote { border-inline-start: 4px solid var(--nc-accent); padding-inline-start: 20px; margin: 25px 0; color: #666; }
.nc-article-body iframe, .nc-article-body video { max-width: 100%; }
.nc-article-body pre { max-width: 100%; overflow: auto; padding: 15px; background: #fff; }
.nc-article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.nc-article-body td, .nc-article-body th { border: 1px solid #ddd; padding: 8px; }
.nc-section-header { margin-bottom: 30px; }
.nc-newsroom .nc-section-header h1 { padding-bottom: 10px; border-bottom: 3px solid var(--nc-accent); font-size: 30px; font-weight: 800; text-transform: uppercase; color: var(--nc-ink); }
.nc-archive-description { margin-top: 15px; color: #666; }
.nc-author-box, .nc-newsroom .sc-editorial-author { display: flex; align-items: flex-start; gap: 20px; margin: 35px 0 0; padding: 25px; border: 1px solid #e0e0e0; border-inline-start: 4px solid var(--nc-accent); border-radius: 8px; background: #fff; }
.nc-newsroom .sc-editorial-author { display: block; }
.nc-author-avatar { display: flex; flex: 0 0 65px; align-items: center; justify-content: center; width: 65px; height: 65px; border-radius: 50%; font-size: 22px; font-weight: 800; background: linear-gradient(135deg, var(--nc-accent), var(--nc-ink)); color: #fff !important; }
.nc-newsroom .nc-author-name { display: block; margin-bottom: 3px; font-size: 18px; font-weight: 700; color: var(--nc-ink); }
.nc-author-role { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--nc-accent); }
.nc-author-bio { font-size: 14px; line-height: 1.6; color: #666; }
.nc-related-articles { margin-top: 40px; padding-top: 10px; }
.nc-content-page { max-width: 700px; margin: 0 auto; padding: 40px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 8%); }
.nc-newsroom .nc-content-page > h1 { margin-bottom: 20px; font-size: 28px; font-weight: 800; color: var(--nc-ink); }
.nc-contact-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #333; }
.nc-contact-form input:not([type=hidden]), .nc-contact-form textarea { width: 100%; margin-bottom: 18px; border: 1px solid #ddd; border-radius: 6px; padding: 12px; font-size: 15px; background: #fff; }
.nc-contact-form textarea { height: 150px; resize: vertical; }
.nc-contact-form button { padding: 12px 30px; border: 0; border-radius: 6px; font-size: 15px; font-weight: 700; color: #fff; background: var(--nc-accent); cursor: pointer; transition: background .2s; }
.nc-contact-form button:hover { background: #d63451; }
.nc-contact-trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nc-newsroom .nc-contact-notice { margin: 0 0 20px; padding: 12px; border-inline-start: 3px solid var(--nc-accent); background: #f4f4f4; }
.nc-author-page { max-width: 900px; margin: 0 auto; }
.nc-author-profile { display: flex; align-items: flex-start; gap: 30px; margin-bottom: 40px; padding: 35px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 8%); }
.nc-author-profile .nc-author-avatar { width: 100px; height: 100px; flex-basis: 100px; font-size: 36px; }
.nc-newsroom .nc-author-info h1 { margin-bottom: 5px; font-size: 28px; font-weight: 800; color: var(--nc-ink); }
.nc-author-profile .nc-author-role { display: inline-block; padding: 4px 14px; margin-bottom: 15px; border-radius: 4px; background: var(--nc-accent); color: #fff; }
.nc-author-profile .nc-author-bio { font-size: 16px; line-height: 1.7; color: #555; }
.nc-footer { padding: 30px 0; margin-top: 40px; background: var(--nc-ink); color: #aaa; }
.nc-footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.nc-newsroom .nc-footer-logo { font-size: 20px; font-weight: 800; color: #fff; }
.nc-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.nc-footer-links a { font-size: 14px; color: #aaa; transition: color .2s; }
.nc-footer-links a:hover { color: var(--nc-accent); }
.nc-footer-bottom { margin-top: 20px; padding-top: 20px; border-top: 1px solid #2a2a4e; font-size: 13px; text-align: center; }
/* All managed links are already rendered in the single footer above. */
.nc-footer > .sc-editorial-footer { display: none; }
.nc-error-page { padding: 80px 20px; text-align: center; }
.nc-newsroom .nc-error-page h1 { margin-bottom: 10px; font-size: 80px; color: var(--nc-accent); }
.nc-newsroom .nc-error-page p { margin-bottom: 20px; font-size: 18px; color: #666; }
.nc-error-page > a { font-weight: 600; color: var(--nc-accent); }
.nc-empty { padding: 50px 0 70px; color: #666; }
.nc-newsroom .nc-empty p { margin-bottom: 20px; }
.nc-newsroom .search-form { margin: 20px 0; }
.nc-newsroom .search-field, .nc-newsroom .post-password-form input[type=password] { max-width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 10px 12px; background: #fff; }
.nc-newsroom .search-submit, .nc-newsroom .post-password-form input[type=submit] { border: 0; border-radius: 6px; padding: 10px 18px; background: var(--nc-accent); color: #fff; cursor: pointer; }
.nc-newsroom .pagination { padding: 0 0 20px; text-align: center; }
.nc-newsroom .pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.nc-newsroom .page-numbers { display: inline-block; border-radius: 4px; padding: 6px 12px; background: #fff; color: var(--nc-ink); }
.nc-newsroom .page-numbers.current { background: var(--nc-accent); color: #fff; }
.nc-skip-link { position: absolute; top: -100px; inset-inline-start: 15px; z-index: 1100; padding: 8px 15px; background: #fff; color: var(--nc-ink); }
.nc-skip-link:focus { top: 8px; }
.nc-newsroom .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 782px) { .admin-bar .nc-header { top: 46px; } }
@media (max-width: 768px) {
    .nc-menu-toggle { display: block; }
    .nc-logo { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .nc-nav ul { flex-direction: column; flex-wrap: nowrap; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain; }
    .nc-nav ul.nc-menu-ready { display: none; }
    .nc-nav ul.nc-menu-ready.active { display: flex; }
    .nc-nav li a { padding: 10px 15px; border-bottom: 1px solid rgb(255 255 255 / 5%); }
    .nc-hero-article { height: 280px; }
    .nc-hero-overlay h2 { font-size: 20px; }
    .nc-news-grid { grid-template-columns: 1fr; }
    .nc-newsroom .nc-article-page h1 { font-size: 24px; }
    .nc-footer-content { flex-direction: column; text-align: center; }
    .nc-footer-links { justify-content: center; }
    .nc-author-profile { flex-direction: column; align-items: center; padding: 25px; text-align: center; }
    .nc-author-profile .nc-author-avatar { width: 80px; height: 80px; flex-basis: 80px; font-size: 28px; }
    .nc-author-box { flex-direction: column; align-items: center; text-align: center; }
    .nc-article-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
    .nc-content-page { padding: 25px; }
}
@media (max-width: 600px) { .admin-bar .nc-header { top: 0; } }
@media (prefers-reduced-motion: reduce) {
    .nc-newsroom *, .nc-newsroom *::before, .nc-newsroom *::after { transition: none !important; }
    .nc-news-card:hover, .nc-news-card:hover .nc-card-image img { transform: none; }
}
