/*
 * gn_sandcastle.css
 *
 * Look of a web pack written by Sandcastle Help File Builder, once Atlas has converted it: the tree of the
 * pack on the left and the topic Sandcastle wrote on the right.
 *
 * A converted page links two stylesheets. The first, styles/atlas-pack.css, comes with the pack and states
 * the layout only: the two columns, their scroll bars and what is hidden of a closed branch or section.
 * This is the second, published as default.css of the version, and it states everything a reader would
 * call the look. It is the stylesheet Atlas falls back to for a pack whose document names no style of its
 * own; a document style made for packs starts as a copy of this file.
 *
 * The class names of the topic are the ones Sandcastle writes (VS2013 presentation style).
 */

:root {
	--sc-text: #1f2328;
	--sc-text-soft: #59636e;
	--sc-line: #d9dee3;
	--sc-surface: #ffffff;
	--sc-surface-soft: #f6f8fa;
	--sc-accent: #f48220;
	--sc-accent-soft: #fdf1e5;
	--sc-link: #0b5cad;
	--sc-code-keyword: #0550ae;
	--sc-code-literal: #a31515;
	--sc-code-comment: #57606a;
	--sc-code-number: #116329;

	--sc-font: "Segoe UI", "Noto Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sc-font-mono: Consolas, "Cascadia Mono", "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 15px;
}

body {
	color: var(--sc-text);
	background: var(--sc-surface);
	font-family: var(--sc-font);
	font-size: 1rem;
	line-height: 1.5;
}

a {
	color: var(--sc-link);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Tree
   ------------------------------------------------------------------------- */

.atl-pack-tree {
	padding: 16px 8px 24px 12px;
	background: var(--sc-surface-soft);
	border-right: 1px solid var(--sc-line);
	font-size: 0.93rem;
	line-height: 20px;
}

.atl-pack-tree-row {
	padding: 3px 4px;
	border-radius: 4px;
}

.atl-pack-tree-row:hover {
	background: #eceff2;
}

.atl-pack-tree-row a {
	color: var(--sc-text);
}

.atl-pack-tree-row a:hover {
	color: var(--sc-link);
	text-decoration: none;
}

.atl-pack-tree-list li.current > .atl-pack-tree-row {
	background: var(--sc-accent-soft);
	box-shadow: inset 3px 0 0 var(--sc-accent);
}

.atl-pack-tree-list li.current > .atl-pack-tree-row a {
	font-weight: 600;
}

/* The arrow of a branch points right while it is closed and down once it is open. */
.atl-pack-tree-toggle {
	position: relative;
	color: var(--sc-text-soft);
}

.atl-pack-tree-toggle::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 6px;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.12s ease;
}

.atl-pack-tree-toggle[aria-expanded="true"]::before {
	top: 4px;
	transform: rotate(45deg);
}

.atl-pack-tree-toggle:hover {
	color: var(--sc-accent);
}

.atl-pack-tree-toggle:focus-visible,
.collapsibleRegionTitle:focus-visible,
.copyCodeSnippet:focus-visible {
	outline: 2px solid var(--sc-accent);
	outline-offset: 1px;
}

/* -------------------------------------------------------------------------
   Topic
   ------------------------------------------------------------------------- */

.atl-pack-topic {
	padding: 24px 40px 48px 40px;
}

.atl-pack-topic > * {
	max-width: 1100px;
}

.titleTable {
	width: 100%;
	margin: 0 0 12px 0;
	border-collapse: collapse;
}

.titleTable td {
	padding: 0;
}

h1 {
	margin: 0;
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 1.25;
}

h3 {
	margin: 20px 0 8px 0;
	font-size: 1.15rem;
	font-weight: 600;
}

h4 {
	margin: 16px 0 6px 0;
	font-size: 1rem;
	font-weight: 600;
}

p {
	margin: 0 0 10px 0;
}

.summary {
	margin: 0 0 16px 0;
	color: var(--sc-text);
	font-size: 1.05rem;
}

/* Sandcastle writes this where the source code states no documentation. */
p.missing {
	color: var(--sc-text-soft);
	font-style: italic;
}

.selflink {
	font-weight: 600;
}

span.code,
code {
	padding: 1px 4px;
	border-radius: 3px;
	background: var(--sc-surface-soft);
	font-family: var(--sc-font-mono);
	font-size: 0.92em;
}

/* Sections: the title opens and closes what follows it. */

.collapsibleAreaRegion {
	margin: 28px 0 10px 0;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--sc-line);
}

.collapsibleRegionTitle {
	display: inline-block;
	position: relative;
	padding-left: 20px;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.3;
	user-select: none;
}

.collapsibleRegionTitle::before {
	content: "";
	position: absolute;
	top: 0.42em;
	left: 2px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--sc-accent);
	border-bottom: 2px solid var(--sc-accent);
	transform: rotate(45deg);
	transition: transform 0.12s ease;
}

.collapsibleRegionTitle[aria-expanded="false"]::before {
	top: 0.5em;
	transform: rotate(-45deg);
}

.collapsibleSection {
	margin: 0 0 8px 0;
}

/* Lists of members */

table.members {
	width: 100%;
	margin: 8px 0 12px 0;
	border-collapse: collapse;
}

table.members th {
	padding: 8px 10px;
	border-bottom: 2px solid var(--sc-line);
	background: var(--sc-surface-soft);
	font-weight: 600;
	text-align: left;
}

table.members td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--sc-line);
	vertical-align: top;
}

table.members tr:hover td {
	background: #fafbfc;
}

table.members th.iconColumn,
table.members td:first-child {
	width: 64px;
	white-space: nowrap;
}

table.members img {
	vertical-align: middle;
}

/* Parameters and return values */

dl {
	margin: 0 0 12px 0;
}

dt {
	margin-top: 10px;
	font-weight: 600;
}

dt.has-text-weight-normal {
	font-weight: 400;
}

dd {
	margin: 2px 0 0 24px;
}

/* Code */

.codeSnippetContainer {
	margin: 8px 0 14px 0;
	border: 1px solid var(--sc-line);
	border-radius: 6px;
	overflow: hidden;
}

.codeSnippetContainerTabs {
	display: none;
}

.codeSnippetContainerCodeContainer {
	position: relative;
	background: var(--sc-surface-soft);
}

.codeSnippetToolBar {
	position: absolute;
	top: 6px;
	right: 8px;
}

.copyCodeSnippet {
	padding: 2px 10px;
	border: 1px solid var(--sc-line);
	border-radius: 4px;
	color: var(--sc-text-soft);
	background: var(--sc-surface);
	font-family: var(--sc-font);
	font-size: 0.8rem;
	cursor: pointer;
}

.copyCodeSnippet:hover {
	border-color: var(--sc-accent);
	color: var(--sc-text);
}

pre {
	margin: 0;
	padding: 14px 84px 14px 16px;
	overflow-x: auto;
	font-family: var(--sc-font-mono);
	font-size: 0.9rem;
	line-height: 1.5;
	white-space: pre;
	tab-size: 4;
}

.keyword,
.highlight-keyword {
	color: var(--sc-code-keyword);
}

.highlight-literal {
	color: var(--sc-code-literal);
}

.highlight-comment {
	color: var(--sc-code-comment);
	font-style: italic;
}

.highlight-number {
	color: var(--sc-code-number);
}

.parameter,
.typeparameter {
	font-style: italic;
}

/* Notes */

.alert {
	margin: 12px 0;
	padding: 10px 14px;
	border-left: 4px solid var(--sc-accent);
	border-radius: 4px;
	background: var(--sc-accent-soft);
}

.alert table {
	width: 100%;
	border-collapse: collapse;
}

.alert th {
	padding: 0 0 4px 0;
	font-weight: 600;
	text-align: left;
}

/* -------------------------------------------------------------------------
   Narrow frame and paper
   ------------------------------------------------------------------------- */

@media (max-width: 760px) {
	.atl-pack-tree {
		border-right: 0;
		border-bottom: 1px solid var(--sc-line);
	}

	.atl-pack-topic {
		padding: 16px;
	}
}

@media print {
	.atl-pack-topic {
		padding: 0;
	}

	.copyCodeSnippet {
		display: none;
	}
}
