:root {
    --hmh-font-heading: "Manrope", sans-serif;
    --hmh-font-subhead: "Manrope", sans-serif;
    --hmh-font-body: "Inter", sans-serif;

    /* Requested size scale */
    --hmh-font-size-large: 1.5rem;
    --hmh-font-size-medium: 1rem;
    --hmh-font-size-small: 0.9125rem;

    /* Optional color override for accordion headings/icons. */
    --hmh-accent-color: currentColor;

    --header-size: var(--hmh-font-size-large);
    --header-font-weight: 600;
    --header-font-height: 1;
    --header-font-spacing: 0;

    --subhead-size: var(--hmh-font-size-small);
    --subhead-font-weight: 700;
    --subhead-font-spacing: 0.3em;
    --subhead-font-height: 1.25rem;
    --subhead-font-case: uppercase;
    
    --accordion-text-font-size: var(--hmh-font-size-medium);
    --accordion-text-font-weight: 400;
    --accordion-text-line-height: 1.5;

    --spacing: 1rem;
    --accordion-item-padding-y: 2rem;
}

/* Careers accordion */

.accordion-title {
    font-size: var(--header-size);
    font-family: var(--hmh-font-heading);
    font-weight: var(--header-font-weight);
    line-height: var(--header-font-height);
    letter-spacing: var(--header-font-spacing);
    color: var(--hmh-accent-color);
    margin: 0;
}

.accordion-emp-length {
    font-size: var(--subhead-size);
    font-family: var(--hmh-font-subhead);
    font-weight: var(--subhead-font-weight);
    line-height: var(--subhead-font-height);
    letter-spacing: var(--subhead-font-spacing);
    text-transform: var(--subhead-font-case);
    margin: 0;
}

.accordion-content {
    font-size: var(--accordion-text-font-size);
    font-family: var(--hmh-font-body);
    font-weight: var(--accordion-text-font-weight);
    line-height: var(--accordion-text-line-height);

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 0 0 calc(var(--spacing) * 2);
    color: #1B1B1B;
}

.accordion-item {
    padding: 0 0 var(--accordion-item-padding-y) 0;
}

.accordion-item:last-of-type {
    border-bottom: 1px solid #000;
}

.accordion-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--accordion-item-padding-y) 0 0 0;
    border-top: 1px solid #000;
    cursor: pointer;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.accordion-header .acc-text {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: var(--spacing);
}

.accordion-content ul {
    list-style: none;
    padding-left: 1.2em;
}

.accordion-content ul li {
    position: relative;
}

.accordion-content ul li::before {
    content: "▪";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5em;
    line-height: 1;
}

.accordion-content.acc-open {
    /* JS sets max-height inline */
    padding-top: var(--spacing);
}

.accordion-static-text {
    padding-top: var(--spacing);
}

.accordion-static-text a {
    color: inherit;
    border-bottom: 1px solid currentColor;
}

.accordion-static-text a:hover {
    border-bottom: none;
}

.accordion-icon {
    color: var(--hmh-accent-color);
    transition: transform 200ms ease;
    transform-origin: 50% 50%;
    cursor: pointer;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .accordion-content,
    .accordion-icon {
        transition: none;
    }
}
