/*
Theme Name:   Hittaonlineapotek (GeneratePress Child)
Theme URI:    https://hittaonlineapotek.se/
Description:  2026 redesign of Hittaonlineapotek.se. Child theme of GeneratePress with custom header, footer, front page and hub templates.
Author:       Hittaonlineapotek
Template:     generatepress
Version:      1.0.0
Text Domain:  hoa
*/

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/wp-content/themes/generatepress-child/fonts/fraunces-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/wp-content/themes/generatepress-child/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green-900: #0f3d33;
  --green-700: #17614f;
  --green-500: #23866c;
  --green-100: #e3f1ec;
  --green-50:  #f1f8f5;
  --cream:     #faf8f4;
  --white:     #ffffff;
  --ink:       #1b2420;
  --ink-soft:  #4d5a54;
  --line:      #e2e6e3;
  --accent:    #e76f51;
  --accent-dk: #c9583c;
  --gold:      #f2b84b;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,61,51,.06), 0 6px 20px rgba(15,61,51,.06);
  --wrap: 1180px;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }

h1, h2, h3 { font-family: var(--font-head); color: var(--green-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section--tint { background: var(--green-50); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-500); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.topbar { background: var(--green-900); color: #cfe5dd; font-size: .82rem; }
.topbar .wrap { display: flex; gap: 22px; justify-content: center; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar span::before { content: "✓ "; color: var(--gold); font-weight: 700; }

.hoa-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hoa-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--green-700); display: grid; place-items: center; }
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; color: var(--ink-soft); letter-spacing: .02em; margin-top: -3px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 9px 14px; border-radius: 999px; }
.nav a:hover, .nav a.is-active { background: var(--green-50); color: var(--green-700); }
.nav .search { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); }
.hoa-menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; color: var(--green-900); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; transition: background .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dk); color: var(--white); }
.btn--ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--ghost:hover { background: var(--green-700); color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--green-50) 0%, var(--cream) 60%); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--green-500); }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: .88rem; color: var(--ink-soft); }
.trust strong { color: var(--green-900); display: block; font-size: 1.25rem; font-family: var(--font-head); }

.hero-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--line); }
.hero-card h3 { font-size: 1.05rem; margin-bottom: 14px; display: flex; justify-content: space-between; }
.hero-card h3 span { font-family: var(--font-body); font-size: .75rem; color: var(--ink-soft); font-weight: 500; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; }
.mini-list .rank { width: 26px; height: 26px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-weight: 700; font-size: .8rem; display: grid; place-items: center; flex: none; }
.mini-list .name { font-weight: 700; color: var(--ink); }
.mini-list .note { font-size: .82rem; color: var(--ink-soft); display: block; line-height: 1.35; }
.mini-list .grow { flex: 1; }

.hero--solo .wrap { grid-template-columns: 1fr; }
.hero--solo .wrap > div { max-width: 760px; }

/* ---------- Pharmacy cards ---------- */
.pharm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.pharm { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, border-color .15s; }
.pharm:hover { box-shadow: var(--shadow); border-color: var(--green-100); }
.pharm-logo { height: 46px; border-radius: var(--radius-sm); background: var(--green-50); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--green-900); font-size: 1.1rem; }
.pharm h3 { margin: 4px 0 0; font-size: 1.05rem; }
.pharm p { font-size: .9rem; color: var(--ink-soft); margin: 0; flex: 1; }
.badge { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.pharm .actions { display: flex; gap: 8px; margin-top: 6px; }
.pharm .actions .btn { flex: 1; justify-content: center; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--green-500); transform: translateY(-2px); color: var(--ink); }
.cat-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--green-100); display: grid; place-items: center; }
.cat-icon svg { width: 22px; height: 22px; stroke: var(--green-700); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat strong { font-size: .98rem; }
.cat span { font-size: .8rem; color: var(--ink-soft); margin-top: -6px; }

/* ---------- Editorial split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 3px; }
.checks strong { color: var(--green-900); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 62px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s; }
.post-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.post-thumb { aspect-ratio: 16/9; background: var(--green-100); position: relative; }
.post-thumb.t2 { background: #fbe9e3; }
.post-thumb.t3 { background: #fdf2dc; }
.post-thumb::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; background: var(--white); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--green-700); }
.post-body { padding: 18px 20px 22px; }
.post-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-body p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--green-900); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green-500); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); }

/* ---------- Notice ---------- */
.notice { background: var(--white); border-left: 4px solid var(--green-500); border-radius: var(--radius-sm); padding: 18px 22px; font-size: .92rem; color: var(--ink-soft); }
.notice strong { color: var(--green-900); }

/* ---------- Footer ---------- */
.hoa-footer { background: var(--green-900); color: #b9d3ca; padding: 56px 0 28px; font-size: .92rem; }
.hoa-footer a { color: #e6f2ee; text-decoration: none; }
.hoa-footer a:hover { text-decoration: underline; color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.hoa-footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
.hoa-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hoa-footer .logo { color: var(--white); margin-bottom: 14px; }
.hoa-footer .logo small { color: #9fc0b4; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; }

/* ---------- Hub page ---------- */
.page-hero { background: var(--green-900); color: #d5e9e2; padding: 56px 0 48px; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #c3ddd4; }
.crumbs { font-size: .82rem; margin-bottom: 18px; color: #9fc0b4; }
.crumbs a { color: #d5e9e2; text-decoration: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chips a { text-decoration: none; font-size: .88rem; font-weight: 600; padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.18); }
.chips a:hover { background: var(--white); color: var(--green-900); }

.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -36px; position: relative; }
.method div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.method strong { display: block; color: var(--green-900); margin-bottom: 4px; }
.method span { font-size: .86rem; color: var(--ink-soft); }

.group { padding: 52px 0 8px; scroll-margin-top: 90px; }
.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.group-head .cat-icon { width: 48px; height: 48px; }
.group-head h2 { margin: 0; font-size: 1.6rem; }
.group-head p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.test { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.test:hover { border-color: var(--green-500); box-shadow: var(--shadow); color: var(--ink); }
.test-img { display: block; flex: none; height: 170px; margin: -8px -8px 4px; overflow: hidden; background: var(--white); }
.test-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.test h3 { margin: 0; font-size: 1.08rem; }
.test p { margin: 0; font-size: .88rem; color: var(--ink-soft); flex: 1; }
.test .meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--ink-soft); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.test .meta b { color: var(--green-700); }

/* ---------- Alla apotek: ranked list ---------- */
.rank-list { display: grid; gap: 16px; }
.rank-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 44px 150px 1fr auto; gap: 22px; align-items: center; }
.rank-item:hover { box-shadow: var(--shadow); }
.rank-item .rank { width: 40px; height: 40px; border-radius: 50%; background: var(--green-700); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.rank-item .pharm-logo { height: 56px; }
.rank-item h3 { margin: 0 0 4px; font-size: 1.2rem; }
.rank-item p { margin: 0 0 8px; font-size: .92rem; color: var(--ink-soft); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.rank-item .actions { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.rank-item .actions .btn { justify-content: center; }
.rank-item--eu .rank { background: var(--gold); color: var(--green-900); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp th { background: var(--green-50); color: var(--green-900); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 700; color: var(--green-900); }
.cmp .yes { color: var(--green-500); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 36px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .method { grid-template-columns: 1fr 1fr; }
  .rank-item { grid-template-columns: 44px 1fr auto; }
  .rank-item .pharm-logo { display: none; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav .nav-list { flex-direction: column; align-items: stretch; }
  .nav a { padding: 12px 14px; }
  .nav .search { display: none; }
  .hoa-menu-toggle { display: block; }
  .section { padding: 52px 0; }
  .wrap { padding: 0 16px; }
  .post-grid, .foot-grid, .method { grid-template-columns: 1fr; }
  .topbar span:nth-child(n+3) { display: none; }
  .hero { padding: 40px 0; }
  .rank-item { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
  .rank-item .actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .rank-item .actions .btn { flex: 1; }
}

/* ---------- Apoteksrecension hub ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.review-grid .pharm .actions .btn { white-space: nowrap; }
.review-grid .pharm .upd { font-size: .76rem; color: var(--ink-soft); }
.pharm--brand .pharm-logo { background: #f3eefb; color: #4b2f7a; }
.pharm--eu .pharm-logo { background: #fdf2dc; color: #7a5410; }
.cta-band { background: var(--green-700); color: #e3f1ec; border-radius: var(--radius); padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 56px; }
.cta-band h3 { color: var(--white); margin: 0 0 4px; font-size: 1.3rem; }
.cta-band p { margin: 0; }
.cta-band .btn--ghost { border-color: var(--white); color: var(--white); }
.cta-band .btn--ghost:hover { background: var(--white); color: var(--green-700); }

/* ---------- Blogg hub ---------- */
.featured { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); margin-top: -36px; position: relative; box-shadow: var(--shadow); }
.featured:hover { color: var(--ink); }
.featured .post-thumb { aspect-ratio: auto; min-height: 280px; }
.featured-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.featured-body h2 { margin: 0; font-size: 1.7rem; }
.featured-body p { margin: 0; color: var(--ink-soft); }
.post-meta { font-size: .78rem; color: var(--ink-soft); margin-top: 10px; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 48px 0 24px; }
.filter button { font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filter button:hover { border-color: var(--green-500); }
.filter button.is-active { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.post-card[hidden] { display: none; }
.post-thumb.c-hud { background: #fbe9e3; }
.post-thumb.c-cbd { background: #e3f1ec; }
.post-thumb.c-somn { background: #e6e9f7; }
.post-thumb.c-vikt { background: #fdf2dc; }
.post-thumb.c-guide { background: #eef3f1; }
@media (max-width: 760px) {
  .featured { grid-template-columns: 1fr; }
  .featured .post-thumb { min-height: 180px; }
  .featured-body { padding: 22px; }
  .cta-band { padding: 22px; }
}

/* =========================================================
   WordPress / GeneratePress integration
   ========================================================= */

body,
button,
input,
select,
textarea { font-family: var(--font-body); }
body { background: var(--cream); color: var(--ink); font-size: 17px; line-height: 1.65; }
a { color: var(--green-700); }
a:hover, a:focus { color: var(--green-900); }

/* Header nav (wp_nav_menu markup) */
.nav .nav-list { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav .nav-list li { margin: 0; }
.nav .nav-list a { display: block; }
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a,
.nav .current_page_item > a,
.nav .current-page-ancestor > a { background: var(--green-50); color: var(--green-700); }
.nav .search { background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; }
.nav .search:hover, .nav .search:focus { background: var(--green-50); color: var(--green-700); }
.hoa-search { border-top: 1px solid var(--line); background: var(--white); padding: 14px 0; }
.hoa-search .search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.hoa-search .search-field { flex: 1; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; background: var(--cream); }
.hoa-search .search-submit,
.hoa-search button { background: var(--green-700); color: var(--white); border: 0; border-radius: 999px; padding: 0 20px; font-weight: 700; }
.admin-bar .hoa-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hoa-header { top: 0; position: relative; } }

/* Full-width templates: drop GP container and sidebar */
.hoa-full #page.grid-container,
.hoa-full .site.grid-container { max-width: none; padding: 0; margin: 0; }
.hoa-full .site-content { display: block; padding: 0; }
.hoa-main { width: 100%; }
.hoa-hub-body { padding-bottom: 72px; }
.hoa-hub-body .section-head { margin-bottom: 20px; }
.hoa-notice { margin-top: 56px; }
.section--tight { padding: 0 0 72px; }
.hero-meta { color: #9fc0b4; font-size: .9rem; margin: -4px 0 0; }

/* Prose: page content rendered inside new templates (front page, hub intro text) */
.hoa-prose { max-width: 820px; margin: 0 auto; }
.hoa-prose-wrap { margin-top: 56px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; }

/* Shared article typography: hub prose + regular pages and posts */
.hoa-prose h2, .entry-content h2 { font-size: 1.6rem; margin: 1.6em 0 .55em; }
.hoa-prose h3, .entry-content h3 { font-size: 1.25rem; margin: 1.4em 0 .5em; }
.hoa-prose h4, .entry-content h4 { font-family: var(--font-head); color: var(--green-900); font-size: 1.08rem; }
.entry-content h2 strong, .entry-content h3 strong, .entry-content h4 strong { font-weight: inherit; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p, .entry-content li { color: var(--ink); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--green-500); }
.entry-content img { border-radius: var(--radius-sm); height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--ink-soft); text-align: center; }
.entry-content blockquote { border-left: 4px solid var(--green-500); background: var(--green-50); margin: 1.6em 0; padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: normal; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .94rem; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.entry-content th, .entry-content td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th, .entry-content thead td { background: var(--green-50); color: var(--green-900); font-weight: 700; }
.entry-content tr:last-child td { border-bottom: 0; }
.wp-block-table { overflow-x: auto; }
.entry-content .wp-block-button__link,
.entry-content a.button,
.entry-content .btn-affiliate { background: var(--accent); color: var(--white); border-radius: 999px; font-weight: 700; padding: 12px 24px; text-decoration: none; display: inline-block; }
.entry-content .wp-block-button__link:hover,
.entry-content a.button:hover { background: var(--accent-dk); color: var(--white); }

/* TablePress */
.tablepress { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.tablepress thead th, .tablepress tfoot th { background: var(--green-50) !important; color: var(--green-900); }
.tablepress td, .tablepress th { padding: 11px 14px !important; border-top: 1px solid var(--line) !important; }
.tablepress .odd td { background: var(--white); }
.tablepress .even td { background: var(--cream); }

/* LuckyWP table of contents */
.lwptoc_i { border-radius: var(--radius) !important; background: var(--green-50) !important; border: 1px solid var(--green-100) !important; padding: 18px 22px !important; }
.lwptoc_title { font-family: var(--font-head); color: var(--green-900); font-weight: 600; }
.lwptoc a { color: var(--green-700) !important; }

/* Regular pages and posts (GP layout with sidebar) */
.hoa-hero-on .entry-header { display: none; }
body:not(.hoa-full) .site-content { padding-top: 36px; padding-bottom: 56px; }
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.separate-containers .inside-article { padding: 40px 44px; }
.separate-containers .site-main { margin-top: 0; }
.featured-image.page-header-image-single img,
.post-image img { border-radius: var(--radius); }
.entry-title, .page-title { font-family: var(--font-head); color: var(--green-900); }
.entry-meta { font-size: .85rem; color: var(--ink-soft); }

.sidebar .widget,
.separate-containers .widget-area .widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sidebar .widget-title { font-family: var(--font-head); color: var(--green-900); font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 9px 0; border-top: 1px solid var(--line); margin: 0; font-size: .94rem; line-height: 1.4; }
.sidebar .widget li:first-child { border-top: 0; padding-top: 0; }
.sidebar .widget a { text-decoration: none; }
.sidebar .tablepress { font-size: .88rem; }

/* Archives, search */
.archive .site-main article,
.search .site-main article,
.blog .site-main article { margin-bottom: 18px; }
.page-header { padding: 28px 32px; }

/* Back to top + misc GP */
.generate-back-to-top { background: var(--green-700); border-radius: 50%; }
.generate-back-to-top:hover { background: var(--green-900); }

/* Post thumbnails inside cards */
.post-thumb { overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

@media (max-width: 768px) {
	.separate-containers .inside-article { padding: 24px 20px; }
	.hoa-prose-wrap { padding: 24px 20px; }
	body:not(.hoa-full) .site-content { padding-top: 20px; }
}

/* Buttons inside content tables and widgets (TablePress "Besök" etc.) */
.entry-content a.button,
.sidebar a.button,
.tablepress a.button { background: var(--accent); color: var(--white); border-radius: 999px; font-weight: 700; font-size: .85rem; padding: 8px 16px; text-decoration: none; display: inline-block; white-space: nowrap; }
.entry-content a.button:hover,
.sidebar a.button:hover,
.tablepress a.button:hover { background: var(--accent-dk); color: var(--white); }

/* Compact criteria strip on phones */
@media (max-width: 760px) {
	.method { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -28px; }
	.method div { padding: 14px; }
	.method strong { font-size: .92rem; }
	.method span { font-size: .8rem; line-height: 1.4; display: block; }
}

/* Header controls: override GP's dark button hover/focus */
.hoa-menu-toggle:hover, .hoa-menu-toggle:focus,
.hoa-menu-toggle[aria-expanded="true"] { background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.nav .nav-list a { text-align: left; }
@media (max-width: 760px) {
	.nav .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
}
