/****************************************************************************
 ** @license
 ** This demo file is part of yFiles for HTML 3.1.0.4.
 ** Copyright (c) 2026 by yWorks GmbH, Vor dem Kreuzberg 28,
 ** 72070 Tuebingen, Germany. All rights reserved.
 **
 ** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution
 ** of demo files in source code or binary form, with or without
 ** modification, is not permitted.
 **
 ** Owners of a valid software license for a yFiles for HTML version that this
 ** demo is shipped with are allowed to use the demo source code as basis
 ** for their own yFiles for HTML powered applications. Use of such programs is
 ** governed by the rights and conditions as set out in the yFiles for HTML
 ** license agreement.
 **
 ** THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED
 ** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
 ** NO EVENT SHALL yWorks BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 ** TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 **
 ***************************************************************************/
/* Layout of the page: header, main area */

:root {
  --text-color: #2a3e50;
  --panel-bg-color: #e8edf2;
  --text-accent-color: #00adcc;

  --size-h1: 2rem;
  --size-h2: 1.5rem;
  --size-h3: 1.2rem;

  --gap: 8px;
  --border-radius: 12px;
  --description-width: 300px;
}

html,
body {
  height: 100%;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
}

.demo-app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.demo-header {
  flex: 0 0 70px;
  height: 70px;
}

.demo-main {
  flex: 1 1 auto;
  min-height: 0; /* allows scrolling content inside the remaining space */
  overflow: auto;
  padding: 0 var(--gap) var(--gap);
}

/* Layout of the main area: component-panel, description-panel */

.demo-main {
  display: flex;
  gap: var(--gap);
  align-items: stretch;

  > * {
    min-width: 0;
    position: relative;
  }
}

/* The graph component gets all remaining space */
.demo-main__component-panel {
  flex: 1 1 0;
}

/* These panels have a fixed width */
.demo-main__description-panel {
  flex: 0 0 var(--description-width);
}

body {
  color: var(--text-color);
  background-color: var(--panel-bg-color);
  font-family: 'poppins', sans-serif;
}

button {
  color: inherit;
  font-family: inherit;
}

.demo-main__description-panel {
  background-color: #ffffff;
  font-weight: 400;
  font-size: 0.875rem;

  border-radius: var(--border-radius);
  padding: var(--border-radius);
  overflow: auto;

  h1,
  h2 {
    margin: 1.25em 0 0.5em 0;
    line-height: 130%;
    hyphens: auto;
  }

  :first-child,
  h1 {
    margin-top: 0;
  }

  /* Additional small heading above the h1 */
  .subheading {
    font-size: 1rem;
    color: color-mix(in oklch, var(--text-color) 60%, white);
    font-weight: 700;
  }

  a {
    color: var(--text-color);
    &:hover {
      text-decoration-thickness: 2px;
    }
  }
}

.demo-main__component-panel {
  border-radius: var(--border-radius);
  background-color: #ffffff;
}

.demo-main__description-panel {
  h1 {
    color: var(--text-accent-color);
    font-size: var(--size-h1);
    font-weight: 600;
  }

  h2 {
    font-size: var(--size-h2);
  }
}

/* Header */

.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 92px;

  font-weight: 400;

  a {
    text-decoration: none;
    color: inherit;
  }

  .y-logo {
    margin: 4px 4px 4px 16px;
    height: 100%;
    background-color: #2a3e50;

    mask: url('./ylogo-large-3pzG7KhQ.svg') no-repeat center;
    width: 12rem;
  }

  .chevron-right {
    mask: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%232a3e50'%3e%3cpath%20d='M504-480%20320-664l56-56%20240%20240-240%20240-56-56%20184-184Z'/%3e%3c/svg%3e") no-repeat center;
    font-weight: 270;
    background-color: #2a3e50;
    height: 100%;
    width: 30px;
  }

  .breadcrumb-wrapper {
    font-size: 1.125em;
  }
}

.graph-component {
  height: 100%;
}

@media (max-width: 768px) {
  body {
    height: 100vh;
    overflow: hidden;
  }

  .demo-main {
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
  }

  .demo-header {
    flex: 0 0 auto;
  }

  .demo-page__description {
    order: 1;
    flex: 0 1 auto;
    max-height: calc(40vh - 60px);
    border-inline-end: none;
    border-block-end: 1px solid #bbb;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .demo-main__component-panel {
    order: 2;
    flex: 1 0 60vh;
  }
}
