/* Article page (help/templates/help/article_page.html): the minimal left menu, "In this article" and the
   muted Download / Print. The article body, Previous / Next, feedback and the phone's section bar keep the
   styles of helpsite.css. Only article pages load this file. */
:root{--al-line:#DCE1E8}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--al-line:var(--border)}}
:root[data-theme="dark"]{--al-line:var(--border)}
@media (prefers-contrast:more){:root{--al-line:var(--text)}}

/* Layout: menu 240 px | article up to 720 px, lined up with the header's logo */
.ax.al{grid-template-columns:240px minmax(0,720px);column-gap:64px;justify-content:start;max-width:1240px;padding-top:36px}
.ax.al.ax-solo{grid-template-columns:minmax(0,720px);justify-content:center}
/* the gap is the grid's, not the prototype's padding of the article column */
.al .ax-main{padding-inline-start:0;max-width:none}
.al :focus-visible{outline:2px solid var(--primary);outline-offset:2px;border-radius:var(--radius-sm)}

/* ---------- Left menu: sticky, no scroll of its own, no lines but the current article's */
.al-side{position:sticky;top:24px;align-self:start;font-size:var(--fs-small)}
.al-side ul{list-style:none;margin:0;padding:0}
.al-topic{display:inline-flex;align-items:center;gap:4px;margin-block-end:18px;margin-inline-start:-4px;color:var(--primary);font-weight:600;text-decoration:none}
.al-topic .ico{width:18px;height:18px}
.al-topic:hover{color:var(--primary-strong)}
.al-groups>li{margin-bottom:2px}
.al-g{display:block;padding-block:7px;color:var(--text2);font-weight:500;line-height:1.4}
summary.al-g{cursor:pointer;list-style:none}
summary.al-g::-webkit-details-marker{display:none}
summary.al-g:hover{color:var(--text)}
.al-cur>.al-g{color:var(--text);font-weight:700}
.al-groups .al-list{margin:2px 0 10px}
.al-list a{display:block;padding-block:6px;padding-inline-start:14px;border-inline-start:2px solid transparent;color:var(--text2);line-height:1.4;text-decoration:none}
.al-list a:hover{color:var(--text)}
.al-list a:is([aria-current="page"],[aria-current="true"]){color:var(--primary);border-inline-start-color:var(--primary);font-weight:600}
/* an article with child articles: the parent heads its own menu */
.al-list a.al-head{color:var(--text);font-weight:700}
.al-list a.al-head[aria-current="page"]{color:var(--primary)}

/* ---------- Section headings: the imported articles use h2, h3 and h4 (design system: h2-section,
   h3-section, h4-section); the body's 20 px gap sits between blocks, the margin opens a section */
.al .ax-body :is(h2,h3,h4){margin:0;font-weight:700;line-height:1.3;color:var(--text);text-wrap:pretty}
.al .ax-body h2{margin-top:24px;font-size:var(--fs-h2);letter-spacing:-.2px}
.al .ax-body h3{margin-top:16px;font-size:var(--fs-h3);letter-spacing:-.1px}
.al .ax-body h4{margin-top:8px;font-size:var(--fs-article)}
.al .ax-body :is(h3,h4){scroll-margin-top:24px}
:is(:lang(ar),:lang(th),:lang(ja),:lang(ko),:lang(zh-Hant)) .al .ax-body :is(h2,h3,h4){letter-spacing:0}

/* ---------- Header: Updated, muted Download and Print */
.al .ax-head h1{font-size:var(--fs-h1-article)}
.al-tools{gap:2px}
.al .ax-meta .al-tools{margin-inline-start:auto;width:auto}
/* no line under Updated: the only vertical line on the page is the current article's in the sidebar */
.al .ax-meta{margin-bottom:4px;padding-bottom:0;border-bottom:0}
.al .ax-foot{border-top-color:color-mix(in srgb,var(--text) 8%,transparent)}
.al-btn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border:0;border-radius:var(--radius-sm);background:none;color:var(--text2);font:inherit;font-size:var(--fs-small);font-weight:500;cursor:pointer;transition:background-color .15s,color .15s}
.al-btn .ico{width:18px;height:18px}
.al-btn .al-caret{width:16px;height:16px;margin-inline-start:-2px}
.al-btn:hover,.al-btn[aria-expanded="true"]{background:var(--surface-tile);color:var(--text)}
.ax.al .dl-menu{top:48px;inset-inline-start:auto;inset-inline-end:0}

/* ---------- In this article: one column in a white card with no border, shadow or rule */
.ax-intoc.al-toc{max-width:720px;margin:20px 0 0;padding:16px 20px 12px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card);box-shadow:none}
.al-toc a:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--radius-sm)}
/* 24 px from the card to the article; phones keep their own spacing */
@media (min-width:760px){.al .ax-intoc~.ax-body{margin-top:24px}}
.al-toc-h{display:block;margin-bottom:6px;font-size:var(--fs-overline);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text2)}
.al-toc ol{list-style:none;margin:0;padding:0}
.al-toc a{display:flex;align-items:baseline;gap:12px;padding-block:5px;color:var(--text);font-size:var(--fs-body);line-height:1.45;text-decoration:none}
.al-toc a b{min-width:12px;font-weight:600;color:var(--text2);font-variant-numeric:tabular-nums}
/* the number is drawn, not text: the link's text is the heading alone, as Google's sitelinks and screen readers
   take it ("2Add a New Item" otherwise) */
.al-toc a b::before,.cc-list a b::before{content:attr(data-n)}
.al-toc a:hover{color:var(--primary)}
.al-toc a:hover b{color:inherit}
:lang(ar) .al-toc-h,:lang(th) .al-toc-h,:lang(ja) .al-toc-h,:lang(ko) .al-toc-h,:lang(zh-Hant) .al-toc-h{letter-spacing:0}

/* ---------- Contents card (phones only): sticky, the current section and its number of all */
/* a solid page colour behind it, so text never shows through; its top follows the header */
.cc{position:sticky;top:0;z-index:6;margin-inline:-16px;padding:8px 16px;background:var(--bg);transition:top .2s ease}
.cc{display:none}
.cc-btn{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid var(--al-line);border-radius:var(--radius-lg);background:var(--s-lowest);color:var(--text);font:inherit;text-align:start;cursor:pointer;transition:box-shadow .2s}
/* in place: the border only; held at the top: a shadow */
.cc.stuck .cc-btn{box-shadow:0 4px 14px rgba(0,0,0,.08)}
.cc-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.cc-lbl{font-size:var(--fs-overline);font-weight:600;color:var(--text2)}
.cc-cur{display:block;font-size:var(--fs-ui);font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.cc-chev{width:22px;height:22px;color:var(--text2);transition:transform .2s}
.cc-btn[aria-expanded="true"] .cc-chev{transform:rotate(180deg)}
.cc-list{list-style:none;margin:6px 0 0;padding:6px;border:1px solid var(--al-line);border-radius:var(--radius-xl);background:var(--s-lowest);box-shadow:0 8px 24px rgba(0,0,0,.08);max-height:min(60vh,420px);overflow-y:auto}
.cc-list[hidden]{display:none}
.cc-list a{display:flex;gap:10px;align-items:baseline;padding:10px;border-radius:var(--radius-md);color:var(--text);font-size:var(--fs-ui);line-height:1.4;text-decoration:none}
.cc-list a b{font-weight:600;color:var(--text2);font-variant-numeric:tabular-nums}
.cc-list a[aria-current="location"]{background:var(--surface);font-weight:600}
.cc-list a:hover{background:var(--surface)}

@media (max-width:1000px){.ax.al{grid-template-columns:200px minmax(0,1fr);column-gap:40px}}
@media (max-width:759.98px){
  .ax.al{grid-template-columns:minmax(0,1fr);column-gap:0;padding:18px 20px 48px}
  .al-side,.ax-intoc.al-toc{display:none}
  .al .crumbs{margin:0;font-size:var(--fs-small)}
  .al .ax-head h1{margin:12px 0 10px;font-size:var(--fs-h1-mobile);font-weight:700;line-height:1.12;letter-spacing:-.6px}
  :lang(ar) .al .ax-head h1,:lang(th) .al .ax-head h1,:lang(ja) .al .ax-head h1,:lang(ko) .al .ax-head h1,:lang(zh-Hant) .al .ax-head h1{letter-spacing:0;line-height:1.3}
  /* Updated and two icon buttons in one row, no line under it */
  .al .ax-meta{flex-wrap:nowrap;gap:8px;margin:0 0 16px;padding:0;border:0;font-size:var(--fs-small);color:var(--text2)}
  .al .ax-meta .al-tools{flex:0 0 auto;width:auto;margin-inline-start:auto;gap:0}
  .al-btn{justify-content:center;width:40px;height:40px;padding:0;border-radius:50%}
  .al-btn .ico{width:20px;height:20px}
  .al-btn .al-lbl,.al-btn .al-caret{display:none}
  /* under the header while it shows, at the very top when it has gone up (site.css) */
  .cc{display:block;top:var(--hdr,0px);margin-inline:-20px;padding-inline:20px}
  :root[data-hdr="hidden"] .cc{top:0}
  /* a jump to a section hides the header (helpsite.js): 90 px clears the card; the page's scroll
     padding is the header, so the margin is what is left */
  .al .ax-body h2{font-size:var(--fs-h3)}
  .al .ax-body h3{font-size:var(--fs-article)}
  .ax-body [id]{scroll-margin-top:calc(90px - var(--hdr,0px))}
  :root[data-hdr="hidden"] .ax-body [id]{scroll-margin-top:90px}
  :root[data-hdr="hidden"]{scroll-padding-top:0}
}
@media (max-width:759.98px){.ax.al .dl-menu{top:auto;left:0;right:0}}
@media (prefers-reduced-motion:reduce){.al-btn,.cc-chev,.cc,.cc-btn{transition:none}}
@media print{.al-side,.al-toc,.al-tools,.cc{display:none!important}.ax.al{display:block}}

/* ---------- Download menu: the whole guide offline as its last row, under a hairline, like the formats */
.dl-menu .dl-guide{position:relative;margin-top:9px}
.dl-menu .dl-guide::before{content:"";position:absolute;top:-5px;inset-inline:12px;border-top:1px solid var(--border)}
.dl-menu .dl-guide>span:nth-child(2){flex:1 1 auto;min-width:0}
.fbadge.guide{flex:0 0 52px;background:var(--brand-gradient);color:var(--on-brand)}
.fbadge.guide .ico{width:18px;height:18px}
.dl-go{flex:0 0 auto;width:20px;height:20px;color:var(--text2)}
[dir="rtl"] .dl-go{transform:scaleX(-1)}

/* ---------- Still need help? (SupportBlock): one link to the Community, the home page's green tile laid
   out in a row: icon, text, a white pill; stacked on phones */
.ax-foot .ask{margin:0}
.ask-in{display:flex;align-items:center;gap:20px;padding:24px 26px;border-radius:var(--radius-2xl);background:var(--tint-green-bg);color:var(--text);text-decoration:none;transition:transform .15s}
.ask-in:hover{color:var(--text);transform:translateY(-2px)}
.ask-in:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.ask-ic{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:var(--radius-xl);background:var(--card);color:var(--tint-green-fg)}
.ask-ic .ico{width:28px;height:28px}
.ask-tx{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;min-width:0}
.ask-tx h2{margin:0;font-size:var(--fs-h3);font-weight:700;line-height:1.3}
.ask-tx span{font-size:var(--fs-ui);line-height:1.5;color:var(--text2)}
.ask-go{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:var(--radius-pill);background:var(--card);color:var(--tint-green-fg);font-size:var(--fs-ui);font-weight:600;white-space:nowrap}
.ask-go .ico{width:18px;height:18px}
[dir="rtl"] .ask-go .ico{transform:scaleX(-1)}
@media (max-width:759.98px){
  .ask-in{flex-wrap:wrap;gap:14px 16px;padding:20px}
  .ask-tx{flex-basis:calc(100% - 72px)}
  .ask-go{width:100%;white-space:normal}
}
@media (prefers-reduced-motion:reduce){.ask-in{transition:none}.ask-in:hover{transform:none}}

/* ---------- Tables (help/blocks/table.html): a card, the header row tinted, hairlines between rows. A price
   list (amounts in the second column) puts the amount large in the brand colour on the right. In a narrow
   column every row is a card of its own, its cells labelled from the header: no sideways scrolling */
.atab{container-type:inline-size;margin:4px 0;overflow-x:auto}
.atab table{width:100%;min-width:0;border-collapse:separate;border-spacing:0;border:1px solid var(--border);background:var(--card);border-radius:var(--radius-lg);overflow:hidden;font-size:var(--fs-ui);line-height:1.5;font-variant-numeric:tabular-nums}
.atab caption{caption-side:top;text-align:start;padding:0 0 8px;font-size:var(--fs-small);font-weight:600;color:var(--text2)}
.atab thead th{background:var(--pc);color:var(--on-pc);padding:12px 18px;font-size:var(--fs-small);font-weight:600;text-align:start;vertical-align:bottom}
.atab td,.atab tbody th{padding:14px 18px;border-top:1px solid var(--border);vertical-align:top;text-align:start;font-size:var(--fs-ui);color:var(--text)}
.atab tbody tr:first-child>*{border-top:0}
.atab .c-k{font-weight:600}
.atab .sub{display:block;margin-top:2px;font-weight:400;font-size:var(--fs-small);color:var(--text2)}
.atab strong{font-weight:700}
.atab-price thead th{background:transparent;color:var(--text2);font-size:var(--fs-caption);letter-spacing:.4px;text-transform:uppercase;padding:18px 22px 10px}
.atab-price thead th:last-child{text-align:end}
.atab-price td,.atab-price tbody th{padding:16px 22px;vertical-align:middle}
.atab-price thead+tbody tr:first-child>*{border-top:1px solid var(--border)}
.atab-price .c-v{text-align:end}
.atab-price .pv{display:block;font-family:var(--font-head);font-size:var(--fs-h2);font-weight:800;line-height:1.2;letter-spacing:-.3px;color:var(--primary);white-space:nowrap}
.atab-price .pv-word{color:var(--text)}
.atab-price .c-v small{display:block;margin-top:3px;font-size:var(--fs-caption);color:var(--text2)}
.atab:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@container (max-width:520px){
  .atab table,.atab tbody,.atab tr,.atab td,.atab tbody th{display:block;width:100%}
  .atab table{border:0;background:transparent;border-radius:0;overflow:visible}
  .atab caption{display:block}
  .atab thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .atab tbody{display:flex;flex-direction:column;gap:10px}
  .atab tr{border:1px solid var(--border);background:var(--card);border-radius:var(--radius-lg);padding:14px 16px}
  .atab td,.atab tbody th,.atab tbody tr:first-child>*{border:0;padding:0}
  .atab tr>*+*{margin-top:10px}
  .atab .c-k{font-size:var(--fs-body)}
  .atab td[data-label]:not([data-label=""])::before{content:attr(data-label);display:block;margin-bottom:2px;font-size:var(--fs-overline);font-weight:600;letter-spacing:.3px;text-transform:uppercase;color:var(--text2)}
  /* a price list stays one card: the name on the left, the amount on the right */
  .atab-price table{border:1px solid var(--border);background:var(--card);border-radius:var(--radius-lg);overflow:hidden}
  .atab-price tbody{gap:0}
  .atab-price tr{display:flex;justify-content:space-between;align-items:center;gap:14px;border:0;border-radius:0;padding:14px 16px;border-top:1px solid var(--border)}
  .atab-price tbody tr:first-child,.atab-price thead+tbody tr:first-child>*{border-top:0}
  .atab-price tr>*+*{margin-top:0}
  .atab-price .c-k{flex:1 1 auto;min-width:0;font-size:var(--fs-ui)}
  .atab-price .c-v{flex:0 0 auto;width:auto;max-width:58%}
  .atab-price .c-v::before{content:none!important}
  .atab-price .pv{font-size:var(--fs-h3)}
}

/* The article's page is white for long reading (the dark theme keeps its page colour); the white table and
   "In this article" keep a thin grey border (above) so they stay visible on it. Nothing else changes */
body[data-page="article"]{background:var(--article-bg)}

/* Article tables, design package 8: a reference, not an advert. The header row of every table a soft neutral
   fill with dark text in sentence case (as the User guide table; blue means "selected"); row labels regular,
   the weight on the values; rates and amounts at the table's text size, dark (they are not links). Same
   specificity as the rules above: these win by order. */
.atab thead th,.atab-price thead th{background:var(--surface);color:var(--text);font-size:var(--fs-small);font-weight:600;
  letter-spacing:normal;text-transform:none;padding:12px 18px;vertical-align:middle}
.atab-price thead th{white-space:nowrap}
.atab thead+tbody tr:first-child>*{border-top:1px solid var(--border)}
.atab table{background:transparent}
.atab .c-k{font-weight:400}
.atab-price td,.atab-price tbody th{padding:14px 18px}
.atab-price .pv{font-family:inherit;font-size:inherit;font-weight:700;letter-spacing:normal;line-height:inherit;color:var(--text)}
/* a narrow column, where every row is a card (the container query above) */
@container (max-width:520px){
  /* an empty cell is not shown, so there is no "NOTES" label over nothing */
  .atab td:empty{display:none}
  /* the row is the card: its cells take no padding or line of their own */
  .atab-price td,.atab-price tbody th{padding:0}
  .atab thead+tbody tr:first-child>*{border-top:0}
  /* price lists keep their header row ("Fee per transaction" says what the number is) */
  .atab-price table{background:transparent}
  .atab-price thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none;display:block}
  .atab-price thead tr{display:flex;justify-content:space-between;gap:14px;padding:12px 16px;background:var(--surface)}
  .atab-price thead th{display:block;padding:0;background:transparent}
  .atab-price thead+tbody tr:first-child{border-top:1px solid var(--border)}
  .atab-price thead+tbody tr:first-child>*{border-top:0}
  .atab-price .pv{font-size:inherit}
}

/* Design package 10, articles.
   1) The title 600 like every heading, 38 px on desktop (--fs-h1-article: home 58 / topic 46 / article 38, as on
      loyverse.com) */
.ax-head h1,.al .ax-head h1{font-weight:600}
/* 2) Text 18 / 1.6 on desktop, 16 / 1.6 on phones (sizes through the tokens: A+ / A++ still scale) */
.prose p,.prose li{font-size:var(--fs-article);line-height:1.6}
@media (max-width:759.98px){.prose p,.prose li{font-size:var(--fs-body);line-height:1.6}}
/* 3) Links in the text: the colour alone in the light theme (3.36:1 against the text), the underline on hover
      and keyboard focus (WCAG G183); the dark theme keeps the underline (only 1.42:1 there) */
.prose a{text-decoration:none}
.prose a:hover,.prose a:focus-visible{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .prose a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}}
:root[data-theme="dark"] .prose a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* 4) Hover in lists and menus: the colour only; breadcrumbs, blue already, darken */
.crumbs a:hover,.al-list a:hover,.al-toc a:hover span,.res h2 a:hover,.res-path a:hover,
.ax .pn-a:hover b,.ax-foot .seealso a:hover,.pop a:hover b{text-decoration:none}
.crumbs a:hover{color:var(--primary-strong)}
.al-list a:hover{color:var(--primary)}
/* 5) The sidebar's article titles in the text colour (the current one keeps its blue, bar and 600) */
.al-list a{color:var(--text)}
/* 6) "In this article" and the phone contents card only from two sections up */
.ax-intoc.al-toc:not(:has(li + li)),.cc:not(:has(li + li)){display:none}
/* 7) Download menu: white with a hairline like the Topics menu (no line where it is a bottom sheet); the
      User guide item a light blue square with a blue icon, no gradient */
.dl-menu{background:var(--s-lowest)}
@media (min-width:760px){.dl-menu{border:1px solid var(--border)}}
.fbadge.guide{background:var(--icon-bg);background-image:none;color:var(--icon-fg)}
/* 8) "Was this helpful?" Send: tonal, not orange (orange is for sign-up and Show results); on the grey panel
      the fill takes a little more blue to keep its shape */
.hf-why .btn-tonal{background:color-mix(in srgb,var(--primary) 14%,var(--surface))}
.hf-why .btn-tonal:hover{background:color-mix(in srgb,var(--primary) 20%,var(--surface))}
.hf-why .btn-tonal:active{background:color-mix(in srgb,var(--primary) 24%,var(--surface))}
