:root {
  --pf-demo-header-height: 60px;
  --pf-theme--font-family: "Red Hat Text", "Overpass", Helvetica, Arial, sans-serif;
  --pf-theme--font-family--heading: "Red Hat Display", "Overpass", Helvetica, Arial, sans-serif;
  --pf-navigation--Height--actual: 60px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html[unresolved] {
  opacity: 0;
}

html, body {
  margin: 0;
  font-family: var(--pf-global--FontFamily--sans-serif, "RedHatText", "Overpass", overpass, helvetica, arial, sans-serif);
  font-size: var(--pf-global--FontSize--md, 1rem);
  font-weight: var(--pf-global--FontWeight--normal, 400);
  line-height: var(--pf-global--LineHeight--md, 1.5);
  text-align: left;
  background-color: var(--pf-global--BackgroundColor--100, #fff);
  min-height: 100vh;
}

body {
  display: grid;
  grid-template-rows: var(--pf-demo-header-height, 4.375rem) auto;
  grid-template-columns: 100vw;
  grid-template-areas:
    'head'
    'body';
}

body.menu-open {
  grid-template-columns: 280px 1fr;
  grid-template-areas:
    'head head'
    'menu body';
}

#main-header {
  grid-area: head;
  display: block;
}

.logo-bar {
  display: flex;
  height: var(--pf-demo-header-height, 4.375rem);
  align-items: center;
  gap: 1rem;
  padding-inline-start: var(--pf-c-masthead--PaddingLeft, var(--pf-c-masthead--inset, 24px));
  padding-inline-end: var(--pf-c-masthead--PaddingRight, var(--pf-c-masthead--inset, 24px));
  padding-block: 8px;
  color: white;
  background: black;
}

.logo-bar > a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: bold;
  height: 100%;
}

.logo-bar > a img {
  height: 100%;
}

.logo-bar svg {
  height: 100%;
}

.logo-bar #hamburger {
  --pf-c-button--m-plain--Color: #fff;
  --pf-c-button--m-plain--active--Color: #fff;
  --pf-c-button--m-plain--focus--Color: #fff;
  --pf-c-button--m-plain--hover--Color: #fff;
}

#source-control {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  margin-inline-start: auto;
}

#source-control:hover {
  text-decoration: underline;
}

#source-control svg {
  height: var(	--pf-global--icon--FontSize--lg, 1.5rem);
}

#components {
  display: grid;
  padding: 1em;
  gap: 1em;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

#components img {
  width: 100%;
  height: auto;
}

#components a {
  display: block;
}

#components a:is(:focus, :hover) {
  outline: 2px solid var(--pf-global--primary-color--200, #004080);
}

#components ul {
  padding: 0;
}

#components li {
  list-style-type: none;
}

@media (max-width: 640px) {
  body.menu-open {
    grid-template-columns: 100vw 0;
  }

  #source-control span {
    /* Hide the text on small screens */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #sidebar {
    width: 100%;
  }
}

#sidebar {
  grid-area: menu;
}

#sidebar[aria-expanded=false] {
  display: none;
}

#nav {
  width: 100%;
  height: calc(100vh - var(--pf-demo-header-height, 4.375rem));
  overflow-y: auto;
  color: #151515;
  background: #fff;
  border-right: .0625rem solid #d2d2d2;
  padding-block-start: 1rem;
}

#nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav li ul {
  padding-left: 2rem;
}

#nav > ul > li {
  line-height: 2.25rem;
}

#nav summary {
  display: block;
  text-decoration: none;
  transition: background-color .25s;
  font-size: 1.125rem;
  padding: .25em 2rem;
  color: #151515;
}

#nav details>summary::-webkit-details-marker {
  display: none;
}

#nav summary {
  cursor: pointer;
}

#nav summary::after {
  content: "";
  color: #151515;
  width: .5625rem;
  height: .5625rem;
  transform: rotate(45deg);
  border-right: .1875rem solid #151515;
  border-top: .1875rem solid #151515;
  display: flex;
  float: right;
  top: .8125rem;
  position: relative;
}

#nav details[open] summary::after {
  transform: rotate(135deg);
}

#nav a {
  font-size: 1rem;
  line-height: 1.5rem;
  padding-left: 1rem;
  display: block;
  text-decoration: none;
  transition: background-color .25s;
  font-size: 1.125rem;
  padding: .5em 2rem;
  color: #151515;
}

#nav :is(summary, a):is(:focus, :hover) {
  color: #151515;
  background: #f5f5f5;
  box-shadow: inset 0.1875rem 0 0 0 #d2d2d2;
}

#nav a:active {
  background: #f5f5f5;
  box-shadow: inset 0.1875rem 0 0 0 var(--pf-theme--color--surface--accent, #004080);
  color: #151515;
}

@media(max-width: 640px) {
  #sidebar {
    grid-area: body;
    position: fixed;
    min-width: 50vw;
    top: var(--pf-demo-header-height, 4.375rem);
    z-index: 2;
  }

  html {
    grid-template-areas: 'head' 'body';
    grid-template-columns: 1fr;
  }
}

main {
  grid-area: body;
  display: grid;
  height: 100%;
  width: 100%;
  max-height: calc(100vh - var(--pf-demo-header-height));
}

[slot=header] fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

[slot=header] button {
  vertical-align: bottom;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
}

#component-header:not(:defined) {
  display: grid;
  grid-row: span 2;
  place-items: center;
}

#component-header::part(header) {
  display: flex;
  gap: 1em;
  justify-content: space-between;
  align-items: center;
}

summary :is(h1,h2,h3,h4,h5,h6) {
  margin: 0;
  display: inline-block;
}

:is(h1, h2, h3):not([slot]),
p.subtitle {
  font-weight: 400;
  font-family: 'Red Hat Display', sans-serif;
}

h1:not([slot]) {
  font-size: 2rem;
}

h3:not([slot]),
p.subtitle {
  margin-top: 0.83em;
  font-weight: 500;
}

p.subtitle {
  font-size: 1.17em;
}

strong {
  font-weight: bold;
}

header.band h1 {
  margin: 0;
}

.band > h2[id]:not(.no-header-styles) {
  font-size: 1.5rem;
  line-height: 1.9375rem;
  font-weight: bold;
  margin-top: 2em;
}

.band > h3[id] {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 2em;
}

.band > h2 + h3[id],
.band > p + h3[id] {
  margin-top: 0;
}

.band > h1+p,
.band > h2+p,
.band > h3+p,
.band > h4+p {
  margin-top: 0;
}

main.basic,
main.blog {
  margin-top: 3.75rem;
  margin-bottom: 3.75rem;
  flex-grow: 1;
}

#home-title img {
  width: 6rem;
  display: block;
  margin: auto;
}

.tagline {
  font-size: 18px;
}

.header-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.framework-logos img {
  width: 125px;
  margin: 8px;
}

.framework-logos img.react-logo {
  width: 200px;
}

.component-preview {
  margin-bottom: 64px !important;
}

.component-preview--container {
  position: relative;
}

.component-preview h3 {
  margin-bottom: 0;
}

.component-preview:hover .overlay {
  display: flex;
}

.overlay {
  display: none;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #eeeeeecc;

  /* display: flex; */
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.overlay > a {
  margin-bottom: 16px;
}

.preview-image {
  height: 250px;
  background-size: 90%;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #d2d2d2;
  border-radius: 3px;
}

.element-invisible {
  position: absolute;
  width: .0625rem;
  height: .0625rem;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  border: 0;
  grid-gap: 1rem;
}

.l-header__mobile-menu-toggle,
[id=mobile-menu-toggle][id] {
  position: fixed;
  top: 0;
  left: 0;
}

.l-header__mobile-menu-toggle {
  width: 1.5rem;
  height: 3.75rem;
  margin-right: 16px;
  color: #fff;
  z-index: 200;
  position: fixed;
  top: 0;
  left: 16px;
}

.menu-toggle__button {
  display: block;
  cursor: pointer;
  border: 0;
  overflow: hidden;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.l-header__burger-icon {
  display: block;
  position: absolute;
  top: 50%;
  left: calc(50% - .75rem);
  transform: scale(.25);
  transform-origin: left top;
}

.l-header__burger-icon::before,
.l-header__burger-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  display: block;
  width: 6rem;
}

.l-header__burger-icon::before {
  height: 0;
  border-top: .5rem solid #fff;
  background: #fff;
  transform: translateY(-2rem);
  transform-origin: left top;
  transition: transform .3s cubic-bezier(.55, .085, 0, .99);
}

.l-header__burger-icon::after {
  height: 2.5rem;
  border: .5rem solid #fff;
  border-width: .5rem 0;
  transition: border .3s cubic-bezier(.55, .085, 0, .99), transform .3s cubic-bezier(.55, .085, 0, .99);
  transform-origin: left bottom;
}

[id=mobile-menu-toggle]~.menu-toggle__toggleable {
  visibility: hidden;
  transition: visibility 0s .4s, width .25s ease-in-out;
  width: 0;
  overflow: hidden;
  background: #fff;
}

[id=mobile-menu-toggle]:checked~.menu-toggle__toggleable {
  visibility: visible;
  transition: visibility 0s 0s, width .25s ease-in-out;
  width: 17.5rem;
}

.faux-band {
  padding: 16px;
}

.color-preview {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  background-color: var(--bg, #fff);
  border: 1px solid #444;
}

th {
  text-align: left;
}

th, td {
  border-bottom: 1px solid #eee;
  padding: 16px;
}

code:not([class*="language-"]) {
  background-color: rgba(27,31,35,.05);
  padding: .2em .4em;
  border-radius: 6px;
  font-family: "Overpass Mono", monospace;
}

footer h3 {
  margin: 0;
}

footer ul {
  list-style-type: none;
  padding: 0;
  margin-top: 0;
}

@media (min-width: 820px) {
  main.basic,
  main.blog,
  body:not(.layout-base) footer.basic {
    padding-left: 17.5rem;
  }

  #nav {
    visibility: visible;
  }

  .l-header__mobile-menu-toggle,
  [id=mobile-menu-toggle][id] {
    display: none;
  }

  .menu-toggle__toggleable.js-menu-toggle__toggleable,
  [id=mobile-menu-toggle]~.menu-toggle__toggleable {
    overflow: visible;
    visibility: visible;
  }

  #home-title img {
    display: inline-block;
    position: relative;
    top: 2rem;
  }
}

strong.noscript {
  background-color: var(--pf-global--danger-color--100, #c9190b);
  color: white;
  border-radius: 4px;
  padding: 4px 12px;
  display: inline-block;
}
