
:root{
  --brown:#4b423b;
  --brown-dark:#3b332e;
  --brown-soft:#5a5049;
  --ink:#241f1c;
  --muted:#756b64;
  --paper:#f5f0f2;
  --card:#ffffff;
  --line:#ded5cf;
  --soft:#eee8e4;
  --accent:#7e7067;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.68}
a{color:inherit}
.site-header{background:var(--brown);color:#fff;padding:30px 24px 26px;border-bottom:1px solid rgba(255,255,255,.12)}
.top-actions{display:grid;grid-template-columns:160px minmax(180px,420px) 160px;gap:18px;align-items:center;max-width:1220px;margin:0 auto 10px}
.pill,.shop-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid rgba(255,255,255,.85);border-radius:999px;padding:0 18px;text-decoration:none;font-weight:700}
.shop-link{border-color:transparent}
.quick-search input{width:100%;min-height:44px;border:1px solid rgba(255,255,255,.75);border-radius:999px;background:transparent;color:#fff;padding:0 18px;font-weight:700}
.quick-search input::placeholder{color:rgba(255,255,255,.88)}
.brand{display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;gap:10px}
.brand img{max-width:220px;height:auto;display:block}
.brand span{text-transform:uppercase;letter-spacing:.28em;font-weight:800;font-size:.78rem;color:#f8f5f2}
.main-nav{background:var(--brown-dark);display:flex;justify-content:center;flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,.08)}
.main-nav a{color:#fff;text-decoration:none;font-weight:800;padding:18px 18px;display:block}
.main-nav a.active,.main-nav a:hover{background:var(--brown-soft)}
main{max-width:1220px;margin:0 auto;padding:34px 18px 56px}
.breadcrumbs{max-width:1080px;margin:0 auto 18px;color:var(--muted);font-size:.95rem}
.breadcrumbs a{text-decoration:none;border-bottom:1px solid rgba(117,107,100,.28)}
.hero,.article-card,.category-card,.search-card{background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 36px rgba(60,45,38,.06)}
.hero{padding:42px 38px;margin:0 auto 28px;max-width:1080px}
.article-card{padding:42px 46px;max-width:1080px;margin:0 auto}
.eyebrow{text-transform:uppercase;letter-spacing:.15em;color:var(--accent);font-weight:900;font-size:.78rem;margin:0 0 8px}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif;color:var(--ink)}
h1{font-size:clamp(2.1rem,4vw,3rem);line-height:1.08;letter-spacing:-.035em;margin:0 0 18px}
h2{font-size:clamp(1.45rem,2.6vw,2.05rem);line-height:1.18;letter-spacing:-.025em;margin:38px 0 12px}
h3{font-size:1.25rem}
.lead{font-size:1.16rem;line-height:1.65;max-width:920px;margin:0 0 28px}
p{margin:0 0 16px}
.article-section p{max-width:980px}
.summary-box,.shop-card,.disclaimer{background:var(--soft);border-left:4px solid var(--accent);padding:20px 22px;border-radius:5px;margin:28px 0}
.summary-box h2,.shop-card h2,.disclaimer h2{font-family:Arial,Helvetica,sans-serif;font-size:1.12rem;letter-spacing:0;margin:0 0 8px}
.summary-box ul{margin:0;padding-left:22px}
.shop-card{border:1px solid var(--line);border-left:4px solid var(--accent);background:#faf8f6}
.shop-card a,.related a,.category-grid a,.search-results a{font-weight:800;color:#493d36}
.related ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px;padding-left:22px}
.disclaimer{font-size:.92rem;color:#5b514a}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1080px;margin:0 auto}
.category-card{padding:24px;text-decoration:none}
.category-card h2{font-family:Georgia,'Times New Roman',serif;font-size:1.5rem;margin:0 0 8px}
.category-card p{color:#4c4540;margin:0}
.article-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1080px;margin:0 auto}
.article-list a{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px;text-decoration:none}
.article-list strong{display:block;font-size:1.08rem;margin-bottom:5px}
.article-list span{color:#5c544f}
.search-card{max-width:1080px;margin:0 auto;padding:32px}
.search-large{display:flex;gap:10px;margin:16px 0 24px}
.search-large input{flex:1;padding:14px 16px;border:1px solid var(--line);border-radius:8px;font-size:1rem}
.search-large button{padding:14px 18px;background:var(--brown);color:#fff;border:0;border-radius:8px;font-weight:800}
.search-result{border-top:1px solid var(--line);padding:16px 0}
.site-footer{background:var(--brown-dark);color:#fff;padding:30px 18px;text-align:center}
.site-footer a{color:#fff;font-weight:700}
@media(max-width:820px){
  .top-actions{grid-template-columns:1fr;gap:10px;margin-bottom:18px}
  .pill,.shop-link{justify-self:center;min-width:150px}
  .quick-search{order:3;width:100%;max-width:520px;justify-self:center}
  .brand img{max-width:165px}
  .site-header{padding:24px 16px 22px}
  .main-nav{display:grid;grid-template-columns:repeat(3,1fr)}
  .main-nav a{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:12px 7px;font-size:.92rem;border-right:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
  main{padding:26px 10px 44px}
  .hero,.article-card,.search-card{padding:26px 20px;margin-left:4px;margin-right:4px}
  h1{font-size:2.05rem}
  h2{font-size:1.55rem;margin-top:30px}
  .lead{font-size:1.02rem}
  .category-grid,.article-list{grid-template-columns:1fr}
  .related ul{grid-template-columns:1fr}
}
@media(max-width:430px){
  .main-nav{grid-template-columns:repeat(2,1fr)}
  .brand img{max-width:150px}
  .hero,.article-card,.search-card{padding:22px 16px}
}


/* v2.1 header refinement: cleaner logo-first layout */
.site-header {
  padding: 24px 24px 22px;
}

.site-header .brand {
  margin: 0 auto 20px;
}

.site-header .brand img {
  max-width: 205px;
}

.site-header .brand span {
  margin-top: 2px;
}

.top-actions {
  grid-template-columns: 160px minmax(220px, 420px) 160px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: center;
}

.pill,
.shop-link,
.quick-search input {
  min-height: 40px;
}

.shop-link {
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 700;
}

.quick-search {
  justify-self: center;
  width: 100%;
}

.quick-search input {
  text-align: center;
}

@media (max-width: 820px) {
  .site-header {
    padding: 22px 16px 18px;
  }

  .site-header .brand {
    margin-bottom: 18px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    max-width: 520px;
  }

  .quick-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .pill,
  .shop-link {
    width: 100%;
    min-width: 0;
  }

  .quick-search input {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .site-header .brand img {
    max-width: 145px;
  }

  .top-actions {
    grid-template-columns: 1fr 1fr;
  }

  .pill,
  .shop-link,
  .quick-search input {
    min-height: 38px;
    font-size: .9rem;
  }
}


/* v2.2 header: logo first, search/actions below logo for a calmer layout */
.site-header {
  padding: 22px 24px 20px;
}

.site-header .brand {
  margin: 0 auto 18px;
}

.site-header .brand img {
  max-width: 176px;
}

.site-header .brand span {
  font-size: .72rem;
  letter-spacing: .26em;
}

.top-actions {
  display: grid;
  grid-template-columns: 150px minmax(260px, 460px) 150px;
  gap: 14px;
  max-width: 840px;
  margin: 0 auto;
  align-items: center;
}

.pill,
.shop-link,
.quick-search input {
  min-height: 38px;
}

.pill,
.shop-link {
  font-size: .94rem;
}

.quick-search input {
  text-align: center;
  font-size: .92rem;
}

@media (min-width: 821px) {
  .main-nav a {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 22px 16px 18px;
  }

  .site-header .brand {
    margin-bottom: 16px;
  }

  .site-header .brand img {
    max-width: 150px;
  }

  .top-actions {
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
    gap: 10px;
  }

  .quick-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .quick-search input {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .site-header .brand img {
    max-width: 136px;
  }

  .site-header .brand span {
    font-size: .66rem;
  }

  .pill,
  .shop-link,
  .quick-search input {
    min-height: 38px;
    font-size: .88rem;
  }
}


/* v2.3 search moved below category navigation */
.top-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  max-width: 520px;
  margin: 0 auto;
}

.top-actions .pill,
.top-actions .shop-link {
  min-width: 150px;
}

.quick-search {
  display: none !important;
}

.search-band {
  background: #f5f0f2;
  border-bottom: 1px solid #ded5cf;
  padding: 18px 16px;
}

.search-band-form {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.search-band-form input {
  flex: 1;
  min-height: 46px;
  border: 1px solid #d6ccc6;
  border-radius: 999px;
  background: #fff;
  padding: 0 20px;
  font-size: 1rem;
  color: #241f1c;
  box-shadow: 0 8px 22px rgba(60,45,38,.05);
}

.search-band-form button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #4b423b;
  color: #fff;
  padding: 0 24px;
  font-weight: 800;
  cursor: pointer;
}

.search-band-form button:hover {
  background: #3b332e;
}

@media (max-width: 820px) {
  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
    gap: 10px;
  }

  .search-band {
    padding: 14px 12px;
  }

  .search-band-form {
    gap: 8px;
  }

  .search-band-form input {
    min-height: 44px;
    font-size: .96rem;
  }

  .search-band-form button {
    min-height: 44px;
    padding: 0 18px;
  }
}

@media (max-width: 430px) {
  .search-band-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-band-form button {
    width: 100%;
  }
}


/* v2.4 clearer clickable article/category cards */
.article-list a,
.category-card {
  position: relative;
  display: block;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
  padding-right: 58px;
}

.article-list a::after,
.category-card::after {
  content: "Läs mer";
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: .82rem;
  font-weight: 900;
  color: #4b423b;
  border-bottom: 1px solid rgba(75,66,59,.45);
}

.article-list a::before,
.category-card::before {
  content: "›";
  position: absolute;
  right: 18px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4b423b;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
  transition: transform .16s ease, background .16s ease;
}

.article-list a:hover,
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(60,45,38,.12);
  border-color: #b9ada5;
  background: #fffdfb;
}

.article-list a:hover::before,
.category-card:hover::before {
  transform: translateX(3px);
  background: #3b332e;
}

.article-list a:focus-visible,
.category-card:focus-visible {
  outline: 3px solid rgba(75,66,59,.35);
  outline-offset: 3px;
}

.article-list a strong {
  font-size: 1.12rem;
}

.article-list a span {
  display: block;
  margin-bottom: 22px;
}

.category-card p {
  margin-bottom: 22px;
}

@media (max-width: 820px) {
  .article-list a,
  .category-card {
    padding-right: 50px;
  }

  .article-list a::before,
  .category-card::before {
    top: 14px;
    right: 14px;
  }

  .article-list a::after,
  .category-card::after {
    right: 16px;
    bottom: 14px;
  }
}


/* v2.5 calmer clickable cards: remove visual arrow, keep Läs mer */
.article-list a::before,
.category-card::before {
  content: none !important;
  display: none !important;
}

.article-list a,
.category-card {
  padding-right: 24px;
}

.article-list a::after,
.category-card::after {
  content: "Läs mer";
  right: 22px;
  bottom: 18px;
  font-size: .84rem;
  font-weight: 900;
  color: #4b423b;
  border-bottom: 1px solid rgba(75,66,59,.45);
}

.article-list a span,
.category-card p {
  margin-bottom: 24px;
}

.article-list a:hover,
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(60,45,38,.12);
  border-color: #b9ada5;
  background: #fffdfb;
}

.article-list a:hover::after,
.category-card:hover::after {
  border-bottom-color: #241f1c;
}

@media (max-width: 820px) {
  .article-list a,
  .category-card {
    padding-right: 22px;
  }

  .article-list a::after,
  .category-card::after {
    right: 18px;
    bottom: 16px;
  }
}


/* v2.6 linked glossary hub */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.glossary-item {
  border: 1px solid #ded5cf;
  background: #fffdfb;
  border-radius: 8px;
  padding: 20px 20px 18px;
}

.glossary-item h2 {
  font-size: 1.42rem;
  margin: 0 0 8px;
}

.glossary-item p {
  margin-bottom: 14px;
}

.glossary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.glossary-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #d6ccc6;
  border-radius: 999px;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
  color: #4b423b;
  background: #fff;
}

.glossary-links a:hover {
  border-color: #4b423b;
  background: #f5f0f2;
}

.glossary-links .glossary-shop {
  background: #4b423b;
  border-color: #4b423b;
  color: #fff;
}

.glossary-links .glossary-shop:hover {
  background: #3b332e;
  color: #fff;
}

@media (max-width: 820px) {
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .glossary-item {
    padding: 18px 16px;
  }

  .glossary-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .glossary-links a {
    justify-content: center;
    text-align: center;
  }
}


/* v4.1 FAQ page */
.faq-page .summary-box a {
  font-weight: 900;
  color: #4b423b;
}

.faq-section {
  margin-top: 34px;
}

.faq-section h2 {
  border-bottom: 1px solid #ded5cf;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.faq-item {
  border: 1px solid #ded5cf;
  border-radius: 8px;
  background: #fffdfb;
  margin: 10px 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 900;
  color: #241f1c;
  position: relative;
  padding-right: 46px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: #4b423b;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item div {
  border-top: 1px solid #ded5cf;
  padding: 16px 18px 18px;
  background: #fff;
}

.faq-item p {
  margin: 0;
}

.faq-item a {
  font-weight: 900;
  color: #4b423b;
}

@media (max-width: 820px) {
  .faq-item summary {
    padding: 15px 44px 15px 15px;
  }

  .faq-item div {
    padding: 15px;
  }
}


/* v5 technical and editorial polish */
.site-footer {
  line-height: 1.7;
}

.site-footer p {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.article-card a,
.summary-box a,
.shop-card a,
.related a,
.faq-item a {
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* v9 max polish */
:root {
  --pb-ink: #241f1c;
  --pb-brown: #4b423b;
  --pb-brown-dark: #332c28;
  --pb-line: #ded5cf;
  --pb-paper: #fffdfb;
  --pb-soft: #f5f0f2;
  --pb-warm: #efe7e2;
}

.hero-v9 {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 42px 28px;
  border: 1px solid var(--pb-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(75,66,59,.12), transparent 34%),
    linear-gradient(135deg, #fffdfb 0%, #f4eeeb 100%);
  box-shadow: 0 18px 50px rgba(36,31,28,.08);
}

.hero-v9 .eyebrow {
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--pb-brown);
  font-size: .82rem;
}

.hero-v9 h1 {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: .98;
  margin: 10px 0 18px;
  max-width: 900px;
}

.hero-v9 .lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 820px;
  color: #4c423c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions a,
.nav-card,
.path-card,
.pillar-card,
.topic-card,
.popular-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--pb-brown);
}

.hero-actions .primary {
  background: var(--pb-brown);
  color: #fff;
}

.hero-actions .secondary {
  background: #fff;
  color: var(--pb-brown);
}

.stats-strip {
  max-width: 1180px;
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.6rem;
  color: var(--pb-brown);
}

.stat-box span {
  color: #6b5d55;
  font-size: .95rem;
}

.section-v9 {
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.section-head p {
  margin: 0;
  max-width: 620px;
  color: #665a53;
}

.path-grid,
.pillar-grid,
.topic-grid,
.popular-grid {
  display: grid;
  gap: 14px;
}

.path-grid {
  grid-template-columns: repeat(3, 1fr);
}

.pillar-grid {
  grid-template-columns: repeat(2, 1fr);
}

.topic-grid {
  grid-template-columns: repeat(4, 1fr);
}

.popular-grid {
  grid-template-columns: repeat(3, 1fr);
}

.nav-card,
.path-card,
.pillar-card,
.topic-card,
.popular-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  padding: 20px;
  color: var(--pb-ink);
  min-height: 120px;
}

.nav-card:hover,
.path-card:hover,
.pillar-card:hover,
.topic-card:hover,
.popular-card:hover,
.hero-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(36,31,28,.08);
  border-color: #b9aaa2;
}

.nav-card strong,
.path-card strong,
.pillar-card strong,
.topic-card strong,
.popular-card strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.nav-card span,
.path-card span,
.pillar-card span,
.topic-card span,
.popular-card span {
  color: #665a53;
  line-height: 1.55;
}

.pillar-card {
  min-height: 155px;
}

.pillar-card small,
.topic-card small {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--pb-brown);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}

.editorial-note {
  max-width: 1180px;
  margin: 0 auto 34px;
  background: var(--pb-brown);
  color: #fff;
  border-radius: 18px;
  padding: 30px;
}

.editorial-note h2 {
  margin-top: 0;
  color: #fff;
}

.editorial-note p {
  color: #f4ede9;
  max-width: 900px;
}

.editorial-note a {
  color: #fff;
  font-weight: 900;
}

.category-hub {
  max-width: 1180px;
  margin: 0 auto;
}

.category-hero {
  padding: 34px 28px;
  background:
    radial-gradient(circle at 85% 0%, rgba(75,66,59,.13), transparent 34%),
    #fffdfb;
  border: 1px solid var(--pb-line);
  border-radius: 18px;
  margin-bottom: 24px;
}

.category-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.category-hero .lead {
  max-width: 820px;
}

.hub-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 22px;
}

.hub-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 14px;
  padding: 18px;
}

.hub-sidebar h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.hub-sidebar a {
  display: block;
  color: var(--pb-ink);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid #eee7e2;
}

.hub-group {
  margin-bottom: 26px;
}

.hub-group h2 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pb-line);
}

.hub-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hub-card-grid a {
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--pb-ink);
}

.hub-card-grid strong {
  display: block;
  margin-bottom: 7px;
}

.hub-card-grid span {
  color: #665a53;
  line-height: 1.5;
  font-size: .95rem;
}

.alpha-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.alpha-index a {
  border: 1px solid var(--pb-line);
  background: #fff;
  color: var(--pb-brown);
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 900;
}

.glossary-list {
  display: grid;
  gap: 12px;
}

.glossary-entry {
  border: 1px solid var(--pb-line);
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}

.glossary-entry h3 {
  margin: 0 0 6px;
}

.glossary-entry p {
  margin: 0 0 10px;
}

.glossary-entry a {
  font-weight: 900;
}

@media (max-width: 980px) {
  .stats-strip,
  .path-grid,
  .topic-grid,
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-grid,
  .hub-layout,
  .hub-card-grid {
    grid-template-columns: 1fr;
  }

  .hub-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero-v9,
  .category-hero,
  .editorial-note {
    border-radius: 12px;
    padding: 24px 18px;
  }

  .stats-strip,
  .path-grid,
  .topic-grid,
  .popular-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }
}


/* v9.1 compact hero and homepage scale */
.hero-v9 {
  padding: 30px 28px;
  margin-bottom: 24px;
  border-radius: 14px;
}

.hero-v9 .eyebrow {
  font-size: .76rem;
}

.hero-v9 h1 {
  font-size: clamp(2rem, 4.15vw, 3.25rem);
  line-height: 1.02;
  max-width: 860px;
  margin: 8px 0 14px;
}

.hero-v9 .lead {
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  max-width: 780px;
  line-height: 1.62;
}

.hero-actions {
  margin-top: 20px;
}

.hero-actions a {
  min-height: 40px;
  padding: 0 16px;
}

.stats-strip {
  margin-bottom: 28px;
  gap: 12px;
}

.stat-box {
  padding: 14px 16px;
  border-radius: 12px;
}

.stat-box strong {
  font-size: 1.32rem;
}

.stat-box span {
  font-size: .9rem;
}

.section-v9 {
  margin-bottom: 28px;
}

.section-head {
  margin-bottom: 13px;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.55vw, 1.95rem);
}

.nav-card,
.path-card,
.pillar-card,
.topic-card,
.popular-card {
  padding: 17px;
  min-height: 104px;
}

.pillar-card {
  min-height: 132px;
}

@media (min-width: 1180px) {
  .hero-v9,
  .stats-strip,
  .section-v9,
  .editorial-note {
    max-width: 1120px;
  }
}

@media (max-width: 620px) {
  .hero-v9 {
    padding: 24px 18px;
  }

  .hero-v9 h1 {
    font-size: clamp(1.82rem, 11vw, 2.45rem);
  }

  .stats-strip {
    gap: 10px;
  }
}


/* v9.2 cleaner homepage */
.section-head {
  display: block;
  margin-bottom: 14px;
}

.section-head h2 {
  margin-bottom: 0;
}

.stats-strip {
  display: none;
}

.hero-v9 {
  margin-bottom: 30px;
}

.path-grid,
.pillar-grid,
.topic-grid {
  margin-top: 0;
}


/* v9.8 live search suggestions */
.search-band-form {
  position: relative;
}

.search-suggestions {
  position: absolute;
  left: 0;
  right: 78px;
  top: calc(100% + 8px);
  z-index: 50;
  background: #fffdfb;
  border: 1px solid #ded5cf;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(36,31,28,.16);
  overflow: hidden;
  text-align: left;
}

.search-suggestions[hidden] {
  display: none;
}

.suggestion-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 13px 15px;
  text-decoration: none;
  color: #241f1c;
  border-bottom: 1px solid #eee7e2;
  background: #fffdfb;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover,
.suggestion-item:focus {
  outline: none;
  background: #f5f0f2;
}

.suggestion-item strong {
  font-size: .98rem;
  line-height: 1.25;
}

.suggestion-item small {
  color: #6c5e56;
  font-weight: 900;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  align-self: start;
}

.suggestion-item span {
  grid-column: 1 / -1;
  color: #665a53;
  font-size: .9rem;
  line-height: 1.35;
}

.suggestion-search-all {
  background: #f4eee9;
}

@media (max-width: 720px) {
  .search-suggestions {
    right: 0;
    top: calc(100% + 6px);
    border-radius: 12px;
  }

  .suggestion-item {
    grid-template-columns: 1fr;
  }
}
