/* cTrader Help Centre — home page */
:root{
  --ct-accent:#68A691; --ct-accent-ink:#2E8266; --ct-accent-soft:#E1EDE9; /* brand secondary greens */
  /* bands: light mint panel with a green glow in light mode */
  --ct-band:#FFFFFF; --ct-band-glow:#B3D3C8; --ct-band-surface:#FFFFFF; --ct-band-line:#D3E4DA;
  --ct-band-text:#0F1311; --ct-band-muted:#55615B; --ct-band-link:#2E8266; --ct-band-code:#F1F6F3;
}
[data-md-color-scheme="slate"]{
  --ct-accent-ink:#68A691; --ct-accent-soft:#1B2C26;
  --ct-band:#0F1311; --ct-band-glow:#1E3A30; --ct-band-surface:#191F1C; --ct-band-line:#2A322E;
  --ct-band-text:#EEF2F0; --ct-band-muted:#9BA6A0; --ct-band-link:#68A691; --ct-band-code:#0B0E0C;
}
/* link colours (brand green #68A691; #2E8266 on white for contrast) come from overrides extra.css */
.md-header{background:#0D0D0D}
html{scroll-behavior:smooth}

/* hero banners */
.banner-grid{display:grid;grid-template-columns:1fr;gap:1rem;margin:1.2rem 0}
@media (min-width:960px){.banner-grid{grid-template-columns:repeat(3,1fr)}}
.banner-tile{position:relative;width:100%;padding-top:60%;overflow:hidden;border-radius:8px}
.banner-tile a{position:absolute;inset:0;display:block}
.banner-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.banner-tile:hover img{transform:scale(1.05)}

/* "I'm here to" */
.ct-doors{display:flex;flex-wrap:wrap;gap:.4rem .6rem;align-items:center;max-width:37rem;margin:1.2rem 0}
.ct-doors p{display:contents}
.ct-doors-l{flex-basis:100%;font-size:1.1rem;font-weight:500}
/* chips stretch to equal widths so the row ends where the search box ends (both 37rem;
   three equal chips need at least 36.5rem, below that they wrap) */
.ct-doors a{display:flex;align-items:baseline;gap:.5rem;flex:1 1 0;min-width:max-content;background:var(--md-code-bg-color);border:1px solid transparent;border-radius:999px;padding:.4rem 1.1rem;outline:none;transition:border-color .2s,box-shadow .2s}
.ct-doors a:hover{border-color:var(--ct-accent)}
.ct-doors a:focus-visible{border-color:var(--ct-accent);box-shadow:0 0 0 3px rgba(104,166,145,.25)}
.ct-doors a strong::after{content:" ↓";color:var(--ct-accent-ink)}
.ct-doors a small{font-size:.65rem;color:var(--md-default-fg-color--light);font-weight:400}
/* phones: the chips stay on one row that scrolls sideways, under the "I'm a..." label. A grid,
   not the flex row above: the label takes the first row across all three chip columns, the chips
   the second; the padding keeps the focus ring inside the scroll box, which would clip it */
@media (max-width:620px){
  .ct-doors{display:grid;grid-template-rows:auto auto;grid-auto-flow:column;grid-auto-columns:max-content;gap:.4rem .5rem;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:3px;margin-inline:-3px}
  .ct-doors::-webkit-scrollbar{display:none}
  .ct-doors-l{grid-row:1;grid-column:1 / span 3;position:sticky;inset-inline-start:0;justify-self:start}
  .ct-doors a{scroll-snap-align:start}
}

/* phones and small tablets: the language menu opens under the flag at the screen's edge. The theme
   centres it on the flag, so half of it hangs off the screen (hidden, but still laid out): the page
   gets wider than the phone, Safari zooms out to fit it, and the page slides sideways when the
   search box takes focus. Line the menu up with the flag's outer edge instead. */
@media (max-width:59.9375em){
  .md-header .md-select__inner{left:auto;right:auto;inset-inline-end:0;transform:translate3d(0,.3rem,0)}
  .md-header .md-select:focus-within .md-select__inner,.md-header .md-select:hover .md-select__inner{transform:translate3d(0,0,0)}
  .md-header .md-select__inner::after{left:auto;right:auto;inset-inline-end:.8rem}
}


/* pills / chips */
.ct-pill{font-size:.6rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:.1rem .5rem;vertical-align:middle}
/* status pill stays on the title line, never split */
.ct-cards .ct-pill{margin-left:.3rem;white-space:nowrap}
/* quick links under card descriptions: one line, "·"-separated; plain text = not clickable */
.md-typeset .ct-links{margin:.6rem 0 0;color:var(--md-default-fg-color--light)}
.md-typeset .ct-cards blockquote{margin:.6rem 0 0;padding:.3rem .6rem;border:0;border-radius:8px;background:var(--md-code-bg-color);font-size:.68rem;font-family:var(--md-code-font-family);color:var(--md-default-fg-color)}
.md-typeset .ct-cards blockquote code{border:0;padding:0;background:none;font-size:inherit}

/* link groups: rows with right-aligned hint, no bullets */
.md-typeset .ct-groups.grid.cards > ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.ct-groups.grid.cards > ul > li{border:0;border-radius:0;padding:0}
/* no card effect on hover, or after a link inside was clicked (the theme's :focus-within shadow) */
.ct-groups.grid.cards > ul > li:hover,.md-typeset .ct-groups.grid.cards > ul > li:focus-within{box-shadow:none}
.ct-groups ul ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--md-default-fg-color--lightest)}
.ct-groups ul ul li{margin:0;padding:.4rem .1rem;border-bottom:1px solid var(--md-default-fg-color--lightest);color:var(--md-default-fg-color--light)}
.ct-rows.grid.cards > ul > li > ul{margin-top:0}
.md-typeset .ct-rows.grid.cards > ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.md-typeset .ct-groups.grid.cards > ul,.md-typeset .ct-rows.grid.cards > ul{display:grid;grid-template-columns:1fr}}
/* …in one column the link-only blocks (Grow, More ways to learn) are one list: each link is its own
   grid cell, so drop the gap and the list margins between the cells */
@media (max-width:900px){
  .md-typeset .ct-groups.ct-rows.grid.cards > ul{row-gap:0}
  .md-typeset .ct-groups.ct-rows.grid.cards > ul > li > ul{margin-top:0;margin-bottom:0}
}

/* green-bordered band (AI features, developers): mint in light mode, dark in dark mode */
.md-typeset .ct-band{background:radial-gradient(70% 90% at 80% 15%,var(--ct-band-glow) 0,transparent 70%) var(--ct-band);color:var(--ct-band-text);border:1px solid var(--ct-accent);border-radius:12px;box-shadow:0 0 28px 6px rgba(104,166,145,.28);padding:1.2rem;margin:1.2rem 0;scroll-margin-top:4rem}
/* space between cards in the AI, developer and link-group grids */
.md-typeset .ct-band .grid.cards > ul,.md-typeset .ct-groups.grid.cards > ul{gap:1.2rem}
/* link-column blocks (Quick start, Build with AI, Grow, Learn): the same grid as the cards in the
   band above (band padding 1.2rem + its 1px border, the cards' 1.2rem gap), so each column's text
   starts under the text of the card above it, and all link columns on the page line up */
.md-typeset .ct-groups.grid.cards > ul{column-gap:1.2rem;padding:0 calc(1.2rem + 1px)}
@media (max-width:620px){.md-typeset .ct-groups.grid.cards > ul{padding:0 calc(1.2rem + 1px)}}
/* …and the same text inset as the card content (card padding + border), divider lines stay full width */
.md-typeset .ct-groups.grid.cards > ul > li > p,
.md-typeset .ct-groups.grid.cards ul ul li{padding-left:calc(.8rem + 1px);padding-right:calc(.8rem + 1px)}
/* one heading style for every panel title (AI features, What do you want to build?, …) */
.md-typeset .ct-band h3{color:var(--ct-band-text);font-size:1.25rem;font-weight:700;margin:1.6rem 0 .6rem}
.md-typeset .ct-band > h3:first-child{margin-top:0}
.ct-band a{color:var(--ct-band-link)}
.md-typeset .ct-band .grid.cards > ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.ct-band .grid.cards > ul > li{background:var(--ct-band-surface);border:1px solid var(--ct-band-line);border-radius:8px;color:var(--ct-band-text)}
.ct-band .grid.cards > ul > li:hover{border-color:var(--ct-accent);box-shadow:none}
.md-typeset .ct-band .grid.cards > ul > li:focus-within:not(:hover){border-color:var(--ct-band-line);box-shadow:none}
.ct-band .grid.cards hr{border-color:var(--ct-band-line)}
.ct-band .grid.cards li li{color:var(--ct-band-text)}
.ct-band code{color:var(--ct-band-text)}
/* cards inside bands: readable prompt boxes */
.ct-band .ct-cards blockquote{background:var(--ct-band-code);color:var(--ct-band-text)}
.ct-band .ct-cards code{color:var(--ct-band-text)}
/* inside the band cards: one 12px (.6rem) step between title, rule, text, links and example */
.md-typeset .ct-band .grid.cards > ul > li > hr{margin:.6rem 0}
.md-typeset .ct-band .grid.cards > ul > li > p{margin:.6rem 0}
.md-typeset .ct-band .grid.cards > ul > li > :first-child{margin-top:0}
.md-typeset .ct-band .grid.cards > ul > li > :last-child{margin-bottom:0}
.md-typeset .ct-res{color:var(--md-default-fg-color--light)}
.md-typeset .ct-res-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 1.2rem;align-items:start}
.md-typeset .ct-res-cols ul{list-style:none;margin:0;padding:0}
.md-typeset .ct-res-cols li{margin:0 0 .35rem;padding:0}
/* link text in line with the card text above (card padding + border); ul > li outranks the theme's list indent */
.md-typeset .ct-res-cols ul > li{margin-inline-start:calc(.8rem + 1px)}
@media (max-width:760px){.md-typeset .ct-res-cols{grid-template-columns:1fr}}
@media (max-width:900px){.md-typeset .ct-band .ct-tiles.grid.cards > ul{display:grid;grid-template-columns:1fr}}
@media (max-width:620px){.md-typeset .ct-band .grid.cards > ul{display:grid;grid-template-columns:1fr}.md-typeset .ct-band{padding:1.2rem}}

/* popular tabs: two columns */
.md-typeset .tabbed-content ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.5rem}
.md-typeset .tabbed-content li{margin:0;padding:.4rem 0;border-bottom:1px solid var(--md-default-fg-color--lightest)}
@media (max-width:760px){.md-typeset .tabbed-content ul{grid-template-columns:1fr}}

.md-typeset .ct-cards.grid.cards > ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.md-typeset .ct-cards.grid.cards > ul{display:grid;grid-template-columns:1fr}}
/* a card grid with only two cards (AI features): two equal columns, no empty third one */
@media (min-width:901px){.md-typeset .ct-band .ct-cards.grid.cards > ul:has(> li:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
.md-typeset .ct-cards.grid.cards > ul > li,.md-typeset .ct-groups.grid.cards > ul > li,.md-typeset .ct-band .grid.cards > ul > li{width:auto;flex:none;margin:0}

/* our grid lists are real boxes (Material uses display:contents), so drop the default list indent
   and spacing: cards line up with the heading above and the panel has even padding all round */
.md-typeset .grid.cards.ct-cards > ul,.md-typeset .ct-band .grid.cards > ul,.md-typeset .ct-groups.grid.cards > ul{margin:0}
.md-typeset .ct-band > .grid:last-child,.md-typeset .ct-band > :last-child{margin-bottom:0}
/* prompt boxes: no quote bar, no extra paragraph spacing */
.md-typeset .ct-cards blockquote p{margin:0}
/* prompts: max 2 lines, longer text ends with "…" */
.md-typeset .ct-cards blockquote p:not(.ct-rotate),.md-typeset .ct-rotate > span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}

/* rotating prompts: all spans share one grid cell (box keeps the tallest prompt's height, no jumping);
   5 prompts × 3s = 15s loop, each visible for its 20% slice */
.md-typeset .ct-rotate{display:grid}
/* rotating example prompts: always one line (the box takes the height of the tallest prompt);
   on narrow screens a long one ends with "…" instead of growing the box */
.md-typeset .ct-rotate > span{-webkit-line-clamp:1;line-clamp:1}
.md-typeset .ct-rotate > span{grid-area:1/1;opacity:0;animation:ct-rotate 15s infinite}
.md-typeset .ct-rotate > span:nth-child(2){animation-delay:3s}
.md-typeset .ct-rotate > span:nth-child(3){animation-delay:6s}
.md-typeset .ct-rotate > span:nth-child(4){animation-delay:9s}
.md-typeset .ct-rotate > span:nth-child(5){animation-delay:12s}
@keyframes ct-rotate{0%{opacity:0}3%,17%{opacity:1}20%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){
  .md-typeset .ct-rotate > span{animation:none}
  .md-typeset .ct-rotate > span:first-child{opacity:1}
}

/* link groups: lists align with the heading above (Material's [dir=ltr] list margins outrank the rules above) */
.md-typeset .ct-groups.grid.cards ul ul{margin-left:0;margin-right:0}
.md-typeset .ct-groups.grid.cards ul ul li{margin-left:0;margin-right:0}
/* hint rows: name on the left, short muted hint right-aligned on the same line */
.md-typeset .ct-hints.grid.cards ul ul li{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;color:var(--md-default-fg-color)}
.ct-hints .ct-hint{flex:none;white-space:nowrap;text-align:right;font-size:.65rem;color:var(--md-default-fg-color--light)}

/* Build block: four cards in the AI-features card style, tags in the muted box, buttons under the lead */
.md-typeset .ct-eyebrow{display:block;font-size:.6rem;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--md-default-fg-color--light)}
.md-typeset .ct-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 1.6rem}
.md-typeset .ct-actions p{display:contents}
.md-typeset .ct-actions .md-button{margin:0;background:transparent;color:var(--md-default-fg-color);border:1px solid var(--md-default-fg-color--lighter);font-size:.7rem;font-weight:500;padding:.35em 1em;border-radius:.15rem}
.md-typeset .ct-actions .md-button:hover{border-color:var(--ct-accent-ink);color:var(--ct-accent-ink)}
.md-typeset .ct-actions .md-button--primary{background:var(--ct-accent-ink);border-color:var(--ct-accent-ink);color:#fff}
.md-typeset .ct-actions .md-button--primary:hover{background:var(--ct-accent);border-color:var(--ct-accent);color:#0F1311}
.md-typeset .ct-cards-4.grid.cards > ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){.md-typeset .ct-cards-4.grid.cards > ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.md-typeset .ct-cards-4.grid.cards > ul{grid-template-columns:1fr}}
.md-typeset .ct-cards .ct-tags{display:flex;flex-wrap:wrap;gap:.2rem .7rem;margin:0;font-size:.65rem;font-family:var(--md-text-font-family)}

/* left navigation: "All sections" heading; group titles as small headings (12px capitals, semibold, muted, space above each group); links 14px like the menu on every other page */
.md-sidebar--primary .md-nav--primary > .md-nav__list::before{content:"All sections";display:block;padding:1.1rem 0 .2rem;font-size:.6rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--md-default-fg-color--light)}
html body .md-sidebar--primary .md-nav--primary > .md-nav__list > li.md-nav__item--nested > label.md-nav__link,
html body .md-sidebar--primary .md-nav--primary > .md-nav__list > li.md-nav__item--nested > .md-nav__toggle:checked ~ label.md-nav__link{font-size:.6rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--md-default-fg-color--light);opacity:.6;margin-top:1.2rem}
.md-sidebar--primary .md-nav--primary > .md-nav__list > li.md-nav__item--nested > nav .md-nav__link{font-size:.7rem}
/* home only: no "All sections" heading or site title above the nav */
body:has(.banner-grid) .md-sidebar--primary .md-nav--primary > .md-nav__list::before{display:none}
@media (min-width:76.25em){body:has(.banner-grid) .md-sidebar--primary .md-nav--primary > .md-nav__title{display:none}}

/* light sections (Grow, Learn, Where people start): green eyebrow, large heading, rule between sections */
.md-typeset .ct-sep{margin:2.5rem 0;border:0;border-top:1px solid var(--md-default-fg-color--lightest)}
.md-typeset .ct-eyebrow-sec{color:var(--ct-accent-ink);font-weight:700;font-size:.62rem;letter-spacing:.1em;margin-bottom:.3rem}
.md-typeset .ct-sec > p{color:var(--md-default-fg-color--light)}
.md-typeset .ct-sec .ct-groups.grid.cards{margin-top:1.2rem}
.md-typeset .ct-sec .ct-hints.grid.cards ul ul li .ct-hint{font-size:.65rem}

/* popular articles: pill tabs, rows with the product on the right */
.md-typeset .ct-popular .tabbed-labels{box-shadow:none;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:.8rem 0 1rem;overflow:visible}
.md-typeset .ct-popular .tabbed-labels::before{display:none}
.md-typeset .ct-popular .tabbed-content li{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.md-typeset .ct-band h3#earn{scroll-margin-top:4rem}

/* popular tabs = the top "I'm a" pills (.ct-doors a): same size, shape, colours in every state.
   Selectors outrank Material's .md-typeset .tabbed-labels>label, its :hover (white) and :checked rules. */
.md-typeset .ct-popular .tabbed-set > .tabbed-labels > label,
.md-typeset .ct-popular .tabbed-set > .tabbed-labels > label:hover,
.md-typeset .ct-popular .tabbed-set > input:checked ~ .tabbed-labels > label{display:flex;align-items:baseline;gap:.5rem;width:auto;margin:0;padding:.4rem 1.1rem;font-size:.75rem;line-height:1.6;font-weight:400;color:var(--md-typeset-a-color);background:var(--md-code-bg-color);border:1px solid transparent;border-radius:999px;cursor:pointer}
.md-typeset .ct-popular .tabbed-set > .tabbed-labels > label:hover{border-color:var(--ct-accent)}
.md-typeset .ct-popular .tabbed-set > input:nth-child(1):checked ~ .tabbed-labels > label:nth-child(1),
.md-typeset .ct-popular .tabbed-set > input:nth-child(2):checked ~ .tabbed-labels > label:nth-child(2),
.md-typeset .ct-popular .tabbed-set > input:nth-child(3):checked ~ .tabbed-labels > label:nth-child(3){border-color:var(--ct-accent)}
.md-typeset .ct-popular .tabbed-set > .tabbed-labels > label strong{font-weight:700;color:var(--md-typeset-a-color)}
.md-typeset .ct-popular .tabbed-set > .tabbed-labels > label small{font-size:.65rem;font-weight:400;color:var(--md-default-fg-color--light)}

/* Material's JS wraps each label's content in <a> (.tabbed-labels--linked > label > a, with its own em padding):
   the pill styles go on that <a>, the label itself gets no padding */
.md-typeset .ct-popular .tabbed-set > .tabbed-labels--linked > label,
.md-typeset .ct-popular .tabbed-set > .tabbed-labels--linked > label:hover,
.md-typeset .ct-popular .tabbed-set > input:checked ~ .tabbed-labels--linked > label{padding:0}
.md-typeset .ct-popular .tabbed-labels--linked > label > a{display:flex;align-items:baseline;gap:.5rem;padding:.4rem 1.1rem;color:inherit}

/* "Where people start" lists: the same columns as Quick start / Apps / Products (Grow with cTrader
   gets them from .ct-groups): outer edges in line with the band cards, 48px between columns, text
   inset like card content, same row height, a line above the first row */
.md-typeset .ct-popular .tabbed-content ul{margin:0;padding:0 calc(1.2rem + 1px);column-gap:2.4rem}
.md-typeset .ct-popular .tabbed-content li{margin-left:0;padding:.4rem calc(.8rem + 1px)}
.md-typeset .ct-popular .tabbed-content li:nth-child(-n+2){border-top:1px solid var(--md-default-fg-color--lightest)}
@media (max-width:760px){.md-typeset .ct-popular .tabbed-content li:nth-child(2){border-top:0}}
/* hero search box under the H1: the home page's only search (javascripts/hero-search.js) */
.md-typeset .ct-hero-search{position:relative;max-width:37rem;margin:0}
.ct-hero-search__icon{position:absolute;inset-inline-start:1rem;top:50%;transform:translateY(-50%);width:1.2rem;height:1.2rem;color:var(--md-default-fg-color--light);cursor:text}
.ct-hero-search__icon svg{width:100%;height:100%;fill:currentColor;display:block}
.md-typeset .ct-hero-search__input{width:100%;box-sizing:border-box;padding:.85rem 1rem;padding-inline-start:3rem;font:inherit;font-size:.9rem;color:var(--md-default-fg-color);background:var(--md-code-bg-color);border:1px solid transparent;border-radius:999px;outline:none;transition:border-color .2s,box-shadow .2s}
.md-typeset .ct-hero-search__input::placeholder{color:var(--md-default-fg-color--light)}
/* same states as the "I'm a" chips: green border on hover; the glow only while typing */
.md-typeset .ct-hero-search__input:hover{border-color:var(--ct-accent)}
.md-typeset .ct-hero-search__input:focus{border-color:var(--ct-accent);box-shadow:0 0 0 3px rgba(104,166,145,.25)}
/* results dropdown; markup comes from renderPagefindResults in overrides extra.js */
.md-typeset .ct-hero-search__results{display:none;position:absolute;top:calc(100% + .4rem);left:0;right:0;z-index:3;max-height:60vh;overflow-y:auto;background:var(--md-default-bg-color);border:1px solid var(--md-default-fg-color--lightest);border-radius:12px;box-shadow:var(--md-shadow-z2);font-size:.8rem}
.md-typeset .ct-hero-search.is-open .ct-hero-search__results{display:block}
.md-typeset .ct-hero-search__results .md-search-result__meta{margin:0;padding:.5rem 1rem;font-size:.68rem;line-height:1.4;color:var(--md-default-fg-color--light);background:var(--md-default-fg-color--lightest)}
.md-typeset .ct-hero-search__results ol{margin:0;padding:0;list-style:none}
/* beats the theme's list indent ([dir] .md-typeset ol li) */
.md-typeset .ct-hero-search__results .md-search-result__list > li{margin:0;padding:0}
.md-typeset .ct-hero-search__results a{display:block;padding:.6rem 1rem;color:inherit;border-top:1px solid var(--md-default-fg-color--lightest);outline:none}
.md-typeset .ct-hero-search__results a:hover,.md-typeset .ct-hero-search__results a:focus{background:var(--ct-accent-soft)}
.md-typeset .ct-hero-search__results article{padding:0}
.md-typeset .ct-hero-search__results h1{margin:0;font-size:.85rem;font-weight:400;line-height:1.4;letter-spacing:0;color:var(--md-default-fg-color)}
.md-typeset .ct-hero-search__results p{margin:0;font-size:.72rem;line-height:1.5;color:var(--md-default-fg-color--light)}
.md-typeset .ct-hero-search__results mark{background:none;color:var(--ct-accent-ink);font-weight:600;padding:0;box-shadow:none}
/* the home page searches from the hero box, so the header search is hidden here (home.css only loads on home pages) */
.md-header .md-search,.md-header label.md-header__button[for="__search"]{display:none}
/* Home page spacing: a 24px (1.2rem) rhythm instead of the theme's article spacing; smaller
   steps where elements belong together. Only direct children of the page content, so search
   result titles (also h1) are untouched. This file loads on the home pages only. */
.md-content__inner > h1{margin-bottom:1.2rem}
.md-content__inner > h2,.md-typeset .ct-sec > h2{margin-top:1.6rem;margin-bottom:.6rem}
.md-content__inner > h2 + p,.md-typeset .ct-sec > h2 + p{margin-top:.6rem}
/* Type scale on the home page: 32 page title, 25 section and panel titles, 15 body text and
   links (links differ by colour, not size), 13 hints and other secondary text. Avoid sizes
   that are only slightly different (15 vs 16 px): they look like mistakes. */

/* Search suggestions in the empty box (hero-search.js): pills with an arrow, several per row,
   styled like the "I'm a..." chips */
.md-typeset .ct-hero-search__results .ct-prompts{display:flex;flex-wrap:wrap;gap:.4rem;padding:.8rem 1rem}
.md-typeset .ct-prompts-l{flex-basis:100%;margin-bottom:.2rem;font-size:.65rem;color:var(--md-default-fg-color--light)}
.md-typeset .ct-hero-search__results .ct-prompts a{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .8rem;font-size:.7rem;line-height:1.4;color:var(--md-default-fg-color);background:var(--md-code-bg-color);border:1px solid transparent;border-radius:999px;transition:border-color .2s,box-shadow .2s}
.md-typeset .ct-hero-search__results .ct-prompts a::after{content:"→";color:var(--ct-accent);transition:transform .2s}
[dir=rtl] .md-typeset .ct-hero-search__results .ct-prompts a::after{content:"←"}
.md-typeset .ct-hero-search__results .ct-prompts a:hover,.md-typeset .ct-hero-search__results .ct-prompts a:focus{background:var(--md-code-bg-color);border-color:var(--ct-accent)}
.md-typeset .ct-hero-search__results .ct-prompts a:focus-visible{box-shadow:0 0 0 3px rgba(104,166,145,.25)}
.md-typeset .ct-hero-search__results .ct-prompts a:hover::after{transform:translateX(2px)}
[dir=rtl] .md-typeset .ct-hero-search__results .ct-prompts a:hover::after{transform:translateX(-2px)}

/* links that leave the Help Centre (external-links.js): box-with-arrow icon after the text */
.md-typeset a.ct-ext::after{content:"";display:inline-block;width:.75em;height:.75em;margin-inline-start:.3em;vertical-align:-.05em;background:currentColor;opacity:.8;-webkit-mask:var(--ct-ext-icon) center/contain no-repeat;mask:var(--ct-ext-icon) center/contain no-repeat}
[dir=rtl] .md-typeset a.ct-ext::after{transform:scaleX(-1)}
.md-typeset{--ct-ext-icon:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3m-2 16H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2z"/></svg>')}

/* a column that continues the one before it (Developer resources): an empty heading keeps its rows
   level with the others; in one column (narrow screens) it joins the column above, no gap */
@media (max-width:900px){
  .md-typeset .ct-groups.grid.cards > ul > li:has(.ct-cont){margin-top:-1.2rem}
  .md-typeset .ct-groups.grid.cards > ul > li > p:has(> .ct-cont){display:none}
  .md-typeset .ct-groups.grid.cards > ul > li:has(.ct-cont) > ul{margin-top:0;padding-top:0;border-top:0}
}

/* calmer link columns (Quick start, Build with AI, Grow, More ways to learn): no line between rows,
   only the one at the top of each column; shorter rows; hints muted like the section names in
   search results */
.md-typeset .ct-groups.grid.cards ul ul{padding-top:.3rem}
.md-typeset .ct-groups.grid.cards ul ul li{padding-top:.2rem;padding-bottom:.2rem;border-bottom:0}
.md-typeset .ct-hints .ct-hint{opacity:.6}
/* blocks without column headings (Grow, More ways to learn): no top line either, it would
   separate nothing; the intro sentence leads into the links */
.md-typeset .ct-rows.grid.cards ul ul{padding-top:0;border-top:0}
/* a continuation column's top line reaches back across the column gap, so "Developer resources"
   reads as one heading over two columns (one line, not two) */
@media (min-width:901px){
  .md-typeset .ct-groups.grid.cards > ul > li:has(.ct-cont) > ul{position:relative}
  .md-typeset .ct-groups.grid.cards > ul > li:has(.ct-cont) > ul::before{content:"";position:absolute;top:-1px;inset-inline-end:100%;width:1.2rem;border-top:1px solid var(--md-default-fg-color--lightest)}
}

/* header: keep the site name ("cTrader Help Centre") when scrolling; the theme would swap in the
   page title ("Welcome to cTrader Help Centre") once the H1 leaves the screen */
.md-header__title--active .md-header__topic{opacity:1;transform:none;pointer-events:auto;z-index:0}
.md-header__title--active .md-header__topic + .md-header__topic{opacity:0;transform:none;pointer-events:none;z-index:-1}
