:root{
    --iw-red:#a3242b;
    --iw-navy:#1c2b45;
    --iw-navy-dark:#101a2c;
    --iw-cream:#f7f5f0;
    --iw-line:#e2ddd2;
    --iw-text:#2b2b2b;
    --iw-muted:#7a7a72;
}
body{
    font-family:'Source Sans 3', sans-serif;
    color:var(--iw-text);
    background:var(--iw-cream);
}
a{ text-decoration:none; }
.font-display{ font-family:'Playfair Display', serif; }

/* Top utility bar */
.top-bar{
    background:var(--iw-navy-dark);
    color:#cfd6e2;
    font-size:.72rem;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.top-bar a{ color:#cfd6e2; }
.top-bar a:hover{ color:#fff; }

/* Header / masthead */
.masthead{
    background:#fff;
    border-bottom:1px solid var(--iw-line);
}
.masthead .eyebrow{
    color:var(--iw-red);
    font-size:.7rem;
    letter-spacing:.15em;
    text-transform:uppercase;
    font-weight:600;
}
.masthead .brand{
    font-size:2.75rem;
    font-weight:900;
    line-height:1;
    letter-spacing:-.01em;
}
.masthead .brand .word-irving{ color:var(--iw-red); }
.masthead .brand .word-weekly{ color:var(--iw-navy); }
.masthead .tagline{
    color:var(--iw-muted);
    font-size:.85rem;
    max-width:480px;
    margin:0 auto;
}

/* Primary nav */
.primary-nav{
    background:#fff;
    border-bottom:2px solid var(--iw-navy);
}
.primary-nav .nav-link{
    color:var(--iw-navy);
    font-weight:600;
    font-size:.85rem;
    text-transform:uppercase;
    letter-spacing:.03em;
    padding:.85rem .75rem;
}
.primary-nav .nav-link.active{
    color:var(--iw-red);
    position:relative;
}
.primary-nav .nav-link.active::after{
    content:"";
    position:absolute;
    left:.75rem; right:.75rem; bottom:0;
    height:2px;
    background:var(--iw-red);
}
.primary-nav .nav-link:hover{ color:var(--iw-red); }
.primary-nav .dropdown-menu{
    border-radius:0;
    border:1px solid var(--iw-line);
    font-size:.85rem;
}
.primary-nav .dropdown-item:active,
.primary-nav .dropdown-item.active{
    background:var(--iw-red);
}

/* Section labels */
.kicker{
    color:var(--iw-red);
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.section-title{
    font-family:'Playfair Display', serif;
    font-weight:800;
    color:var(--iw-navy);
    margin-bottom:0;
}
.section-divider{
    border:none;
    border-top:2px solid var(--iw-navy);
    margin-top:.5rem;
    margin-bottom:1.25rem;
}
.view-all{
    font-size:.78rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.03em;
    color:var(--iw-red);
}

/* Featured story */
.featured-story{
    border:1px solid var(--iw-line);
    background:#fff;
    height:100%;
}
.featured-story img{
    width:100%;
    height:300px;
    object-fit:cover;
    display:block;
}
.featured-story .story-body{
    padding:1.25rem;
}
.featured-story h2{
    font-family:'Playfair Display', serif;
    font-weight:800;
    font-size:1.6rem;
    color:var(--iw-navy);
}
.story-meta{
    font-size:.75rem;
    color:var(--iw-muted);
    text-transform:uppercase;
    letter-spacing:.03em;
}
.read-more{
    font-size:.78rem;
    font-weight:700;
    letter-spacing:.03em;
    color:var(--iw-navy);
    border-bottom:1px solid var(--iw-navy);
}
.read-more:hover{ color:var(--iw-red); border-color:var(--iw-red); }

/* On the beat cards */
.beat-card{
    position: relative;
    border:1px solid var(--iw-line);
    background:#fff;
    padding:.85rem;
}
.beat-card img{
    width:96px; height:80px; object-fit:cover; flex-shrink:0;
}
.beat-card h3{
    font-size:.95rem;
    font-weight:700;
    color:var(--iw-navy);
    line-height:1.25;
}

/* Latest list */
.latest-list{
    background:var(--iw-cream);
    border:1px solid var(--iw-line);
}
.latest-list .header{
    background:var(--iw-navy);
    color:#fff;
    font-weight:700;
    font-size:.78rem;
    letter-spacing:.08em;
    text-transform:uppercase;
    padding:.6rem 1rem;
}
.latest-item{
    display:flex;
    gap:.75rem;
    padding:.85rem 1rem;
    border-bottom:1px solid var(--iw-line);
}
.latest-item:last-child{ border-bottom:none; }
.latest-num{
    font-family:'Playfair Display', serif;
    font-weight:800;
    color:var(--iw-red);
    font-size:1.1rem;
    line-height:1;
    min-width:1.6rem;
}
.latest-item .cat{
    font-size:.68rem;
    color:var(--iw-red);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.03em;
}
.latest-item h4{
    font-size:.85rem;
    font-weight:700;
    color:var(--iw-navy);
    margin:.15rem 0;
    line-height:1.3;
}
.latest-item .date{
    font-size:.7rem;
    color:var(--iw-muted);
}

/* Story cards grid */
.story-card{
    border:1px solid var(--iw-line);
    background:#fff;
    padding:1.1rem;
    height:100%;
}
.story-card img{
    width:100%; height:130px; object-fit:cover;
}
.story-card .cat{
    font-size:.68rem;
    font-weight:700;
    color:var(--iw-red);
    text-transform:uppercase;
    letter-spacing:.03em;
}
.story-card h3{
    font-size:.95rem;
    font-weight:700;
    color:var(--iw-navy);
    line-height:1.35;
}
.story-card .date{
    font-size:.72rem;
    color:var(--iw-muted);
}

/* Around Irving city labels */
.city-tag{
    font-size:.68rem;
    font-weight:700;
    color:var(--iw-navy);
    text-transform:uppercase;
    letter-spacing:.04em;
}

/* Newsletter */
.briefing{
    background:var(--iw-cream);
    color:var(--iw-text);
}
.briefing .divider{
    border:none;
    border-top:1px solid var(--iw-navy);
}
.briefing h2{
    font-family:'Playfair Display', serif;
    font-weight:800;
    color:var(--iw-navy);
}
.briefing p{ color:var(--iw-muted); }
.briefing .form-control{
    border-radius:0;
    border:1px solid var(--iw-line);
    background:#fff;
    padding:.7rem 1rem;
}
.briefing .btn-subscribe{
    background:var(--iw-red);
    color:#fff;
    border-radius:0;
    font-weight:700;
    text-transform:uppercase;
    font-size:.8rem;
    letter-spacing:.04em;
    padding:.7rem 1.5rem;
    white-space:nowrap;
}
.briefing .btn-subscribe:hover{ background:#8a1e23; color:#fff; }

/* Footer */
footer.site-footer{
    background:var(--iw-navy);
    color:#c7cede;
    font-size:.85rem;
}
footer.site-footer h5{
    color:#fff;
    font-size:.78rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.05em;
    margin-bottom:1rem;
}
footer.site-footer a{
    color:#c7cede;
    display:block;
    margin-bottom:.5rem;
}
footer.site-footer a:hover{ color:#fff; }
footer.site-footer .brand{
    font-family:'Playfair Display', serif;
    font-weight:900;
    font-size:1.4rem;
}
footer.site-footer .word-irving{ color:red; }
footer.site-footer .word-weekly{ color:#fff; }
.footer-bottom{
    background:var(--iw-navy-dark);
    color:#8f97ac;
    font-size:.75rem;
}
.footer-bottom a{ color:#8f97ac; }
.footer-bottom a:hover{ color:#fff; }

@media (max-width: 767.98px){
    .masthead .brand{ font-size:2rem; }
    .primary-nav .nav-link{ padding:.6rem .5rem; }
}

/* ===== Section desk page (business.php-style template) ===== */

.desk-header{
    border-bottom:1px solid var(--iw-line);
    padding-bottom:.75rem;
}
.desk-title{
    font-family:'Playfair Display', serif;
    font-weight:800;
    font-size:1.9rem;
    color:var(--iw-navy);
}
.desk-breadcrumb{
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--iw-muted);
    white-space:nowrap;
}

.archive-label{
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--iw-navy);
}
.archive-sublabel{
    font-size:.7rem;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:var(--iw-muted);
}

.archive-card{
    border:1px solid var(--iw-line);
    background:#fff;
    padding:1.1rem;
}
.archive-card h3{
    font-size:1rem;
    font-weight:700;
    color:var(--iw-navy);
    line-height:1.35;
    margin:.2rem 0 .4rem;
}
.archive-card p{
    font-size:.85rem;
    color:var(--iw-muted);
    margin-bottom:.6rem;
}
.archive-card .open-archive{
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.03em;
    text-transform:uppercase;
    color:var(--iw-navy);
}
.archive-card .open-archive:hover{
    color:var(--iw-red);
}

/* ===== Article page ===== */

.story-page-title{
    font-family:'Playfair Display', serif;
    font-weight:800;
    font-size:2rem;
    color:var(--iw-navy);
    line-height:1.2;
}

/* Fix for "What's New" appearing to overlap photo1: reset any stray
   default spacing on the figure and force both grid columns to start
   flush at the top instead of stretching (see align-items-start on the
   .row in the markup, plus a defensive reset here). If this still looks
   off after applying, send a screenshot and I can pin the rest down. */
figure.story-photo{
    margin-top:0;
}
.latest-list{
    position:relative;
}

.story-photo img{
    width:100%;
    height:auto;
    display:block;
    border:1px solid var(--iw-line);
}

/* Portrait hero photo: don't stretch it to the full column width —
   cap it and center it instead, so a tall image doesn't dominate
   the page or look distorted */
.story-photo--portrait{
    max-width:420px;
    margin-left:auto;
    margin-right:auto;
}
.story-photo--portrait img{
    width:100%;
    height:auto;
}

/* Caption — visually separated from the article body with a shaded box
   attached to the bottom of the photo, so it reads as metadata, not text */
.photo-caption{
    background:var(--iw-cream);
    border:1px solid var(--iw-line);
    border-top:none;
    padding:.55rem .85rem;
    font-size:.78rem;
    color:var(--iw-muted);
    font-style:italic;
    text-align:left;
}

.story-content{
    font-size:1.05rem;
    line-height:1.75;
    color:var(--iw-text);
}
.story-content p{
    margin-bottom:1.25rem;
}
.story-content h2,
.story-content h3{
    font-family:'Playfair Display', serif;
    font-weight:800;
    color:var(--iw-navy);
    margin-top:1.75rem;
    margin-bottom:.75rem;
}
.story-content img{
    max-width:100%;
    height:auto;
}
.story-content blockquote{
    border-left:3px solid var(--iw-red);
    padding-left:1rem;
    color:var(--iw-muted);
    font-style:italic;
    margin:1.5rem 0;
}
.story-content a{
    color:var(--iw-navy);
    text-decoration:underline;
}
/* Clearfix so a floated inline photo (see .inline-photo--right below)
   doesn't collapse the article's bottom margin */
.story-content::after{
    content:"";
    display:table;
    clear:both;
}

/* ---- Manually-placed photo2 / photo3 (via **photo2** / **photo3**
        placeholders in story_body) ---- */
.inline-photo{
    margin:0 0 1.25rem;
}
.inline-photo img{
    width:100%;
    height:auto;
    display:block;
    border:1px solid var(--iw-line);
}
.inline-photo .photo-caption{
    text-align:left;
}

/* Wider than half the column: full-width block, centered, breaks out
   of any text wrap in progress above it */
.inline-photo--center{
    clear:both;
    max-width:600px;
    margin-left:auto;
    margin-right:auto;
}
.inline-photo--center .photo-caption{
    text-align:center;
}

/* Narrower than half the column: floats right, body text wraps beside it */
.inline-photo--right{
    float:right;
    width:45%;
    margin:0 0 1rem 1.5rem;
}

@media (max-width:576px){
    /* Floated inline photos get cramped on phones — stack them full-width instead */
    .inline-photo--right{
        float:none;
        width:100%;
        margin:0 0 1.25rem;
    }
}

/* related-card: same bordered-box language as story-card/archive-card,
   but with a photo for the "You May Also Like" row */
.related-card{
    display:block;
    border:1px solid var(--iw-line) !important;
    background:#fff;
    height:100%;
    overflow:hidden;
}
.related-card img{
    display:block !important;
    width:100% !important;
    height:180px !important;
    object-fit:cover !important;
    object-position:center top !important;
    margin:0 !important;
    border:none !important;
    background:var(--iw-cream);
}
/* Portrait photos (e.g. mugshots) in a landscape-shaped box: show the
   whole photo letterboxed instead of tightly cropping it */
.related-card img.is-portrait{
    object-fit:contain !important;
}
.related-card .body{
    padding:1rem !important;
}
.related-card .cat{
    font-size:.68rem;
    font-weight:700;
    color:var(--iw-red);
    text-transform:uppercase;
    letter-spacing:.03em;
}
.related-card h3{
    font-size:.92rem;
    font-weight:700;
    color:var(--iw-navy);
    line-height:1.3;
    margin:.25rem 0;
}
.related-card .date{
    font-size:.72rem;
    color:var(--iw-muted);
}

/* ===== RSS feeds page ===== */

.feed-item{
    display:flex;
    align-items:center;
    gap:1rem;
    border:1px solid var(--iw-line);
    background:#fff;
    padding:1rem 1.25rem;
    margin-bottom:.85rem;
}
.feed-item--primary{
    border-color:var(--iw-navy);
    border-width:2px;
}
.feed-icon{
    flex:0 0 auto;
    width:40px;
    height:40px;
    border-radius:50%;
    background:var(--iw-cream);
    color:var(--iw-red);
    display:flex;
    align-items:center;
    justify-content:center;
}
.feed-info{
    flex:1 1 auto;
    min-width:0;
}
.feed-title{
    font-family:'Playfair Display', serif;
    font-weight:800;
    font-size:1.05rem;
    color:var(--iw-navy);
    margin:0 0 .2rem;
}
.feed-desc{
    font-size:.85rem;
    color:var(--iw-muted);
}
.feed-url{
    display:block;
    font-size:.78rem;
    color:var(--iw-muted);
    background:none;
    padding:0;
    word-break:break-all;
}
.feed-actions{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:1rem;
    white-space:nowrap;
}
.btn-copy-feed{
    border:1px solid var(--iw-line);
    background:#fff;
    color:var(--iw-navy);
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.03em;
    text-transform:uppercase;
    padding:.4rem .75rem;
    cursor:pointer;
}
.btn-copy-feed:hover{
    border-color:var(--iw-navy);
}

@media (max-width:576px){
    .feed-item{
        flex-wrap:wrap;
    }
    .feed-actions{
        width:100%;
        justify-content:flex-start;
        margin-top:.5rem;
    }
}

/* ===== Archive search page ===== */

.archive-search{
    background:var(--iw-cream);
    border:1px solid var(--iw-line);
    padding:1.25rem;
}
.archive-search .form-control,
.archive-search .form-select{
    border-radius:0;
    border:1px solid var(--iw-line);
    font-size:.9rem;
}
.btn-search{
    background:var(--iw-navy);
    color:#fff;
    border:none;
    font-weight:700;
    text-transform:uppercase;
    font-size:.78rem;
    letter-spacing:.03em;
    padding:.5rem 1rem;
    height:38px;
}
.btn-search:hover{
    background:var(--iw-red);
    color:#fff;
}
.clear-filters{
    display:inline-block;
    margin-top:.75rem;
    font-size:.78rem;
    font-weight:700;
    color:var(--iw-red);
    text-transform:uppercase;
    letter-spacing:.03em;
}

.pagination-list{
    list-style:none;
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
    padding:0;
    margin:0;
}
.pagination-list a{
    display:inline-block;
    border:1px solid var(--iw-line);
    background:#fff;
    color:var(--iw-navy);
    padding:.45rem .85rem;
    font-size:.85rem;
    font-weight:600;
}
.pagination-list a:hover{
    border-color:var(--iw-navy);
}
.pagination-list a.is-active{
    background:var(--iw-navy);
    border-color:var(--iw-navy);
    color:#fff;
}