/* Postia – tema. Mobil först, systemtypsnitt, inga externa resurser. */
:root {
	--p-navy: #14213D;
	--p-navy-2: #1E2F55;
	--p-blue: #1868DC;
	--p-blue-dark: #1558C0;
	--p-red: #D0301F;
	--p-red-brand: #E2372B;
	--p-red-dark: #B02516;
	--p-red-light: #FDECEA;
	--p-teal: #007F73;
	--p-bg: #F6F8FB;
	--p-line: #E3E7EE;
	--p-muted: #5B6476;
	--p-white: #FFFFFF;
	--p-radius: 14px;
	--p-shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 12px 32px rgba(20, 33, 61, .08);
	--p-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--p-gutter: 20px;
	--p-max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--p-font); font-size: 17px; line-height: 1.6; color: var(--p-navy); background: var(--p-white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--p-blue); text-underline-offset: 2px; }
a:hover { color: var(--p-blue-dark); }
:focus-visible { outline: 3px solid var(--p-blue); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--p-navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 var(--p-gutter); }
.container--wide, .topbar .container, .site-header .container, .site-footer .container { max-width: var(--p-max); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--p-navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Knappar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.btn--red { background: var(--p-red); color: #fff; }
.btn--red:hover { background: var(--p-red-dark); color: #fff; }
.btn--line { border-color: var(--p-navy); color: var(--p-navy); background: #fff; }
.btn--line:hover { background: var(--p-bg); color: var(--p-navy); }

/* ---------- Toppraden ---------- */
.topbar { background: var(--p-navy); color: #E7ECF5; font-size: 14px; }
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: 38px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: #E7ECF5; text-decoration: none; }
a.topbar__item:hover { color: #fff; text-decoration: underline; }
.topbar__box { margin-left: auto; }
.topbar .pss-oh__status { color: #E7ECF5; font-weight: 600; }
@media (max-width: 760px) { .topbar__mail, .topbar__box { display: none; } .topbar__in { gap: 14px; justify-content: space-between; } }

/* ---------- Sidhuvud ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--p-line); backdrop-filter: saturate(160%) blur(6px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.site-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.site-logo__img { display: block; height: 54px; width: auto; }
@media (max-width: 560px) { .site-logo__img { height: 46px; } }
.site-logo__name { font-weight: 900; font-size: 24px; letter-spacing: .04em; color: var(--p-blue); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav .menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--p-navy); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a, .site-nav .menu [aria-current="page"] { background: var(--p-bg); color: var(--p-navy); }
.site-nav .menu .sub-menu { display: none; position: absolute; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--p-line); border-radius: 12px; box-shadow: var(--p-shadow); min-width: 220px; }
.site-nav .menu li { position: relative; }
.site-nav .menu li:hover > .sub-menu, .site-nav .menu li:focus-within > .sub-menu { display: block; }
.site-nav__actions { display: flex; align-items: center; gap: 14px; }
.nav-account { color: var(--p-navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav-account:hover { text-decoration: underline; color: var(--p-navy); }
.nav-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; background: none; border: 1px solid var(--p-line); border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--p-navy); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--p-line); box-shadow: 0 18px 40px rgba(20, 33, 61, .12); padding: 12px var(--p-gutter) 20px; flex-direction: column; align-items: stretch; gap: 12px; max-height: calc(100vh - 110px); overflow: auto; }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu a { padding: 14px 12px; font-size: 17px; }
	.site-nav .menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 12px; }
	.site-nav__actions { flex-direction: column; align-items: stretch; }
	.nav-account { padding: 12px; }
	.nav-cta { min-height: 52px; font-size: 17px; }
}

/* ---------- Innehåll ---------- */
.site-main { display: block; min-height: 50vh; }
.site-main:focus { outline: none; }
.page-head { background: var(--p-bg); border-bottom: 1px solid var(--p-line); padding: 28px 0 32px; margin-bottom: 36px; }
.page-head__title { margin: 0; }
.entry-content { padding-bottom: 64px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--p-line); padding: 10px 8px; text-align: left; }
.entry-content .wp-block-details { border-bottom: 1px solid var(--p-line); padding: 14px 0; }
.entry-content .wp-block-details summary { font-weight: 700; cursor: pointer; }
.entry--sections .breadcrumbs { padding-top: 14px; }
.postia-sections .entry--sections .breadcrumbs { position: relative; z-index: 2; margin-bottom: -6px; }
.breadcrumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--p-muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--p-muted); }
.breadcrumbs a { color: var(--p-muted); }
.post-list { list-style: none; padding: 0; }
.post-list__item { border-bottom: 1px solid var(--p-line); padding: 18px 0; }
.link-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.link-grid a { display: block; padding: 16px 18px; border: 1px solid var(--p-line); border-radius: 12px; font-weight: 700; text-decoration: none; color: var(--p-navy); }
.link-grid a:hover { border-color: var(--p-navy); }
.search-form { display: flex; gap: 8px; margin-top: 24px; }
.search-form input[type="search"] { flex: 1; min-height: 48px; border: 1px solid #C5CAD3; border-radius: 10px; padding: 0 14px; font: inherit; }
.search-form input[type="submit"], .search-form button { min-height: 48px; border-radius: 10px; border: 0; background: var(--p-navy); color: #fff; font-weight: 700; padding: 0 18px; cursor: pointer; }

/* ---------- Sidfot ---------- */
.site-footer { background: var(--p-navy); color: #D9E0EC; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__kicker { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #FFB4AC; text-transform: uppercase; letter-spacing: .06em; }
.site-footer__title { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 800; color: #fff; line-height: 1.25; max-width: 640px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__h { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer li a, .site-footer p a { text-decoration: none; }
.site-footer li a:hover, .site-footer p a:hover { text-decoration: underline; }
.site-footer__small { font-size: 14px; color: #AEB8CC; }
.site-footer__hours .pss-oh__status { color: #fff; font-weight: 700; display: inline-flex; }
.site-footer__hours .pss-oh__text { display: block; margin: 4px 0 8px; color: #D9E0EC; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: #AEB8CC; }
.site-footer__bottom p { margin: 0; padding: 16px 0; }

/* ---------- WooCommerce ---------- */
.wc-wrap { padding-top: 24px; padding-bottom: 64px; }
.checkout-trust { list-style: none; margin: 0 0 16px; padding: 14px 16px; background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 12px; display: grid; gap: 6px; font-size: 14.5px; }
.checkout-trust li { position: relative; padding-left: 24px; }
.checkout-trust li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--p-teal); border-bottom: 2.5px solid var(--p-teal); transform: rotate(-45deg); }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce #place_order { background: var(--p-red) !important; color: #fff !important; border-radius: 999px !important; font-weight: 700 !important; min-height: 48px; padding: 0 24px !important; border: 0 !important; }
.woocommerce .button:hover, .woocommerce #place_order:hover { background: var(--p-red-dark) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid #C5CAD3; border-radius: 10px; min-height: 46px; padding: 10px 12px; font: inherit; }
.woocommerce-checkout #payment { background: var(--p-bg) !important; border-radius: 14px !important; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--p-blue) !important; }
.woocommerce-error { border-top-color: var(--p-red) !important; }
