/* Help center pages. Colors and type come from home.css. */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow-warm { color: var(--orange-text); }

.header-search { flex: 0 1 360px; min-width: 0; display: flex; }
.header-search input { width: 100%; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }

/* Help home */
.help-hero { background: var(--blue-soft); }
.help-hero-inner { display: flex; flex-direction: column; gap: 22px; padding-top: 64px; padding-bottom: 56px; }
.help-display { font-size: clamp(38px, 4.4vw, 56px); }
.help-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 720px; }
.help-search input { flex: 1 1 320px; min-width: 0; height: 56px; padding: 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; }
.help-search .btn { min-height: 56px; border: 0; border-radius: 14px; font: inherit; font-weight: 650; cursor: pointer; }
.help-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; }
.help-popular span { color: var(--body); }
.help-popular a { padding: 7px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; }

.help-start, .help-topics { display: flex; flex-direction: column; gap: 18px; padding-top: 56px; }
.help-topics { padding-bottom: 72px; }
.help-start h2, .help-topics h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.start-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.start-list li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.start-list li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.start-list a { font-size: 18px; font-weight: 650; text-decoration: none; }
.start-list li > span:last-child span { color: var(--body); font-size: 15px; }
.start-num { flex: 0 0 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-weight: 750; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.topic-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); scroll-margin-top: 24px; }
.topic-head { display: flex; align-items: center; gap: 12px; }
.topic-head h3 { margin: 0; font-size: 19px; }
.topic-head .icon-tile { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; }
.topic-count { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.topic-card p { margin: 0; color: var(--body); font-size: 15px; }
.topic-card ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 15px; }

.help-trouble { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; padding-top: 56px; padding-bottom: 56px; }
.help-trouble-list { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.help-trouble h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.help-trouble-list ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.help-trouble-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.help-trouble-list a { text-decoration: none; }
.contact-card { align-self: start; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; background: var(--blue-soft); color: var(--ink-2); }
.contact-card h2 { font-size: 22px; }
.contact-card p { margin: 0; }
.contact-card ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; font-size: 15px; }

/* Article */
.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 40px 56px; padding-top: 16px; padding-bottom: 80px; }
.help-sidebar { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.help-sidebar a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.help-sidebar a:hover { color: var(--blue); }
.help-sidebar a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); font-weight: 650; }
.help-sidebar .help-sidebar-title { margin-bottom: 6px; padding-left: 0; color: var(--muted); font-size: 13px; font-weight: 680; letter-spacing: 0.06em; text-transform: uppercase; }

.article { max-width: 780px; display: flex; flex-direction: column; gap: 24px; }
.breadcrumb { color: var(--muted); font-size: 14px; }
.article h1 { margin: 0; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 760; }
.article-summary { margin: 0; color: var(--body); font-size: 19px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 14px; }
.article-meta .chip { padding: 4px 10px; font-size: 14px; }
.article-body { display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); }
.article-body p { margin: 0; }
.article-body h2 { margin: 16px 0 0; color: var(--ink); font-size: 24px; letter-spacing: -0.015em; scroll-margin-top: 24px; }
.article-body h3 { margin: 8px 0 0; color: var(--ink); font-size: 19px; }
.article-body ul, .article-body ol:not(.steps) { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 22px; }
.article-body code { padding: 1px 6px; border-radius: 6px; background: var(--chip); font-size: 0.92em; }

.before-box { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.before-box h2 { margin: 0; font-size: 18px; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--blue-soft); }
.callout > strong { flex: 0 0 auto; color: var(--blue); }
.callout > div { display: flex; flex-direction: column; gap: 8px; }
.callout-warning, .callout-note { background: #fbede4; }
.callout-warning > strong, .callout-note > strong { color: #b8440a; }

.steps { display: flex; flex-direction: column; gap: 36px; margin: 8px 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 20px 32px; }
.step-text { display: flex; gap: 14px; }
.step-text > div { display: flex; flex-direction: column; gap: 8px; }
.step-multi { grid-template-columns: minmax(0, 1fr); }
.step-shots { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-left: 46px; }
.step-num { flex: 0 0 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-weight: 750; }
.step-text strong { color: var(--ink); }

.shot { display: flex; flex-direction: column; gap: 8px; width: 240px; margin: 0; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 26px; }
.shot figcaption { color: var(--muted); font-size: 13px; line-height: 1.45; }
.shot-screen { display: flex; flex-direction: column; gap: 8px; height: 300px; padding: 12px 12px 0; overflow: hidden; border: 1px solid #d5dee3; border-radius: 26px; background: #f1f4f3; color: #14212b; font-size: 12px; line-height: 1.35; }
.shot-bar { margin: 18px -12px 4px; padding: 0 14px 10px; border-bottom: 1px solid #e3e9eb; font-size: 15px; font-weight: 700; }
.shot-row { min-height: 36px; border-radius: 10px; background: #ffffff; }
.shot-row-short { width: 60%; }
.shot-mark { display: flex; align-items: center; padding: 0 12px; box-shadow: inset 0 0 0 2px #e8590c; font-weight: 600; }

.platforms { display: flex; flex-wrap: wrap; gap: 4px; }
.platform-input { position: absolute; opacity: 0; pointer-events: none; }
.platform-tab { min-height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 10px; background: var(--chip); color: var(--body); font-size: 15px; cursor: pointer; }
.platform-input:checked + .platform-tab { background: var(--blue); color: var(--on-blue); font-weight: 650; }
.platform-input:focus-visible + .platform-tab { outline: 2px solid var(--blue); outline-offset: 2px; }
.platform-panel { display: none; flex: 0 0 100%; margin-top: 16px; }
.platform-input-ios:checked ~ .platform-panel-ios, .platform-input-android:checked ~ .platform-panel-android { display: block; }
.platform-heading { margin-bottom: -4px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { color: var(--ink); font-weight: 650; }

.next-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 18px; background: #045c90; color: #ffffff; text-decoration: none; }
.next-card:hover { background: #034a74; color: #ffffff; }
.next-card > span { display: flex; flex-direction: column; gap: 2px; }
.next-label { color: #d6e8f5; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.next-title { font-size: 20px; font-weight: 700; }
.related { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.related h2 { margin: 0; font-size: 20px; }
.related div { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; text-decoration: none; }
.feedback { margin: 0; color: var(--muted); font-size: 14px; }

/* Search page */
.help-search-page { display: flex; flex-direction: column; gap: 20px; max-width: 860px; min-height: 52vh; padding-top: 40px; padding-bottom: 80px; }
.search-status { margin: 0; color: var(--muted); }
.search-results { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.search-results li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-size: 18px; font-weight: 650; text-decoration: none; }
.search-results p { margin: 0; color: var(--body); }
.search-results span { color: var(--muted); font-size: 13px; }

@media (prefers-color-scheme: dark) {
  .callout-warning, .callout-note { background: #3a2417; }
  .callout-warning > strong, .callout-note > strong { color: #ff8a4c; }
}

@media (max-width: 900px) {
  .help-layout, .help-trouble { grid-template-columns: minmax(0, 1fr); }
  .help-sidebar { order: 2; padding-top: 24px; border-top: 1px solid var(--line); }
  .step { grid-template-columns: minmax(0, 1fr); }
  .shot { margin-left: 46px; }
  .step-shots .shot { margin-left: 0; }
}

@media (max-width: 760px) {
  .header-search { display: none; }
}
