/* HDC Happiness Center · measured against the live help center (10.11.2026). */

/* Inter ships with the page (SIL Open Font License, fonts/OFL.txt), so no visitor is
   sent to a font server. The second pair only loads when a text needs its letters. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.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: italic; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-italic.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: 100 900; font-display: swap; src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: italic; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-ext-wght-italic.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --c-text: #434f61;
  --c-heading: #111827;
  --c-muted: #5a5a5a;
  --c-brand: #7f56d9;
  --c-brand-dark: #6941c6;
  --c-accent: #e665c4;
  --c-accent-dark: #d94fb4;
  --c-border: #8fb6ff;
  --c-hero: #0b0b11;
  --c-soft: #f3f0f6;
  --c-panel: #f4f4f5;
  --c-highlight: #ebe5fa;
  --c-star: #f79009;
  --c-white: #ffffff;
  --radius: 8px;
  --header-height: 82px;
  --container: 1240px;
  --gutter: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0; color: var(--c-heading); font-weight: 600; line-height: 1.2; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--c-white); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 32px; text-align: center; }
.page-loading { padding: 96px 32px; text-align: center; color: var(--c-muted); }

.layout { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
.container { padding: 0 var(--gutter); }
.container-inner { max-width: var(--container); margin: 0 auto; }
.list-plain { list-style: none; }
.section-pad { padding-top: 32px; padding-bottom: 32px; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 12px; min-height: 37px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; line-height: 21px; cursor: pointer;
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-accent); color: var(--c-white); }
.btn-primary:hover { background: var(--c-accent-dark); }
.btn-header { border-color: var(--c-white); color: var(--c-white); background: transparent; }
.btn-header:hover { background: var(--c-white); color: var(--c-heading); }
.btn-secondary { border-color: var(--c-heading); color: var(--c-heading); background: var(--c-white); }
.btn-secondary:hover, .btn-secondary[aria-pressed='true'] { background: var(--c-heading); color: var(--c-white); }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  height: var(--header-height); padding: 16px var(--gutter);
  background: var(--c-brand); color: var(--c-white);
}
.is-home .site-header { background: transparent; margin-bottom: calc(var(--header-height) * -1); }
.header-inner { max-width: var(--container); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--c-white); }
.logo:hover { text-decoration: none; }
.logo img { height: 48px; width: auto; display: block; }
.logo-text { font-size: 14.5px; font-weight: 600; line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--c-white); cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.is-home .header-nav form { display: none; }

/* ---------- Search fields ---------- */
.search { position: relative; }
.search-icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--c-heading); pointer-events: none; }
.search input[type='search'] {
  width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); color: var(--c-text); outline-offset: 0;
  -webkit-appearance: none; appearance: none;
}
.search input[type='search']::placeholder { color: var(--c-text); opacity: .85; }
.search input[type='search']::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-hero { display: flex; gap: 16px; margin-top: 32px; text-align: left; }
.search-hero .search { flex: 1; }
.search-hero input[type='search'] { height: 60px; padding: 8px 16px 8px 48px; font-size: 20px; }
.search-hero .btn { height: 60px; padding: 6px 40px; }
.search-small { width: 260px; }
.search-small .search-icon { left: 12px; width: 16px; height: 16px; }
.search-small input[type='search'] { height: 37px; padding: 6px 12px 6px 36px; font-size: 14px; font-weight: 600; color: var(--c-heading); }
.search-small input[type='search']::placeholder { color: var(--c-heading); opacity: 1; }

.suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(17, 24, 39, .14); overflow: hidden; text-align: left;
}
.search-small .suggest { left: auto; width: 420px; max-width: 86vw; }
.suggest a { display: block; padding: 10px 16px; font-size: 14px; font-weight: 400; color: var(--c-heading); border-bottom: 1px solid #eef2ff; }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.is-active { background: var(--c-soft); text-decoration: none; }
.suggest small { display: block; color: var(--c-muted); font-size: 12px; margin-top: 2px; }
.suggest .suggest-all { font-weight: 600; color: var(--c-brand); }
.suggest em { font-style: normal; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--c-hero); color: var(--c-white); text-align: center; }
.hero-content { max-width: 720px; margin: 0 auto; padding: 128px 0; }
.hero h1 { color: var(--c-white); }
.hero p { margin-top: 16px; }
.hero-divider { display: block; width: 100%; height: 64px; fill: var(--c-white); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%;
  padding: 32px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(17, 24, 39, .1); transform: translateY(-2px); }
.card-title { font-size: 20px; line-height: 24px; }
.card-title a { color: inherit; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-title a:hover { text-decoration: none; }
.card-text { margin-top: 8px; color: var(--c-muted); }
.card-title, .card-text { text-wrap: balance; }
.card-icon { width: 48px; height: 48px; color: var(--c-accent); flex-shrink: 0; }
.blocks { position: relative; z-index: 2; margin-top: -160px; }
.contact-card .card-title { font-size: 16px; }
.contact-icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; }
.contact-icon img, .contact-icon svg { width: 32px; height: 32px; object-fit: contain; display: block; }
.contact-icon .skool { font-size: 22px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.contact-icon .skool i { font-style: normal; }
.skool-s { color: #2b3a9e; }
.skool-k { color: #e4513f; }

/* ---------- Home sections ---------- */
.home-title { text-align: center; margin-bottom: 32px; }
.promoted-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px; }
.promoted-item { padding: 0 32px 16px 0; border-bottom: 1px solid var(--c-border); }
.promoted-item a { font-weight: 600; }
.promoted-item p { margin-top: 8px; color: var(--c-muted); }

.accordion { border: 1px solid var(--c-border); border-radius: var(--radius); }
.accordion + .accordion { margin-top: 16px; }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary h3 { font-size: 20px; line-height: 24px; }
.accordion summary svg { width: 24px; height: 24px; color: var(--c-heading); transition: transform .2s; flex-shrink: 0; }
.accordion[open] summary svg { transform: rotate(180deg); }
.accordion[open] summary { border-bottom: 1px solid var(--c-border); }
.accordion-content { padding: 24px; }
.tree-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.tree-grid h4 { font-size: 20px; line-height: 24px; margin-bottom: 16px; }
.tree-grid h4 a { color: inherit; }

.article-list { list-style: none; }
.article-list li + li { margin-top: 16px; }
.article-list .row { padding: 0 32px 16px 0; border-bottom: 1px solid var(--c-border); }
.article-list .more { padding-top: 0; }
.link-underlined { color: var(--c-heading); font-size: 14px; font-weight: 600; text-decoration: underline; }
.star { display: inline-block; width: 14px; height: 14px; margin-left: 4px; vertical-align: -1px; color: var(--c-star); }

.cta { margin: 32px 0 64px; padding: 64px 32px; background: var(--c-soft); border-radius: var(--radius); text-align: center; }
.cta p { margin-top: 16px; }
.cta .btn { margin-top: 16px; }

/* ---------- Sub pages ---------- */
.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; padding: 32px 0; color: var(--c-muted); }
.breadcrumbs li + li::before { content: '›'; margin: 0 10px; }
.breadcrumbs a { color: var(--c-muted); }
.page-head { text-align: center; margin-bottom: 32px; }
.page-head p { margin-top: 16px; }
.page-bottom { padding-bottom: 96px; }

.category-section { margin-bottom: 48px; }
.category-section h2 { font-size: 24px; margin-bottom: 16px; }
.category-section h2 a { color: inherit; }
.section-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 32px; align-items: start; }
.section-grid .row { padding: 0 32px 16px 0; border-bottom: 1px solid var(--c-border); }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 48px; align-items: start; }
.sidenav h2 { font-size: 14px; line-height: 21px; margin-bottom: 8px; }
.sidenav .article-list { font-size: 14px; }
.sidenav .article-list .row { padding-right: 16px; }
.article h1 { margin-bottom: 40px; }
.rte { line-height: 1.8; overflow-wrap: break-word; }
.rte > * + * { margin-top: 16px; }
.rte h1, .rte h2 { font-size: 30px; margin-top: 48px; }
.rte h3 { font-size: 24px; margin-top: 48px; }
.rte h4 { font-size: 20px; margin-top: 32px; }
.rte > :first-child { margin-top: 0; }
.rte hr { border: 0; border-top: 1px solid var(--c-border); margin-top: 16px; }
.rte hr + h1, .rte hr + h2, .rte hr + h3, .rte hr + h4 { margin-top: 40px; }
.rte ul, .rte ol { padding-left: 24px; }
.rte li + li, .rte li > ul, .rte li > ol { margin-top: 12px; }
.rte li > p + p { margin-top: 12px; }
.rte ul { list-style: disc; }
.rte ul ul { list-style: circle; }
.rte strong, .rte b { color: var(--c-heading); font-weight: 600; }
.rte img { display: block; border-radius: var(--radius); border: 1px solid #e5e7eb; }
.rte blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--c-border); }
.rte table { border-collapse: collapse; width: 100%; }
.rte th, .rte td { border: 1px solid #e5e7eb; padding: 8px 12px; text-align: left; vertical-align: top; line-height: 1.5; }
.rte th { background: var(--c-soft); color: var(--c-heading); font-weight: 600; }
.rte table { display: block; overflow-x: auto; }
.rte .wysiwyg-text-align-center { text-align: center; }
.rte .wysiwyg-text-align-right { text-align: right; }

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #f2f4f7; color: var(--c-heading); font-size: 14px; font-weight: 600; }
.pill:hover { background: var(--c-soft); text-decoration: none; }
.article-tags { margin-top: 40px; }
.article-tags h2 { font-size: 16px; }

.prevnext { display: flex; justify-content: space-between; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--c-border); }
.prevnext a { max-width: 46%; color: var(--c-brand); }
.prevnext a:hover { text-decoration: none; }
.prevnext a:hover .prevnext-title { text-decoration: underline; }
.prevnext-name { display: flex; align-items: center; gap: 8px; color: var(--c-heading); font-weight: 600; margin-bottom: 4px; }
.prevnext-name svg { width: 16px; height: 16px; }
.prevnext .next { margin-left: auto; text-align: right; }
.prevnext .next .prevnext-name { justify-content: flex-end; }
.prevnext .prev .prevnext-title { display: block; padding-left: 24px; }
.prevnext .next .prevnext-title { display: block; padding-right: 24px; }

.vote { padding: 32px 0; border-bottom: 1px solid var(--c-border); text-align: center; }
.vote-question { color: var(--c-heading); font-weight: 600; }
.vote-controls { display: flex; justify-content: center; gap: 8px; margin: 16px 0; }
.vote-controls .btn { min-width: 80px; }
.contact-strip { padding-top: 64px; padding-bottom: 64px; }
.contact-strip h2 { margin-bottom: 24px; }
.contact-strip .card { padding: 0 0 16px; gap: 12px; }

/* ---------- Search results ---------- */
.search-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { background: var(--c-panel); border-radius: var(--radius); padding: 24px 16px; }
.filters h2 { font-size: 16px; padding: 0 8px; margin-bottom: 8px; }
.filters ul { list-style: none; }
.filters button { display: flex; justify-content: space-between; width: 100%; padding: 8px 16px; border: 0; border-radius: var(--radius); background: transparent; font-size: 14px; cursor: pointer; text-align: left; }
.filters button.is-active { background: var(--c-accent); color: var(--c-white); font-weight: 600; }
.results-title { font-size: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.results { list-style: none; }
.result { padding: 24px 0; border-bottom: 1px solid var(--c-border); }
.result .breadcrumbs { padding: 0 0 12px; font-size: 16px; }
.result h3 { font-size: 16px; line-height: 24px; margin-bottom: 12px; }
.result-text em { font-style: normal; font-weight: 600; color: var(--c-heading); background: var(--c-highlight); padding: 1px 4px; border-radius: 4px; }
.result time { display: block; margin-top: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 32px; }
.empty { padding: 32px 0; }
.empty p + p { margin-top: 12px; }

/* ---------- Request form ---------- */
.form-page { max-width: 728px; margin: 0 auto; }
.form-page h1 { margin-bottom: 32px; }
.notice { padding: 24px 32px; background: var(--c-highlight); border-left: 4px solid var(--c-brand); border-radius: var(--radius); }
.field { margin-top: 24px; }
.field label, .field .label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--c-heading); }
.field .optional { font-weight: 400; color: var(--c-muted); }
.field input[type='text'], .field input[type='email'], .field textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-white);
}
.field input[type='text'], .field input[type='email'] { height: 42px; }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.6; }
.field .hint { margin-top: 8px; font-size: 14px; color: var(--c-muted); }
.field .error { margin-top: 6px; font-size: 14px; color: #b42318; }
.field [aria-invalid='true'] { border-color: #b42318; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin-top: 24px; }
.btn[disabled] { opacity: .6; cursor: default; }
.subject-suggest { margin-top: 12px; padding: 16px; background: var(--c-panel); border-radius: var(--radius); font-size: 14px; }
.subject-suggest strong { color: var(--c-heading); }
.subject-suggest ul { list-style: none; margin-top: 8px; }
.subject-suggest li + li { margin-top: 6px; }
.form-actions { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px var(--gutter); text-align: center; font-size: 14px; color: #3d3d3d; }
.site-footer a { display: inline-flex; color: #3d3d3d; }
.site-footer svg { width: 18px; height: 18px; }
.site-footer p { margin-top: 16px; }

.scroll-top {
  position: fixed; left: 32px; bottom: 24px; z-index: 15; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-white); color: var(--c-brand); border: 1px solid var(--c-brand); border-radius: var(--radius); cursor: pointer;
}
.scroll-top[hidden] { display: none; }
.scroll-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .card-grid, .tree-grid, .section-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .menu-toggle { display: block; }
  .header-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; padding: 16px; background: var(--c-brand);
    box-shadow: 0 12px 24px rgba(17, 24, 39, .2);
  }
  .is-home .header-nav { background: #191923; }
  .is-home .header-nav form { display: block; }
  .header-nav.is-open { display: flex; }
  .search-small { width: 100%; }
  .search-small .suggest { width: auto; left: 0; right: 0; }
  .promoted-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout, .search-layout { grid-template-columns: 1fr; }
  .sidenav { order: 2; }
  .hero-content { padding: 112px 0 160px; }
  .scroll-top { left: 16px; }
}

@media (max-width: 560px) {
  .card-grid, .tree-grid, .section-grid, .promoted-grid { grid-template-columns: 1fr; }
  .search-hero { flex-direction: column; }
  .prevnext { flex-direction: column; }
  .prevnext a { max-width: none; }
  .accordion summary { padding: 16px; }
  .accordion-content { padding: 16px; }
  .notice { padding: 16px; }
}

@media print {
  .site-header, .site-footer, .scroll-top, .sidenav, .vote, .prevnext, .contact-strip, .breadcrumbs { display: none !important; }
  .article-layout { display: block; }
}
