/* Shared controls and spacing for landing pages and team profiles only. */
:root{
  --hg-card-radius:16px;
  --hg-control-radius:8px;
  --hg-control-height:48px;
  --hg-section-space:64px;
  --hg-control-shadow:0 6px 16px #34231c18;
}
body :is(.hgh-topic,.hgh-shop-card,.hgh-guide,.hgb-topic,.hgb-card,.hgb-empty,.hgb-bridge,.hg-category-card,.hg-featured-card,.hg-goal-card,.hg-help-item,.hga-team-card,.hga-toc,.hga-table,.hga-scope article,.hga-transparency article,.hga-profile-side,.hga-limits,.hga-contribution-grid article){border-radius:var(--hg-card-radius)}
body :is(.hgh-guide,.hgb-card,.hgb-bridge){overflow:hidden}
body :is(.hgh-button,.hgb-button,.hga-button,.hg-shop-final a){
  display:inline-flex;align-items:center;justify-content:center;gap:16px;
  min-height:var(--hg-control-height);padding:12px 20px;
  border:1px solid #9a5b32;border-radius:var(--hg-control-radius);
  background:#9a5b32;color:#fffaf4!important;
  font-size:14px;font-weight:700;line-height:1.5;text-decoration:none;
  transition:background .18s ease,box-shadow .18s ease,transform .18s ease;
}
body :is(.hgh-button.secondary,.hga-button-secondary){background:#fbf7eff2;color:#9a5b32!important}
body.hgh-body .hgh-hero .hgh-button.secondary{
  border-color:#34231c;background:#34231c;color:#fffaf4!important;
  box-shadow:0 3px 0 #1e130f,0 9px 18px rgba(52,35,28,.26);
}
body .hgb-search>div{border-radius:var(--hg-control-radius)}
body .hgb-search input{min-height:var(--hg-control-height)}
body .hgb-search button{min-height:var(--hg-control-height);border-radius:0 7px 7px 0}
body :is(.hgb-formats a,.hgb-pagination a,.hg-goal-links a){display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:var(--hg-control-radius)}
body :is(.hgh-button,.hgb-button,.hga-button,.hg-shop-final a):focus-visible{outline:3px solid #805033;outline-offset:4px}
@media(hover:hover) and (pointer:fine){
  body :is(.hgh-button,.hgb-button,.hga-button,.hg-shop-final a):hover{background:#7f4526;color:#fffaf4!important;text-decoration:none;transform:translateY(-2px);box-shadow:var(--hg-control-shadow)}
  body :is(.hgh-button.secondary,.hga-button-secondary):hover{background:#efe4d5;color:#7f4526!important}
  body.hgh-body .hgh-hero .hgh-button.secondary:hover{background:#483128;color:#fffaf4!important;box-shadow:0 4px 0 #1e130f,0 12px 20px rgba(52,35,28,.28)}
}
/* Reduce oversized gaps while retaining the compact Blog introduction. */
body :is(.hgh-topics,.hgh-shop,.hga-founder,.hga-team,.hga-transparency){padding-block:var(--hg-section-space)}
body :is(.hg-shop-section,.hg-shop-final,.hga-method,.hga-scope,.hga-cta){padding-block:var(--hg-section-space)}
body .hgh-guides{padding-block:40px}
body .hgh-empty h3{font-size:24px}
body .hgh-about{padding:48px;gap:48px;margin-bottom:var(--hg-section-space);border-radius:var(--hg-card-radius)}
body .hgb-empty{padding:32px 24px}
body .hgb-bridge{margin-top:var(--hg-section-space)}
body .hga-responsibility{padding-bottom:var(--hg-section-space)}
body .hga-profile-body{padding-block:var(--hg-section-space);gap:48px}
body .hga-profile-main{gap:48px}
body :is(.hga-team-grid,.hga-transparency-grid,.hga-contribution-grid){gap:16px}
body .hga-team-grid{margin-top:32px}
body .hga-transparency>h2{margin-bottom:28px}
body .hga-cta p{margin:20px auto 28px}
body .hg-help-item{min-height:160px}
body .hg-help-item p{margin-top:22px}
@media(max-width:720px){
  :root{--hg-section-space:48px}
  body .hgh-about{padding:32px 24px;gap:28px}
  body .hgh-guides{padding-block:32px}
  body .hgb-empty{padding:26px 20px}
  body .hga-profile-body{gap:32px}
}
@media(prefers-reduced-motion:reduce){
  body :is(.hgh-button,.hgb-button,.hga-button,.hg-shop-final a){transition:none;transform:none}
}
