/* The help library: an index with search and topic cards, and articles with
   a sidebar of their topic, numbered steps and framed screenshots. Built on
   site.css, so it reads as the same site. */

.help-hero { background: linear-gradient(180deg, #F5F2EC 0%, #F4F7F4 100%); border-bottom: 1px solid var(--line); padding: 54px 0 46px; }
.help-hero h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 600; color: var(--green-dark); line-height: 1.15; }
.help-hero .sub { margin-top: 10px; color: var(--ink-soft); font-size: 1.08rem; max-width: 36em; }
.help-search { position: relative; margin-top: 26px; max-width: 620px; }
.help-search input { width: 100%; font: inherit; font-size: 1.05rem; padding: 15px 18px 15px 48px; border-radius: 14px;
  border: 1px solid #CFDAD2; background: #fff; box-shadow: 0 10px 30px rgba(31, 74, 55, 0.08); outline: none; }
.help-search input:focus { border-color: var(--green-light); box-shadow: 0 10px 30px rgba(31, 74, 55, 0.14), 0 0 0 4px rgba(76, 138, 108, 0.14); }
.help-search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.help-results { list-style: none; margin-top: 10px; max-width: 620px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; display: none; box-shadow: 0 16px 40px rgba(31, 74, 55, 0.12); }
.help-results.open { display: block; }
.help-results a { display: block; padding: 12px 18px; color: var(--ink); border-top: 1px solid var(--line); }
.help-results li:first-child a { border-top: 0; }
.help-results a:hover, .help-results a.on { background: #F2F7F3; }
.help-results b { display: block; font-weight: 650; }
.help-results span { font-size: 0.86rem; color: var(--ink-soft); }
.help-results em { font-style: normal; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-light); }

.topics { padding: 46px 0 70px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 22px; }
.topic { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; position: relative; overflow: hidden; }
.topic::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone, var(--green)); }
.topic .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
  background: color-mix(in srgb, var(--tone, var(--green)) 12%, white); }
.topic h3 { font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 1.2rem; color: var(--green-dark); margin-top: 12px; }
.topic p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 4px; }
.topic ul { list-style: none; margin-top: 12px; border-top: 1px solid var(--line); }
.topic li a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EEF2EE;
  color: var(--ink); font-size: 0.94rem; }
.topic li a:hover { color: var(--green-dark); }
.topic li a::after { content: '→'; color: var(--ink-soft); }

/* An article: the topic's other articles on the left, the article on the right. */
.article { padding: 34px 0 80px; }
.article .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.side { position: sticky; top: 88px; font-size: 0.92rem; }
.side .back { display: inline-block; color: var(--ink-soft); margin-bottom: 14px; }
.side h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 18px 0 6px; }
.side a.item { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink); }
.side a.item:hover { background: #EAF1EC; }
.side a.item.on { background: #E3F1E7; color: var(--green-dark); font-weight: 650; }
.crumb { font-size: 0.85rem; color: var(--ink-soft); }
.crumb a { color: var(--ink-soft); }
.body h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; color: var(--green-dark); margin-top: 8px; line-height: 1.18; }
.body .lede { font-size: 1.12rem; color: var(--ink-soft); margin-top: 10px; max-width: 40em; }
.plan { display: inline-block; margin-top: 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 10px;
  border-radius: 20px; background: #EDE7F6; color: #4E3A78; }
.plan.free { background: #E3F1E7; color: #1F5B3F; }
.body h2 { font-size: 1.45rem; margin-top: 40px; }
.body p { margin-top: 12px; max-width: 42em; }
.body ul.ticks { margin-top: 12px; padding-left: 0; list-style: none; max-width: 42em; }
.body ul.ticks li { position: relative; padding-left: 26px; margin-top: 7px; }
.body ul.ticks li::before { content: ''; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green-light); }
ol.steps { list-style: none; counter-reset: step; margin-top: 16px; max-width: 42em; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-dark); color: #fff; font-weight: 700; font-size: 0.9rem; }
ol.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; background: #D7E4DB; }
ol.steps b { color: var(--green-dark); }
.ui { font-weight: 650; background: #EEF3EF; border: 1px solid #DCE6DF; border-radius: 6px; padding: 0 6px; white-space: nowrap; font-size: 0.93em; }
figure.shot { margin: 22px 0 8px; }
figure.shot.wide .browser { max-width: 100%; }
figure.shot.phone-fig { display: flex; gap: 24px; align-items: flex-start; }
figure.shot.phone-fig .phone { width: 260px; flex: none; }
figure.shot figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--ink-soft); }
figure.shot.pair { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; align-items: start; }
.note { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: #F4F1E8; border-left: 4px solid #B8A46A; max-width: 42em; font-size: 0.95rem; }
.note b { color: #6D5A22; }
.tip { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: #EEF6F1; border-left: 4px solid var(--green-light); max-width: 42em; font-size: 0.95rem; }
.related { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.related-grid a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.related-grid a:hover { border-color: var(--green-light); }
.related-grid b { display: block; }
.related-grid span { font-size: 0.86rem; color: var(--ink-soft); }
.stuck { margin-top: 36px; padding: 20px 22px; border-radius: 14px; background: var(--green-dark); color: #E6F0E9; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.stuck a { color: #fff; font-weight: 700; text-decoration: underline; }

@media (max-width: 900px) {
  .article .wrap { grid-template-columns: 1fr; }
  .side { position: static; order: 2; }
  figure.shot.pair, figure.shot.phone-fig { display: block; }
  figure.shot.pair .phone, figure.shot.phone-fig .phone { width: 220px; margin-top: 18px; }
}
