/*
  @file Base/element level theming.

  This file sets up default CSS for elements, such as links as
  well as font sizes, vertical rhythm, etc.
*/

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin-top: 0; /* Removing top margin, for better vertical rhythm layout */
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: var(--font-size);
  line-height: var(--line-height);
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  body {
    scroll-behavior: auto;
  }
}

.dialog-off-canvas-main-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  margin-bottom: auto;
}

a {
  transition: var(--transition-time);
  color: var(--color-link);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--color-text-decoration);
}

a:hover {
  text-decoration-color: var(--color-pop);
  text-decoration-thickness: 4px;
}

a:not([class*="toolbar"]):focus {
  text-decoration: none;
  color: var(--color-black);
  outline: 3px solid transparent;
  background-color: var(--color-focus);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-black);
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6,
.heading {
  margin-bottom: var(--vertical-rhythm-spacing);
  font-family: var(--font-secondary);
}

h1,
.h1 {
  color: var(--heading-1-color);
  font-family: var(--font-heading-1);
  font-size: var(--font-size-h1);
  font-weight: var(--heading-1-font-weight);
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,.5);
}

h2,
.h2 {
  color: var(--heading-2-color);
  font-family: var(--font-heading-2);
  font-size: var(--font-size-h2);
  font-weight: var(--heading-2-font-weight);
  line-height: var(--heading-2-line-height);
}

.diy-footer h2::after,
.field--name-body h2::after,
.paragraph--type--text h2::after {
  border-bottom: 3px solid var(--color-pop);
  content: '';
  width: 50px;
  height: 4px;
  display: block;
  margin-bottom: 0.5rem;
}

h3,
.h3 {
  color: var(--heading-3-color);
  font-family: var(--font-heading-3);
  font-size: var(--font-size-h3);
  font-weight: var(--heading-3-font-weight);
  line-height: var(--heading-3-line-height);
}

h4,
.h4 {
  color: var(--heading-4-color);
  font-family: var(--font-heading-4);
  font-size: var(--font-size-h4);
  font-weight: bold;
  font-weight: var(--heading-4-font-weight);
  line-height: var(--heading-4-line-height);
}

h5,
.h5 {
  color: var(--heading-5-color);
  font-family: var(--font-heading-5);
  font-size: var(--font-size-h5);
  font-weight: var(--heading-5-font-weight);
  font-variant: small-caps;
  line-height: var(--heading-5-line-height);
}

h6,
.h6 {
  text-decoration: underline;
  color: var(--heading-6-color);
  font-family: var(--font-heading-6);
  font-size: var(--font-size-h6);
  font-weight: var(--heading-6-font-weight);
  font-variant: small-caps;
  line-height: var(--heading-6-line-height);
}

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

.paragraph--type--image img {
  width: 100%;
}

p,
ul,
ol,
pre,
table,
blockquote {
  margin-bottom: var(--vertical-rhythm-spacing);
}

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

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

sup {
  top: -0.5rem;
}

sub {
  bottom: -0.25rem;
}

table {
  width: 100%;
  text-align: left;
  border: 1px solid #3a418ee6;
  background-color: white;
}

div:has(table) {
  overflow-x:auto;
}

thead th {
  padding: var(--table-padding);
  background-color: var(--table-bg-color);
  color: white;
  font-weight: 500;
}

thead th a {
  color: white;
}

tbody td {
  padding: var(--table-padding);
}

tbody tr {
  border-bottom: var(--table-border);
}

tbody tr:nth-of-type(even) {
  background-color:#071b3b0f;
}

input,
select,
option,
textarea,
button {
  font-family: var(--font-primary);
}


.button--primary {
  display: inline-block;
  border: var(--border);
  border-radius: var(--border-radius);
  padding-block: var(--spacing-small);
  padding-inline: var(--spacing-larger);
  background-color: var(--color-accent);
  color: white;
}

blockquote {
  border-left: 6px solid var(--color-pop);
  padding: 1rem;
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: bold;
  max-width: 55ch;
  margin: 1rem 0;
}

@media screen and (min-width: 48rem) {
  blockquote {
    font-size: 1.4rem;
  }
}

blockquote:before {
  color: var(--color-pop);
  font-family: "Bitter", serif;
  content: "“";
  display: block;
  font-size: 5rem;
  font-weight: 900;
  height: 3rem;
  line-height: 4rem;
  margin-right: .5rem;
  text-align: center;
  width: 3rem;
  z-index: -1;
}
caption {
  border-left: 2px solid var(--color-pop);
  padding-left: 0.25em;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  text-align: left;
}

.field--name-field-teaser-summary,
.lede {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent);
}

@media screen and (min-width: 48rem) {
  .field--name-field-teaser-summary,
  .lede {
    font-size: 26px;
  }
}

.flex-row {
  display: flex;
  justify-content: space-between;
}

.copyright {
  padding: 1rem;
}

.path-user .diy-header {
  top: 65px;
}

.feed-icon {
  padding: 1rem 0;
  display: block;
}

table img {
  width: 300px;
}

.field--name-body p,
.field--name-body ol,
.field--name-body ul,
.field--type-text-long ol,
.field--type-text-long ul,
.field--type-text-long p{
  max-width: 90ch;
}

.diy-page-title-block__header_meta {
  background-color: var(--color-pop);
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 0.35rem;
  display: inline-block;
}

.menu--account {
  list-style: none;
  margin: 0;
  padding: 0;
}

summary {
  font-weight: 500;
  margin-bottom: 1rem;
}

iframe {
  bottom: 0;
  height: 100%;
  left: 0;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

p:has(iframe):after {
  content: "";
display: block;
padding-bottom: 56.25%;
}

@media screen and (min-width: 48rem) {
  .listing {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    padding-bottom: 3rem;
  }
}

.card--recommended {
  border: 1px solid var(--color-accent);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.card--recommended .score {
  margin-bottom: 0;
  margin-top: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 1rem;
  font-weight: bold;
}

.done-0 {
  background-color: var(--color-orange);
}

.done-100 {
  background-color: rgb(158, 232, 158);
}

body {
  background-color: var(--color-white);
}
