/* ACE Help & Support 1.2.1. The video leads, at the full width of the page.
   Colours and type come from the site (--color-*, --font-*), so light mode
   and the palette follow without anything here. */

/* The app gives its pages a narrow column (860px); this page takes the whole content area. */
html body .ace-player-content .ace-content-inner.sup,
html body .sup {
	--sup-rule: color-mix(in srgb, var(--color-text, #e8e6dc) 12%, transparent);
	--sup-line: rgba(var(--ace-primary-rgb, 0, 138, 129), .6);
	--sup-card: var(--color-bg-alt, #30302e);
	--sup-ink: var(--color-heading, #f5f4ef);
	--sup-soft: var(--color-text-muted, #a39e93);
	--sup-teal: var(--color-primary, #008a81);
	--sup-glow: var(--color-accent, #61b6b1);
	--sup-tint: rgba(var(--ace-primary-rgb, 0, 138, 129), .14);
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 0 64px;
	color: var(--color-text, #e8e6dc);
	font-family: var(--font-body, Inter, system-ui, sans-serif);
	box-sizing: border-box;
}
.sup *, .sup *::before, .sup *::after { box-sizing: border-box; }
.sup [hidden] { display: none !important; }
.sup button { font: inherit; }

/* Wide view: the menu folds away and the page takes the whole window. */
body.sup-is-wide .ace-player-sidebar,
body.sup-is-wide .ace-sidebar-backdrop { display: none !important; }
html body.sup-is-wide .ace-player-content .ace-content-inner.sup,
html body.sup-is-wide .sup { max-width: 1480px; }

/* ---------------------------------------------------------------- header */
.sup-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	padding: 8px 0 22px;
}
.sup-title {
	margin: 0 0 6px;
	font-family: var(--font-heading, Poppins, sans-serif);
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--sup-ink);
}
.sup-lede { margin: 0; max-width: 40em; font-size: 16px; line-height: 1.55; color: var(--sup-soft); }
.sup-jump { display: flex; gap: 6px; flex-wrap: wrap; }
html body .sup .sup-jump a {
	display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px;
	border: 1px solid var(--sup-rule); border-radius: 999px;
	color: var(--color-text, #e8e6dc) !important; text-decoration: none; font-size: 14px; font-weight: 500;
}
html body .sup .sup-jump a:hover { border-color: var(--sup-line); }

/* ---------------------------------------------------------------- the player */
.sup-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	/* as large as the page allows, but never taller than the window */
	max-width: calc((100vh - 150px) * 16 / 9);
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
	background: #0e0f0f;
	box-shadow: 0 0 0 1px var(--sup-rule), 0 18px 50px rgba(0, 0, 0, .35);
}
.sup-video, .sup-novideo img { display: block; width: 100%; height: 100%; object-fit: contain; background: #0e0f0f; }
.sup-novideo { position: relative; height: 100%; }
/* 1.2.1: a bunny.net Stream (or YouTube, Vimeo) video: the poster and a play
   button until it is pressed, then that service's player in its place. */
.sup-embed { position: relative; height: 100%; }
.sup-embed img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sup-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html body .sup .sup-embed-play {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; padding: 0; border: 0; background: rgba(14, 15, 15, .18); cursor: pointer; color: #fff;
}
html body .sup .sup-embed-play .sup-ico {
	width: 84px; height: 84px; padding: 26px 24px 26px 30px; border-radius: 50%;
	background: var(--sup-teal); box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
	transition: transform .15s ease;
}
html body .sup .sup-embed-play:hover .sup-ico { transform: scale(1.06); }
html body .sup .sup-embed-play:focus-visible { outline: 3px solid var(--sup-glow); outline-offset: -3px; }
.sup-embed-play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { html body .sup .sup-embed-play .sup-ico { transition: none; } }
.sup-novideo p {
	position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0;
	padding: 10px 14px; border-radius: 10px;
	background: rgba(14, 15, 15, .88); color: #e8e6dc; font-size: 14px; line-height: 1.45;
}

/* Under the video: which part, and the way to the next one. */
.sup-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	flex-wrap: wrap;
	padding: 20px 0 18px;
	border-bottom: 1px solid var(--sup-rule);
}
.sup-part-num { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--sup-glow); }
.sup-part-len { margin-left: 8px; font-weight: 500; color: var(--sup-soft); font-variant-numeric: tabular-nums; }
.sup-part-title {
	margin: 0;
	font-family: var(--font-heading, Poppins, sans-serif);
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.2;
	font-weight: 600;
	color: var(--sup-ink);
}
.sup-bar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sup-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 8px 16px; border-radius: 10px;
	font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer;
}
.sup-btn-quiet { border: 1px solid var(--sup-rule); background: transparent; color: var(--color-text, #e8e6dc); }
.sup-btn-quiet:hover:not(:disabled) { border-color: var(--sup-line); }
.sup-btn:disabled { opacity: .4; cursor: default; }
.sup-wide-btn[aria-pressed="true"] { border-color: var(--sup-teal); background: var(--sup-tint); }
.sup-btn-primary { border: 0; background: var(--sup-teal); color: #fff; }

/* What the part covers and its steps, beside the narration. */
.sup-cols {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 32px;
	padding-top: 22px;
}
.sup-part-sum { margin: 0 0 20px; font-size: 16.5px; line-height: 1.6; }
/* 1.2.0: the two parts that look different in Simple view say which view they show. */
.sup-view-note { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: -8px 0 20px; font-size: 14.5px; line-height: 1.5; color: var(--sup-soft); }
html body .sup .sup-view-note a { color: var(--sup-glow); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html body .sup .sup-view-note a:hover { text-decoration-thickness: 2px; }
.sup-h3 {
	display: flex; align-items: center; gap: 8px;
	margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--sup-ink);
}
.sup-steps, .sup-lines { margin: 0; padding: 0; list-style: none; }
.sup-step, .sup-line {
	width: 100%;
	color: inherit;
	cursor: pointer;
	text-align: left;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
}
.sup-step {
	display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px;
	min-height: 46px; padding: 6px 12px 6px 8px; margin: 0 0 4px;
	font-size: 15px; font-weight: 500;
	border-color: var(--sup-rule);
}
.sup-step-n {
	display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	border: 2px solid var(--sup-line); font-size: 12px; font-weight: 700; color: var(--sup-soft);
}
.sup-step-t { font-size: 12.5px; font-weight: 600; color: var(--sup-soft); font-variant-numeric: tabular-nums; }
.sup-step:hover, .sup-line:hover { border-color: var(--sup-line); }
.sup-step.is-on { border-color: var(--sup-teal); background: var(--sup-tint); }
.sup-step.is-on .sup-step-n { background: var(--sup-teal); border-color: var(--sup-teal); color: #fff; }

.sup-read {
	padding: 16px 10px 10px 16px;
	border-radius: 14px;
	background: var(--sup-card);
	box-shadow: 0 0 0 1px var(--sup-rule);
}
.sup-read .sup-h3 { padding-right: 6px; }
.sup-lines { position: relative; max-height: 330px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.sup-line {
	display: grid; grid-template-columns: 42px 1fr; gap: 10px;
	padding: 9px 10px; margin: 0 0 2px;
	font-size: 15px; line-height: 1.55;
}
.sup-line .sup-step-t { padding-top: 2px; }
.sup-line.is-on { background: var(--sup-tint); color: var(--sup-ink); }

.sup-step:focus-visible, .sup-line:focus-visible, .sup-btn:focus-visible, .sup-pc:focus-visible,
.sup .sup-jump a:focus-visible, .sup-card:focus-visible, .sup-way:focus-visible {
	outline: 2px solid var(--sup-glow); outline-offset: 2px;
}

/* ---------------------------------------------------------------- every part, as thumbnails */
.sup-all { margin-top: 52px; scroll-margin-top: 16px; }
.sup-h2 {
	margin: 0 0 4px;
	font-family: var(--font-heading, Poppins, sans-serif);
	font-size: 24px; line-height: 1.25; font-weight: 600; color: var(--sup-ink);
}
.sup-meta { margin: 0; color: var(--sup-soft); font-size: 15px; line-height: 1.5; }
.sup-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 22px 18px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}
html body .sup .sup-pc {
	display: block;
	color: var(--color-text, #e8e6dc) !important;
	text-decoration: none;
	border-radius: 12px;
}
.sup-pc-img {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #0e0f0f;
	box-shadow: 0 0 0 1px var(--sup-rule);
	transition: box-shadow .15s;
}
.sup-pc-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.sup-pc:hover .sup-pc-img img { transform: scale(1.03); }
.sup-pc:hover .sup-pc-img { box-shadow: 0 0 0 2px var(--sup-line); }
.sup-pc-d, .sup-pc-now, .sup-pc-seen {
	position: absolute; display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 8px; border-radius: 6px;
	font-size: 12px; font-weight: 600; line-height: 1.3;
}
.sup-pc-d { right: 8px; bottom: 8px; background: rgba(14, 15, 15, .82); color: #fff; font-variant-numeric: tabular-nums; }
.sup-pc-now { left: 8px; top: 8px; background: var(--sup-teal); color: #fff; display: none; }
.sup-pc-seen { left: 8px; bottom: 8px; background: rgba(14, 15, 15, .82); color: #8fe3da; display: none; }
.sup-pc.is-seen .sup-pc-seen { display: inline-flex; }
.sup-pc.is-on .sup-pc-now { display: inline-flex; }
.sup-pc.is-on .sup-pc-img { box-shadow: 0 0 0 3px var(--sup-teal); }
.sup-pc-text { display: block; padding: 10px 2px 0; }
.sup-pc-n { display: block; font-size: 13px; font-weight: 600; color: var(--sup-glow); }
.sup-pc-t { display: block; margin-top: 2px; font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--sup-ink); }
@media (prefers-reduced-motion: reduce) {
	.sup-pc-img, .sup-pc-img img { transition: none; }
	.sup-pc:hover .sup-pc-img img { transform: none; }
}

/* ---------------------------------------------------------------- FAQ, privacy, contact */
.sup-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 52px; }
html body .sup .sup-card {
	display: grid;
	grid-template-columns: 24px 1fr;
	column-gap: 14px;
	row-gap: 4px;
	padding: 20px 22px;
	border-radius: 14px;
	background: var(--sup-card);
	box-shadow: 0 0 0 1px var(--sup-rule);
	color: var(--color-text, #e8e6dc) !important;
	text-decoration: none;
}
html body .sup .sup-card:hover { box-shadow: 0 0 0 1px var(--sup-line); }
.sup-card .sup-ico { grid-row: span 2; margin-top: 2px; color: var(--sup-glow); }
.sup-card-t { font-weight: 600; font-size: 17px; color: var(--sup-ink); }
.sup-card-s { font-size: 14.5px; line-height: 1.5; color: var(--sup-soft); }

.sup-contact { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--sup-rule); scroll-margin-top: 16px; }
.sup-ways { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
html body .sup .sup-way {
	display: flex; align-items: center; gap: 12px;
	min-height: 56px; padding: 10px 18px 10px 14px;
	border: 1px solid var(--sup-rule); border-radius: 12px;
	color: var(--color-text, #e8e6dc) !important; text-decoration: none;
}
html body .sup .sup-way:hover { border-color: var(--sup-line); }
.sup-way .sup-ico { color: var(--sup-glow); }
.sup-way > span { display: grid; }
.sup-way-k { font-size: 12.5px; color: var(--sup-soft); }
.sup-way-v { font-weight: 600; color: var(--sup-ink); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- signed out */
body.sup-public { margin: 0; background: var(--color-bg, #262624); }
.sup-public-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 14px 24px; border-bottom: 1px solid color-mix(in srgb, var(--color-text, #e8e6dc) 10%, transparent);
	background: var(--color-secondary, #1a1918);
}
.sup-brand { font-family: var(--font-heading, Poppins, sans-serif); font-weight: 700; font-size: 17px; color: var(--color-heading, #f5f4ef); text-decoration: none; }
.sup-public-main { padding: 24px 32px 0; }

/* ---------------------------------------------------------------- narrower */
@media (max-width: 1100px) {
	.sup-wide-btn { display: none; }
}
@media (max-width: 900px) {
	.sup-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 720px) {
	.sup-public-main { padding: 16px 16px 0; }
	.sup-head { padding-top: 4px; }
	.sup-jump { display: none; }
	.sup-frame { border-radius: 12px; max-width: none; }
	.sup-lines { max-height: 280px; }
	.sup-bar-btns { width: 100%; }
	.sup-bar-btns .sup-btn { flex: 1 1 0; }
	.sup-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	html body .sup .sup-pc { display: grid; grid-template-columns: 136px 1fr; gap: 12px; align-items: center; }
	.sup-pc-text { padding: 0; }
	.sup-pc-now { display: none !important; }
	.sup-way { width: 100%; }
	.sup-ways li { flex: 1 1 100%; }
}
