:root {
  /* base section rgba colors */
  /* mat peach: 252, 205, 189 */ 
  /* mat lite blue: 168, 239, 240 */
  /* mat brown: 118, 91, 0 */
  /* mat purple: 103, 80, 164 */
  /* strapi blue: 73, 69, 255 */

  /* base buttons */
  /* orange: 250, 193, 94 */
  /* charcoal: 3, 32, 32 */

  /* PRIMARY RGBA COLORS (required) */
  /* Sections, Dividers, Headers */
  --sec-bg: 252, 206, 189;

  /* BUTTON, MODAL, RGBA */
  --btn-base: 3, 32, 32;
  --btn-bg:rgba(var(--btn-base), 1);
  --btn-text: var(--sec-bg1);
  --btn-shadow-hover: 0 2px 5px rgba(0, 0, 0, .5);
  --btn-bg-hover:rgba(var(--btn-base), .9);

  /* UTILITIES */
  --background-body: #fff;
  --background: #efefef;
  
  /* SECTION multi rgba opacity */
  --sec-bg1:rgba(var(--sec-bg), 1);
  --sec-bg2:rgba(var(--sec-bg), 0.6);
  --sec-bg3:rgba(var(--sec-bg), 0.3);
  --sec-p-padd: 14px;

  --border-radius-all: 24px;
  --border-radius-img: 21px;


  /* SECTION border shadow vs color (or both) - Uncomment as needed */
  /* Border style must be set to 'none' to remove or 'solid', 'dashed' etc.. to show*/
/*  --box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.2);*/
  --border-style: solid;
  --border-color-all: rgba(var(--btn-base), 0.2);
  --border-width-all: 2px;
  
  /* Optional SECTION multi hex colors */
  /* --section-bg-color1:#6750a4;*/
  /* --section-bg-color2:#eaddff;*/
  /* --section-bg-color3:#ffffff;*/

  

  /*  --border-radius-all: 1.75rem;*/
  --outline-c: #f0f8ff;
  
  --padding-all: 20px;

  
  --background-alt: #f7f7f7;
  --selection: #9e9e9e;
  --text-main: #363636;
  --text-bright: #000;
  --text-muted: #70777f;
  --links: #0076d1;
  --focus: #0096bfab;
  --border: #dbdbdb;
  --form-text: var(--text-main);
  
  --code: #000;
  --scrollbar-thumb-hover: var(--btn-shadow-hover);
  --form-placeholder: #949494;
  --variable: #39a33c;
  --highlight: #ff0;
  
  
  --animation-duration: 0.3s;
  --scrollbar-thumb: rgb(170, 170, 170);
  
/* section */
  --section-div: ;
}  

.dark-theme {
  --background-body: #202b38;
  --background: #161f27;
  --background-alt: #1a242f;
  --selection: #1c76c5;
  --text-main: #dbdbdb;
  --text-bright: #fff;
  --text-muted: #a9b1ba;
  --links: #41adff;
  --focus: #0096bfab;
  --border: #526980;
  --code: #ffbe85;
  --animation-duration: 0.1s;
  --btn-bg: #0c151c;
  --btn-shadow-hover: 0 2px 5px rgba(0, 0, 0, .5);
  --scrollbar-thumb: var(--btn-shadow-hover);
  --scrollbar-thumb-hover: rgb(0, 0, 0);
  --form-placeholder: #a9a9a9;
  --form-text: #fff;
  --variable: #d941e2;
  --highlight: #efdb43;
  /* codi code */
}

html {
  scrollbar-color: var(--scrollbar-thumb) var(--background-body);
  scrollbar-width: thin;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  line-height: 1.4;
/*  word-wrap: break-word;*/
  color: var(--text-main);
  background: var(--background-body);
  text-rendering: optimizeLegibility;
}
/* header  {
 display: inline-block;
 background-color: #f0f3e7;
} */
main {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 10px;
}

/* section manage grid, columns, card alignment */
section{
  --min: 35ch;
  --gap: 1rem;
  display: grid;
  grid-gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min)), 1fr));
  margin: 14px 0;
}
section > div {
/*  padding: var(--padding-all); */
  border: var(--border-style);
  border-radius: var(--border-radius-all);
  border-width: var(--border-width-all);
  border-color: var(--border-color-all);
}
section > div:nth-of-type(3n + 1) {
  background-color: var(--sec-bg1);
  box-shadow: var(--box-shadow);
/*  color: #fff;*/
}
section > div:nth-of-type(3n + 2) {
  background-color:var(--sec-bg2);
  box-shadow: var(--box-shadow);
}
section > div:nth-of-type(3n + 3) {
  background-color: var(--sec-bg3);
  box-shadow: var(--box-shadow);
}
section > div > p {
  padding: var(--sec-p-padd); /* or padding-all ? */
}

/* Imbed Cards */


section > div > img {
  border-radius: var(--border-radius-img);
}


/* single styled div: border-radius + padding + Huh?? */
div > p {
/*  padding: var(--padding-all);*/
  border-radius: var(--border-radius-all);
/*  border: var(--border-width-all) solid var(--border-color-all);*/
}

h1 {
  font-size: 2.2em;
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 12px;
  margin-top: 24px;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  color: var(--text-bright);
}

h1,
h2,
h3,
h4,
h5,
h6,
b,
strong,
th {
  font-weight: 600;
}

q::before {
  content: none;
}

q::after {
  content: none;
}

blockquote,
q {
  border-left: 4px solid var(--focus);
  margin: 1.5em 0;
  padding: 0.5em 1em;
  font-style: italic;
}

blockquote > footer {
  font-style: normal;
  border: 0;
}

blockquote cite {
  font-style: normal;
}

address {
  font-style: normal;
}

a[href^='mailto\:']::before {
  content: '📧 ';
}

a[href^='tel\:']::before {
  content: '📞 ';
}

a[href^='sms\:']::before {
  content: '💬 ';
}

mark {
  background-color: var(--highlight);
  border-radius: 2px;
  padding: 0 2px 0 2px;
  color: #000;
}

a > code,
a > strong {
  color: inherit;
}

button,
input,
textarea {
  transition:
    background-color var(--animation-duration) linear,
    border-color var(--animation-duration) linear,
    color var(--animation-duration) linear,
    box-shadow var(--animation-duration) linear,
    transform var(--animation-duration) ease;
}

code,
samp,
time {
  background: var(--background);
  color: var(--code);
  padding: 2.5px 5px;
  border-radius: 6px;
  font-size: 1em;
}

pre > code {
  padding: 10px;
  display: block;
  overflow-x: auto;
}

var {
  color: var(--variable);
  font-style: normal;
  font-family: monospace;
}

kbd {
/*  background: var(--background);*/
  background: var(--sec-bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-main);
  padding: 2px 4px 2px 4px;
}

button,
select,
input[type='submit'],
input[type='reset'],
input[type='button'],
input[type='checkbox'],
input[type='range'],
input[type='radio'] {
  cursor: pointer;
}

input,
textarea,
button,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

input,
select {
  display: block;
}

[type='checkbox'],
[type='radio'] {
  display: initial;
}

input,
textarea,
select {
  color: var(--form-text);
/*  background-color: var(--sec-bg3);*/
  font-family: inherit;
  font-size: inherit;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 14px;
  border: 1px solid #dbdbdb;
  border-radius: var(--border-radius-all);
  outline: none;
}

button {
  color: var(--btn-text);
  background-color: var(--background);
  font-family: inherit;
  font-size: inherit;
  margin-right: 6px;
  margin-bottom: 6px;
  padding: 14px;
  border: none;
  border-radius: var(--border-radius-all);
  outline: none;
}

button,
input[type='submit'],
input[type='reset'],
input[type='button'] {
  color: var(--btn-text);
  background-color: var(--btn-bg);
  padding-right: 30px;
  padding-left: 30px;
  border: none;
}

button:hover,
input[type='submit']:hover,
input[type='reset']:hover,
input[type='button']:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, .5);
  background-color: var(--btn-bg-hover);
  padding-right: 30px;
  padding-left: 30px;
}

input[type='color'] {
  min-height: 2rem;
  padding: 8px;
  cursor: pointer;
}

input[type='checkbox'],
input[type='radio'] {
  height: 1em;
  width: 1em;
}

input[type='radio'] {
  border-radius: 100%;
}

input {
  vertical-align: top;
}

label {
  vertical-align: middle;
  margin-bottom: 4px;
  display: inline-block;
}
textarea {
  display: block;
  margin-right: 0;
  box-sizing: border-box;
  resize: vertical;
}

textarea:not([cols]) {
  width: 100%;
}

textarea:not([rows]) {
  min-height: 40px;
  height: 140px;
}

select {
  background: var(--background) var(--select-arrow) calc(100% - 12px) 50% / 12px no-repeat;
  padding-right: 35px;
}

select::-ms-expand {
  display: none;
}

select[multiple] {
  padding-right: 10px;
  background-image: none;
  overflow-y: auto;
}

input:focus,
select:focus,
/*button:focus,*/
textarea:focus {
/*  box-shadow: 0 0 0 2px var(--focus);*/
  outline: var(--outline-c);
  outline-style: solid;
  outline-width: thick;
}

input[type='checkbox']:active,
input[type='radio']:active,
input[type='submit']:active,
input[type='reset']:active,
input[type='button']:active,
input[type='range']:active,
button:active {
  transform: translateY(2px);
/*  border-radius: var(--border-radius-all);*/
}

input:disabled,
select:disabled,
button:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

::placeholder {
  color: var(--form-placeholder);
}

fieldset {
  border: 1px var(--focus) solid;
  border-radius: 6px;
  margin: 0;
  margin-bottom: 12px;
  padding: 10px;
}

legend {
  font-size: 0.9em;
  font-weight: 600;
}

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

a:hover {
  text-decoration: underline;
}

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

hr {
  border: none;
  border-top: 1px solid var(--border);
}

table {
  border-collapse: collapse;
  margin-bottom: 10px;
  width: 100%;
  table-layout: fixed;
}

table caption {
  text-align: left;
}

td,
th {
  padding: 6px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

thead {
  border-bottom: 1px solid var(--border);
}

tfoot {
  border-top: 1px solid var(--border);
}

tbody tr:nth-child(even) {
  background-color: var(--background);
}

tbody tr:nth-child(even) button {
  background-color: var(--background-alt);
}

tbody tr:nth-child(even) button:hover {
  background-color: var(--background-body);
}

::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

::selection {
  background-color: var(--selection);
  color: var(--text-bright);
}

details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: var(--background-alt);
  padding: 10px 10px 0;
  margin: 1em 0;
  border-radius: 6px;
  overflow: hidden;
  transition-duration: 0.8s;
}

details[open] {
  padding: 10px;
}

details > :last-child {
  margin-bottom: 0;
}

details[open] summary {
  margin-bottom: 10px;
}

summary {
  display: list-item;
  background-color: var(--background);
  padding: 10px;
  margin: -10px -10px 0;
  cursor: pointer;
  outline: none;
}

summary:hover,
summary:focus {
  text-decoration: underline;
}

details > :not(summary) {
  margin-top: 0;
}

summary::-webkit-details-marker {
  color: var(--text-main);
}

dialog {
  background-color: var(--background-alt);
  color: var(--text-main);
  border: none;
  border-radius: 6px;
  border-color: var(--border);
  padding: 10px 30px;
}

dialog > header:first-child {
  background-color: var(--background);
  border-radius: 6px 6px 0 0;
  margin: -10px -30px 10px;
  padding: 10px;
  text-align: center;
}

dialog::backdrop {
  background: #0000009c;
  backdrop-filter: blur(4px);
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  color: var(--text-muted);
}

body > footer {
  margin-top: 40px;
}

input[type='range'] {
  margin: 10px 0;
  padding: 10px 0;
  background: transparent;
}

input[type='range']:focus {
  outline: none;
}

input[type='range']::-webkit-slider-runnable-track {
  width: 100%;
  height: 9.5px;
  transition: 0.2s;
  background: var(--background);
  border-radius: 3px;
}

input[type='range']::-webkit-slider-thumb {
  box-shadow: 0 1px 1px #000, 0 0 1px #0d0d0d;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--border);
  -webkit-appearance: none;
  margin-top: -7px;
}

input[type='range']:focus::-webkit-slider-runnable-track {
  background: var(--background);
}

input[type='range']::-moz-range-track {
  width: 100%;
  height: 9.5px;
  transition: 0.2s;
  background: var(--background);
  border-radius: 3px;
}

input[type='range']::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--border);
}

input[type='range']::-ms-track {
  width: 100%;
  height: 9.5px;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}

input[type='range']::-ms-fill-lower {
  background: var(--background);
  border: 0.2px solid #010101;
  border-radius: 3px;
  box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
}

input[type='range']::-ms-fill-upper {
  background: var(--background);
  border: 0.2px solid #010101;
  border-radius: 3px;
  box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
}

input[type='range']::-ms-thumb {
  box-shadow: 1px 1px 1px #000, 0 0 1px #0d0d0d;
  border: 1px solid #000;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--border);
}

input[type='range']:focus::-ms-fill-lower {
  background: var(--background);
}

input[type='range']:focus::-ms-fill-upper {
  background: var(--background);
}


@media print {
  body,
  pre,
  code,
  summary,
  details,
  button,
  input,
  textarea {
    background-color: #fff;
  }

  button,
  input,
  textarea {
    border: 1px solid #000;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  pre,
  code,
  button,
  input,
  textarea,
  footer,
  summary,
  strong {
    color: #000;
  }

  summary::marker {
    color: #000;
  }

  summary::-webkit-details-marker {
    color: #000;
  }

  tbody tr:nth-child(even) {
    background-color: #f2f2f2;
  }

  a {
    color: #00f;
    text-decoration: underline;
  }
}

