:root {
  --menubar-height: 88px;

  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgb(0, 0, 0);
  background-color: #79b47b;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  /* color: rgb(212, 202, 143); */
  color: rgb(21, 25, 237);
  text-decoration: inherit;
}
a:hover {
  color: #000000;
}

body {
  margin: 0;
  display: block;
  min-width: 320px;
  min-height: 100vh;
  background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('background.jpg');
  background-size: cover;
  background-position: center;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

/* Reduce gap under the fixed menubar */
header {
  padding-top: calc(var(--menubar-height) - 0.5rem);
}
header h1 {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
}
header h1 img {
  max-width: 180px;
  margin-bottom: 0;
  display: block;
}
header h1 span {
  position: relative;
  margin-bottom: calc(1em); /* Raise LLC to 1/5th up from the bottom of the logo */
  color: #000000;
}


/* Menubar (fixed at top) */
.menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--menubar-height);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  z-index: 1000;
}
.menubar .logo-left {
  max-width: 140px;
  max-height: calc(var(--menubar-height) - 16px);
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}
.menubar .menu-items { margin-left: 0.75rem; display: flex; gap: 0.75rem; }
.menubar .menu-items a { color: #213547; text-decoration: none; font-weight:600; }
.menubar .menu-items a:hover { text-decoration: underline; }
.menubar .logo-link { display: inline-flex; align-items: flex-end; gap: 0.5rem; }

/* Ensure header content sits below the menubar */
#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--menubar-height) - 4rem) 2rem 2rem 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vanilla:hover {
  filter: drop-shadow(0 0 2em #f7df1eaa);
}

.card {
  padding: 2em;
}

table{
  border-collapse:collapse;
  border:1px solid #000000;
}

table td{
  border:1px solid #000000;
}

.read-the-docs {
  color: #888;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #000000;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

/* smooth scrolling and prevent headings from hiding behind fixed menubar */
html {
  scroll-behavior: smooth;
}

/* ensure anchor targets are visible below the fixed menubar */
h1, h2, h3, h4, h5 {
  scroll-margin-top: calc(var(--menubar-height) + 0.5rem);
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #000000;
  }
  button {
    background-color: #f9f9f9;
  }
}

.dna-frame{
  --dna: #2b5cff;
  --thick: 40px;      /* border thickness */
  --corner: 40px;     /* corner tile size */
  --gap: 0px;        /* inner padding beyond border */
  color: var(--dna);
  position: relative;
  padding: 40px;
  border-radius: 0px;
}

.dna-frame-no-top{
  --dna: #2b5cff;
  --thick: 40px;      /* border thickness */
  --corner: 40px;     /* corner tile size */
  --gap: 0px;         /* inner padding beyond border */
  color: var(--dna);
  position: relative;
  /* remove top padding so content sits against the top of the frame; keep left/right/bottom */
  padding: 0 40px 40px 40px;
  border-radius: 0px;
}

/* Hide the top edge and the two top corners */
.dna-frame-no-top .dna-edge.top,
.dna-frame-no-top .dna-corner.tl,
.dna-frame-no-top .dna-corner.tr {
  display: none;
}

/* Extend left/right edges to the top so there is no gap where the top border used to be */
.dna-frame-no-top .dna-edge.left,
.dna-frame-no-top .dna-edge.right {
  top: 0;
}

.dna-content{
  position: relative;
  z-index: 0;
  background: white;
  border-radius: 0px;
  padding: 0px;
}

/* shared layer styling */
.dna-edge, .dna-corner{
  position: absolute;
  z-index: 1;
  pointer-events: none;
  background-repeat: repeat;
  background-position: center;
  filter: drop-shadow(0 6px 10px rgba(11,22,48,.16));
}

/* edges */
.dna-edge.top{
  left: var(--corner);
  right: var(--corner);
  top: 0;
  height: var(--thick);
  background-image: url("horizontal-dna.svg");
  background-size: auto 100%;
  background-repeat: repeat-x;
}
.dna-edge.bottom{
  left: var(--corner);
  right: var(--corner);
  bottom: 0;
  height: var(--thick);
  background-image: url("horizontal-dna.svg");
  background-size: auto 100%;
  background-repeat: repeat-x;
  transform: rotate(180deg); /* optional: flips phase so it looks continuous */
  transform-origin: center;
}
.dna-edge.left{
  top: var(--corner);
  bottom: var(--corner);
  left: 0;
  width: var(--thick);
  background-image: url("vertical-dna.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
}
.dna-edge.right{
  top: var(--corner);
  bottom: var(--corner);
  right: 0;
  width: var(--thick);
  background-image: url("vertical-dna.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  transform: rotate(180deg); /* optional for continuity */
  transform-origin: center;
}

/* corners: all use the SAME SVG, rotated with transform */
.dna-corner{
  width: var(--corner);
  height: var(--corner);
  background-image: url("corner-dna.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.dna-corner.tl{ top: 0; left: 0; transform: rotate(0deg); }
.dna-corner.tr{ top: 0; right: 0; transform: rotate(90deg); }
.dna-corner.br{ bottom: 0; right: 0; transform: rotate(180deg); }
.dna-corner.bl{ bottom: 0; left: 0; transform: rotate(270deg); }

.logo-llc { font-size: 0.95rem; font-weight: 700; margin-left: 0.5rem; color: #213547; line-height: 1; display: inline-block; transform: translate(-10px, -8px); }

