
/* HaberPilot Portal Final v7.8 */
:root{--hp78-bg:#f4f7fb;--hp78-card:#fff;--hp78-text:#0d1728;--hp78-muted:#708198;--hp78-line:#dde5ef;--hp78-red:#f5212a;--hp78-dark:#0c1422}
html[data-theme="dark"]{--hp78-bg:#0d131d;--hp78-card:#141d2a;--hp78-text:#f5f7fb;--hp78-muted:#9cacbf;--hp78-line:#283546;--hp78-dark:#080e17}
html[data-theme="dark"] body{background:var(--hp78-bg)!important;color:var(--hp78-text)!important}
html[data-theme="dark"] .portal-header,html[data-theme="dark"] .portal-nav-wrap,html[data-theme="dark"] .hp771-header,html[data-theme="dark"] .hp771-article,html[data-theme="dark"] .hp771-static,html[data-theme="dark"] .hp772-popular,html[data-theme="dark"] .hp78-comments,html[data-theme="dark"] .hp78-comment-form,html[data-theme="dark"] .hp772-feed-card{background:var(--hp78-card)!important;color:var(--hp78-text)!important}
html[data-theme="dark"] .portal-nav a,html[data-theme="dark"] .hp78-desktop-nav a,html[data-theme="dark"] .hp771-article h1,html[data-theme="dark"] .hp772-side-title span,html[data-theme="dark"] .hp772-feed-copy h3 a{color:var(--hp78-text)!important}
html[data-theme="dark"] .hp771-page{background:var(--hp78-bg)!important}
html[data-theme="dark"] .hp771-body,html[data-theme="dark"] .hp771-spot,html[data-theme="dark"] .hp78-comments p{color:#c9d3df!important}

/* desktop header helpers */
.hp78-home-mobile-tools,.hp78-menu-toggle{display:none}
.hp78-header-tools{display:flex;gap:9px;margin-left:auto}
.hp78-theme-toggle,.hp78-home-mobile-tools button{width:44px;height:44px;border:1px solid var(--hp78-line);border-radius:13px;background:var(--hp78-card);color:var(--hp78-text);cursor:pointer}
.hp78-mobile-menu{display:none}

/* Main headline R */
.hp78-main-ad{background:#fff7f8!important}
.hp78-main-ad-inner{height:100%;display:grid;place-items:center;padding:28px}
.hp78-main-ad-inner .hp-v77-ad-placeholder,.hp78-main-ad-inner .ad-placeholder{width:min(970px,90%);min-height:230px}
.hp78-main-numbers button{cursor:pointer;pointer-events:auto}
.main-headline-v4-stage,.hp78-main-stage{background:#081321}
.main-v4-slide>a{display:block;width:100%;height:100%}
.main-v4-slide img{object-fit:contain!important;background:#081321!important}

/* article image: smaller and no crop */
.hp771-cover{width:min(100%,1080px)!important;max-height:560px!important;object-fit:contain!important;background:#eef2f6!important}
html[data-theme="dark"] .hp771-cover{background:#08111d!important}

/* comments */
.hp78-comments{margin-top:42px;padding:28px;border:1px solid var(--hp78-line);border-radius:22px;background:var(--hp78-card)}
.hp78-comments-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}
.hp78-comments-head small{color:var(--hp78-red);font-size:9px;font-weight:950;letter-spacing:.13em}
.hp78-comments-head h2{margin:5px 0 0;font-size:29px;color:var(--hp78-text)}
.hp78-comments-head h2 span{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;margin-left:5px;border-radius:99px;background:#fff0f1;color:var(--hp78-red);font-size:12px;vertical-align:middle}
.hp78-comments-head p{margin:0;color:var(--hp78-muted);font-size:11px}
.hp78-comment-layout{display:grid;grid-template-columns:minmax(360px,.82fr) minmax(0,1.18fr);gap:22px}
.hp78-comment-form{display:grid;gap:12px;padding:19px;border-radius:17px;background:#f7f9fc;border:1px solid var(--hp78-line)}
html[data-theme="dark"] .hp78-comment-form{background:#101925}
.hp78-comment-form label{display:grid;gap:7px;color:var(--hp78-text);font-size:10px;font-weight:900}
.hp78-comment-form input,.hp78-comment-form textarea{width:100%;border:1px solid var(--hp78-line);border-radius:11px;background:var(--hp78-card);color:var(--hp78-text);padding:12px 13px;font:inherit;outline:none}
.hp78-comment-form textarea{min-height:140px;resize:vertical}
.hp78-comment-form>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hp78-comment-form>div small{max-width:360px;color:var(--hp78-muted);font-size:8px;line-height:1.45}
.hp78-comment-form button{border:0;border-radius:10px;background:var(--hp78-red);color:#fff;padding:12px 17px;font-weight:900;cursor:pointer;white-space:nowrap}
.hp78-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.hp78-comment-list{display:grid;gap:10px}
.hp78-comment-list article{display:grid;grid-template-columns:45px 1fr;gap:12px;padding:14px;border:1px solid var(--hp78-line);border-radius:14px}
.hp78-comment-avatar{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#fff0f1;color:var(--hp78-red);font-weight:950}
.hp78-comment-list article header{display:flex;justify-content:space-between;gap:10px}
.hp78-comment-list article time{color:var(--hp78-muted);font-size:8px}
.hp78-comment-list article p{margin:6px 0 0;color:var(--hp78-text);font-size:13px;line-height:1.55}
.hp78-no-comments{display:grid;place-items:center;min-height:150px;border:1px dashed var(--hp78-line);border-radius:14px;color:var(--hp78-muted);font-size:11px}
.hp78-comment-notice{margin-bottom:12px;padding:12px;border-radius:10px;font-size:10px;font-weight:800}.hp78-comment-notice.ok{background:#e7f8ef;color:#176b43}.hp78-comment-notice.error{background:#ffe8e9;color:#9e2529}

/* placeholder failsafe */
.hp-placeholder-hidden{display:none!important}

/* image integrity across cards */
.main-v4-slide img,.portal-hero .hero-slide img{image-rendering:auto}
@media(max-width:760px){
  .portal-top.hp78-home-top{min-height:78px;padding:12px 15px!important;gap:10px}
  .portal-brand-logo img{max-width:175px!important;max-height:52px!important}
  .portal-date,.service-buttons,.portal-nav-wrap{display:none!important}
  .hp78-home-mobile-tools{display:flex;margin-left:auto;gap:8px}
  .hp78-home-mobile-tools button{display:grid;place-items:center}
  .hp78-menu-toggle{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px}
  .hp78-menu-toggle span{display:block;width:20px;height:2px;border-radius:9px;background:currentColor;transition:.2s}
  .hp78-menu-toggle.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .hp78-menu-toggle.is-open span:nth-child(2){opacity:0}
  .hp78-menu-toggle.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .hp78-mobile-menu{display:block;max-height:0;overflow:hidden;background:var(--hp78-card);border-top:1px solid transparent;transition:max-height .28s ease,border-color .28s ease}
  .hp78-mobile-menu.is-open{max-height:82vh;overflow:auto;border-color:var(--hp78-line)}
  .hp78-mobile-menu .container{padding:14px 18px 22px}
  .hp78-mobile-menu nav{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .hp78-mobile-menu nav a,.hp78-mobile-services a{display:block;padding:11px 12px;border:1px solid var(--hp78-line);border-radius:10px;color:var(--hp78-text);text-decoration:none;font-size:11px;font-weight:850}
  .hp78-mobile-services{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}
  .hp78-header-inner{min-height:76px!important;padding:10px 16px!important}
  .hp78-desktop-nav{display:none!important}
  .hp78-header-tools{margin-left:auto}
  .hp78-header-tools .hp78-theme-toggle{display:grid;place-items:center}
  .hp771-logo img{max-width:175px!important}
  .hp-breaking-v3{font-size:12px}
  .hp-breaking-v3 strong{min-width:125px!important}
  .hp-home-layout-v75{padding-top:0!important}
  /* top headline remains hidden on mobile; main headline becomes primary */
  .portal-hero-v77{display:none!important}
  .main-headline-v4,.main-headline-v77{display:block!important;margin-top:15px!important}
  .headline-rail-v77{display:none!important}
  .main-headline-v4-stage{height:auto!important;min-height:0!important;border-radius:16px!important;overflow:hidden}
  .main-v4-slide{position:relative!important;display:none!important;height:auto!important;min-height:0!important}
  .main-v4-slide.active{display:block!important}
  .main-v4-slide>a{height:auto!important}
  .main-v4-slide img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;background:#081321!important}
  .main-v4-copy{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;padding:15px 16px 78px!important;background:#081321!important}
  .main-v4-copy h2{font-size:22px!important;line-height:1.15!important}
  .main-v4-numbers{position:absolute!important;left:8px!important;right:8px!important;bottom:8px!important;height:52px!important;gap:5px!important}
  .main-v4-numbers button{min-width:0!important;height:44px!important;font-size:11px!important}
  .hp78-main-ad-inner{min-height:260px;padding:18px}
  /* mobile cards show whole news artwork rather than crop */
  .feature-strip-v3 img,.layout-lead-plus-4 img,.sports-layout-v71 img,.economy-grid img,.magazine-strip img,.editor-special img,.hp-visual-grid img{
    object-fit:contain!important;background:#edf1f6!important;height:auto!important;max-height:none!important
  }
  .hp771-cover{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
  .hp772-content-grid{grid-template-columns:1fr!important}
  .hp772-sidebar{order:2}
  .hp772-sticky{position:static!important}
  .hp78-comments{padding:18px;margin-top:28px}
  .hp78-comments-head{align-items:flex-start;flex-direction:column}
  .hp78-comment-layout{grid-template-columns:1fr}
  .hp78-comment-form>div{align-items:flex-start;flex-direction:column}
  .hp78-comment-form button{width:100%}
}
