/* Help center (help.giano.care): the public site's look, with a reading layout for articles. */

.help-badge { margin-left: 2px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand); font: 650 0.72rem/1.2 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }
.help-nav { max-width: 1320px; flex-wrap: wrap; }
.help-icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.help-icon svg { width: 21px; height: 21px; }

/* Search */
.help-search { position: relative; display: flex; align-items: center; margin: 0; }
.help-search > svg { position: absolute; left: 14px; color: var(--ink-faint); pointer-events: none; width: 18px; height: 18px; }
.help-search input[type=search] { padding-left: 42px; border-radius: var(--radius-pill); }
.help-search-sm { flex: 1 1 240px; max-width: 420px; order: 3; }
.help-search-sm input[type=search] { padding-block: 8px; background: var(--surface); }
.help-search-lg { max-width: 640px; }
.help-search-lg > svg { left: 20px; width: 22px; height: 22px; }
.help-search-lg input[type=search] { padding: 17px 120px 17px 54px; font-size: 1.05rem; box-shadow: var(--shadow); border-color: var(--line); }
.help-search-lg button { position: absolute; right: 7px; }
@media (min-width: 900px) { .help-search-sm { order: 0; } }

/* Home */
.help-hero { position: relative; padding: 40px 0 56px; overflow: hidden; isolation: isolate; }
.help-hero::before, .help-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; }
.help-hero::before { width: 460px; height: 460px; background: var(--brand-tint); left: -140px; top: -160px; }
.help-hero::after { width: 380px; height: 380px; background: var(--accent-tint); right: -100px; top: 40px; }
.help-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); font-weight: 520; letter-spacing: -0.03em; }
.help-hero .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; margin: 10px 0 26px; }
.help-popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.help-popular a { padding: 5px 12px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 550; }
.help-popular a:hover { border-color: var(--brand-soft); }
.help-block { padding-bottom: 44px; }
.help-block > h2 { margin: 0 0 16px; font-size: 1.45rem; }

.help-roles { display: grid; gap: 14px; }
@media (min-width: 820px) { .help-roles { grid-template-columns: repeat(3, 1fr); } }
.help-role { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.help-role:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-soft); color: var(--ink); }
.help-role strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 560; margin-top: 8px; }
.help-role.role-manager .help-icon { background: var(--indigo-tint); color: var(--indigo); }
.help-role.role-professional .help-icon { background: var(--accent-tint); color: var(--accent); }
.help-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--brand); font-weight: 600; font-size: 0.92rem; }

.help-sections { display: grid; gap: 16px; }
@media (min-width: 760px) { .help-sections { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .help-sections { grid-template-columns: repeat(3, 1fr); } }
.help-sections .card + .card { margin-top: 0; }
.help-section { scroll-margin-top: 20px; }
.help-section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.help-section-head h3 { margin: 2px 0 2px; }
.help-section-head p { margin: 0; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; }
.help-list a { display: block; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 520; }
.help-list a:hover { text-decoration: underline; }

.help-contact { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.help-contact > div { flex: 1 1 320px; }
.help-contact h2 { margin: 0 0 4px; font-size: 1.2rem; }
.help-contact p { margin: 0; }

/* Article */
.help-layout { display: grid; gap: 28px; padding-top: 12px; padding-bottom: 56px; max-width: 1320px; }
@media (min-width: 960px) { .help-layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } }
@media (min-width: 1240px) { .help-layout { grid-template-columns: 250px minmax(0, 1fr) 210px; } }

.help-sidenav { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; }
.help-sidenav summary { cursor: pointer; font-weight: 650; font-size: 0.9rem; }
.help-sidenav nav { display: grid; gap: 14px; margin-top: 12px; }
.help-sidenav-group { display: grid; gap: 1px; }
.help-sidenav-group > span { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 4px; }
.help-sidenav a { padding: 5px 9px; border-radius: 7px; color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; line-height: 1.35; }
.help-sidenav a:hover { background: var(--surface-2); color: var(--ink); }
.help-sidenav a[aria-current=page] { background: var(--brand-tint); color: var(--brand-strong); font-weight: 600; }
@media (min-width: 960px) {
  .help-sidenav { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; border: 0; background: none; padding: 0; }
  .help-sidenav summary { display: none; }
  .help-sidenav nav { margin-top: 0; }
}

.help-article { min-width: 0; max-width: 780px; }
.help-crumbs { font-size: 0.86rem; color: var(--ink-faint); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.help-crumbs a { color: var(--ink-soft); text-decoration: none; }
.help-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.help-article h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); letter-spacing: -0.025em; }
.help-article > .lead { font-size: 1.14rem; color: var(--ink-soft); margin-bottom: 12px; }
.help-for { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-soft); font-size: 0.84rem; font-weight: 600; }

.help-body { margin-top: 26px; font-size: 1.01rem; line-height: 1.7; }
.help-body h2 { font-size: 1.45rem; margin: 2.2rem 0 0.6rem; padding-top: 0.4rem; scroll-margin-top: 16px; }
.help-body h3 { font-size: 1.12rem; margin: 1.6rem 0 0.4rem; }
.help-body ul, .help-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.help-body li { margin: 0.3em 0; }
.help-body li::marker { color: var(--brand-soft); }
.help-body ol > li::marker { font-weight: 700; }
.help-body strong { font-weight: 640; }
.help-body code, .help-body kbd { font: 500 0.88em/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.help-body kbd { box-shadow: inset 0 -1px 0 var(--line-strong); }
.help-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.93rem; display: block; overflow-x: auto; }
.help-body th, .help-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-body th { font-weight: 650; background: var(--surface-2); }
.help-body thead th:first-child { border-top-left-radius: var(--radius-sm); }
.help-body thead th:last-child { border-top-right-radius: var(--radius-sm); }

.help-body .callout { margin: 1.4em 0; padding: 14px 18px 14px 50px; border-radius: var(--radius-sm); background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); position: relative; }
.help-body .callout p:last-child { margin-bottom: 0; }
.help-body .callout::before { content: "i"; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 0.8rem/1 var(--font-display); background: var(--brand); color: var(--on-brand); }
.help-body .callout.tip { background: var(--green-tint); border-color: color-mix(in srgb, var(--green) 22%, transparent); }
.help-body .callout.tip::before { content: "✓"; background: var(--green); }
.help-body .callout.warning { background: var(--amber-tint); border-color: color-mix(in srgb, var(--amber) 25%, transparent); }
.help-body .callout.warning::before { content: "!"; background: var(--amber); }

.help-shot { margin: 1.6em 0 1.8em; }
.help-shot-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: var(--shadow); }
.help-shot-frame::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 14px 13px, #e46d5b 4px, transparent 4.5px), radial-gradient(circle at 30px 13px, #e5b53c 4px, transparent 4.5px), radial-gradient(circle at 46px 13px, #5fb76a 4px, transparent 4.5px), var(--surface); }
.help-shot img { display: block; width: 100%; height: auto; }
.help-shot figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--ink-faint); text-align: center; }

.help-open { margin: 2rem 0 0; }
.help-pager { display: grid; gap: 12px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .help-pager { grid-template-columns: 1fr 1fr; } }
.help-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; font-weight: 600; }
.help-pager a:hover { border-color: var(--brand-soft); }
.help-pager small { color: var(--ink-faint); font-weight: 500; }
.help-next { text-align: right; grid-column: -2; }

.help-toc { display: none; }
@media (min-width: 1240px) {
  .help-toc { display: grid; gap: 2px; position: sticky; top: 16px; font-size: 0.86rem; padding-left: 14px; border-left: 1px solid var(--line); }
  .help-toc strong { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 6px; }
  .help-toc a { color: var(--ink-soft); text-decoration: none; padding: 3px 0; }
  .help-toc a:hover { color: var(--brand); }
}

/* Search results */
.help-search-page { padding-top: 12px; padding-bottom: 56px; max-width: 860px; }
.help-search-page h1 { margin-bottom: 18px; }
.help-results { margin-top: 26px; display: grid; gap: 12px; }
.help-results .card + .card { margin-top: 0; }
.help-result { display: flex; gap: 16px; align-items: flex-start; color: var(--ink); text-decoration: none; transition: border-color .15s ease; }
.help-result:hover { border-color: var(--brand-soft); color: var(--ink); }
.help-result > span:last-child { display: grid; gap: 2px; }
.help-result small { color: var(--accent); font-weight: 650; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; }
.help-result strong { font-size: 1.05rem; }

/* The "?" next to a page title in the app */
.help-link { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink-faint); vertical-align: middle; margin-left: 4px; transition: background .15s, color .15s; }
.help-link:hover { background: var(--brand-tint); color: var(--brand); }
