/* The Square Apps Help Center (DESK-11668): the approved design, in www.square-apps.com's colours and font. The only
   stylesheet of a Square Apps page; the orange and the pink are decoration, never text (2.0:1 and 3.3:1 on white). */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/geist-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #14130F; --ink2: #2A2822; --muted: #5E5B53; --line: #E8E4DB; --bg: #FFFFFF; --soft: #F3F0E8;
  --pink: #F43FD9; --orange: #FF9F1C; --grad: linear-gradient(90deg, #FF9F1C, #F43FD9);
  --mark: #FFE3F1; --note: #FFF0BF; --on-ink: #FFFFFF;
  --r: 20px; --r-lg: 28px; --wrap: 1200px;
  --f: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { display: block; }
main:focus { outline: none; }

/* skip link */
.skip { position: absolute; left: 16px; top: -100px; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 99px; z-index: 50; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* header */
.hdr { border-bottom: 1px solid var(--line); background: var(--bg); }
.hdr-top { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-weight: 600; font-size: 15px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); line-height: 24px; }
.hdr-search { flex: 1; min-width: 200px; max-width: 340px; margin-left: auto; }
.hdr-right { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.hdr-search + .hdr-right { margin-left: 0; }
.lnk { font: 500 15px var(--f); text-decoration: none; padding: 9px 14px; border-radius: 99px; white-space: nowrap; }
.lnk:hover { background: var(--soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--f); text-decoration: none; padding: 12px 20px; border-radius: 99px; border: 1.5px solid var(--ink); cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink2); box-shadow: 0 8px 20px rgba(20, 19, 15, .18); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.srch-ico { display: none; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); flex: none; }
.srch-ico:hover { background: var(--soft); }
.srch-ico svg { width: 18px; height: 18px; }

/* the Apps menu: a details element, so it opens without a script */
.hnav { display: flex; align-items: center; gap: 4px; flex: none; }
.menuwrap { position: relative; }
.appsbtn { display: inline-flex; align-items: center; gap: 8px; font: 500 15px var(--f); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 6px; cursor: pointer; white-space: nowrap; list-style: none; }
.appsbtn::-webkit-details-marker { display: none; }
.appsbtn:hover, .menuwrap[open] .appsbtn { background: var(--soft); }
.appsbtn .stack { display: flex; }
.appsbtn .stack img { width: 22px; height: 22px; border-radius: 22%; border: 2px solid var(--bg); }
.appsbtn .stack img + img { margin-left: -8px; }
.appsbtn svg { width: 12px; height: 12px; }
.menu { position: absolute; left: 0; top: calc(100% + 10px); width: min(600px, calc(100vw - 32px)); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 20px 50px rgba(20, 19, 15, .14); padding: 10px; z-index: 30; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px; }
.menu a { display: grid; grid-template-columns: 32px 1fr auto; gap: 2px 12px; align-items: center; padding: 8px 10px; border-radius: 12px; text-decoration: none; }
.menu a:hover { background: var(--soft); }
.menu img { grid-row: span 2; width: 32px; height: 32px; border-radius: 22%; }
.menu b { font-weight: 600; font-size: 15px; line-height: 1.2; }
.menu small { grid-column: 2; color: var(--muted); font-size: 13px; line-height: 1.3; }
.menu .n { grid-row: 1 / span 2; grid-column: 3; font-size: 13px; color: var(--muted); }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 8px; padding: 10px 10px 4px; font-size: 13px; color: var(--muted); }
.menu-foot a { display: inline; padding: 0; font-weight: 600; color: var(--ink); text-decoration: underline; }

/* search */
.search { display: flex; gap: 8px; width: 100%; }
.search input { flex: 1; min-width: 0; font: 400 16px var(--f); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 99px; padding: 13px 20px; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244, 63, 217, .35); }
.search-sm input { padding: 9px 16px; font-size: 15px; }

/* home */
.hero { position: relative; overflow: hidden; padding-block: 64px 40px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto -10%; height: 520px; background: radial-gradient(40% 60% at 25% 30%, rgba(255, 159, 28, .22), transparent 70%), radial-gradient(40% 60% at 75% 25%, rgba(244, 63, 217, .2), transparent 70%); z-index: -1; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; }
.hero p { color: var(--muted); font-size: 19px; margin-top: 14px; max-width: 560px; }
.hero .search { max-width: 620px; margin-top: 28px; }
.pick { padding-block: 8px 80px; }
.pick-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pick-head h2 { font-size: 24px; }
.count { font-size: 14px; color: var(--muted); }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--ink); box-shadow: 0 12px 30px rgba(20, 19, 15, .08); transform: translateY(-2px); }
.tile img { width: 44px; height: 44px; border-radius: 22%; margin-bottom: 8px; }
.tile h3 { font-size: 17px; letter-spacing: -.01em; }
.tile span { font-size: 13px; color: var(--muted); }

/* app, category, search and other pages */
.page { padding-block: 40px 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }
.col-head { display: flex; gap: 18px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.col-head img { width: 64px; height: 64px; border-radius: 22%; }
.col-head h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.col-head p { color: var(--muted); margin-top: 6px; }
.cat { margin-top: 36px; }
.cat h2 { font-size: 22px; margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cat h2 .count { font-weight: 400; }
.list { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; text-decoration: none; font-weight: 500; }
.list a + a { border-top: 1px solid var(--line); }
.list a:hover { background: var(--soft); }
.list a::after { content: "→"; color: var(--muted); flex: none; }
.empty { color: var(--muted); }
.empty a { color: var(--ink); }
.r-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.r-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.r-head + p { margin-top: 16px; color: var(--muted); }
.r-head + p a { color: var(--ink); }
.r-head + .empty { margin-top: 28px; }
.tagc { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--f); padding: 5px 12px; border-radius: 99px; background: var(--soft); color: var(--ink2); width: fit-content; }
.tagc img { width: 16px; height: 16px; border-radius: 22%; }

/* article */
.layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; } }
.art h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.03em; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.stuck { position: relative; margin-top: 40px; border-radius: var(--r-lg); padding: 28px; background: var(--ink); color: var(--on-ink); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; overflow: hidden; }
.stuck::before { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 220px; background: radial-gradient(50% 60% at 50% 50%, rgba(244, 63, 217, .45), transparent 70%), radial-gradient(40% 50% at 20% 50%, rgba(255, 159, 28, .4), transparent 70%); }
.stuck > * { position: relative; }
.stuck h2 { font-size: 24px; }
.stuck p { color: rgba(255, 255, 255, .75); margin-top: 4px; }
.stuck .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.stuck .btn:hover { background: var(--soft); }
.stuck :focus-visible { outline-color: var(--orange); }
.aside { display: none; }
/* A category can hold 28 articles: the side column scrolls by itself. */
@media (min-width: 1000px) { .aside { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; } }
.aside h2 { font: 600 13px var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.35; font-size: 15px; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.toc + .related { margin-top: 28px; }
.related { display: grid; gap: 8px; font-size: 15px; }
.related a { text-decoration: none; font-weight: 500; }
.related a:hover { text-decoration: underline; }
.more { margin-top: 40px; }
.more h2 { font-size: 22px; margin-bottom: 12px; }

/* the article's own text, as the Help Center stores it */
.body { margin-top: 32px; display: grid; gap: 18px; max-width: 68ch; overflow-wrap: anywhere; }
.body > * { min-width: 0; margin: 0; }
.body a { text-decoration: underline; text-underline-offset: 3px; }
.body h2 { font-size: 28px; margin-top: 22px; scroll-margin-top: 20px; }
.body h3 { font-size: 21px; margin-top: 10px; scroll-margin-top: 20px; }
.body h4 { font-size: 18px; margin-top: 6px; }
.body ul, .body ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.body ul.toc { list-style: none; padding-left: 0; border: 0; }
.body li > p { margin: 0; }
.body img { height: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.body p > img { margin: 0; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 15px; line-height: 1.5; border: 1px solid var(--line); border-radius: 14px; }
.body table > tbody { display: table; width: 100%; border-collapse: collapse; }
.body th, .body td { overflow-wrap: normal; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.body tr:last-child td { border-bottom: 0; }
.body th { font-weight: 600; background: var(--soft); }
.body code, .body .inline-code { font-family: var(--mono); font-size: .85em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.body pre { background: var(--ink); color: var(--on-ink); padding: 16px; border-radius: 14px; overflow-x: auto; font-size: 14px; }
.body pre code { background: none; padding: 0; color: inherit; }
.body blockquote { padding: 4px 18px; border-left: 3px solid var(--ink); color: var(--muted); }
.body .callout, .body .callout-blue, .body .callout-green, .body .callout-yellow, .body .callout-red { background: var(--soft); border-radius: 16px; padding: 18px 22px; font-size: 16px; }
.body .callout-yellow { background: var(--note); }
.body .callout-red { background: var(--mark); }
.body .callout p + p, .body [class^="callout-"] p + p { margin-top: 8px; }
.body .video-responsive { position: relative; aspect-ratio: 16 / 9; }
.body .video-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--r); }
.body iframe { max-width: 100%; }
.body figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.body dt { font-weight: 700; }
.body dd { margin: 0 0 6px; }

/* search results */
.results { display: grid; gap: 12px; margin-top: 28px; }
.result { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.result:hover { border-color: var(--ink); }
.result h2 { font-size: 19px; letter-spacing: -.01em; }
.result p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.result mark { background: var(--mark); color: var(--ink); border-radius: 4px; padding: 0 2px; }
.result .tagc { margin-top: 12px; }

/* footer */
.ftr { background: var(--ink); color: rgba(255, 255, 255, .75); font-size: 15px; }
.ftr .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding-block: 36px; }
.ftr strong { color: var(--on-ink); font-weight: 700; font-size: 17px; }
.ftr nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--on-ink); text-decoration: underline; }
.ftr :focus-visible { outline-color: var(--orange); }

/* Under 1080px (the longest app name in the Apps button) one header row cannot hold the search too, and a menu
   opened from the Apps button, which sits after the logo, would run off the right edge: the search takes its own
   row and the menu opens from the header's edge. */
@media (max-width: 1079px) {
  .hdr-top { flex-wrap: wrap; position: relative; }
  .hdr-search { order: 3; max-width: none; flex-basis: 100%; }
  .hdr-search + .hdr-right { margin-left: auto; }
  .menuwrap { position: static; }
}
/* A phone header is the logo, the app switcher (the app's icon alone on its pages) and a search button (Alice
   Fischer's design): the search shows once that button opens it, and on the search page. */
@media (max-width: 719px) {
  .hnav .gq, .hdr-right, .brand span, .appsbtn.cur .lbl, .hdr-search { display: none; }
  .hnav { margin-left: auto; }
  .hdr-search.open { display: flex; }
  .srch-ico { display: grid; }
  .hero { padding-block: 40px 28px; }
  .stuck { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
