/* ============================================================
   BRAHMINS HERALD e-Paper — CSS v2.0
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&family=Lato:wght@400;700;900&display=swap');

.bh-wrap{max-width:1100px;margin:0 auto;font-family:'Lato',sans-serif;background:#fff;}
.bh-wrap *,.bh-wrap *::before,.bh-wrap *::after{box-sizing:border-box;margin:0;padding:0;}

/* ── TOP BAR ── */
.bh-topbar{display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:3px solid #8b1a1a;padding:7px 16px;gap:10px;flex-wrap:wrap;position:relative;z-index:100;}
.bh-tb-left,.bh-tb-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.bh-tb-btn{font-family:'Lato',sans-serif;font-size:13px;font-weight:700;border:none;padding:7px 16px;border-radius:4px;cursor:pointer;transition:.15s;}
.bh-tb-btn:hover{opacity:.85;}
.bh-btn-date{background:#1a3a6b;color:#fff;}
.bh-btn-upload{background:#c0a040;color:#1a2744;}
.bh-btn-dl{background:#2a6b2a;color:#fff;}
.bh-btn-admin{background:#8b1a1a;color:#fff;}
.bh-date-pop{position:absolute;top:100%;left:0;z-index:200;background:#fff;border:2px solid #1a3a6b;padding:10px 14px;display:flex;gap:8px;align-items:center;border-radius:0 0 5px 5px;box-shadow:0 4px 14px rgba(0,0,0,.18);}
.bh-date-pop input{border:1.5px solid #ccc;border-radius:3px;padding:6px 10px;font-size:13px;}
.bh-date-pop button{border:none;padding:6px 14px;border-radius:3px;cursor:pointer;font-weight:700;font-size:13px;}
.bh-date-pop button:first-of-type{background:#1a3a6b;color:#fff;}

/* ── PANEL ── */
.bh-panel{border-bottom:3px solid #8b1a1a;}

/* ── MASTHEAD ── */
.bh-masthead{background:#fff;}
.bh-mh-tagbar{background:#8b1a1a;color:#fff;text-align:center;padding:5px;font-size:11.5px;font-weight:700;letter-spacing:3px;text-transform:uppercase;display:flex;justify-content:center;gap:0;}
.bh-sep{margin:0 14px;opacity:.5;}
.bh-mh-name-row{display:flex;align-items:center;justify-content:space-between;padding:10px 16px 8px;border-bottom:1px solid #e0d9c8;}
.bh-mh-face{width:82px;height:92px;object-fit:cover;border-radius:4px;border:2px solid #c0a040;flex-shrink:0;}
.bh-mh-center{flex:1;text-align:center;padding:0 12px;}
.bh-mh-title{font-family:'Playfair Display',serif;font-size:56px;font-weight:900;line-height:1;letter-spacing:-1px;display:flex;align-items:center;justify-content:center;gap:14px;}
.bh-mh-b{color:#1a2744;}
.bh-mh-h{color:#8b1a1a;}
.bh-mh-om{font-size:34px;color:#c0a040;line-height:1;}
.bh-mh-subtitle{font-size:14px;font-weight:900;letter-spacing:4px;color:#8b1a1a;text-transform:uppercase;margin-top:3px;}
.bh-mh-tagline{font-family:'Source Serif 4',serif;font-style:italic;font-size:13px;color:#555;margin-top:3px;}
.bh-mh-infobar{background:#1a2744;color:#fff;display:flex;justify-content:space-between;padding:7px 16px;font-size:13px;flex-wrap:wrap;gap:4px;}
.bh-mh-edbar{background:#f5f0e8;display:flex;justify-content:center;align-items:center;gap:14px;padding:5px 16px;font-size:12px;border-top:1px solid #ddd;flex-wrap:wrap;}
.bh-sep-dot{color:#c0a040;font-size:16px;}

/* ── EDITION NAV ── */
.bh-ed-nav{display:flex;align-items:center;justify-content:space-between;background:#f5f0e8;border-bottom:2px solid #1a2744;padding:7px 16px;flex-wrap:wrap;gap:8px;}
.bh-all-ed-btn{background:none;border:none;color:#8b1a1a;font-weight:700;font-size:13px;cursor:pointer;text-decoration:underline;font-family:'Lato',sans-serif;}
.bh-ed-nav-info{font-size:14px;font-weight:700;color:#1a2744;}
.bh-pg-ctrl{display:flex;align-items:center;gap:10px;}
.bh-pg-ctrl button{background:#1a2744;color:#fff;border:none;padding:5px 14px;font-weight:700;border-radius:3px;cursor:pointer;font-size:13px;}
.bh-pg-ctrl button:disabled{background:#bbb;cursor:default;}
#bh-pg-lbl{font-size:13px;font-weight:700;color:#1a2744;}

/* ── FRONT PAGE ── */
.bh-front-wrap{padding:0 16px 16px;}
.bh-banner{padding:14px 0;}
.bh-banner-inner{display:grid;grid-template-columns:1.1fr 1.9fr;gap:18px;}
.bh-banner-photo{}
.bh-banner-img{width:100%;max-height:340px;object-fit:cover;border:2px solid #ddd;display:block;}
.bh-banner-text{}
.bh-section-flag{display:inline-block;font-size:10px;font-weight:900;letter-spacing:2px;text-transform:uppercase;padding:2px 8px;border-radius:2px;margin-bottom:7px;}
.bh-flag-red   {background:#8b1a1a;color:#fff;}
.bh-flag-navy  {background:#1a2744;color:#fff;}
.bh-flag-green {background:#2a6b2a;color:#fff;}
.bh-flag-maroon{background:#6b1a2a;color:#fff;}
.bh-flag-blue  {background:#1a4a8b;color:#fff;}
.bh-flag-teal  {background:#1a6b6b;color:#fff;}
.bh-banner-hl{font-family:'Playfair Display',serif;font-size:32px;font-weight:900;color:#1a1a1a;line-height:1.2;margin-bottom:10px;}
.bh-byline-bar{font-size:12px;color:#666;font-style:italic;margin-bottom:7px;display:flex;align-items:center;gap:8px;}
.bh-byline-sep{color:#ccc;}
.bh-art-rule{height:1px;background:#ddd;margin:8px 0 10px;}
.bh-art-body{font-family:'Source Serif 4',serif;font-size:14.5px;line-height:1.76;color:#1a1a1a;}
.bh-drop-cap .bh-preview-txt::first-letter{float:left;font-family:'Playfair Display',serif;font-size:3.4em;font-weight:900;color:#8b1a1a;line-height:.72;margin:4px 7px 0 0;}
.bh-full-txt{display:none;}
.bh-show-more{display:inline-block;margin-top:10px;background:none;border:none;color:#1a3a6b;font-weight:700;font-size:13px;cursor:pointer;font-family:'Lato',sans-serif;padding:0;}
.bh-show-more:hover{text-decoration:underline;}

/* ART FOOTER */
.bh-art-footer{margin-top:12px;padding-top:9px;border-top:1px dashed #ddd;text-align:right;clear:both;}
.bh-dl-art-btn{background:#f5f0e8;color:#1a2744;border:1.5px solid #c0a040;padding:5px 13px;font-size:12px;font-weight:700;border-radius:3px;cursor:pointer;font-family:'Lato',sans-serif;}
.bh-dl-art-btn:hover{background:#c0a040;}

/* DIVIDER */
.bh-divider-line{height:4px;background:#1a2744;margin:4px 0 12px;}

/* SECOND ROW */
.bh-second-row{display:grid;grid-template-columns:2fr 1fr;gap:0;}
.bh-col{border-right:1px solid #ccc;padding:0 14px 12px;}
.bh-col:last-child{border-right:none;}
.bh-col-wide{}
.bh-col-stack{display:flex;flex-direction:column;gap:0;}
.bh-col-stack-item{padding:10px 0 10px 14px;border-bottom:1px solid #eee;}
.bh-col-stack-item:last-child{border-bottom:none;}
.bh-col-photo-wrap{margin-bottom:9px;}
.bh-col-photo{width:100%;max-height:180px;object-fit:cover;border:1.5px solid #ddd;display:block;}
.bh-col-sm-photo-wrap{float:right;margin:0 0 8px 10px;max-width:110px;}
.bh-col-sm-photo{width:100%;border:1.5px solid #ddd;display:block;}
.bh-col-hl{font-family:'Playfair Display',serif;font-size:17px;font-weight:700;color:#1a1a1a;line-height:1.28;margin-bottom:5px;}
.bh-stack-hl{font-family:'Playfair Display',serif;font-size:14.5px;font-weight:700;color:#1a1a1a;line-height:1.28;margin-bottom:4px;}
.bh-col-body,.bh-art-body{font-family:'Source Serif 4',serif;font-size:14px;line-height:1.72;color:#222;}

/* INNER PAGE */
.bh-inner-wrap{padding:0 16px 16px;}
.bh-inner-pg-label{text-align:center;font-size:10px;letter-spacing:3px;color:#888;padding:5px 0;border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin-bottom:12px;text-transform:uppercase;}
.bh-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:0;}
.bh-grid-col{padding:0 13px 12px;border-right:1px solid #ccc;}
.bh-grid-col:first-child{padding-left:0;}
.bh-grid-col:last-child{border-right:none;padding-right:0;}

/* PAGE FOOTER */
.bh-pg-footer{display:flex;justify-content:space-between;background:#1a2744;color:#fff;font-size:11px;padding:6px 16px;margin-top:14px;flex-wrap:wrap;gap:4px;}
.bh-disclaimer{background:#f5f0e8;font-size:11.5px;padding:7px 16px;color:#555;border-top:1px solid #ddd;line-height:1.6;}

/* NO EDITION */
.bh-no-edition{text-align:center;padding:50px 20px;color:#888;}
.bh-no-edition span{font-size:48px;display:block;margin-bottom:12px;}
.bh-no-edition p{font-size:15px;line-height:2.2;}

/* EDITIONS LIST */
.bh-ed-list{padding:22px 16px;}
.bh-ed-list-title{font-family:'Playfair Display',serif;font-size:22px;font-weight:700;color:#1a2744;border-bottom:2px solid #1a2744;padding-bottom:9px;margin-bottom:18px;}
.bh-ed-grid{display:flex;flex-wrap:wrap;gap:12px;}
.bh-ed-card{display:flex;flex-direction:column;align-items:center;background:#fff;border:2px solid #1a2744;padding:13px 17px;border-radius:5px;text-decoration:none;color:#1a2744;gap:4px;transition:.15s;min-width:120px;text-align:center;}
.bh-ed-card:hover{background:#1a2744;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px rgba(26,39,68,.2);}
.bh-ed-card-today{border-color:#8b1a1a;background:#fff8f6;}
.bh-ed-card-today:hover{background:#8b1a1a;}
.bh-ed-ico{font-size:24px;}
.bh-ed-date{font-size:14px;font-weight:900;}
.bh-ed-day{font-size:11px;color:#888;}
.bh-ed-card:hover .bh-ed-day{color:#ccc;}
.bh-ed-card-today .bh-ed-day{color:#8b1a1a;font-weight:700;}

/* ── DOWNLOAD MODAL ── */
.bh-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.6);z-index:9999;display:flex;align-items:center;justify-content:center;}
.bh-modal-box{background:#fff;border-radius:8px;max-width:420px;width:90%;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,.3);}
.bh-modal-hdr{background:#1a2744;color:#fff;padding:16px 20px;font-size:17px;font-weight:700;}
.bh-modal-body{padding:20px;display:flex;flex-direction:column;gap:12px;}
.bh-modal-body p{font-size:15px;color:#444;margin-bottom:4px;}
.bh-modal-btn{border:2px solid #1a2744;background:#fff;color:#1a2744;padding:14px 18px;border-radius:6px;cursor:pointer;font-size:15px;font-weight:700;text-align:left;font-family:'Lato',sans-serif;transition:.15s;line-height:1.4;}
.bh-modal-btn:hover{background:#1a2744;color:#fff;}
.bh-modal-btn small{display:block;font-size:11.5px;font-weight:400;opacity:.75;margin-top:3px;}
.bh-modal-btn-full{border-color:#2a6b2a;}
.bh-modal-btn-full:hover{background:#2a6b2a;}
.bh-modal-btn-art{border-color:#1a3a6b;}
.bh-modal-btn-art:hover{background:#1a3a6b;color:#fff;}
.bh-modal-close{display:block;width:100%;background:#f5f5f5;border:none;border-top:1px solid #ddd;padding:12px;font-size:14px;font-weight:700;color:#666;cursor:pointer;font-family:'Lato',sans-serif;}
.bh-modal-close:hover{background:#eee;}

/* ── UPLOAD FORM ── */
.bh-uf{font-family:'Lato',sans-serif;}
.bh-uf-hdr{display:flex;justify-content:space-between;align-items:center;background:#1a2744;color:#fff;padding:13px 20px;flex-wrap:wrap;gap:8px;}
.bh-uf-hdr strong{font-size:16px;display:block;}
.bh-uf-sub{font-size:12px;color:#bdc8e0;}
.bh-uf-close{background:#8b1a1a;color:#fff;border:none;padding:6px 14px;font-weight:700;border-radius:3px;cursor:pointer;font-size:13px;white-space:nowrap;}
.bh-uf-body{padding:20px 22px;}
.bh-uf-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.bh-uf-full{grid-column:1/-1;}
.bh-uf-field label{display:block;font-weight:700;font-size:14px;margin-bottom:6px;color:#1a2744;}
.bh-hint{color:#888;font-weight:400;font-size:12px;}
.bh-req{color:#8b1a1a;}
.bh-wc{font-size:12px;color:#888;float:right;margin-top:3px;}
.bh-uf-field input[type="text"],.bh-uf-field input[type="tel"],.bh-uf-field textarea{width:100%;border:2px solid #ccc;border-radius:4px;padding:9px 12px;font-size:15px;font-family:inherit;box-sizing:border-box;}
.bh-uf-field input:focus,.bh-uf-field textarea:focus{border-color:#1a2744;outline:none;}
.bh-phone-row{display:flex;align-items:stretch;}
.bh-phone-row span{background:#f0f2f7;border:2px solid #ccc;border-right:none;padding:9px 11px;font-size:14px;border-radius:4px 0 0 4px;display:flex;align-items:center;}
.bh-phone-row input{border-radius:0 4px 4px 0!important;flex:1;}
.bh-photo-lbl{display:block;border:2.5px dashed #c0a040;border-radius:6px;padding:18px 20px;text-align:center;cursor:pointer;background:#fffbf0;font-size:15px;color:#666;transition:.15s;}
.bh-photo-lbl:hover{background:#fff8e0;border-color:#1a2744;}
.bh-uf-disclaimer{background:#f5f0e8;border-left:4px solid #c0a040;padding:10px 14px;font-size:12px;color:#555;margin:14px 0;border-radius:0 4px 4px 0;line-height:1.6;}
.bh-uf-submit-btn{width:100%;background:#1a2744;color:#fff;border:none;padding:13px;font-size:16px;font-weight:700;border-radius:4px;cursor:pointer;font-family:'Lato',sans-serif;}
.bh-uf-submit-btn:hover{background:#2a3860;}
.bh-msg{padding:12px 14px;border-radius:4px;font-size:14px;margin-top:12px;}
.bh-msg.success{background:#e8f5e9;color:#2e7d32;border:1px solid #a5d6a7;}
.bh-msg.error{background:#ffebee;color:#c62828;border:1px solid #ef9a9a;}
.bh-preview-box{border:2px solid #1a2744;border-radius:6px;overflow:hidden;margin-bottom:14px;}
.bh-preview-hdr{background:#f5f0e8;border-bottom:2px solid #c0a040;padding:12px 18px;font-weight:700;font-size:15px;color:#1a2744;}
.bh-preview-body{padding:16px 18px;display:flex;gap:16px;flex-wrap:wrap;}
.bh-prev-rows{flex:1;min-width:180px;}
.bh-prev-row{display:flex;gap:12px;border-bottom:1px solid #f0f0f0;padding:8px 0;font-size:14px;}
.bh-prev-row:last-child{border-bottom:none;}
.bh-prev-row>span:first-child{min-width:75px;font-weight:700;font-size:11px;color:#888;text-transform:uppercase;flex-shrink:0;padding-top:2px;}
.bh-preview-note{background:#e8f4fd;border-top:1px solid #bee3f8;padding:10px 18px;font-size:13px;color:#2c5f8a;}
.bh-preview-acts{padding:14px 18px;display:flex;gap:12px;border-top:2px solid #eee;flex-wrap:wrap;}
.bh-back-btn{flex:1;background:#fff;border:2px solid #1a2744;color:#1a2744;padding:11px;font-size:15px;font-weight:700;border-radius:4px;cursor:pointer;font-family:'Lato',sans-serif;}
.bh-confirm-btn{flex:2;background:#27ae60;color:#fff;border:none;padding:11px;font-size:15px;font-weight:700;border-radius:4px;cursor:pointer;font-family:'Lato',sans-serif;}
.bh-confirm-btn:disabled{background:#aaa;cursor:not-allowed;}
.bh-success-box{text-align:center;padding:38px 24px;border:2px solid #27ae60;border-radius:6px;background:#f0fff4;}
.bh-success-box h3{font-size:22px;color:#1a6b3a;margin:10px 0 8px;font-family:'Playfair Display',serif;}
.bh-success-box p{font-size:15px;color:#555;}

/* ── ADMIN ── */
.bh-adm{font-family:'Lato',sans-serif;}
.bh-pin-box{max-width:320px;margin:40px auto;text-align:center;border:2px solid #1a2744;padding:32px 36px;border-radius:8px;}
.bh-pin-box h3{color:#1a2744;margin-bottom:6px;font-size:18px;}
.bh-pin-box p{color:#888;font-size:13px;margin-bottom:16px;}
.bh-pin-box input{width:100%;border:2px solid #ccc;border-radius:4px;padding:10px;font-size:22px;text-align:center;letter-spacing:7px;box-sizing:border-box;margin-bottom:12px;}
.bh-pin-box button{width:100%;background:#1a2744;color:#fff;border:none;padding:11px;font-size:15px;font-weight:700;border-radius:4px;cursor:pointer;}
.bh-adm-topbar{background:#1a2744;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:11px 16px;flex-wrap:wrap;gap:8px;}
.bh-adm-topbar>span{font-size:16px;font-weight:700;}
.bh-adm-btns{display:flex;gap:8px;flex-wrap:wrap;}
.bh-adm-btn-pub{background:#c0a040;color:#1a2744;border:none;padding:7px 14px;font-weight:700;border-radius:3px;cursor:pointer;font-size:13px;}
.bh-adm-btn-eds{background:#2a6b2a;color:#fff;border:none;padding:7px 14px;font-weight:700;border-radius:3px;cursor:pointer;font-size:13px;}
.bh-adm-btn-out{background:#8b1a1a;color:#fff;border:none;padding:7px 14px;font-weight:700;border-radius:3px;cursor:pointer;font-size:13px;}
.bh-stats{display:flex;gap:10px;padding:14px 16px;flex-wrap:wrap;}
.bh-stat{flex:1;min-width:80px;text-align:center;padding:12px 8px;border-radius:5px;border:2px solid #ddd;font-size:12px;color:#666;}
.bh-stat span{display:block;font-size:26px;font-weight:700;color:#1a2744;}
.bh-st-tot{border-color:#1a2744;}
.bh-st-pen{border-color:#f39c12;}
.bh-st-app{border-color:#27ae60;}
.bh-st-pub{border-color:#2980b9;}
.bh-st-rej{border-color:#8b1a1a;}
.bh-filters{padding:9px 16px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;border-bottom:1px solid #eee;}
.bh-tabs{display:flex;gap:4px;flex-wrap:wrap;}
.bh-tab{border:1.5px solid #ccc;background:#fff;padding:5px 13px;font-size:12px;cursor:pointer;border-radius:20px;font-family:'Lato',sans-serif;}
.bh-tab.active{background:#1a2744;color:#fff;border-color:#1a2744;}
#bh-search{border:1.5px solid #ccc;border-radius:20px;padding:6px 13px;font-size:13px;width:200px;}
.bh-bulk{padding:7px 16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#f9f9f9;font-size:13px;border-bottom:1px solid #eee;}
.bh-ba{border:none;padding:5px 11px;border-radius:3px;cursor:pointer;font-size:12px;font-weight:700;}
.bh-ba-app{background:#27ae60;color:#fff;}
.bh-ba-rej{background:#f39c12;color:#fff;}
.bh-ba-del{background:#8b1a1a;color:#fff;}
.bh-ba-edt{background:#e67e22;color:#fff;}
.bh-tbl-wrap{overflow-x:auto;padding:0 16px 14px;}
.bh-tbl{width:100%;border-collapse:collapse;font-size:12.5px;}
.bh-tbl th{background:#1a2744;color:#fff;padding:8px 10px;text-align:left;font-size:11px;white-space:nowrap;}
.bh-tbl td{padding:7px 10px;border-bottom:1px solid #eee;vertical-align:top;word-break:break-word;}
.bh-tbl tr:hover td{background:#f5f7ff;}
.bh-badge{display:inline-block;padding:2px 8px;border-radius:12px;font-size:10.5px;font-weight:700;text-transform:uppercase;}
.bh-badge-pending{background:#fff3cd;color:#856404;}
.bh-badge-approved{background:#d4edda;color:#155724;}
.bh-badge-published{background:#cce5ff;color:#004085;}
.bh-badge-rejected{background:#f8d7da;color:#721c24;}
.bh-thumb{width:46px;height:46px;object-fit:cover;border:1px solid #ddd;border-radius:3px;}
.bh-row-acts{display:flex;gap:4px;flex-wrap:wrap;}
.bh-loading{text-align:center;color:#888;padding:28px!important;}
.bh-edit-strip{margin:0 16px 16px;border:2px solid #e67e22;border-radius:5px;padding:16px;background:#fff8f0;}
.bh-edit-strip h4{margin-bottom:12px;color:#e67e22;font-size:15px;}
.bh-edit-strip label{display:block;font-weight:700;font-size:12px;color:#555;margin:10px 0 4px;text-transform:uppercase;}
.bh-edit-strip input,.bh-edit-strip textarea,.bh-edit-strip select{width:100%;border:1.5px solid #ccc;border-radius:3px;padding:7px 9px;font-size:13px;box-sizing:border-box;font-family:inherit;}
.bh-edit-acts{display:flex;gap:8px;margin-top:12px;}

/* ── PRINT ── */
@media print{
    .bh-topbar,.bh-panel,.bh-ed-nav,.bh-dl-art-btn,.bh-show-more,.bh-modal-overlay{display:none!important;}
    .bh-page{display:block!important;page-break-after:always;}
    .bh-full-txt{display:inline!important;}
    .bh-preview-txt{display:none!important;}
    .bh-wrap{max-width:100%;}
    .bh-mh-title{font-size:44px;}
}

/* ── RESPONSIVE ── */
@media(max-width:768px){
    .bh-mh-title{font-size:30px;}
    .bh-mh-face{width:58px;height:68px;}
    .bh-banner-inner{grid-template-columns:1fr;}
    .bh-second-row{grid-template-columns:1fr;}
    .bh-grid-3{grid-template-columns:1fr 1fr;}
    .bh-grid-col{border-right:none;border-bottom:1px solid #ccc;padding:10px 0 10px;}
    .bh-col{border-right:none;border-bottom:1px solid #ddd;padding:10px 0;}
    .bh-uf-grid{grid-template-columns:1fr;}
    .bh-uf-full{grid-column:1;}
    .bh-mh-infobar{flex-direction:column;gap:2px;font-size:12px;}
    .bh-mh-edbar{flex-direction:column;gap:4px;}
    .bh-topbar{flex-direction:column;align-items:flex-start;}
    .bh-stats{gap:6px;}
    .bh-preview-body{flex-direction:column;}
}
