/* Platinum site overlay. Accent #960032. Azure ladder hue 208. No CDN, no framework. */

:root {
  --pt-accent: #960032;
  --pt-accent-hover: #b0003c;
  --pt-bg: #181818;
  --pt-tile: #1f1f1f;
  --pt-text: #eeeeee;
  --pt-tile-text: var(--pt-text);
  --pt-muted: #a8a8a8;
  --pt-muted-bright: #c8c8c8;
  --pt-line: #3a3a3a;
  --pt-panel: #1f1f1f;
  --pt-card: #1f1f1f;
  --pt-btn: #2a2a2a;
  --pt-box: #0E1D2A;
  --pt-box-line: #30495E;
  --pt-box-text: #A8B7C4;
  --pt-symbol: #518DC2;
  --pt-param: #A39274;
  --pt-bar-height: 64px;
  --pt-bar-pad: 12px;
  --pt-logo: 40px;
  --pt-logo-width: 44px;
  --pt-word: 26px;
  --page-background-color: var(--pt-bg);
}

html {
  scroll-padding-top: 104px;
  overflow-x: hidden;
  background: var(--pt-bg);
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--pt-bg);
}

#doc-content,
div.textblock {
  max-width: 100%;
  box-sizing: border-box;
}

div.contents {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 16px;
  padding-right: 16px;
}

/* Class index: name #518DC2, A–Z separators box-line, namespace muted. */
div.qindex {
  color: var(--pt-box-line);
  margin: 8px 0 12px;
}

div.qindex a.qindex,
div.qindex a.qindex:visited {
  color: var(--pt-muted);
}

div.qindex a.qindex:hover {
  color: var(--pt-text);
}

.classindex dl {
  column-count: 1;
  column-gap: 32px;
  margin: 0 0 16px;
  padding: 0;
}

.classindex dl.even,
.classindex dl.odd {
  background: transparent;
  background-color: transparent;
}

.classindex dt.alphachar {
  column-span: all;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--pt-text);
}

.classindex dd {
  display: block;
  box-sizing: border-box;
  margin: 0 0 4px;
  padding: 0;
  width: auto;
  line-height: 1.2;
  color: var(--pt-muted);
  break-inside: avoid;
}

.contents .classindex .alphachar a,
.contents .classindex .alphachar a:visited,
.contents .classindex .alphachar a:hover,
.classindex .alphachar a,
.classindex .alphachar a:visited,
.classindex .alphachar a:hover {
  color: var(--pt-text);
  text-decoration: none;
}

@media (min-width: 560px) {
  .classindex dl {
    column-count: 2;
  }
}

@media (min-width: 880px) {
  .classindex dl {
    column-count: 3;
  }
}

body:has(#pt-toc-toggle:checked) {
  overflow: hidden;
}

/* Kill Doxygen's light-blue links, including :visited. */
a,
a:link,
a:visited,
.contents a,
.contents a:link,
.contents a:visited,
a.el,
a.el:visited,
a.elRef,
a.elRef:visited,
a.code,
a.code:visited,
a.codeRef,
a.codeRef:visited,
a.line,
a.line:visited,
a.lineRef,
a.lineRef:visited {
  color: var(--pt-muted);
}

.contents a:hover,
a.el:hover,
a.code:hover {
  color: var(--pt-text);
}

/* After the link reset: class names stay --pt-symbol for :link and :visited. */
.contents .classindex dd a,
.contents .classindex dd a:link,
.contents .classindex dd a:visited,
.classindex dd a,
.classindex dd a:link,
.classindex dd a:visited {
  color: var(--pt-symbol);
}

.contents .classindex dd a + a,
.contents .classindex dd a + a:link,
.contents .classindex dd a + a:visited,
.classindex dd a + a,
.classindex dd a + a:link,
.classindex dd a + a:visited {
  color: var(--pt-muted);
}

.contents .classindex dd a:hover,
.contents .classindex dd a + a:hover,
.classindex dd a:hover {
  color: var(--pt-text);
}

/* Namespace / topic / annotated trees: entry names like class names. */
div.directory tr.even,
div.directory tr.odd {
  background: transparent;
  background-color: transparent;
}

div.directory td.desc {
  border-left: 0;
  color: var(--pt-muted);
}

.contents div.directory td.entry > a,
.contents div.directory td.entry > a:link,
.contents div.directory td.entry > a:visited,
div.directory td.entry > a,
div.directory td.entry > a:link,
div.directory td.entry > a:visited {
  color: var(--pt-symbol);
}

.contents div.directory td.entry > a:hover,
div.directory td.entry > a:hover {
  color: var(--pt-text);
}

/* Namespace list has only N badges; keep C/N on the class tree. */
div.directory:not(:has(td.entry a[href^="class"])) .icona {
  display: none;
}

/* ---- Site bar ---- */

.pt-toc-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pt-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--pt-bg);
}

.pt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: var(--pt-bar-height);
  padding: var(--pt-bar-pad);
}

.pt-bar-end {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.pt-nav {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--pt-logo);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pt-muted-bright);
  font-family: inherit;
  font-size: var(--pt-word);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}

.pt-nav:visited {
  color: var(--pt-muted-bright);
  text-decoration: none;
}

.pt-nav:hover {
  color: var(--pt-text);
  text-decoration: none;
}

.pt-nav-home,
.pt-nav-toc {
  justify-content: center;
  flex-shrink: 0;
}

.pt-nav-home {
  position: relative;
  isolation: isolate;
  width: var(--pt-logo-width);
  height: var(--pt-logo);
  background: none;
  color: var(--pt-text);
  font-size: var(--pt-word);
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1;
}

.pt-nav-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pt-accent);
  clip-path: polygon(22% 0, 100% 0, 100% 78%, 78% 100%, 0 100%, 0 22%);
}

.pt-nav-home:visited,
.pt-nav-home:hover {
  color: var(--pt-text);
  background: none;
  text-decoration: none;
}

.pt-nav-home:hover::before {
  background: var(--pt-accent-hover);
}

.pt-nav-home:focus-visible {
  outline: 2px solid var(--pt-text);
  outline-offset: 3px;
}

.pt-nav-toc {
  width: var(--pt-logo);
  height: var(--pt-logo);
  font-size: 35px;
  font-weight: 400;
  line-height: 1;
}

.pt-crumb {
  display: inline-flex;
  align-items: center;
  height: var(--pt-logo);
  gap: 12px;
  font-size: var(--pt-word);
}

.pt-crumb-sep {
  display: inline-flex;
  align-items: center;
  height: var(--pt-logo);
  color: var(--pt-muted);
  font-size: var(--pt-word);
  font-weight: 400;
  line-height: 1;
}

.pt-crumb-download,
.pt-nav-docs-here {
  display: none;
}

body:has(.pt-page-home) .pt-crumb-docs {
  display: none;
}

body:has(.pt-page-download) .pt-crumb-docs {
  display: none;
}

body:has(.pt-page-download) .pt-crumb-download {
  display: inline-flex;
}

body:has(.pt-page-docs) .pt-crumb-docs .pt-nav-docs {
  display: none;
}

body:has(.pt-page-docs) .pt-crumb-docs .pt-nav-docs-here {
  display: inline-flex;
}

.pt-nav-docs-here,
.pt-nav-download-here {
  cursor: default;
}

.pt-nav-docs-here:hover,
.pt-nav-download-here:hover {
  color: var(--pt-muted-bright);
}

/* ---- Menu (checkbox hack, right of the bar) ---- */

.pt-dim {
  position: fixed;
  top: var(--pt-bar-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1080;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.pt-dim label {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-indent: -9999px;
  cursor: pointer;
}

#pt-toc-toggle:checked ~ .pt-dim {
  opacity: 1;
  pointer-events: auto;
}

.pt-toc {
  position: fixed;
  top: var(--pt-bar-height);
  right: 16px;
  left: auto;
  z-index: 1090;
  box-sizing: border-box;
  width: max-content;
  min-width: min(12rem, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: auto;
  max-height: calc(100vh - var(--pt-bar-height) - 16px);
  overflow-y: auto;
  background: var(--pt-tile);
  border: 1px solid var(--pt-line);
  padding: 8px 0 10px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

#pt-toc-toggle:checked ~ .pt-toc {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.pt-toc-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.pt-toc-heading {
  margin: 0;
  padding: 18px 12px 8px;
  color: var(--pt-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pt-toc-heading:first-child {
  padding-top: 8px;
}

.pt-toc a {
  display: block;
  padding: 5px 12px;
  color: var(--pt-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.pt-toc a:visited {
  color: var(--pt-muted);
}

.pt-toc a:hover {
  color: var(--pt-text);
  text-decoration: none;
}

/* ---- Context row: inventory left, navpath right. Inside #top. ---- */

#top {
  display: none;
}

body:has(.memberdecls) #top,
body:has(.memitem) #top,
body:has(table.directory) #top,
body:has(.classindex) #top,
body:has(.qindex) #top,
body:has(#nav-path .navelem) #top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  box-sizing: border-box;
  position: sticky;
  top: var(--pt-bar-height);
  z-index: 1000;
  background: var(--pt-bg);
  padding: 0 16px 10px;
  font-size: 13px;
}

body:has(.pt-page-home) #top,
body:has(.pt-page-download) #top,
body:has(.pt-page-docs) #top {
  display: none;
}

.pt-subhead {
  display: contents;
}

.pt-api-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-size: inherit;
}

.pt-api-links a,
.pt-api-links a:visited {
  color: var(--pt-muted-bright);
  text-decoration: none;
}

.pt-api-links a:hover {
  color: var(--pt-text);
  text-decoration: none;
}

.pt-api-links a + a::before {
  content: "·";
  margin: 0 0.55em;
  color: var(--pt-muted);
  font-size: 1em;
  font-weight: 400;
  pointer-events: none;
}

.pt-api-links a:hover::before {
  color: var(--pt-muted);
}

#nav-path,
#nav-path.navpath,
.navpath {
  margin: 0 0 0 auto;
  padding: 0 !important;
  height: auto !important;
  line-height: inherit !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#nav-path ul,
.navpath ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0;
  margin: 0;
  padding: 0 !important;
  height: auto !important;
  font-size: inherit;
  line-height: inherit !important;
  overflow: visible !important;
  list-style: none;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#nav-path li,
#nav-path li.navelem,
.navpath li,
.navpath li.navelem {
  display: inline !important;
  float: none !important;
  align-items: baseline;
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit;
  line-height: inherit;
  height: auto !important;
  color: var(--pt-muted);
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

#nav-path li.navelem:hover,
#nav-path li.navelem:hover::after,
.navpath li.navelem:hover,
.navpath li.navelem:hover::after {
  background: none !important;
  background-color: transparent !important;
}

#nav-path li::before,
#nav-path li.navelem::before,
.navpath li::before,
.navpath li.navelem::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

#nav-path li.navelem a,
#nav-path li.navelem a:visited,
.navpath li.navelem a,
.navpath li.navelem a:visited {
  display: inline !important;
  position: static !important;
  top: auto !important;
  height: auto !important;
  margin: 0 !important;
  font-size: inherit;
  color: var(--pt-muted);
  text-decoration: none;
  text-shadow: none;
}

#nav-path li.navelem a:hover,
.navpath li.navelem a:hover {
  color: var(--pt-muted-bright);
}

#nav-path li.navelem::after,
.navpath li.navelem::after {
  content: none !important;
  display: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  z-index: auto !important;
}

#nav-path li.navelem:not(:last-child)::after,
.navpath li.navelem:not(:last-child)::after {
  content: "\203a" !important;
  display: inline !important;
  margin: 0 0.5em !important;
  font-size: 1em;
  font-weight: 400;
  line-height: inherit;
  color: var(--pt-muted);
}

#nav-path li.navelem:last-child,
#nav-path li.navelem:last-child a,
#nav-path li.navelem:last-child a:visited,
.navpath li.navelem:last-child,
.navpath li.navelem:last-child a,
.navpath li.navelem:last-child a:visited {
  color: var(--pt-muted-bright);
}

#nav-path img,
.navpath img {
  display: none !important;
}

/* Page title: centered heading and module parent. Include then brief
   sit in .contents. Hub pages hide Doxygen's header and supply
   .pt-page-title instead. */
#doc-content .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none;
  margin: 0;
  padding: 16px 16px 8px;
  overflow: visible;
  text-align: center;
}

#doc-content .headertitle {
  width: 100%;
  padding: 0;
}

#doc-content .header .title,
.pt-page-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--pt-text);
}

#doc-content .header .title {
  margin: 0;
  text-align: center;
}

.pt-page-title {
  margin: 28px 0 20px;
}

#doc-content .header .title .ingroups,
#doc-content .header .ingroups {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  margin-top: 8px;
  color: var(--pt-muted);
  text-align: center;
}

#doc-content .header .ingroups a.el,
#doc-content .header .ingroups a.el:visited {
  color: var(--pt-symbol);
  text-decoration: none;
}

#doc-content .header .ingroups a.el:hover {
  color: var(--pt-text);
}

#doc-content .header .summary {
  display: none !important;
}

body:has(.pt-page-home) #doc-content .header,
body:has(.pt-page-download) #doc-content .header,
body:has(.pt-page-docs) #doc-content .header {
  display: none;
}

/* Include before brief on class/file pages (HTML may still list brief first). */
body:has(table.memberdecls) div.contents {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body:has(table.memberdecls) div.contents > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body:has(table.memberdecls) div.contents > p:has(> code) {
  order: -2;
}

body:has(table.memberdecls) div.contents > p:first-of-type {
  order: -1;
}

/* Classic member list: template/type left, name and brief right, no cards. */
h1.groupheader,
h2.groupheader,
h3.groupheader,
td h2.groupheader {
  box-shadow: none !important;
  color: var(--pt-text);
  font-weight: 650;
  border: 0;
}

table.memberdecls {
  border: 0;
  width: 100%;
  border-spacing: 0;
  padding: 0;
  line-height: 1.2;
}

table.memberdecls tr,
table.memberdecls td,
table.memberdecls .memItemLeft,
table.memberdecls .memItemRight,
table.memberdecls .memTemplParams,
table.memberdecls .mdescLeft,
table.memberdecls .mdescRight,
table.memberdecls td.ititle {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 1.2;
}

table.memberdecls tr[class^='memitem']:has(> td.memTemplParams) {
  font-size: 12px;
  line-height: 1;
}

table.memberdecls .memTemplParams {
  padding: 6px 0 0 !important;
  color: var(--pt-muted);
  font-size: 12px !important;
  line-height: 1 !important;
  vertical-align: bottom;
  white-space: nowrap;
}

table.memberdecls .memItemLeft,
table.memberdecls .memItemRight {
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.15 !important;
  vertical-align: top !important;
}

table.memberdecls tr.template .memItemLeft,
table.memberdecls tr.template .memItemRight {
  padding-top: 0 !important;
}

table.memberdecls tr[class^='memitem']:not(.template) .memItemLeft,
table.memberdecls tr[class^='memitem']:not(.template) .memItemRight {
  padding-top: 8px;
}

table.memberdecls tr.heading + tr[class^='memitem']:not(.template) .memItemLeft,
table.memberdecls tr.heading + tr[class^='memitem']:not(.template) .memItemRight {
  padding-top: 0;
}

table.memberdecls .memItemLeft {
  padding-left: 0;
  padding-right: 8px;
  text-align: right;
  white-space: nowrap;
  vertical-align: top;
  color: var(--pt-muted);
}

table.memberdecls .memItemRight {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  vertical-align: top;
}

table.memberdecls .mdescLeft,
table.memberdecls .mdescRight {
  padding: 0 0 2px;
  color: var(--pt-muted);
  font-size: 12px;
  line-height: 1.2;
  vertical-align: top !important;
}

table.memberdecls .mdescRight br:last-child {
  display: none;
}

table.memberdecls .mdescLeft {
  padding-right: 8px;
}

table.memberdecls td.ititle {
  display: none;
}

table.memberdecls a.el,
table.memberdecls a.el:link,
table.memberdecls a.el:visited,
.memname a.el,
.memname a.el:link,
.memname a.el:visited {
  color: var(--pt-symbol);
}

table.memberdecls a.el:hover,
.memname a.el:hover {
  color: var(--pt-text);
}

/* Member details: one tile-gray field per member, no stroke. Title sits
   outside .memitem in the HTML, so both share the fill and meet with no gap. */
h2.memtitle {
  float: none;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 0;
  padding: 12px 16px 0;
  border: 0;
  border-radius: 0;
  background: var(--pt-tile);
  box-shadow: none;
  color: var(--pt-symbol);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

h2.memtitle:after {
  content: none;
  display: none;
}

h2.memtitle .permalink,
h2.memtitle .permalink a,
h2.memtitle .overload {
  color: var(--pt-muted);
  font-weight: 400;
}

.memitem {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 8px 16px 12px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--pt-tile);
}

.memitem.glow {
  box-shadow: none;
}

.memproto,
dl.reflist dt {
  margin: 0;
  padding: 6px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pt-muted);
  font-weight: 400;
}

.memtemplate {
  margin-left: 0;
  color: var(--pt-muted);
  font-weight: 400;
}

table.memname {
  margin-left: 0;
  color: var(--pt-muted);
  font-weight: 400;
}

table.memname td.memname {
  color: var(--pt-symbol);
}

.memproto .paramname em,
.paramname em {
  color: var(--pt-param);
}

.memdoc,
dl.reflist dd {
  margin: 0;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

dl.reflist dt {
  margin-top: 8px;
  padding: 12px 16px 8px;
  background: var(--pt-tile);
}

dl.reflist dd {
  margin: 0;
  padding: 0 16px 12px;
  background: var(--pt-tile);
}

body:has(.pt-page-home) div.textblock > p:first-child,
body:has(.pt-page-download) div.textblock > p:first-child,
body:has(.pt-page-docs) div.textblock > p:first-child {
  display: none;
}

/* Doxygen maps \section to h1. Keep the page title as the only large head. */
h1.doxsection,
div.textblock > h2:not(.pt-kicker) {
  font-size: 1.25em;
  font-weight: 650;
  line-height: 1.3;
  margin: 1.75em 0 0.5em;
  margin-right: 0;
}

h2.doxsection {
  font-size: 1.08em;
  font-weight: 650;
  line-height: 1.3;
  margin: 1.4em 0 0.4em;
  margin-right: 0;
}

h3.doxsection {
  font-size: 1em;
  font-weight: 650;
  margin: 1.1em 0 0.35em;
  margin-right: 0;
}

/* Hide Doxygen chrome we replaced */
#titlearea,
#projectrow,
.tabs,
.tabs2,
.tabs3,
.tablist,
#main-nav,
.sm-dox {
  display: none !important;
}

/* ---- Footer ---- */

.pt-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 28px 16px 40px;
  margin-top: 48px;
  border-top: 1px solid var(--pt-line);
  color: var(--pt-muted);
  font-size: 13px;
}

.pt-footer a,
.pt-footer a:visited {
  color: var(--pt-muted);
  text-decoration: none;
}

.pt-footer a:hover {
  color: var(--pt-text);
}

hr.footer,
address.footer {
  display: none;
}

/* ---- Shared page layout ---- */

.pt-hero {
  padding: 16px 0 0;
  max-width: 100%;
}

.pt-hero-title {
  margin: 0 0 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: break-word;
  color: var(--pt-text);
}

.pt-hero-break {
  display: inline;
}

.pt-hero-lead {
  max-width: min(46em, 100%);
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.45;
  color: #b0b0b0;
  overflow-wrap: break-word;
}

.pt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.pt-actions-start {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-right: auto;
}

.pt-hero .pt-actions .pt-btn-primary {
  margin-left: auto;
}

.pt-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.pt-btn:visited {
  text-decoration: none;
}

.pt-btn-primary,
.pt-btn-primary:visited,
.contents a.pt-btn-primary,
.contents a.pt-btn-primary:visited {
  background: var(--pt-accent);
  color: #ffffff;
}

.pt-btn-primary:hover {
  background: var(--pt-accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.pt-btn-ghost,
.pt-btn-ghost:visited,
.contents a.pt-btn-ghost,
.contents a.pt-btn-ghost:visited {
  background: var(--pt-btn);
  color: var(--pt-text);
  border: 1px solid #4a4a4a;
}

.pt-btn-ghost:hover,
.contents a.pt-btn-ghost:hover {
  color: var(--pt-text);
  background: #333333;
  border-color: #555555;
  text-decoration: none;
}

.pt-meta {
  margin: 0 0 16px;
  color: #b0b0b0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.pt-license-line {
  color: #8a8a8a;
  font-size: 13px;
  margin: 8px 0 0;
  padding: 0;
  overflow-wrap: break-word;
}

.pt-license-line a,
.pt-license-line a:visited {
  color: #b0b0b0;
}

.pt-section {
  margin: 48px 0 8px;
}

.pt-section h2,
.pt-kicker {
  font-size: 22px;
  margin: 0 0 16px;
  color: var(--pt-text);
}

.pt-kicker {
  margin-top: 40px;
}

.pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.pt-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pt-card {
  display: block;
  background: var(--pt-card);
  padding: 18px 18px 16px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #2a2a2a;
}

a.pt-card:hover {
  border-color: #4a4a4a;
  text-decoration: none;
}

.pt-card h3,
.pt-card h3 a,
.pt-card h3 a:visited {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--pt-text);
  text-decoration: none;
}

.pt-card p {
  margin: 0;
  padding: 0;
  color: #a8a8a8;
  font-size: 14px;
  line-height: 1.45;
}

.pt-card ul {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: var(--pt-muted);
  font-size: 14px;
  line-height: 1.5;
}

.pt-card li {
  margin: 0 0 2px;
}

.contents .pt-card a,
.contents .pt-card a:visited,
.pt-card a,
.pt-card a:visited {
  color: var(--pt-muted);
  text-decoration: none;
}

.pt-card a:hover {
  color: var(--pt-text);
  text-decoration: underline;
}

.pt-build {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}

.pt-build-item {
  padding: 0 0 0 14px;
  border-left: 3px solid var(--pt-accent);
}

.pt-build-item h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--pt-text);
}

.pt-build-item p {
  margin: 0 0 10px;
  padding: 0;
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.5;
}

.pt-build-item p:last-child {
  margin-bottom: 0;
}

/* Docs portals and module tiles: accent bar */
.pt-portals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.pt-portal {
  background: var(--pt-card);
  padding: 16px 18px 18px;
  border-top: 4px solid var(--pt-accent);
}

.pt-portal h2,
.pt-portal h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--pt-text);
}

.pt-portal h3:last-child {
  margin-bottom: 0;
}

.contents .pt-portal h2 a,
.contents .pt-portal h2 a:visited,
.contents .pt-portal h3 a,
.contents .pt-portal h3 a:visited,
.pt-portal h2 a,
.pt-portal h2 a:visited,
.pt-portal h3 a,
.pt-portal h3 a:visited {
  color: var(--pt-text);
  text-decoration: none;
}

.contents .pt-portal h2 a:hover,
.contents .pt-portal h3 a:hover,
.pt-portal h2 a:hover,
.pt-portal h3 a:hover {
  color: var(--pt-text);
  text-decoration: none;
}

.pt-portal ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-portal li {
  margin: 0 0 6px;
}

.contents .pt-portal a,
.contents .pt-portal a:visited,
.pt-portal a,
.pt-portal a:visited {
  color: var(--pt-muted);
  text-decoration: none;
}

.contents .pt-portal a:hover,
.pt-portal a:hover {
  color: var(--pt-text);
  text-decoration: none;
}

.pt-clone {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--pt-box-text);
  background: var(--pt-box);
  border: 1px solid var(--pt-box-line);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 20px 0;
}

/* Code/example boxes only. Member details use tile gray, no stroke. */
div.fragment,
pre.fragment {
  color: var(--pt-box-text);
  background-color: var(--pt-box);
  border-color: var(--pt-box-line);
  line-height: 1.4;
}

div.fragment div.line {
  line-height: 1.4;
  min-height: 1.4em;
}

.pt-download-note {
  color: var(--pt-muted);
  font-size: 14px;
  max-width: 40em;
}

.pt-next {
  margin-top: 36px;
}

.pt-page-marker {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 800px) {
  .pt-grid,
  .pt-grid-3,
  .pt-build,
  .pt-portals {
    grid-template-columns: 1fr;
  }

  .pt-hero {
    padding: 12px 0 0;
  }

  .pt-hero-title {
    font-size: clamp(22px, 8.4vw, 32px);
    letter-spacing: 0.01em;
    margin-right: 0;
  }

  .pt-hero-break {
    display: block;
  }

  .pt-hero-lead {
    font-size: 16px;
  }
}
