/* How-to kit for step-by-step help guides (first used by /help/business-email-google-workspace).
   Loaded only by the pages that use it, so styles.css?v= never moves for it. Uses the tokens in styles.css. */

.howto { --howto-gap: 28px; }
.howto .prose { max-width: 820px; }

/* The promise under the H1 */
.howto-lede { font-size: 19px; line-height: 1.55; color: var(--color-graphite); margin: 14px 0 0; max-width: 680px; }

/* At a glance */
.howto-glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 8px; }
.howto-glance > div { background: var(--color-card-white); border: 1px solid var(--color-soft-border); border-radius: var(--radius-cards); padding: 18px 18px 16px; }
.howto-glance h2 { font-family: var(--font-text); font-size: 13px !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted-text-strong); margin: 0 0 10px !important; }
.howto-glance ul { list-style: none; margin: 0; padding: 0; }
.howto-glance li { position: relative; padding-left: 22px; margin: 0 0 8px; font-size: 15px; line-height: 1.45; color: var(--color-ink-black); }
.howto-glance li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 3px; background: var(--color-lime-edge); }
.howto-glance p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--color-ink-black); }
.howto-glance .where-chip { margin: 0 4px 6px 0; }

/* Where you do a step */
.where-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap; color: var(--color-ink-black); }
.where-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.where-google { background: var(--tint-sky); border-color: #bcd9e6; }
.where-google::before { background: #3b8fb0; }
.where-dns { background: var(--tint-peach); border-color: #ffd9ae; }
.where-dns::before { background: #e8862c; }
.where-check { background: var(--tint-lime); border-color: var(--color-lime-edge); }
.where-check::before { background: var(--color-lime-ui); }

/* The step map */
.howto-map { list-style: none; margin: 32px 0 8px !important; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: map; }
.howto-map li { margin: 0 !important; }
.howto-map a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px 14px 12px; border-radius: var(--radius-cards); background: var(--color-card-white); border: 1px solid var(--color-soft-border); text-decoration: none !important; color: var(--color-ink-black); transition: border-color .15s, transform .15s; }
.howto-map a:hover { border-color: var(--color-graphite); transform: translateY(-1px); }
.howto-map .n { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--color-ink-black); }
.howto-map .t { font-size: 15px; font-weight: 500; line-height: 1.3; }
.howto-map .where-chip { align-self: flex-start; font-size: 12px; padding: 4px 8px; }

/* A step */
.howto-step { position: relative; margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--color-hairline); scroll-margin-top: 90px; }
.howto-step-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin-bottom: 18px; }
.howto-step-num { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; background: var(--color-ink-black); color: #fff; }
.howto-step-head h2 { margin: 0 !important; font-size: clamp(24px, 3.2vw, 30px) !important; line-height: 1.15; }
.howto-step-head .where-chip { justify-self: start; }
.howto-where { display: flex; flex-wrap: wrap; gap: 6px; }
.howto-do .where-chip, .howto p .where-chip { font-size: 12px; padding: 3px 8px; margin-left: 4px; vertical-align: 1px; }
.shot-narrow { max-width: 560px; }
.howto-step > p { font-size: 16px; }

/* Numbered sub-steps */
.howto-do { list-style: none; counter-reset: do; margin: 4px 0 18px !important; padding: 0; }
.howto-do > li { counter-increment: do; position: relative; padding: 0 0 0 40px; margin: 0 0 14px !important; font-size: 16px; line-height: 1.55; color: var(--color-ink-black); }
.howto-do > li::before { content: counter(do); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--color-hairline); background: var(--color-card-white); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--color-graphite); }
.howto-do > li > span.muted { display: block; font-size: 14px; color: var(--color-muted-text-strong); margin-top: 2px; }

/* A click path through someone's menus */
.clickpath { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 2px 0; }
.clickpath b { font-weight: 500; font-size: 14px; padding: 3px 9px; border-radius: 6px; background: #f1efeb; border: 1px solid var(--color-soft-border); color: var(--color-ink-black); white-space: nowrap; }
.clickpath i { font-style: normal; color: var(--color-muted-text); font-size: 13px; }

/* The record to add */
.record-card { margin: 8px 0 22px; border-radius: 14px; border: 1px solid var(--color-soft-border); background: var(--color-card-white); box-shadow: var(--shadow-lg); overflow: hidden; }
.record-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #fbf6f0; border-bottom: 1px solid var(--color-soft-border); }
.record-card-head strong { font-size: 14px; letter-spacing: 0.02em; }
.record-card-head .where-chip { font-size: 12px; padding: 4px 8px; }
.record-card dl { display: grid; grid-template-columns: 130px 1fr; margin: 0; }
.record-card dt, .record-card dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--color-soft-border); }
.record-card dl > :nth-last-child(-n+2) { border-bottom: 0; }
.record-card dt { font-size: 13px; font-weight: 500; color: var(--color-muted-text-strong); background: #fdfcfa; }
.record-card dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.record-card code, .howto code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: none; color: var(--color-ink-black); overflow-wrap: anywhere; word-break: break-word; }
.record-card dd small { display: block; font-size: 13px; color: var(--color-muted-text-strong); margin-top: 3px; font-family: var(--font-text); }
.copy-btn { flex-shrink: 0; font: 500 13px var(--font-text); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--color-control-border); background: var(--color-card-white); color: var(--color-ink-black); cursor: pointer; }
.copy-btn:hover { background: var(--color-lime-wash); border-color: var(--color-lime-ui); }
.copy-btn.is-done { background: var(--color-lime-wash); border-color: var(--color-lime-ui); }
.copy-btn[hidden] { display: none; }

/* Callouts */
.callout { margin: 18px 0 22px; padding: 14px 16px 14px 16px; border-radius: var(--radius-cards); border: 1px solid transparent; }
.callout p, .callout li { font-size: 15px !important; line-height: 1.55; color: var(--color-ink-black) !important; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0 !important; }
.callout ul { margin: 6px 0 0 18px !important; }
.callout-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.callout.warn { background: var(--tint-peach); border-color: #ffd9ae; }
.callout.warn .callout-label { color: #9a4a12; }
.callout.tip { background: var(--tint-sky); border-color: #bcd9e6; }
.callout.tip .callout-label { color: #2d6a83; }
.callout.done { background: var(--color-lime-wash); border-color: var(--color-lime-edge); }
.callout.done .callout-label { color: var(--color-lime-text); }

/* Screenshot in a browser frame */
.shot { margin: 18px 0 26px !important; }
.shot-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--color-hairline); background: #fff; box-shadow: var(--shadow-lg); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f1efeb; border-bottom: 1px solid var(--color-soft-border); }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d6d2cb; }
.shot-bar em { font-style: normal; font-size: 12px; color: var(--color-muted-text-strong); margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot img { width: 100%; height: auto; border: 0 !important; border-radius: 0 !important; }

/* Three spam records side by side */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 24px; }
.trio > div { padding: 16px; border-radius: var(--radius-cards); background: var(--color-card-white); border: 1px solid var(--color-soft-border); }
.trio h3 { margin: 0 0 6px !important; font-size: 20px !important; }
.trio p { margin: 0 !important; font-size: 14px !important; line-height: 1.5; }
.trio .req { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted-text-strong); }

/* Which panel do my records go in */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 22px; }
.paths > div { padding: 16px; border-radius: var(--radius-cards); background: var(--color-card-white); border: 1px solid var(--color-soft-border); }
.paths h3 { margin: 0 0 8px !important; font-size: 17px !important; line-height: 1.3; }
.paths p { margin: 0 0 8px !important; font-size: 14px !important; line-height: 1.5; }
.paths p:last-child { margin-bottom: 0 !important; }

/* Our numbers */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 14px; }
.stat-strip > div { padding: 18px; border-radius: var(--radius-cards); background: var(--color-ink-black); color: #fff; }
.stat-strip .big { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; margin-bottom: 8px; color: var(--color-lime-edge); }
.stat-strip span:last-child { font-size: 14px; line-height: 1.45; color: #e9e7e3; }

/* Cheat sheet */
.cheat { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 10px; border: 1px solid var(--color-soft-border); border-radius: var(--radius-cards); overflow: hidden; background: var(--color-card-white); font-size: 14px; }
.cheat th, .cheat td { padding: 11px 12px !important; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-soft-border); }
.cheat thead th { background: #f4f2ef; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted-text-strong); }
.cheat tbody tr:last-child td, .cheat tbody tr:last-child th { border-bottom: 0; }
.cheat tbody th { font-weight: 500; }

@media (max-width: 860px) {
  .howto-map { grid-template-columns: 1fr; }
  .howto-map a { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .howto-map .t { flex: 1; }
  .howto-glance, .trio, .paths, .stat-strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .record-card dl { grid-template-columns: 1fr; }
  .record-card dt { border-bottom: 0; padding-bottom: 2px; background: none; }
  .record-card dd { padding-top: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
  .howto-step-num { width: 44px; height: 44px; font-size: 20px; }
  .cheat thead { display: none; }
  .cheat, .cheat tbody, .cheat tr, .cheat th, .cheat td { display: block; width: 100%; }
  .cheat tr { border-bottom: 1px solid var(--color-soft-border); padding: 6px 0; }
  .cheat tbody tr:last-child { border-bottom: 0; }
  .cheat th, .cheat td { border: 0 !important; padding: 4px 12px !important; }
  .cheat td[data-label]::before { content: attr(data-label) ": "; font-weight: 500; color: var(--color-muted-text-strong); }
}
