/*------------------------------------*\
  #RESET & BASE STYLES
\*------------------------------------*/

/* 1. Document Root & Box Sizing */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

/* 2. Body Defaults */
body {
  margin: 0;
  background-color: #fff;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*------------------------------------*\
  #TYPOGRAPHY
\*------------------------------------*/

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block-start: 0;
  margin-block-end: 0;
  color: inherit;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Paragraphs */
p {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Text Formatting */
b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub { bottom: -0.25em; }
sup { top: -0.5em; }

/* Monospace */
pre,
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

pre {
  white-space: pre-wrap;
}

/* Horizontal Rule */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/* Abbreviation */
abbr[title] {
  border-block-end: none;
  text-decoration: underline dotted;
  -webkit-text-decoration: underline dotted;
}

/*------------------------------------*\
  #LINKS
\*------------------------------------*/

a {
  background-color: transparent;
  color: #c36;
  text-decoration: none;
}

a:active,
a:hover {
  color: #336;
}

/* Placeholder links (no href) */
a:not([href]):not([tabindex]),
a:not([href]):not([tabindex]):focus,
a:not([href]):not([tabindex]):hover {
  color: inherit;
  text-decoration: none;
}

a:not([href]):not([tabindex]):focus {
  outline: 0;
}

/*------------------------------------*\
  #MEDIA
\*------------------------------------*/

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

figcaption {
  color: #333;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

/*------------------------------------*\
  #INTERACTIVE ELEMENTS
\*------------------------------------*/

details {
  display: block;
}

summary {
  display: list-item;
}

[hidden],
template {
  display: none;
}

/*------------------------------------*\
  #FORMS
\*------------------------------------*/

/* Form Base */
label {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

/* Input & Textarea Defaults */
input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #666;
  border-radius: 3px;
  transition: all 0.3s;
}

input[type="date"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: #333;
}

textarea {
  overflow: auto;
  resize: vertical;
}

select {
  display: block;
}

/* Buttons */
button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

[type="button"],
[type="reset"],
[type="submit"],
button {
  width: auto;
  -webkit-appearance: button;
}

[type="button"],
[type="submit"],
button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: transparent;
  border: 1px solid #c36;
  border-radius: 3px;
  color: #c36;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s;
  user-select: none;
}

[type="button"]:focus:not(:focus-visible),
[type="submit"]:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

[type="button"]:focus,
[type="button"]:hover,
[type="submit"]:focus,
[type="submit"]:hover,
button:focus,
button:hover {
  background-color: #c36;
  color: #fff;
  text-decoration: none;
}

[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
  cursor: pointer;
}

/* Checkboxes & Radios */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

/* Number Input Spinners */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/* Search Input */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* File Upload */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Fieldsets & Legends */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  display: table;
  max-width: 100%;
  padding: 0;
  color: inherit;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

/*------------------------------------*\
  #TABLES
\*------------------------------------*/

table {
  width: 100%;
  margin-block-end: 15px;
  background-color: transparent;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9em;
}

table td,
table th {
  padding: 15px;
  border: 1px solid hsla(0, 0%, 50%, 0.502);
  line-height: 1.5;
  vertical-align: top;
}

table th {
  font-weight: 700;
}

table tfoot th,
table thead th {
  font-size: 1em;
}

/* Table Header Border Top */
table caption + thead tr:first-child td,
table caption + thead tr:first-child th,
table colgroup + thead tr:first-child td,
table colgroup + thead tr:first-child th,
table thead:first-child tr:first-child td,
table thead:first-child tr:first-child th {
  border-block-start: 1px solid hsla(0, 0%, 50%, 0.502);
}

/* Zebra Striping */
table tbody > tr:nth-child(odd) > td,
table tbody > tr:nth-child(odd) > th {
  background-color: hsla(0, 0%, 50%, 0.071);
}

/* Hover Effect */
table tbody tr:hover > td,
table tbody tr:hover > th {
  background-color: hsla(0, 0%, 50%, 0.102);
}

/* Separator between tbodies */
table tbody + tbody {
  border-block-start: 2px solid hsla(0, 0%, 50%, 0.502);
}

/*------------------------------------*\
  #LISTS
\*------------------------------------*/

dd,
dl,
dt,
li,
ol,
ul {
  margin-block-start: 0;
  margin-block-end: 0;
  background: transparent;
  border: 0;
  font-size: 100%;
  outline: 0;
  vertical-align: baseline;
}

/*------------------------------------*\
  #PRINT STYLES
\*------------------------------------*/

@media print {
  *,
  *:after,
  *:before {
    background: transparent !important;
    box-shadow: none !important;
    color: #000 !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  blockquote,
  pre {
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  img,
  tr {
    break-inside: avoid;
  }

  h2,
  h3,
  p {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    break-after: avoid;
  }
}

/*------------------------------------*\
  #RESPONSIVE TABLES
\*------------------------------------*/

@media (max-width: 767px) {
  table table {
    font-size: 0.8em;
  }

  table table td,
  table table th {
    padding: 7px;
    line-height: 1.3;
  }

  table table th {
    font-weight: 400;
  }
}