/**
 * @file
 * moni2026 – tokens, reset, typography.
 *
 * Values mirror Bootstrap 5.3 defaults, so the site renders like the
 * memo (bootstrap5 subtheme) without loading Bootstrap.
 */

:root {
  /* Brand (memo $memo_accent / $memo_bgd). */
  --moni-accent: hsl(39, 100%, 50%);
  --moni-accent-dark: hsl(39, 100%, 30%);
  --moni-accent-light: #ffc966; /* lighten(#ffa500, 20%) */
  --moni-brick-bg: hsl(206, 100%, 99%);
  --moni-main-bg: #f6f6f6;
  --moni-footer-bg: #343a40;
  --moni-footer-link: #f3b735;
  --moni-orange: orange;

  /* Bootstrap 5.3 equivalents. */
  --moni-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --moni-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --moni-font-script: "Parisienne", cursive;
  --moni-body-color: #212529;
  --moni-body-color-rgb: 33, 37, 41;
  --moni-body-bg: #fff;
  --moni-emphasis: #000;
  --moni-secondary-color: rgba(33, 37, 41, 0.75);
  --moni-secondary-bg: #e9ecef;
  --moni-tertiary-bg: #f8f9fa;
  --moni-link: #0d6efd;
  --moni-link-hover: #0a58ca;
  --moni-primary: #0d6efd;
  --moni-primary-hover: #0b5ed7;
  --moni-border: #dee2e6;
  --moni-border-translucent: rgba(0, 0, 0, 0.175);
  --moni-radius: 0.375rem;
  --moni-focus-ring: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  --moni-gutter: 1.5rem;
}

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--moni-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--moni-body-color);
  text-align: start;
  background-color: var(--moni-body-bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid;
  opacity: 0.25;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 1200px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: inherit;
}

ol,
ul {
  padding-left: 2rem;
}

ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

dt { font-weight: 700; }
dd { margin-bottom: 0.5rem; margin-left: 0; }

blockquote {
  margin: 0 0 1rem;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 0.875em;
}

sub,
sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

a {
  color: var(--moni-link);
  text-decoration: underline;
}

a:hover {
  color: var(--moni-link-hover);
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

pre,
code,
kbd,
samp {
  font-family: var(--moni-font-mono);
  font-size: 1em;
}

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  font-size: 0.875em;
}

code {
  font-size: 0.875em;
  color: #d63384;
  word-wrap: break-word;
}

figure {
  margin: 0 0 1rem;
}

img,
svg {
  vertical-align: middle;
}

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

table {
  caption-side: bottom;
  border-collapse: collapse;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

thead, tbody, tfoot, tr, td, th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

[role="button"] {
  cursor: pointer;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem; /* bootstrap5 theme override */
  line-height: inherit;
}

legend + * {
  clear: left;
}

iframe {
  border: 0;
}

summary {
  display: list-item;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}
