/* Fonts are loaded via a document-level <link> in index.html, not @import here:
   global.css is also injected into component shadow roots as a constructable
   stylesheet, where @import is forbidden (and would log a console warning). */

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100dvh; 
    width: 100%;

    font-family: var(--primary-font);
    font-weight: var(--font-weight-n);
    font-size: var(--font-size-text);
    letter-spacing: var(--text-tracking);
    color: var(--secondary-4-color);
    background:
    linear-gradient(
      180deg,
      var(--primary-20-color) 0%,
      var(--neutral-09-color) 18%,
      var(--neutral-10-color) 100%
    );
}

a {
    font-family: var(--secondary-font);
}

*[hidden] {
    display: none !important;
}

/* Builder nav bar + back bar stay pinned while the page content scrolls.
   They're wrapped in a single .builder-chrome grid item, so the wrapper is
   what sticks (sticking the bars individually would fail — they'd be pinned
   only within the short wrapper and scroll away with it). */
.builder-chrome {
    position: sticky;
    top: 0;
    z-index: 10;
}


.page {
    display: block;
    max-width: 100dvw;
    background-color: var(--primary-light-color);

    h1{
        font-weight: 400;
    }
}

.container {
    padding: min(3%, 2rem);
    padding-bottom: 5rem;
    max-width: 64rem;
    margin: auto;
}

.card {
    padding: min(7%, 2rem);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto;
    background: var(--secondary-1-color);
}

.text-wrap {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}