/* Additional navigation is desktop-only; existing mobile settings stay in place. */
.ha-settings-nav{display:none}
.ha-settings-legal,.ha-settings-legal+.ha-setting-detail{border-top:1px solid var(--border-color,#e5ecf5)}

@media(min-width:1024px){
  /* The same nine Explore destinations become a three-column directory. */
  html .page-root.explore-hub-page .ws-service-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:28px}
  html .page-root.explore-hub-page .ws-service{flex-direction:row;justify-content:flex-start;gap:16px;min-height:108px;padding:22px;text-align:left;border-radius:16px}
  html .page-root.explore-hub-page .ws-service .ws-icon{width:48px;height:48px;border-radius:14px;font-size:22px;flex:none}
  html[data-theme] body .page-content .page-root.explore-hub-page .ws-service h2{font-size:18px!important;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
  .explore-hub-page .explore-news{margin-bottom:28px}
  html .explore-hub-page #explore-news-title{font-size:24px;margin-bottom:18px;scroll-margin-top:88px}
  .explore-hub-page .ws-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .explore-hub-page .ws-directory>a{border:1px solid #dce6f1;border-radius:12px;padding:12px 16px;min-height:48px;font-size:14px}

  /* Account retains the wallet, records and local history in a 4 + 8 grid. */
  .account-page .ha-account-shell{width:calc(100% - 64px);max-width:1360px;display:grid;grid-template-columns:minmax(280px,1fr) minmax(0,2fr);align-items:start;gap:24px;padding-top:28px;padding-bottom:32px}
  .account-page .ha-account-shell>:not(section){grid-column:1/-1}
  .account-page .ha-page-title{font-size:32px!important;margin:0!important}
  .account-page .ha-account-wallet{grid-column:1;grid-row:span 2;margin:0;min-width:0}
  .account-page .ha-account-records{grid-column:2;margin:0;padding:6px 24px;min-width:0;border-radius:16px}
  .account-page .ha-guest-wallet,.account-page .ha-wallet-identity{padding:24px;flex-wrap:wrap;gap:16px;border-radius:16px}
  .account-page .ha-guest-wallet>div{flex-basis:calc(100% - 70px)}
  .account-page .ha-guest-wallet>.btn{width:100%;min-height:44px;font-size:14px}
  .account-page .ha-wallet-details{flex-basis:calc(100% - 70px)}
  .account-page .ha-wallet-details code{font-size:12px;line-height:1.6}
  .account-page .ha-wallet-badges .badge{font-size:12px}
  .account-page .ha-personal-record{padding:22px;margin-top:20px}
  .account-page .ha-shell h2{font-size:20px}
  .account-page .ha-setting-row,.account-page .ha-setting-detail>summary{font-size:15px;min-height:56px}
  .account-page .ha-muted,.account-page .ha-empty,.account-page .ha-record-note{font-size:13px;line-height:1.7}
  .account-page .ha-setting-detail{scroll-margin-top:96px}
  .account-page .ha-setting-detail .ha-empty,.account-page .ha-setting-detail .ha-record-note{padding-top:4px;padding-bottom:18px}

  /* Hash links select the existing settings nodes without a second form or state. */
  .account-page .ha-account-settings{grid-column:1/-1;display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,3fr);padding:0;border-radius:16px;overflow:hidden}
  .account-page .ha-settings-nav{display:flex;flex-direction:column;gap:5px;padding:24px 18px;background:#f6f9fd;border-right:1px solid #dce6f1}
  .account-page .ha-settings-nav h2{padding:0 12px;margin:0 0 12px;font-size:20px}
  .account-page .ha-settings-nav a{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border-radius:9px;font-size:14px;line-height:1.5;color:#50657e;overflow-wrap:anywhere}
  .account-page .ha-settings-nav i{width:18px;text-align:center;flex:none}
  .account-page .ha-settings-content{min-width:0;padding:24px 28px}
  .account-page .ha-settings-content>*{display:none;border:0;scroll-margin-top:100px}
  .account-page .ha-settings-content>#account-language{display:flex}
  .account-page .ha-settings-content:has(>:target)>#account-language:not(:target){display:none}
  .account-page .ha-settings-content>.ha-setting-row:target{display:flex}
  .account-page .ha-settings-content>:target:not(.ha-setting-row){display:block}
  .account-page .ha-settings-content>.ha-setting-detail>summary{cursor:pointer}
  .account-page .ha-settings-content .ha-about{font-size:15px;line-height:1.7;padding-top:12px}
  .account-page .ha-account-settings:not(:has(.ha-settings-content>:target)) .ha-settings-nav a[href="#account-language"],
  .account-page .ha-account-settings:has(#account-language:target) .ha-settings-nav a[href="#account-language"],
  .account-page .ha-account-settings:has(#account-display:target) .ha-settings-nav a[href="#account-display"],
  .account-page .ha-account-settings:has(#account-security:target) .ha-settings-nav a[href="#account-security"],
  .account-page .ha-account-settings:has(#account-privacy:target) .ha-settings-nav a[href="#account-privacy"],
  .account-page .ha-account-settings:has(#account-about:target) .ha-settings-nav a[href="#account-about"]{background:#e8f2ff;color:#1263bf;font-weight:650}

  /* One featured article followed by the same feed as a three-column grid. */
  .news-page .news-feed-controls{grid-template-columns:minmax(260px,1fr) minmax(0,2fr);align-items:center;gap:20px;margin-bottom:16px}
  .news-page .news-categories{flex-wrap:wrap;overflow:visible;justify-content:flex-end;padding:0}
  .news-page .news-categories button{font-size:14px;padding:0 12px;min-height:42px}
  .news-page .news-feed-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .news-page .news-story{display:flex;flex-direction:column;gap:14px;padding:18px;border:1px solid #dce6f1;border-radius:16px;min-width:0;background:#fff}
  .news-page .news-story>.news-media{width:100%;aspect-ratio:16/9;border-radius:10px;max-height:220px}
  .news-page .news-story-body{min-width:0;width:100%}
  html .news-page .news-story h2{font-size:19px!important;line-height:1.45!important;margin:4px 0 10px}
  .news-page .news-story-body>p{font-size:14px;line-height:1.65;-webkit-line-clamp:3}
  .news-page .news-meta{font-size:12px;gap:6px 10px}
  .news-page .news-category-label{font-size:12px}
  .news-page .news-story:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center;padding:24px}
  .news-page .news-story:first-child>.news-media{max-height:300px}
  .news-page .news-story:first-child h2{font-size:26px!important;line-height:1.4!important}
  .news-page .news-story:first-child .news-story-body>p{-webkit-line-clamp:4;font-size:15px}
  .news-page .news-status{font-size:13px}
  .news-page .news-detail-shell{width:calc(100% - 64px);max-width:840px;padding:28px 0 48px;margin:0 auto}
  .news-page [data-news-detail] h1{font-size:34px;line-height:1.35}
  .news-page [data-news-detail]>.news-media{max-height:440px}
  .news-page .news-summary{padding:26px;border-radius:16px}
  .news-page .news-summary p{font-size:16px;line-height:1.85}
  .news-page .news-summary .news-source-note{font-size:13px}

  @media(hover:hover){
    .explore-hub-page .ws-service:hover,.explore-hub-page .ws-directory>a:hover,.news-page .news-story:hover{border-color:#9ec9ed;background:#fbfdff;box-shadow:0 4px 16px #17375708}
    .account-page .ha-settings-nav a:hover,.account-page .ha-setting-row:hover{background:#edf5ff}
  }
  .explore-hub-page :is(a,button):focus-visible,.account-page :is(a,button,summary):focus-visible,.news-page :is(a,button):focus-visible{outline:2px solid #1479d5;outline-offset:3px}
}
