@import url('/styles.css');

.help-hero {
  padding: 92px 0 100px;
  background: radial-gradient(circle at 82% 10%, rgba(255, 209, 48, .5), transparent 30%), linear-gradient(135deg, #fbf7ed, #fff7d7);
}
.help-hero-inner { max-width: 820px; text-align: center; }
.help-hero h1 { margin-inline: auto; font-size: clamp(3.2rem, 7vw, 6.2rem); }
.help-hero-inner > p:not(.eyebrow) { margin: 22px auto 34px; max-width: 640px; color: var(--muted); font-size: 1.18rem; }
.help-search { display: flex; max-width: 700px; min-height: 68px; align-items: center; gap: 14px; margin-inline: auto; padding: 0 24px; border: 1px solid var(--border); border-radius: 999px; background: white; box-shadow: 0 18px 50px rgba(13,48,20,.12); text-align: left; }
.help-search span { flex: 0 0 auto; font-size: 1.25rem; }
.help-search input { width: 100%; min-width: 0; padding: 18px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1.05rem; }
.help-search:focus-within { outline: 3px solid rgba(67,141,66,.25); border-color: var(--green-600); }

.help-sections { padding: 82px 0 104px; background: white; }
.help-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.help-section-card { padding: 34px; border: 1px solid var(--border); border-radius: 24px; background: var(--cream); }
.help-section-card:nth-child(2), .help-section-card:nth-child(4) { background: var(--mint); }
.section-number { display: inline-flex; margin-bottom: 26px; color: var(--green-600); font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
.help-section-card h2 { font-size: clamp(2rem, 3.5vw, 3.15rem); }
.help-section-card > p { margin-top: 14px; color: var(--muted); }
.help-section-card ul { display: grid; gap: 0; margin: 28px 0; padding: 0; list-style: none; }
.help-section-card li { border-top: 1px solid var(--border); }
.help-section-card li:last-child { border-bottom: 1px solid var(--border); }
.help-section-card li a { display: block; padding: 13px 0; color: var(--green-900); font-weight: 700; line-height: 1.35; text-decoration: none; }
.help-section-card li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-link { color: var(--green-900); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.popular-help { padding: 96px 0; background: var(--cream); }
.popular-help h2 { max-width: 720px; }
.popular-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.popular-grid > a { position: relative; display: grid; min-height: 138px; align-content: center; gap: 7px; padding: 24px 58px 24px 26px; border: 1px solid var(--border); border-radius: 18px; background: white; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.popular-grid > a:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(13,48,20,.1); }
.popular-grid span { color: var(--green-600); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.popular-grid strong { color: var(--green-950); line-height: 1.35; }
.popular-grid i { position: absolute; right: 24px; top: 50%; color: var(--green-600); font-size: 1.35rem; font-style: normal; transform: translateY(-50%); }

.help-contact { padding: 82px 0; background: var(--green-600); color: white; }
.help-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.help-contact h2, .help-contact .eyebrow { color: white; }
.help-contact h2 { max-width: 700px; font-size: clamp(2.3rem, 4vw, 4rem); }
.help-contact p:not(.eyebrow) { margin-top: 14px; color: rgba(255,255,255,.85); }
.help-contact .button { flex: 0 0 auto; }

.help-page-hero, .article-heading { padding: 62px 0 66px; background: linear-gradient(135deg, var(--cream), #fff7d7); }
.help-page-heading, .help-article-heading { max-width: 920px; }
.help-page-heading h1, .help-article-heading h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.help-page-heading > p:last-child, .help-article-heading > p:last-child { margin-top: 20px; color: var(--muted); font-size: 1.04rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; color: var(--green-800); font-size: .86rem; font-weight: 750; }
.breadcrumbs a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

.help-list-section { padding: 72px 0 96px; background: white; }
.help-list { max-width: 920px; }
.help-list-item { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 8px; border-bottom: 1px solid var(--border); text-decoration: none; }
.help-list-item:first-child { border-top: 1px solid var(--border); }
.help-list-item h2 { font-family: inherit; font-size: 1.23rem; line-height: 1.3; letter-spacing: -.01em; }
.help-list-item p { margin-top: 8px; color: var(--muted); }
.help-list-item > span { color: var(--green-600); font-size: 1.5rem; transition: transform .2s ease; }
.help-list-item:hover > span { transform: translateX(5px); }

.help-article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: clamp(54px, 8vw, 104px); align-items: start; padding-top: 70px; padding-bottom: 100px; }
.help-article-content { min-width: 0; color: #263329; font-size: 1.04rem; }
.help-article-content > :first-child { margin-top: 0; }
.help-article-content h2, .help-article-content h3, .help-article-content h4 { margin: 2em 0 .65em; line-height: 1.2; }
.help-article-content h2 { font-size: 2.05rem; }
.help-article-content h3 { font-size: 1.5rem; }
.help-article-content h4 { color: var(--green-950); font-size: 1.1rem; }
.help-article-content p, .help-article-content ul, .help-article-content ol, .help-article-content table, .help-article-content blockquote { margin: 0 0 1.25em; }
.help-article-content li + li { margin-top: .45em; }
.help-article-content a { color: var(--green-800); font-weight: 650; text-underline-offset: 3px; overflow-wrap: anywhere; }
.help-article-content img { height: auto; margin: 28px auto; border-radius: 14px; box-shadow: 0 10px 34px rgba(13,48,20,.12); }
.help-article-content iframe { width: 100%; max-width: 720px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.help-article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.help-article-content th, .help-article-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.help-article-content blockquote { padding: 20px 24px; border-left: 4px solid var(--yellow); background: var(--cream); }
.help-article-content pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 12px; background: #eef2ed; }
.help-article-aside { position: sticky; top: 110px; display: grid; gap: 0; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: white; }
.help-article-aside > p { margin-bottom: 12px; color: var(--green-600); font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.help-article-aside > a:not(.section-link) { padding: 11px 0; border-top: 1px solid var(--border); color: var(--ink); font-size: .9rem; line-height: 1.3; text-decoration: none; }
.help-article-aside > a:not(.section-link):hover { color: var(--green-600); }
.help-article-aside .section-link { margin-top: 18px; font-size: .86rem; }

.help-search-results { max-width: 920px; margin-inline: auto; }
.help-section-grid[hidden], .help-search-results[hidden], .help-empty[hidden], #help-result-list[hidden] { display: none !important; }
#help-result-count { margin-bottom: 20px; color: var(--muted); font-weight: 750; }
.search-result { display: block; padding: 24px 4px; border-bottom: 1px solid var(--border); text-decoration: none; }
.search-result:first-child { border-top: 1px solid var(--border); }
.search-result span { color: var(--green-600); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.search-result h2 { margin-top: 6px; font-family: inherit; font-size: 1.22rem; line-height: 1.3; }
.search-result p { margin-top: 8px; color: var(--muted); }
.search-result:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.help-empty { padding: 64px 20px; border-radius: 22px; background: var(--cream); text-align: center; }
.help-empty h2 { font-size: 2.3rem; }
.help-empty p { margin-top: 12px; color: var(--muted); }
body.is-searching .popular-help { display: none; }

@media (max-width: 840px) {
  .help-section-grid, .popular-grid { grid-template-columns: 1fr; }
  .help-article-layout { grid-template-columns: 1fr; }
  .help-article-aside { position: static; }
}

@media (max-width: 640px) {
  .help-hero { padding: 66px 0 72px; }
  .help-search { min-height: 60px; padding-inline: 18px; }
  .help-sections, .popular-help { padding: 62px 0 74px; }
  .help-section-card { padding: 26px 22px; }
  .help-contact-inner { align-items: flex-start; flex-direction: column; }
  .help-page-hero, .article-heading { padding: 44px 0 50px; }
  .breadcrumbs { margin-bottom: 28px; }
  .help-list-section { padding: 48px 0 70px; }
  .help-list-item { padding: 24px 0; }
  .help-list-item p { display: none; }
  .help-article-layout { padding-top: 48px; padding-bottom: 70px; }
}
