/* Internetsakerhet.se v1.4.7 – mobile refinement and corrected active navigation. */
/* Preserve all approved desktop layouts; adjust only navigation state across breakpoints. */
.nav-dark .nav-inner>a:first-child:not(.active):not([aria-current="page"])::after{display:none!important}
.nav-dark .nav-inner>a.active::after,.nav-dark .nav-inner>a[aria-current="page"]::after{content:"";position:absolute;height:3px;left:10px;right:10px;bottom:2px;display:block;background:#67d47e}
/* Match the approved original's colorful first-aid and alert motifs. */
.hub-feature-side .hub-side-icon{background:transparent;border-radius:0;box-shadow:none;width:56px;height:56px;display:grid;place-items:center}
.hub-feature-side .hub-side-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:43px;line-height:1;display:block;filter:drop-shadow(0 2px 2px rgba(7,43,70,.08))}
@media(max-width:800px){
 .nav-dark .nav-inner>a::after{display:none!important}
 .nav-dark .nav-inner>a.active,.nav-dark .nav-inner>a[aria-current="page"]{background:#1b567f;color:#fff;font-weight:800;box-shadow:inset 4px 0 #4cd69b}
 .nav-dark .nav-inner>a:not(.active):not([aria-current="page"]){background:none;box-shadow:none;color:#e2edf6}
 .nav-dark .nav-inner>a:not(.active):not([aria-current="page"]):focus-visible{outline:2px solid #90dff4;outline-offset:0}
 .app-bottom-nav a.is-active,.app-bottom-nav button.is-active{color:#fff;background:#125683}
 .app-bottom-nav a[aria-current="page"] svg{color:#79dfff}
 .hub-feature-side .hub-side-icon{width:48px;height:48px}
 .hub-feature-side .hub-side-emoji{font-size:39px}
}
@media(max-width:700px){
 /* Home hero: remove mobile-only daily tip and the empty height it previously occupied. */
 body:not(.alerts-hub-body) .hero-approved{height:auto!important;min-height:0!important;overflow:hidden;background:#f0f8fd}
 .hero-approved .hero-inner{display:block!important;height:auto!important;min-height:0!important;padding:0!important}
 .hero-approved .hero-copy{width:100%!important;max-width:440px;padding:24px 0 23px!important;margin:0!important}
 .hero-approved .hero-copy h1{font-size:clamp(28px,7.9vw,38px);line-height:1.08;margin:0 0 9px;max-width:420px}
 .hero-approved .hero-copy>p{font-size:12.5px;line-height:1.42;max-width:355px;margin:0 0 10px}
 .hero-approved .trust-points{gap:6px 10px;white-space:normal}
 .hero-approved .trust-points span{font-size:10px}
 .hero-approved .trust-points b{width:14px;height:14px;font-size:10px}
 .hero-approved .daily-tip{display:none!important}
 .hero-approved .hero-photo{inset:0!important;background-position:69% 45%!important;opacity:.48!important}
 .hero-approved .hero-whitefade{background:linear-gradient(90deg,#f2f9fd 0%,rgba(242,249,253,.98) 26%,rgba(242,249,253,.8) 66%,rgba(242,249,253,.5) 100%)!important}
 /* Left-align visible logo artwork to the same text rail as the hero heading. */
 .masthead .wrap{width:90%!important}
 .masthead .masthead-inner{justify-content:space-between;gap:8px}
 .masthead .identity{margin-left:-5px;min-width:0}
 .masthead .site-logo-header{display:block;max-width:min(60vw,252px);height:auto;max-height:49px;object-fit:contain}
 .masthead .app-search-toggle{margin-left:auto}
 /* Tighter tools, no fake space between description and the link arrow. */
 .tools-approved{padding-top:19px;padding-bottom:24px}
 .tools-approved .section-title-row{margin-bottom:12px;gap:10px}
 .tools-approved .stripe-title{font-size:20px;line-height:1.15}
 .tools-approved .tools-six{gap:9px}
 .tools-approved .tool-tile{height:auto!important;min-height:149px!important;padding:12px 11px 36px!important;display:flex;flex-direction:column;border-radius:15px}
 .tools-approved .tool-tile .tile-icon{width:29px;height:29px;margin:0 0 6px}
 .tools-approved .tool-tile h3{font-size:13px!important;line-height:1.2;margin:0 0 5px!important;min-height:0!important}
 .tools-approved .tool-tile p{font-size:10.6px!important;line-height:1.32;margin:0!important;padding:0!important;flex:0 0 auto;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
 .tools-approved .tool-tile .round-arrow{bottom:8px!important;right:10px!important;width:27px;height:27px}
 /* App-like shortcuts and tighter content cards. */
 .mobile-launch-shortcuts{padding-top:14px;padding-bottom:10px}
 .mobile-launch-shortcuts h2{font-size:19px;margin-bottom:9px}
 .mobile-launch-grid a{min-height:108px;padding:11px 12px;gap:4px}
 .mobile-shortcut-icon{height:34px;width:34px;border-radius:10px}
 .mobile-shortcut-icon svg{height:20px;width:20px}
 .mobile-shortcut-news{margin-top:8px;padding:10px 12px}
 .news-approved .news-columns{gap:19px}
 .alerts-panel .alert-row:nth-child(n+4){display:none!important}
}
@media(max-width:390px){
 .tools-approved .tool-tile{height:auto!important;min-height:147px!important;padding:11px 10px 35px!important}
 .tools-approved .tool-tile h3{font-size:12.6px!important}
 .tools-approved .tool-tile p{font-size:10.2px!important}
 .masthead .identity{margin-left:-6px}
}
@media(prefers-reduced-motion:reduce){.app-bottom-nav *{transition:none!important}}
