/* Homepage additions: 2x2 mobile explorer + newsletter call-to-action */
.news-feed-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px}
.news-feed-toolbar .news-feed-title{margin:0}
.newsletter-button{min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);font-size:.73rem;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:.18s}
.newsletter-button:hover{transform:translateY(-1px);border-color:rgba(73,214,163,.42)}
.home-news-content>.news-feed-head{display:none}

.newsletter-modal[hidden]{display:none!important}
.newsletter-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px}
.newsletter-backdrop{position:absolute;inset:0;border:0;background:rgba(1,12,9,.82);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.newsletter-card{position:relative;z-index:1;width:min(520px,100%);border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,var(--panel),var(--panel-soft));box-shadow:var(--shadow);padding:24px;text-align:center}
.newsletter-close{position:absolute;right:12px;top:12px;width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--muted);cursor:pointer}
.newsletter-visual{width:min(300px,78%);margin:0 auto -4px}
.newsletter-card h3{margin:0 0 8px;font-size:1.35rem}
.newsletter-card p{margin:0 auto;color:var(--muted);font-size:.88rem;line-height:1.65;max-width:40ch}
body.newsletter-open{overflow:hidden}

@media(max-width:620px){
  body[data-page="home"] .explore{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="home"] .tile{min-height:128px!important;padding:10px!important;border-radius:14px!important}
  body[data-page="home"] .card-visual{height:44px!important;margin:-2px -2px 0!important}
  body[data-page="home"] .card-svg{max-width:82px!important}
  body[data-page="home"] .tile small{font-size:.58rem!important}
  body[data-page="home"] .tile h3{font-size:.78rem!important;line-height:1.18!important;margin-top:4px!important}
  body[data-page="home"] .tile span{font-size:.64rem!important}
  .news-feed-toolbar{align-items:flex-start;flex-direction:column;margin-bottom:14px}
  .newsletter-button{width:100%;justify-content:center}
  .newsletter-modal{padding:10px;align-items:end}
  .newsletter-card{border-radius:20px 20px 12px 12px;padding:22px 16px 20px}
  .newsletter-visual{width:min(260px,84%)}
}

@media(max-width:360px){
  body[data-page="home"] .tile{min-height:122px!important;padding:9px!important}
  body[data-page="home"] .tile h3{font-size:.73rem!important}
  body[data-page="home"] .card-svg{max-width:76px!important}
}

/* Mobile home: the utility hamburger remains the menu; Explorer cards replace the redundant sidebar navigation. */
@media(max-width:620px){
  body[data-page="home"] .sidebar .side-nav{display:none!important}
  body[data-page="home"] .sidebar{padding-bottom:4px!important}
  body[data-page="home"] .sidebar{position:relative!important;padding-top:24px!important;padding-bottom:0!important}
  body[data-page="home"] .sidebar .role{
    max-width:calc(100% - 142px)!important;
    margin-top:10px!important;
    line-height:1.55!important;
  }
  body[data-page="home"] .sidebar .socials{
    position:absolute!important;
    top:282px!important;
    right:0!important;
    z-index:4!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:7px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  body[data-page="home"] .sidebar .social{
    width:37px!important;
    height:37px!important;
    border-radius:12px!important;
    background:linear-gradient(145deg,var(--panel),var(--panel-soft))!important;
    border:1px solid rgba(148,240,206,.18)!important;
    box-shadow:0 7px 18px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.035)!important;
  }
  body[data-page="home"] .sidebar .social:active{transform:scale(.96)!important}
  body[data-page="home"] .sidebar .social svg{width:18px!important;height:18px!important}
  body[data-page="home"] .content{padding-top:8px!important}
  body[data-page="home"] .home-explore-section .eyebrow{margin-bottom:8px!important}
  body[data-page="home"] .explore{margin-top:10px!important}
}
