/* -------------------------------------------------------- */
/* 🔹 Base Styles                                           */
/* -------------------------------------------------------- */
/* Website-specific — no Dart equivalent                    */
/* CSS reset, element defaults, and layout utilities that   */
/* the browser needs but Flutter handles automatically      */


/* -------------------------------------------------------- */
/* 🔹 Reset                                                 */
/* -------------------------------------------------------- */

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

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}


/* -------------------------------------------------------- */
/* 🔹 Document                                              */
/* -------------------------------------------------------- */
/* App-shell layout — nav outside scroll, content scrolls   */

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-body-large);
  line-height: var(--text-body-large-height);
  color: var(--color-on-surface);
  background-color: var(--color-scaffold-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--color-outline) transparent;
}

.page-content::-webkit-scrollbar {
  width: 8px;
}

.page-content::-webkit-scrollbar-track {
  background: transparent;
}

.page-content::-webkit-scrollbar-thumb {
  background-color: var(--color-outline);
  border-radius: 4px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* -------------------------------------------------------- */
/* 🔹 Layout                                                */
/* -------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-inline: auto;
  padding-inline: var(--space-l);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

.container--narrow {
  max-width: var(--max-content-width-narrow);
}


/* -------------------------------------------------------- */
/* 🔹 Accessibility                                         */
/* -------------------------------------------------------- */

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