/**
 * ===================================================================
 *
 *  Kards v1.0 Base Stylesheet
 *  03-01-2016 (Significantly updated by Anne Jones 10/13/23)
 *  ------------------------------------------------------------------
 *  TOC:
 *  01. reset
 *  02. basic/base setup styles
 *  03. grid
 *  04. MISC
 *
 * ===================================================================
 */

/**
 * ===================================================================
 * 01. reset - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
 *
 * -------------------------------------------------------------------
 */

/* Base adjustments */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

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

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

pre,
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

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

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

img {
  border-style: none;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

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

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template,
[hidden] {
  display: none;
}

/**
 * ===================================================================
 * 02. basic/base setup styles - (_basic.scss)
 *
 * -------------------------------------------------------------------
 */

/* General */
html {
  font-size: 62.5%;
  box-sizing: border-box;
}

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

body {
  font-weight: normal;
  line-height: 1;
  text-rendering: optimizeLegibility;
  word-wrap: break-word;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography Resets */
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
form,
p,
blockquote,
th,
td {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
}

em,
i,
strong,
b,
small {
  line-height: inherit;
}

em,
i {
  font-style: italic;
}

strong,
b {
  font-weight: bold;
}

small {
  font-size: 60%;
}

ol,
ul {
  list-style: none;
}

li {
  display: block;
}

/* Links */
a {
  text-decoration: none;
  line-height: inherit;
}

a img {
  border: none;
}

/* Inputs */
fieldset {
  margin: 0;
  padding: 0;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  appearance: none;
}

/**
 * ===================================================================
 * 03. grid - (_grid.scss)
 *
 * -------------------------------------------------------------------
 */

/* Base grid styles */
.row {
  width: 94%;
  max-width: 1140px;
  margin: 0 auto;
  &:before,
  &:after {
    content: "";
    display: table;
  }
  &:after {
    clear: both;
  }
  .row {
    width: auto;
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
  }
}
[class*="col-"],
.bgrid {
  float: left;
}
[class*="col-"] + [class*="col-"].end {
  float: right;
}
[class*="col-"] {
  padding: 0 20px;
}

/* Column definitions */
.col-one {
  width: 8.33333%;
}
.col-two,
.col-1-6 {
  width: 16.66667%;
}
.col-three,
.col-1-4 {
  width: 25%;
}
.col-four,
.col-1-3 {
  width: 33.33333%;
}
.col-five {
  width: 41.66667%;
}
.col-six,
.col-1-2 {
  width: 50%;
}
.col-seven {
  width: 58.33333%;
}
.col-eight,
.col-2-3 {
  width: 66.66667%;
}
.col-nine,
.col-3-4 {
  width: 75%;
}
.col-ten,
.col-5-6 {
  width: 83.33333%;
}
.col-eleven {
  width: 91.66667%;
}
.col-twelve,
.col-full {
  width: 100%;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
  .row .row {
    margin-left: -18px;
    margin-right: -18px;
  }
  [class*="col-"] {
    padding: 0 18px;
  }
}
@media screen and (max-width: 768px) {
  .row {
    width: auto;
    padding: 0 30px;
  }
  .row .row {
    padding: 0;
    margin-left: -15px;
    margin-right: -15px;
  }
  [class*="col-"] {
    padding: 0 15px;
  }
  /* tablet specific columns */
  .tab-1-4 {
    width: 25%;
  }
  .tab-1-3 {
    width: 33.33333%;
  }
  .tab-1-2 {
    width: 50%;
  }
  .tab-2-3 {
    width: 66.66667%;
  }
  .tab-3-4 {
    width: 75%;
  }
  .tab-full {
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
  .row {
    padding: 0 25px;
  }
  .row .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  [class*="col-"] {
    padding: 0 10px;
  }
  /* mobile specific columns */
  .mob-1-4 {
    width: 25%;
  }
  .mob-1-2 {
    width: 50%;
  }
  .mob-3-4 {
    width: 75%;
  }
  .mob-full {
    width: 100%;
  }
}
@media screen and (max-width: 400px) {
  .row .row {
    padding: 0;
    margin: 0;
  }
  [class*="col-"] {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0;
    padding: 0;
  }
}

/* Block Grids */
[class*="block-"]:before,
[class*="block-"]:after {
  content: "";
  display: table;
}
[class*="block-"]:after {
  clear: both;
}
.block-1-6 .bgrid {
  width: 16.66667%;
}
.block-1-4 .bgrid {
  width: 25%;
}
.block-1-3 .bgrid {
  width: 33.33333%;
}
.block-1-2 .bgrid {
  width: 50%;
}

/* Clearing for block grid columns */
.block-1-6 .bgrid:nth-child(6n + 1),
.block-1-4 .bgrid:nth-child(4n + 1),
.block-1-3 .bgrid:nth-child(3n + 1),
.block-1-2 .bgrid:nth-child(2n + 1) {
  clear: both;
}

/* Media queries for block grids (simplified for brevity) */
/* ... (Similar pattern as the ones above) ... */

/**
 * ===================================================================
 * 04. MISC  - (_grid.scss)
 *
 * -------------------------------------------------------------------
 */

/* Clearing */
.group:before,
.group:after {
  content: "";
  display: table;
}

.group:after {
  clear: both;
}

/* Visibility */
.hide {
  display: none;
}
.invisible {
  visibility: hidden;
}

/* Text Rendering */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Margins */
.remove-bottom {
  margin-bottom: 0;
}
.half-bottom {
  margin-bottom: 1.5rem !important;
}
.add-bottom {
  margin-bottom: 3rem !important;
}

/* Border */
.no-border {
  border: none;
}

/* Width */
.full-width {
  width: 100%;
}

/* Text Alignment */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* Floating */
.pull-left {
  float: left;
}
.pull-right {
  float: right;
}

/* Center Alignment */
.align-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
