h1 {
    text-align: left;
}

h2 {
    margin-top: var(--header-margin-top);
    text-align: left;
}

#main:not(:has(#blog-wrapper)) ul:first-of-type {
    padding-left: 0;
    list-style: none;
}

#main:not(:has(#blog-wrapper)) ul:first-of-type li::marker {
    color: var(--color-list);
}

#main > p {
    margin-bottom: 16px;
}

#main p,
#main li {
    color: var(--color-paragraph);
    letter-spacing: var(--letter-spacing);
    font-weight: var(--font-weight-medium);
    text-align: justify;
}

#main p {
    line-height: var(--line-height);
}

#main > div {
    margin: 0;
    margin-top: var(--header-margin-top);
}

.intro-wrapper ul > li {
    position: relative;
    font-weight: var(--font-weight-medium);
    margin-bottom: 8px;
    padding-left: 30px;
    color: var(--color-paragraph);
}

.intro-wrapper ul > li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    width: 20px;
    height: 20px;
    background-image: url('../img/icons/check-mi.svg');
    background-size: cover;
    background-repeat: no-repeat;
}

.intro-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.intro-content {
    width: 55%;
}

.intro-content > p {
    font-size: var(--font-size--basic);
    font-weight: var(--font-weight-medium);
    color: var(--color-paragraph);
    letter-spacing: var(--letter-spacing);
    line-height: var(--line-height);
    text-align: justify;
    margin-bottom: 24px;
}

.intro-content > p a {
    text-decoration: none;
    display: inline-block;
}

.intro-content > p a:hover {
    text-decoration: none;
    color: var(--color-link-hover);
}

.intro-wrapper > p:has(img) {
    border-radius: 16px;
    padding: 24px;
    background: #8b667445;
    height: fit-content;
    width: 40%;
    box-shadow: var(--box-shadow);
}

.intro-wrapper > p img {
    width: 100%;
    height: auto;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
}

#main > ul:last-of-type {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 24px;
    gap: 8px;
}

#main > ul:last-of-type > li {
    display: flex;
    justify-content: start;
    position: relative;
    width: 100%;
    min-width: 300px;
    border: 1px solid var(--color-light-grey);
    border-radius: 24px;
    background: var(--color-white);
    padding: 16px 24px;
    gap: 8px;
    align-items: center;
}

#main > ul:last-of-type > li > p:first-of-type {
    position: absolute;
    top: 20px;
    left: 100px;
    font-weight: var(--font-weight-bold);
    font-size: 20px;
    color: var(--color-header);
}

#main > ul:last-of-type > li > p:nth-child(2) {
    position: absolute;
    top: 45px;
    left: 100px;
}

#main > ul:last-of-type > li > p:has(a) {
    display: inline-block;
    width: 70%;
    padding: 8px 12px;
    background: var(--color-secondary);
    border-radius: var(--btn-border-radius);
    text-align: center;
}

#main > ul:last-of-type > li > p:has(a) a {
    color: var(--color-white);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

#main > ul:last-of-type > li > p:has(img) {
    padding: 12px;
    border-radius: 50%;
    background-color: #ebe8ea;
    text-align: center;
    width: max-content;
    height: max-content;
    line-height: 1px;
    box-sizing: content-box;
}

#main > ul:last-of-type > li > p:nth-of-type(3):has(img) img {
    order: -1;
    width: 32px;
    height: 32px;
}

#main > ul:last-of-type > li > p:has(img):last-of-type {
    display: inline-block;
    padding: 0;
    margin-left: auto;
    background: #ebe8ea5c;
    cursor: pointer;
}

#main > ul:last-of-type > li > p:has(img):last-of-type a {
    display: inline-block;
    padding: 12px;
}

#main > ul:last-of-type > li > p:has(img):last-of-type:hover {
    background: #ebe8ea;
}

table {
    width: 100%;
    table-layout: auto;
}

thead {
    position: absolute;
    visibility: hidden;
    left: -1px;
}

thead th, tbody td {
    padding: 4px 16px;
    text-align: left;
}

tbody td:first-child, thead th:first-child {
  white-space: nowrap;
  width: 1px;
}

tbody td, tbody td a {
    letter-spacing: var(--letter-spacing);
    font-size: var(--font-size-normal);
    color: var(--color-paragraph);
    font-weight: var(--font-weight-medium);
}

tbody td a {
    color: var(--color-link);
    font-weight: var(--font-weight-bold);
}

tbody td a:hover {
    text-decoration: none;
    color: var(--color-link-hover);
}

#main > div.safe-wrapper {
    position: relative;
    padding: 24px;
    padding-left: 72px;
    background: #ebe8ea;
    border-radius: 24px;
}

.safe-wrapper p:has(img) {
    position: absolute;
    top: 24px;
    height: 40px;
    left: 20px;
}

.safe-wrapper h2 {
    margin-top: 0;
}

@media screen and (max-width: 800px) {
    .intro-wrapper > p:has(img) {
        display: none;
    }

    .intro-content {
        width: 100%;
    }
}

@media screen and (max-width: 550px) {
    #main > ul:last-of-type > li {
        padding: 16px;
    }

    #main > ul:last-of-type > li > p:nth-of-type(3):has(img) {
        display: none;
    }

    #main > ul:last-of-type > li > p:first-of-type {
        top: 16px;
        font-size: var(--font-size--basic);
    }

    #main > ul:last-of-type > li > p:nth-child(2) {
        top: 40px;
        font-size: 14px;
    }

    #main > ul:last-of-type > li > p:first-of-type,
    #main > ul:last-of-type > li > p:nth-child(2) {
        left: 24px;
    }
}