/* mehedi.help — values are copied from reference/rendered. Do not add a global
   box-sizing reset: the reference sizes are content-box unless stated here. */

:root {
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --line: #E4E4DF;
  --soft: #EFEFEA;
  --text: #15181D;
  --body: #3C424C;
  --muted: #555B66;
  --chip: #F1F1EC;
  --chip-text: #3A3F47;
  --input-border: #8E8E86;
  --outline: #D6D6D0;
  --placeholder: #ECECE6;
  --placeholder-text: #3A3F47;
  --avatar: #1F2A37;
  --avatar-text: #D5DBE3;
  --accent: #1F3A8A;
  --on-accent: #FFFFFF;
  --brand: #13213C;
  --on-brand: #FFFFFF;
  --active: #15181D;
  --on-active: #FFFFFF;
  --wa: #0E7A43;
  --on-wa: #FFFFFF;
  --status-bg: #E3F2E9;
  --status-text: #145C37;
  --status-dot: #1A7F4B;
  --help-bg: #E9F5EE;
  --help-line: #BFE0CC;
  --help-head: #0B3D22;
  --help-text: #24402F;
  --footer-bg: #0F1416;
  --footer-text: #C9CDD3;
  --footer-head: #FFFFFF;
  --footer-line: #2A3033;
  --cat-recovery-bg: #DDF0E4;
  --cat-recovery-text: #0B5A31;
  --cat-recovery-dot: #0E7A43;
  --cat-tips-bg: #FBEACF;
  --cat-tips-text: #6B3A00;
  --cat-tips-dot: #C9821F;
  --cat-safety-bg: #E1EAF7;
  --cat-safety-text: #173B73;
  --cat-safety-dot: #3D6BB3;
  --cat-all-dot: #8A93A3;
  --meta-line: rgba(128, 128, 128, 0.28);
  --focus: #2A9D8F;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0D1220;
  --surface: #141B2B;
  --line: #26314A;
  --soft: #1C2539;
  --text: #D3DAE5;
  --body: #AEB8C8;
  --muted: #8D99AE;
  --chip: #1D2639;
  --chip-text: #B4BFD0;
  --input-border: #5F6F8E;
  --outline: #34425E;
  --placeholder: #1C2539;
  --placeholder-text: #98A4B8;
  --avatar: #2A3652;
  --avatar-text: #D5DBE3;
  --accent: #93ADEE;
  --on-accent: #0D1220;
  --active: #C3CCD9;
  --on-active: #0D1220;
  --wa: #7AA2F7;
  --on-wa: #0B1430;
  --status-bg: #18302A;
  --status-text: #8FD3B0;
  --status-dot: #5BB98C;
  --help-bg: #141B2B;
  --help-line: #26314A;
  --help-head: #D3DAE5;
  --help-text: #AEB8C8;
  --footer-bg: #080C16;
  --footer-text: #98A4B8;
  --footer-head: #D3DAE5;
  --footer-line: #1C2539;
  --cat-recovery-bg: #18302A;
  --cat-recovery-text: #86CFA9;
  --cat-recovery-dot: #5BB98C;
  --cat-tips-bg: #2E2719;
  --cat-tips-text: #E2BC74;
  --cat-tips-dot: #D9A24E;
  --cat-safety-bg: #1B2742;
  --cat-safety-text: #9DB6F0;
  --cat-safety-dot: #7C9EEA;
  color-scheme: dark;
}

/* ---------- Base ---------- */

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* Height-animated panel: closed is a 0fr grid row, open is 1fr. Hidden panels are also
   visibility:hidden so they stay out of the tab order and away from screen readers. */
.collapse {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
}

.collapse.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
}

.collapse__inner {
  min-height: 0;
  overflow: hidden;
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  min-height: 44px;
  box-sizing: border-box;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--active);
  color: var(--on-active);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.skip-link:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-dot);
  flex-shrink: 0;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  object-fit: cover;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop {
  display: flex;
  gap: 2px;
  font-size: 15px;
  font-weight: 500;
}

.nav-desktop a {
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-desktop a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__sun,
[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

.menu-btn {
  display: none;
}

.menu-collapse {
  display: none;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 4px 16px 12px;
  border-top: 1px solid var(--soft);
}

.nav-mobile a {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  border-top: 1px solid var(--soft);
}

.nav-mobile a:first-child {
  border-top: 0;
}

.nav-mobile a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 50px;
  box-sizing: border-box;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.btn--wa {
  padding: 13px 24px;
  background: var(--wa);
  color: var(--on-wa);
  gap: 10px;
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.card--grow {
  flex: 1 0 auto;
}

.card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
}

.card__title--gap-2 {
  margin-bottom: 2px;
}

.card__title--gap-10 {
  margin-bottom: 10px;
}

.card__title--gap-14 {
  margin-bottom: 14px;
}

.card__sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.more-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list > li {
  border-top: 1px solid var(--soft);
}

.tile {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--chip);
  color: var(--chip-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.tile--icon {
  color: var(--accent);
}

/* ---------- Home: profile ---------- */

.profile-wrap {
  padding-top: 24px;
  padding-bottom: 22px;
}

.profile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.profile__avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--avatar);
  color: var(--avatar-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.profile__text {
  flex: 1 1 420px;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--status-bg);
  color: var(--status-text);
  font-size: 14px;
  font-weight: 600;
}

.status-pill .dot {
  flex-shrink: 1;
}

.profile__name {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.verified {
  flex-shrink: 0;
}

.verified circle {
  fill: var(--accent);
}

.verified path {
  fill: none;
  stroke: var(--on-accent);
}

.profile__role {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.profile__pitch {
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
  max-width: 620px;
}

.profile__meta {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
  color: var(--muted);
}

.profile__meta li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.profile__meta svg {
  flex-shrink: 0;
}

/* ---------- Home: what I recover ---------- */

.recover-wrap {
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.recover {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.recover__sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.recover__list {
  flex: 1 1 520px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--outline);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Home: two columns ---------- */

.columns {
  padding-bottom: 8px;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: stretch;
  gap: 22px;
}

.sidebar {
  flex: 1 1 300px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Find me online */

.social-link {
  min-height: 56px;
  box-sizing: border-box;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.social-link__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.social-link__name {
  font-size: 15px;
  font-weight: 600;
}

.social-link__handle {
  font-size: 13px;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Active services */

.svc-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.svc-btn__label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.svc-btn__num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.svc-btn__sign {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--outline);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.svc-desc {
  margin: 0;
  padding: 0 0 12px 30px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--chip-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 12px;
}

.callout svg {
  flex-shrink: 0;
  color: var(--accent);
}

.callout strong {
  font-weight: 600;
}

/* Free tools */

.tool-link {
  min-height: 56px;
  box-sizing: border-box;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.tool-link__text {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-link__name {
  font-size: 15px;
  font-weight: 600;
}

.tool-link__desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.tool-link__url {
  font-size: 13px;
  color: var(--accent);
}

.tool-link__arrow {
  color: var(--muted);
  font-size: 16px;
  padding-top: 6px;
}

/* How it works */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.steps__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.steps__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.steps__text strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

/* ---------- Feed ---------- */

.feed-head {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-head__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feed-head__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.feed-head__count {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.feed-head__search {
  flex: 1 1 240px;
  max-width: 320px;
  min-width: 200px;
}

.search-input {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid var(--input-border);
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--soft);
}

.topic {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--outline);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic__dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--cat-all-dot);
  flex-shrink: 0;
}

.topic--recovery .topic__dot {
  background: var(--cat-recovery-dot);
}

.topic--tips .topic__dot {
  background: var(--cat-tips-dot);
}

.topic--safety .topic__dot {
  background: var(--cat-safety-dot);
}

.topic__count {
  font-weight: 500;
  opacity: 0.85;
}

.topic[aria-pressed="true"] {
  border-color: var(--active);
  background: var(--active);
  color: var(--on-active);
}

.topic[aria-pressed="true"] .topic__dot {
  background: var(--on-active);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--body);
}

.tag-filter__chip {
  position: relative;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background: var(--active);
  color: var(--on-active);
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Blogs page: the feed has the full page width, so it shows three cards per row. */
.post-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feed--page {
  flex: 0 0 auto;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card__banner {
  aspect-ratio: 1 / 1;
  background: var(--placeholder);
  color: var(--placeholder-text);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}

.post-card__body {
  padding: 16px 18px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}

.cat-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.cat-badge--recovery {
  color: var(--cat-recovery-text);
  background: var(--cat-recovery-bg);
}

.cat-badge--tips {
  color: var(--cat-tips-text);
  background: var(--cat-tips-bg);
}

.cat-badge--safety {
  color: var(--cat-safety-text);
  background: var(--cat-safety-bg);
}

.post-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.post-card__title a {
  color: var(--text);
  text-decoration: none;
}

.post-card__excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

.tag-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  position: relative;
  min-height: 32px;
  padding: 4px 11px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  background: var(--chip);
  color: var(--chip-text);
}

/* The reference draws these controls smaller than 44px; this keeps the look
   and extends only the tap area. */
.tag::after,
.tag-filter__chip::after,
.breadcrumb a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  min-width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.post-card__foot {
  padding: 4px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pinned {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.read-link {
  margin-left: auto;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 0;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-empty {
  background: var(--surface);
  border: 1px dashed var(--input-border);
  border-radius: 16px;
  padding: 36px 22px;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.pagination {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
}

.pagination a {
  height: 44px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.pagination__num {
  width: 44px;
}

.pagination__next {
  padding: 0 16px;
}

.pagination a[aria-current="page"] {
  border: 0;
  background: var(--active);
  color: var(--on-active);
}

/* ---------- FAQ ---------- */

.faq {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
}

.faq__intro {
  flex: 1 1 280px;
}

.section-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.faq__lead {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.faq__list {
  flex: 2 1 520px;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__btn {
  width: 100%;
  min-height: 60px;
  padding: 16px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__sign {
  font-size: 22px;
  color: var(--accent);
}

.faq__answer {
  margin: 0;
  padding: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
}

/* ---------- Help card ---------- */

.help-wrap {
  padding-bottom: 56px;
}

.help-card {
  background: var(--help-bg);
  border: 1px solid var(--help-line);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.help-card__main {
  flex: 1 1 460px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.help-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--wa);
  color: var(--on-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--help-head);
}

.help-card__text {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--help-text);
}

.help-card .cta-row {
  gap: 12px;
}

.help-card--compact {
  padding: 30px 34px;
}

.help-card--compact .help-card__main {
  flex-basis: 440px;
}

.help-card--compact .help-card__title {
  font-size: 26px;
  letter-spacing: -0.4px;
}

/* ---------- Inner pages ---------- */

.page {
  padding-top: 24px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.page-title {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-lead {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  max-width: 640px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--body);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--status-dot);
}

.btn-dark {
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--active);
  color: var(--on-active);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Tools ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-card__names {
  min-width: 0;
}

.tool-card__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
}

.tool-card__url {
  font-size: 14px;
  color: var(--accent);
}

.tool-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.tool-card .btn-dark {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- About ---------- */

.about-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.about-hero__photo {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: var(--placeholder);
  color: var(--placeholder-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  height: auto;
  object-fit: cover;
}

.about-hero__text {
  flex: 1 1 420px;
  min-width: 0;
}

.about-hero__title {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.about-hero__role {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.about-hero__intro {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  max-width: 620px;
}

.about-hero__actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn--outline {
  padding: 13px 22px;
  border: 1.5px solid var(--outline);
  color: var(--text);
}

.stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

/* The label comes first in the markup (valid <dl>) and the value is shown above it. */
.stats__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column-reverse;
}

.stats dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}

.stats dt {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}

.info-card__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
}

.info-card__text {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
}

.principles {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.principles li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.principles__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--status-bg);
  color: var(--status-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.principles__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.principles__text strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

/* ---------- Contact ---------- */

.contact-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.contact-hero__text {
  flex: 1 1 460px;
  min-width: 0;
}

.contact-hero__title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.contact-hero__lead {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  max-width: 600px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.contact-cards__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list--loose {
  margin-top: 12px;
  gap: 10px;
}

.card__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

/* ---------- Single post ---------- */

.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.post__figure {
  margin: 0;
  flex: 1 1 340px;
  max-width: 460px;
}

.post__banner {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: var(--placeholder);
  color: var(--placeholder-text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}

.post-card__banner:has(img),
.post__banner:has(img) {
  background: transparent;
  padding: 0;
}

.post-card__banner:has(img) {
  padding: 12px 12px 0;
}

.post-card__banner img,
.post__banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.post__banner:has(img) {
  aspect-ratio: auto;
}

.post__banner img {
  height: auto;
}

.post__body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.post__body .post-image {
  margin: 6px 0;
}

.post__content {
  flex: 999 1 420px;
  min-width: 0;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
  color: var(--muted);
}

.post__meta .cat-badge {
  font-size: 13px;
}

.post__title {
  margin: 12px 0 0;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.post__byline {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.post__body {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post__body p {
  margin: 0;
}

.post__body ul,
.post__body ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.facts {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.facts__item {
  background: var(--chip);
  border-radius: 12px;
  padding: 12px 14px;
}

.facts dt {
  font-size: 13px;
  color: var(--muted);
}

.facts dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.post__wa {
  display: none;
  margin-top: 18px;
  min-height: 50px;
  box-sizing: border-box;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--wa);
  color: var(--on-wa);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.post__tags {
  margin-top: 18px;
}

.tag--link {
  box-sizing: border-box;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.share {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.share__label {
  font-size: 14px;
  font-weight: 600;
  margin-right: 4px;
}

.share__btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.more-posts__title {
  margin: 6px 0 14px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.more-posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.mini-post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-post__thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  background: var(--placeholder);
  flex-shrink: 0;
}

.mini-post__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-post__cat {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.mini-post__title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer__grid {
  padding-top: 40px;
  padding-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px 28px;
}

.site-footer__brand {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--footer-head);
}

.site-footer__blurb {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__heading {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--footer-head);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.site-footer__list--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.site-footer__list a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer__bottom {
  padding-top: 16px;
  padding-bottom: 26px;
  border-top: 1px solid var(--footer-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--footer-text);
}

/* ---------- Hover (pointer devices only; resting look is unchanged) ---------- */

@media (hover: hover) {
  .nav-desktop a:not([aria-current="page"]):hover {
    border-bottom-color: var(--outline);
  }

  .nav-mobile a:hover,
  .site-footer__list a:hover,
  .read-link:hover,
  .more-link:hover,
  .post-card__title a:hover,
  .social-link:hover .social-link__name,
  .tool-link:hover .tool-link__name,
  .mini-post:hover .mini-post__title {
    text-decoration: underline;
  }

  a.pill:hover,
  .topic[aria-pressed="false"]:hover,
  .btn--outline:hover,
  .share__btn:hover,
  .pagination a:not([aria-current="page"]):hover,
  .icon-btn:hover,
  .svc-btn:hover .svc-btn__sign {
    background: var(--chip);
  }

  .tag:hover,
  .callout:hover {
    background: var(--line);
  }

  .faq__btn:hover {
    color: var(--accent);
  }

  .btn--wa:hover,
  .post__wa:hover,
  .btn-dark:hover,
  .topic[aria-pressed="true"]:hover,
  .pagination a[aria-current="page"]:hover,
  .tag-filter__chip:hover {
    opacity: 0.9;
  }
}

/* ---------- Motion (skipped when the visitor asks for reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Closing waits for the height to finish before the panel is hidden. */
  .collapse {
    transition: grid-template-rows 0.25s ease, visibility 0s linear 0.25s;
  }

  .collapse.is-open {
    transition: grid-template-rows 0.25s ease, visibility 0s;
  }

  .nav-desktop a,
  .pill,
  .topic,
  .btn,
  .btn-dark,
  .post__wa,
  .share__btn,
  .pagination a,
  .icon-btn,
  .tag,
  .tag-filter__chip,
  .callout,
  .svc-btn__sign,
  .faq__btn {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  }

  .theme-switching * {
    transition: none !important;
  }

  .post-grid.is-updating .post-card {
    animation: fade-in 0.2s ease;
  }

  .skip-link {
    transition: top 0.15s ease;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- Breakpoints ---------- */

@media (max-width: 920px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .menu-collapse {
    display: grid;
  }

  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
  }

  .profile__avatar {
    width: 104px;
    height: 104px;
  }

  .profile__text {
    flex: 0 0 auto;
    width: 100%;
  }

  .profile__name {
    justify-content: center;
    font-size: 32px;
  }

  .profile .cta-row {
    width: 100%;
  }

  .profile .cta-row a,
  .help-card .cta-row a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .profile__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--meta-line);
  }

  .section-title,
  .help-card__title {
    font-size: 28px;
  }

  .card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .help-card {
    padding: 24px 20px;
  }

  .help-card--desktop-only {
    display: none;
  }

  .post-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-card--compact .cta-row {
    width: 100%;
  }

  .panel {
    padding: 22px 18px;
  }

  .page-title {
    font-size: 34px;
  }

  .about-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .about-hero__photo {
    flex: 0 0 auto;
  }

  .about-hero__text {
    flex: 0 0 auto;
    width: 100%;
  }

  .about-hero__title {
    justify-content: center;
    font-size: 30px;
  }

  .about-hero__actions {
    justify-content: center;
  }

  .about-hero__actions a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .info-card {
    padding: 22px 18px;
  }

  .contact-hero__title {
    font-size: 30px;
  }

  .contact-hero .cta-row {
    width: 100%;
  }

  .contact-hero .cta-row a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .post {
    padding: 18px;
    gap: 18px;
  }

  .post__figure {
    max-width: 100%;
  }

  .post__title {
    font-size: 28px;
  }

  .post__wa {
    display: flex;
  }
}

@media (max-width: 640px) {
  .post-grid,
  .post-grid--wide,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .post-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
