/*
Theme Name: Säker Hund
Theme URI: https://www.sakerhund.se/
Author: Säker Hund
Description: Ett lätt, tillgängligt och sökdrivet kunskapstema för hundägare.
Version: 17
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sakerhund
*/
:root{--navy:#163b45;--ink:#17343d;--text:#344b50;--muted:#677c7e;--sage:#e6efea;--light:#f7f8f5;--cream:#fdfcf8;--border:#dce5df;--link:#155e64;--coral:#ac5338;--white:#fff;--width:1140px;--reading:760px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--cream);color:var(--text);font-size:17px;line-height:1.68;-webkit-font-smoothing:antialiased}a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:3px}a:hover{color:#0a464c}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #db995b;outline-offset:3px}img{max-width:100%;height:auto}button,input{font:inherit}.container{width:min(var(--width),calc(100% - 40px));margin-inline:auto}.reading{max-width:var(--reading)}.skip-link{position:absolute;top:-60px;left:15px;padding:10px;background:white;z-index:999}.skip-link:focus{top:12px}.site-header{background:#fff;border-bottom:1px solid var(--border);position:relative;z-index:30}.header-inner{min-height:88px;display:flex;align-items:center;gap:32px}.site-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy);flex-shrink:0}.brand-icon{width:44px;height:44px;border-radius:13px;background:var(--sage);display:grid;place-items:center;color:var(--navy)}.brand-icon svg{width:29px;height:29px}.brand-name{font-size:24px;line-height:1;letter-spacing:-.9px;font-weight:800}.brand-tagline{font-size:11px;line-height:1.3;font-weight:600;color:#667d7a;letter-spacing:.1px;margin-top:5px}.site-nav{display:flex;align-items:center;gap:24px;margin-left:auto}.site-nav a{font-size:14px;color:var(--navy);font-weight:700;text-decoration:none;white-space:nowrap}.site-nav a:hover{text-decoration:underline}.header-search{border-radius:999px;background:#edf3ef;padding:9px 15px;display:flex;align-items:center;gap:7px;font-size:14px;text-decoration:none;color:var(--navy);font-weight:700;white-space:nowrap}.mobile-toggle{display:none;background:transparent;border:0;padding:9px;cursor:pointer;color:var(--navy)}.hero{background:linear-gradient(115deg,#eaf2ec 0%,#f1f6f0 62%,#f8f8f3 100%);padding:75px 0 79px;border-bottom:1px solid var(--border)}.hero-inner{max-width:790px;margin:auto;text-align:center}.eyebrow{text-transform:uppercase;font-size:12px;font-weight:800;letter-spacing:2px;color:#507b73;margin:0 0 14px}.hero h1{font-size:clamp(40px,6vw,67px);line-height:1.12;color:var(--navy);margin:0;letter-spacing:-2.8px;font-weight:800}.hero-lede{font-size:19px;max-width:580px;margin:22px auto 30px;color:#49656a}.search-wrap{position:relative;max-width:690px;margin:0 auto;text-align:left}.smart-search{display:flex;align-items:center;padding:8px 8px 8px 22px;background:#fff;border:1px solid #d4e3da;border-radius:15px;box-shadow:0 12px 35px #20483913;gap:12px}.smart-search svg{flex:none;width:23px;color:#66817c}.smart-search input{width:100%;min-width:0;border:0;outline:none!important;color:var(--navy);font-size:17px;padding:12px 0;background:transparent}.smart-search button{border:0;border-radius:10px;padding:13px 24px;background:var(--navy);color:#fff;font-weight:700;cursor:pointer}.smart-search button:hover{background:#275964}.search-results-live{position:absolute;top:calc(100% + 7px);width:100%;background:#fff;border:1px solid var(--border);border-radius:13px;box-shadow:0 18px 40px #133c4626;z-index:15;overflow:hidden}.search-results-live[hidden]{display:none}.search-results-live a{display:block;padding:11px 17px;border-bottom:1px solid var(--border);text-decoration:none;font-weight:600;color:var(--navy)}.search-results-live a:hover,.search-results-live a:focus{background:var(--light)}.search-results-live .search-state{padding:12px 17px;color:var(--muted);font-size:14px}.hero-note{font-size:13px;margin:14px 0 0;color:#668078}.section{padding:70px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}.section-title{font-size:clamp(27px,3vw,37px);color:var(--navy);line-height:1.2;letter-spacing:-1px;margin:0}.section-desc{margin:9px 0 0;color:var(--muted)}.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.topic{display:flex;flex-direction:column;background:#fff;border:1px solid var(--border);border-radius:16px;padding:26px;min-height:214px;text-decoration:none;color:var(--navy);transition:transform .18s,box-shadow .18s}.topic:hover{transform:translateY(-3px);box-shadow:0 8px 24px #173b4520}.topic-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--sage);margin-bottom:20px;font-size:23px}.topic h3{margin:0 0 7px;font-size:19px;line-height:1.25;letter-spacing:-.4px}.topic p{font-size:14px;line-height:1.5;margin:0;color:var(--muted)}.topic .arrow{margin-top:auto;padding-top:13px;color:var(--link);font-weight:800}.section-soft{background:#f2f6f1;border-block:1px solid var(--border)}.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.article-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:25px;display:flex;flex-direction:column;min-height:190px}.article-card .mini-category{text-transform:uppercase;letter-spacing:1.1px;color:#60847b;font-weight:800;font-size:11px;text-decoration:none}.article-card h3{font-size:20px;line-height:1.38;margin:12px 0 14px;letter-spacing:-.4px}.article-card h3 a{color:var(--navy);text-decoration:none}.article-card h3 a:hover{text-decoration:underline}.article-card .more{margin-top:auto;font-size:14px;font-weight:700;text-decoration:none}.feature-band{padding:45px 0}.feature-inner{border-radius:18px;padding:36px 40px;background:#e6efe8;display:flex;align-items:center;justify-content:space-between;gap:25px}.feature-inner h2{color:var(--navy);line-height:1.25;margin:0 0 6px;font-size:27px;letter-spacing:-.7px}.feature-inner p{margin:0}.btn-outline{display:inline-block;border:1px solid var(--navy);padding:11px 20px;color:var(--navy);font-weight:800;text-decoration:none;border-radius:9px;white-space:nowrap}.content-layout{padding:42px 0 85px}.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:35px}.breadcrumbs a{color:var(--muted)}.post-head{max-width:var(--reading);margin:auto}.kicker{font-size:12px;color:#558277;letter-spacing:1.2px;text-transform:uppercase;font-weight:800}.post-head h1,.page-head h1{font-size:clamp(35px,5vw,54px);letter-spacing:-1.7px;color:var(--navy);line-height:1.15;margin:15px 0 20px}.post-meta{color:var(--muted);font-size:13px;margin-bottom:27px}.post-body{max-width:var(--reading);margin-inline:auto;overflow-wrap:break-word}.post-body>:first-child{margin-top:0}.post-body p{margin:0 0 1.25em}.post-body h2{font-size:29px;line-height:1.25;letter-spacing:-.7px;color:var(--navy);margin:1.7em 0 .55em}.post-body h3{font-size:22px;line-height:1.3;color:var(--navy);margin:1.4em 0 .5em}.post-body ul,.post-body ol{padding-left:26px;margin:0 0 1.3em}.post-body li{margin-bottom:.4em}.post-body blockquote{margin:25px 0;padding:18px 24px;border-left:4px solid #7ca99b;background:#edf3ef}.post-body table{border-collapse:collapse;width:100%;margin:23px 0;font-size:15px;display:block;overflow-x:auto}.post-body th,.post-body td{border:1px solid #d4e0d8;padding:11px 14px;text-align:left}.post-body th{background:#eaf0ea;color:var(--navy)}.post-body .wp-block-image img,.post-body img{border-radius:10px}.post-body .quick-answer,.post-body .kort-svar{padding:23px 27px;border-left:4px solid #588779;background:#edf4ee;border-radius:0 12px 12px 0;margin:26px 0}.post-body .warning,.post-body .viktigt{background:#fff2e9;border-left:4px solid var(--coral);padding:20px 24px;border-radius:0 12px 12px 0}.post-footer{max-width:var(--reading);margin:48px auto 0;border-top:1px solid var(--border);padding-top:22px;font-size:14px;color:var(--muted)}.related-list{max-width:var(--reading);margin:35px auto 0}.related-list h2{font-size:24px;color:var(--navy)}.related-list a{display:block;background:#f3f6f2;border-radius:10px;padding:12px 15px;margin-top:8px;text-decoration:none;font-weight:700}.page-head{max-width:var(--reading);margin:auto}.listing{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:900px}.pagination{padding-top:30px}.pagination .page-numbers{display:inline-block;padding:8px 13px;border:1px solid var(--border);border-radius:6px;margin:3px}.not-found{padding:90px 0;text-align:center}.not-found h1{color:var(--navy);font-size:48px;margin-bottom:8px}.site-footer{background:#153b45;color:#d6e5e2;padding:54px 0 24px}.footer-cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:45px}.site-footer h3{font-size:16px;color:#fff;margin:0 0 14px}.site-footer p{max-width:360px;font-size:14px}.site-footer a{color:#e0eeeb;text-decoration:none}.site-footer a:hover{text-decoration:underline}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{margin-bottom:8px;font-size:14px}.footer-bottom{border-top:1px solid #ffffff27;margin-top:35px;padding-top:22px;font-size:12px;color:#b2cbc8}.empty-state{grid-column:1/-1;border:1px dashed var(--border);padding:22px;border-radius:12px;color:var(--muted)}
@media(max-width:900px){.topic-grid{grid-template-columns:repeat(2,1fr)}.article-grid{grid-template-columns:repeat(2,1fr)}.mobile-toggle{display:block;margin-left:auto}.header-search{margin-left:auto}.site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--border);padding:18px 24px;box-shadow:0 12px 20px #183c4522;flex-direction:column;align-items:stretch;margin:0;gap:17px}.site-nav.is-open{display:flex}.header-inner{gap:12px}}
@media(max-width:600px){body{font-size:16px}.container{width:min(var(--width),calc(100% - 30px))}.header-inner{min-height:70px}.brand-icon{width:39px;height:39px}.brand-name{font-size:21px}.brand-tagline{font-size:10px}.header-search{border-radius:9px;padding:8px}.header-search span{display:none}.hero{padding:60px 0 62px}.hero h1{letter-spacing:-1.7px}.hero-lede{font-size:16px}.smart-search{padding:7px 7px 7px 12px;gap:7px}.smart-search input{font-size:15px}.smart-search button{font-size:14px;padding:11px 13px}.section{padding:45px 0}.topic-grid,.article-grid,.listing{grid-template-columns:1fr}.topic{min-height:0;padding:21px}.topic-icon{margin-bottom:13px}.feature-inner{display:block;padding:25px}.feature-inner .btn-outline{margin-top:20px}.footer-cols{grid-template-columns:1fr 1fr;gap:25px}.footer-about{grid-column:1/-1}.content-layout{padding:30px 0 55px}.post-body h2{font-size:25px}.post-head h1{letter-spacing:-1.1px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.topic{transition:none}}

/* Theme 3 – varsam putsning utan ändrade URL:er */
.hero{padding-top:54px;padding-bottom:56px}
.hero-lede{margin-top:16px;margin-bottom:24px}
.section{padding-top:54px;padding-bottom:54px}
.post-head h1{font-size:clamp(32px,4.25vw,46px);letter-spacing:-1.25px;line-height:1.18}
.post-body{font-size:16px;line-height:1.76}
.post-body h2{font-size:27px}
.content-layout{padding-top:35px}
.breadcrumbs{margin-bottom:27px}
.site-nav{gap:20px}
.archive-layout .page-head{margin-bottom:34px}
.archive-layout .page-head p:not(.eyebrow){color:var(--muted)}
.archive-articles{margin-top:28px}
@media(max-width:600px){.hero{padding-top:43px;padding-bottom:43px}.section{padding-top:37px;padding-bottom:37px}.post-body{font-size:16px}.post-head h1{font-size:clamp(31px,8vw,40px)}}

/* Theme 4 – redaktionella ytor utan AI-typiska accentstreck */
:root{--warm-white:#fffefa;--hero-wash:#e7eee7;--soft-mist:#f0f4ef}
body{background:var(--warm-white)}
.section-soft{background:#f0f4ef}
.hero{background:#eaf1ea;border-bottom:1px solid #dce5dd}
/* Artikeln ramas in som ett lugnt faktablad. Alla innehålls-URL:er lämnas orörda. */
.article-layout{padding-top:32px}
.article-hero{width:min(940px,100%);margin:0 auto 42px;background:#e7eee7;border:1px solid #dce6de;border-radius:21px;padding:28px clamp(23px,5vw,65px) 34px}
.article-hero .breadcrumbs{margin-bottom:29px}
.article-hero .post-head{max-width:var(--reading)}
.article-hero .post-meta{margin-bottom:0}
.article-layout .post-body{background:transparent}
/* Automatiskt kortsvar: endast första stycket som börjar med en fet etikett. */
.article-layout .post-body>p:first-child:has(>strong:first-child){background:#f1f5ef;border:1px solid #d9e7dc;border-radius:16px;padding:22px 26px;margin:0 0 32px;color:#244b48;line-height:1.75}
.article-layout .post-body>p:first-child>strong:first-child{color:var(--navy);font-weight:800}
.article-layout .post-body>p:first-child:has(>strong:first-child)+h2{margin-top:1.3em}
/* Arkivets intro har en tydlig egen yta */
.archive-layout{padding-top:32px}
.archive-hero{background:#e9f0e9;border:1px solid #dce7dc;border-radius:21px;padding:28px clamp(23px,5vw,65px) 35px;margin-bottom:33px}
.archive-hero .breadcrumbs{margin-bottom:25px}
.archive-hero .page-head{max-width:var(--reading);margin:0}
.archive-hero .page-head h1{margin-top:11px}
.archive-hero .page-head p:last-child{margin-bottom:0}
.archive-layout .archive-articles{margin-top:0}
/* Korten får en mjuk hörnyta i stället för överlinjer eller färgstreck */
.article-card{position:relative;isolation:isolate;overflow:hidden;border-radius:19px;padding:28px 29px;min-height:205px;box-shadow:0 3px 11px rgba(23,59,69,.025);transition:box-shadow .17s ease,transform .17s ease}
.article-card::before{content:"";position:absolute;z-index:-1;top:0;left:0;width:106px;height:87px;background:#e5f0e8;border-radius:0 0 84px 0;opacity:.9}
.article-card .mini-category{position:relative;color:#4c796f;letter-spacing:1.2px}
.article-card h3{margin-top:22px}
.article-card:hover{box-shadow:0 12px 27px rgba(23,59,69,.08);transform:translateY(-2px)}
.topic{border-radius:19px;box-shadow:0 2px 8px rgba(23,59,69,.025)}
.topic-icon{background:#e3eee8;border-radius:15px}
.topic:nth-child(2) .topic-icon{background:#e8eff0}
.topic:nth-child(3) .topic-icon{background:#eaece5}
.topic:nth-child(4) .topic-icon{background:#f0ece4}
.post-body table{border-radius:8px}
@media(max-width:600px){.article-layout,.archive-layout{padding-top:17px}.article-hero,.archive-hero{border-radius:15px;padding:22px 21px 28px;margin-bottom:30px}.article-hero .breadcrumbs,.archive-hero .breadcrumbs{margin-bottom:21px}.article-layout .post-body>p:first-child:has(>strong:first-child){padding:18px 20px;margin-bottom:27px}.article-card{min-height:185px;padding:25px}.article-card h3{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.article-card{transition:none}}

/* Theme 5 – diskretare kort, lättare sektion och tydlig juridisk footer */
.section-soft{background:#f6f8f5}
.article-card::before{width:68px;height:60px;border-radius:0 0 58px 0;background:#edf4ee;opacity:.72}
.article-card .mini-category{z-index:1}
.article-card h3{margin-top:17px}
.footer-bottom a{color:inherit}
@media(max-width:600px){.article-card::before{width:58px;height:52px}.article-card h3{margin-top:15px}}

/* Theme 6 – annonsytor (påverkar bara inlägg när funktionen aktiveras). */
.sh-ad-unit{max-width:var(--reading);margin:30px auto;clear:both;min-width:0;overflow:hidden;text-align:center}
.sh-ad-unit ins.adsbygoogle{display:block;min-width:0}
.sh-ad-preview{min-height:110px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;border:2px dashed #9bb5ab;border-radius:12px;background:#f1f6f2;color:#47645b;font-size:14px;padding:22px;text-align:center}
.sh-ad-preview strong{font-size:15px;color:#274d46}
@media(max-width:600px){.sh-ad-unit{margin:25px auto}.sh-ad-preview{min-height:92px}}


/* Theme 7 – diskreta kategoriikoner i artikelkorten */
.article-card.has-corner-icon{padding-right:98px}
.article-card-icon{position:absolute;top:24px;right:24px;width:56px;height:56px;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:.3}
.article-card-icon img{display:block;width:56px;height:56px;object-fit:contain;filter:none}
@media(max-width:600px){.article-card.has-corner-icon{padding-right:84px}.article-card-icon{top:21px;right:21px;width:52px;height:52px}.article-card-icon img{width:52px;height:52px}}

/* Theme 9 – shared category icons (media library, same visual language). */
.topic-icon img{display:block;width:33px;height:33px;object-fit:contain;opacity:.75}
.article-hero{position:relative;isolation:isolate}
.sh-article-hero-icon{position:absolute;top:72px;right:clamp(23px,5vw,65px);width:66px;height:66px;opacity:.22;pointer-events:none;z-index:0}
.sh-article-hero-icon img{width:100%;height:100%;object-fit:contain;display:block}
@media(max-width:600px){.sh-article-hero-icon{width:48px;height:48px;top:58px;right:20px;opacity:.18}}


/* Theme 10 – finjusterad ikonplacering och breadcrumbs utanför artikelhero */
.article-layout > .breadcrumbs{max-width:940px;margin:0 auto 18px;padding-inline:clamp(23px,5vw,65px)}
.article-hero{padding-top:44px}
.article-hero .breadcrumbs{display:none}
.sh-article-hero-icon{top:42px;right:calc(clamp(23px,5vw,65px) - 12px);width:66px;height:66px;opacity:.22}
.article-card-icon{top:12px;right:12px}
@media(max-width:600px){.article-layout > .breadcrumbs{margin-bottom:14px;padding-inline:21px}.article-hero{padding-top:30px}.sh-article-hero-icon{width:48px;height:48px;top:26px;right:8px;opacity:.18}.article-card-icon{top:9px;right:9px}}


/* Theme 11 – enklare mobilhero, ny headerikon och enhetliga ikonbadges */
.brand-icon{overflow:hidden;padding:0;background:#e3eee8}
.brand-icon img{display:block;width:29px;height:29px;object-fit:contain;opacity:.92}
.sh-icon-badge{display:grid;place-items:center;border-radius:15px}
.sh-icon-badge img{display:block;object-fit:contain;opacity:.78}
.sh-tone-sage{background:#dfe9e4}
.sh-tone-mist{background:#dfe7e9}
.sh-tone-sand{background:#e6e5dc}
.sh-tone-clay{background:#ece6de}
.hero-inner{max-width:760px}
.hero-lede{max-width:620px}
.topic{padding:24px 26px 24px;min-height:196px}
.topic-icon{width:52px;height:52px;margin-bottom:18px;background:transparent}
.topic-icon img{width:34px;height:34px;opacity:.82}
.topic h3{margin:0 0 9px}
.topic .arrow{margin-top:18px;padding-top:0;font-size:28px;line-height:1;font-weight:800;color:var(--link)}
.article-card.has-corner-icon{padding-right:112px}
.article-card-icon{top:10px;right:10px;width:58px;height:58px;opacity:1;padding:12px}
.article-card-icon img{width:34px;height:34px;opacity:.8}
.article-hero{padding-top:30px}
.kicker{margin-bottom:10px}
.sh-article-hero-icon{top:22px;right:22px;width:74px;height:74px;opacity:1;padding:16px}
.sh-article-hero-icon img{width:42px;height:42px;opacity:.78}
@media(max-width:600px){
  .header-inner{min-height:72px}
  .brand-icon{width:48px;height:48px;border-radius:15px}
  .brand-icon img{width:32px;height:32px}
  .hero{padding:34px 0 40px}
  .hero .eyebrow,.hero .hero-lede,.hero .hero-note{display:none}
  .hero h1{font-size:clamp(36px,10.8vw,56px);line-height:1.05;letter-spacing:-1.3px;margin-bottom:20px}
  .smart-search{padding:8px 8px 8px 14px}
  .section{padding:38px 0}
  .topic{padding:22px 22px 20px;min-height:0}
  .topic-icon{width:60px;height:60px;margin-bottom:16px;border-radius:17px}
  .topic-icon img{width:38px;height:38px}
  .topic h3{font-size:20px;line-height:1.2;margin-bottom:8px}
  .topic p{font-size:15px;line-height:1.45}
  .topic .arrow{margin-top:12px;font-size:34px}
  .article-card.has-corner-icon{padding-right:96px}
  .article-card-icon{top:8px;right:8px;width:56px;height:56px;padding:11px;border-radius:16px}
  .article-card-icon img{width:34px;height:34px}
  .article-hero{padding-top:22px}
  .sh-article-hero-icon{top:16px;right:16px;width:62px;height:62px;padding:13px;border-radius:17px}
  .sh-article-hero-icon img{width:36px;height:36px}
}


/* Theme 12 – försiktig återgång: artikelikon, renare kort och bättre mobilkategorier */
.article-card::before{content:none !important;display:none !important}
.article-card{overflow:hidden}
.article-hero{padding-top:20px}
.kicker{margin-bottom:6px}
.post-head h1{margin-top:10px}
.sh-article-hero-icon{top:18px;right:18px;background:rgba(253,252,248,.7);border-radius:18px;padding:16px;box-shadow:none}
.sh-article-hero-icon.sh-icon-badge{background:rgba(253,252,248,.7)}
.sh-article-hero-icon img{opacity:.82}
/* ämneskort – dator */
.topic{position:relative;display:grid;grid-template-columns:74px 1fr 40px;grid-template-areas:
  "icon title arrow"
  "desc desc desc";align-items:start;column-gap:18px;row-gap:10px;padding:28px 28px 24px;min-height:0;border-radius:24px}
.topic-icon{grid-area:icon;width:82px;height:82px;margin:0;border-radius:24px;background:transparent}
.topic-icon img{width:46px;height:46px;opacity:.84}
.topic h3{grid-area:title;margin:10px 0 0;font-size:22px;line-height:1.18;letter-spacing:-.5px}
.topic p{grid-area:desc;margin:6px 52px 0 0;font-size:16px;line-height:1.5}
.topic .arrow{grid-area:arrow;justify-self:end;align-self:start;margin:4px 0 0;font-size:58px;line-height:1;color:var(--link)}
/* artikelkort behåller sin vertikala struktur men utan hörndekor */
.article-card{border-radius:24px;padding:28px 30px;min-height:210px}
.article-card.has-corner-icon{padding-right:112px}
.article-card-icon{top:22px;right:22px;width:64px;height:64px;padding:13px;border-radius:20px}
.article-card-icon img{width:38px;height:38px;opacity:.84}
/* mobil – mer text tillbaka i hero, mindre tomyta och bättre kategori-kort */
@media(max-width:600px){
  .hero{padding:40px 0 44px}
  .hero .hero-lede{display:block;font-size:15px;line-height:1.45;max-width:330px;margin:0 auto 18px;color:#5f7578}
  .hero h1{font-size:clamp(29px,7.6vw,34px);line-height:1.08;letter-spacing:-.9px;margin:0 0 14px;max-width:none}
  .hero .hero-note,.hero .eyebrow{display:none}
  .article-hero{padding-top:18px}
  .sh-article-hero-icon{top:14px;right:14px;width:62px;height:62px;padding:14px;border-radius:18px;background:rgba(253,252,248,.72)}
  .sh-article-hero-icon img{width:34px;height:34px}
  .topic{grid-template-columns:72px 1fr 34px;grid-template-areas:
    "icon title arrow"
    "icon desc desc";column-gap:16px;row-gap:8px;padding:26px 22px 22px;border-radius:22px}
  .topic-icon{width:64px;height:64px;border-radius:19px}
  .topic-icon img{width:38px;height:38px}
  .topic h3{margin:6px 0 0;font-size:18px;line-height:1.2}
  .topic p{margin:2px 0 0;font-size:15px;line-height:1.45}
  .topic .arrow{font-size:44px;margin:0;align-self:start}
}


/* Theme 13 – mobil artikelikon bort, säkrare ikonplattor, bättre desktop-kategorikort */
/* Tydliga plattor bakom kategoriikoner */
.topic.topic--forsakring-kostnader .topic-icon{background:#e4ece6}
.topic.topic--mat-och-halsa .topic-icon{background:#dfe7e9}
.topic.topic--bil-resa-transport .topic-icon{background:#e6e5dc}
.topic.topic--valp-och-vardag .topic-icon{background:#ece6de}

/* Desktop kategorikort: mer luft, mindre pil, pil nere till höger */
@media(min-width:601px){
  .topic-grid{align-items:stretch}
  .topic{position:relative;display:grid;grid-template-columns:96px 1fr;grid-template-areas:
    "icon title"
    "desc desc";column-gap:20px;row-gap:16px;padding:26px 28px 64px;min-height:326px;border-radius:24px}
  .topic-icon{grid-area:icon;width:104px;height:104px;border-radius:28px;margin:0}
  .topic-icon img{width:52px;height:52px}
  .topic h3{grid-area:title;margin:12px 54px 0 0;font-size:23px;line-height:1.15;letter-spacing:-.6px}
  .topic p{grid-area:desc;margin:0;max-width:none;font-size:16px;line-height:1.5}
  .topic .arrow{position:absolute;right:26px;bottom:18px;margin:0;font-size:34px;line-height:1;padding:0}
}

/* På mobil inne i artiklar behövs inte hero-ikonen */
@media(max-width:600px){
  .sh-article-hero-icon{display:none}
}


/* Theme 14 – sökfält, mobilikoner och vertikala ämneskort på desktop */
/* iOS Safari fokuserar utan automatisk inzoomning från 16 px. */
@media(max-width:900px){.smart-search input{font-size:16px}}
/* Desktop: ikon över rubrik, text under, pil nere till höger. */
@media(min-width:901px){
  .topic{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;min-height:0;padding:25px 25px 52px}
  .topic-icon{flex:none;width:88px;height:88px;border-radius:24px;margin:0 0 18px}
  .topic-icon img{width:48px;height:48px}
  .topic h3{margin:0 0 12px;font-size:20px;line-height:1.24;letter-spacing:-.4px;overflow-wrap:break-word}
  .topic p{margin:0;font-size:15px;line-height:1.5;overflow-wrap:break-word}
  .topic .arrow{position:absolute;bottom:14px;right:22px;font-size:30px;line-height:1;margin:0}
}
/* Mellanstora skärmar med två kolumner använder också lodrät ordning. */
@media(min-width:601px) and (max-width:900px){
  .topic{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;min-height:0;padding:24px 24px 54px}
  .topic-icon{width:82px;height:82px;margin:0 0 16px;border-radius:22px}
  .topic h3{margin:0 0 11px;font-size:20px;line-height:1.25}
  .topic p{margin:0;font-size:15px;line-height:1.5}
  .topic .arrow{position:absolute;right:20px;bottom:14px;margin:0;font-size:30px}
}
/* Mobil: flytta bara ikonplattorna på kategorikort och artikelkort 4 px nedåt. */
@media(max-width:600px){
  .topic-icon{transform:translateY(4px)}
  .article-card-icon{top:12px}
}


/* Theme 16 – hela artikelkortet är länkat, kategorilänken är separat. */
.article-card{position:relative}
.article-card .more::after{content:"";position:absolute;inset:0;z-index:2;cursor:pointer}
.article-card .mini-category{position:relative;z-index:3}
.article-card .article-card-icon{pointer-events:none}
.article-card:focus-within{outline:3px solid #db995b;outline-offset:3px}
/* Mobil: jämna marginaler för ikonen i artikelkort – lika från ovankant och högerkant. */
@media(max-width:600px){
  .article-card-icon{top:22px;right:22px}
}

/* Theme 17 – ankaret är på hela sökheron, inte på inmatningsfältet. */
#search-hero{scroll-margin-top:0}
