/* ---------- WordPress-specifikt (komplement till site.css) ---------- */

/* Adminfältet när man är inloggad */
.admin-bar .hdr{top:32px}
@media (max-width:782px){.admin-bar .hdr{top:46px}}
@media (max-width:600px){.admin-bar .hdr{top:0}}

/* Formulär: skickas-läge och felmeddelande */
.btn.is-busy{opacity:.65;pointer-events:none}
.sh-err{margin-top:12px;color:#c0392b;font-size:14px;font-weight:600}
.sh-err:empty{display:none}

/* Generiska sidor och inlägg */
.hero-page{padding:calc(var(--hdr) + 64px) 0 72px}
.hero-page h1{font-size:clamp(2rem,4.2vw,3.3rem);max-width:20em}
.hero-page .meta{margin-top:16px;color:#a9bacb;font-size:14px;font-weight:600}
.hero-404{padding-bottom:120px}

.sh-prose{max-width:780px;font-size:17px;line-height:1.75;color:var(--ink-soft)}
.sh-prose > * + *{margin-top:1.1em}
.sh-prose h2,.sh-prose h3,.sh-prose h4{color:var(--navy);margin-top:1.8em}
.sh-prose h2{font-size:clamp(1.5rem,2.6vw,2rem)}
.sh-prose h3{font-size:1.3rem}
.sh-prose a{color:var(--orange);font-weight:600}
.sh-prose ul,.sh-prose ol{padding-left:1.3em}
.sh-prose ul{list-style:disc}
.sh-prose li + li{margin-top:.35em}
.sh-prose blockquote{margin-left:0;padding:6px 0 6px 22px;border-left:4px solid var(--peach);font-style:italic;color:var(--navy)}
.sh-prose img,.sh-prose figure{border-radius:var(--radius);height:auto}
.sh-prose figure{margin-inline:0}
.sh-prose figcaption{font-size:14px;color:#6b7785;margin-top:8px}
.sh-prose table{width:100%;border-collapse:collapse}
.sh-prose th,.sh-prose td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left}
.sh-prose .wp-block-button__link{background:var(--orange);color:#fff;border-radius:var(--pill);padding:12px 24px;text-decoration:none}
.sh-feat img{width:100%}
.sh-back{margin-top:48px}
.alignwide{width:min(1100px,100vw - 48px);max-width:none;margin-inline:calc(50% - min(550px,50vw - 24px))}
.alignfull{width:100vw;max-width:none;margin-inline:calc(50% - 50vw)}
.aligncenter{margin-inline:auto}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

.sh-posts .vis:empty{background:linear-gradient(135deg,var(--navy),var(--slate))}
.sh-pager{margin-top:48px}
.sh-pager .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.sh-pager .page-numbers{display:inline-grid;place-items:center;min-width:44px;height:44px;padding:0 12px;border-radius:22px;border:1px solid var(--line);text-decoration:none;font-weight:600;color:var(--navy)}
.sh-pager .page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}

/* Importerat innehåll (inc/importer/clean.php): accordion, inbäddad video, breda tabeller */
.sh-prose details{border:1px solid var(--line);border-radius:14px;padding:16px 20px;background:#fff}
.sh-prose details + details{margin-top:12px}
.sh-prose summary{cursor:pointer;font-weight:700;color:var(--navy);line-height:1.45}
.sh-prose details[open] summary{margin-bottom:.7em}
.sh-prose details > * + *{margin-top:.8em}
.sh-prose details > summary + *{margin-top:0}
.sh-prose iframe,.sh-prose video,.art-prose iframe,.art-prose video{display:block;width:100%;max-width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:var(--radius);background:#000}
.sh-prose table,.art-prose table{display:block;max-width:100%;overflow-x:auto}
.sh-prose img,.art-prose img{max-width:100%;height:auto}
