/* ========================================
   SHARED: desktop title + mobile header
   ======================================== */

.res-grammar__title,
.res-further__title,
.res-lowdown__title,
.res-vocab__title {
    padding-top: 49px;
    margin-bottom: 49px;
    padding-left: var(--padding-lateral);
}

.res-grammar__header-mobile,
.res-further__header-mobile,
.res-lowdown__header-mobile,
.res-vocab__header-mobile {
    display: none;
}

.res-grammar__search-input,
.res-lowdown__search-input {
    float: left;
    background: var(--color-background-light);
    border: none;
    color: var(--color-text-primary);
    width: 120px;
    font-size: var(--font-size-md);
    padding: 2px 5px;
    font-family: var(--font-body);
}

.res-grammar__section-title,
.res-lowdown__detail-title {
    width: fit-content;
    padding: 5px 15px;
    font-size: var(--font-size-lg);
    font-family: var(--font-family-regular);
}

.res-grammar__section-row--selected .res-grammar__section-title,
.res-lowdown__detail-title {
    background-color: var(--color-primary);
    color: var(--color-background-light);
    border-right: 1px solid var(--color-background-light);
    border-bottom: var(--color-primary) 1px solid;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.res-grammar__section-row,
.res-lowdown__detail-header,
.res-vocab__item-bar {
    height: 45px;
    line-height: 35px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

.res-grammar__section-row--selected,
.res-lowdown__detail-header,
.res-vocab__item-bar {
    background-color: var(--color-background-light);
}

/* ========================================
   BLOCK: res-grammar (Grammar Manual)
   ======================================== */

.res-grammar {
    width: calc(100vw - 88px);
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--color-text-primary);
}

.res-grammar__inner {
    margin-bottom: 130px;
}

/* --- Search bar --- */
.res-grammar__search {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--padding-lateral);
    padding-left: var(--padding-lateral);
}

.res-grammar__search-label {
    float: left;
    color: var(--color-text-primary);
    font-size: var(--font-size-md);
    font-family: var(--font-secondary-header);
    font-weight: bold;
    margin-right: 10px;
}

.res-grammar__search-btn {
    cursor: pointer;
    float: left;
}

.res-grammar__search-icon {
    background: transparent url('../../../../themes/simple/images/2026/LINK_ICON.png') no-repeat;
    background-size: 25px;
    width: 30px;
    height: 30px;
    margin-left: 5px;
}

/* --- Search results area --- */
.res-grammar__results {
    position: relative;
    overflow: hidden;
    padding-left: var(--padding-lateral);
}

.res-grammar__results-label {
    color: var(--color-text-primary);
    font-size: var(--font-size-xl);
    font-family: var(--font-secondary-header);
}

.res-grammar__results-label em {
    font-style: italic;
}

.res-grammar__results-list {
    margin-top: 26px;
    width: 90%;
    position: relative;
}

.res-grammar__results-close {
    color: var(--color-text-primary);
    font-size: 14px;
    font-family: var(--font-family-regular);
    margin-top: 20px;
    margin-left: 32px;
    margin-bottom: 49px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.res-grammar__results-close img {
    vertical-align: middle;
}

.res-grammar__results h4 {
    color: var(--color-text-primary);
    font-family: var(--font-secondary-header);
    font-size: var(--font-size-xl);
}

/* --- Summary / Sections --- */
.res-grammar__summary {
    padding-left: var(--padding-lateral);
    padding-right: var(--padding-lateral);
}

.res-grammar__section {
    width: 100%;
    position: relative;
    float: left;
    margin-bottom: 10px;
    color: var(--color-primary);
    cursor: pointer;
}

.res-grammar__section-trigger {
    float: right;
    cursor: pointer;
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Section content (expanded) --- */
.res-grammar__section-content {
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    clear: both;
}

.res-grammar__section-content p {
    font-family: var(--font-body);
    font-weight: var(--weight-body);
    font-size: var(--size-body);
    line-height: var(--line-height-body);
    letter-spacing: var(--letter-spacing-body);
    color: var(--color-text-primary);
}

.res-grammar__section-content table {
    background-color: var(--color-background-light) !important;
    border-collapse: collapse;
    text-align: center;
}

.res-grammar__section-content table,
.res-grammar__section-content th,
.res-grammar__section-content td {
    border: 1px solid var(--color-text-primary);
    min-width: 130px;
    padding: 5px !important;
}

.res-grammar__section-content td p {
    margin: 10px 15px !important;
}

.res-grammar__section-content td p span {
    font-size: var(--font-size-md) !important;
}

.res-grammar__section-content table tbody tr:first-child {
    background: var(--color-secondary);
    font-weight: 500;
}

/* --- Paragraphs --- */
.res-grammar__paragraph h5 {
    color: var(--color-text-primary);
    font-family: var(--font-family-regular);
    font-size: var(--font-size-xl);
    float: left;
}

.res-grammar__paragraph-content {
    margin-left: 35px;
    clear: both;
}

.res-grammar__paragraph-content h6 {
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-weight: 100;
    font-size: 17px;
    float: left;
}

.res-grammar__sub-content {
    margin: 40px 0 0 20px;
}

.res-grammar__paragraph-content .res-grammar__sub-content {
    margin-left: 40px;
    clear: both;
}

.res-grammar__sub-content table {
    background-color: var(--color-background-light) !important;
    border-collapse: collapse;
    text-align: center;
}

.res-grammar__sub-content table,
.res-grammar__sub-content th,
.res-grammar__sub-content td {
    border: 1px solid var(--color-text-primary);
    min-width: 130px;
}

.res-grammar__sub-content td p {
    margin: 10px 15px !important;
}

.res-grammar__sub-content td p span {
    font-size: var(--font-size-md) !important;
}

.res-grammar__sub-content table tbody tr:first-child {
    background: var(--color-secondary);
    font-weight: 500;
}

/* --- Section bottom dot + close --- */
.res-grammar__section-dot {
    width: 13px;
    height: 13px;
    border-radius: var(--border-radius-round);
    background: var(--color-primary);
    margin: -5px auto 10px;
    float: left;
    margin-left: var(--padding-lateral);
}

.res-grammar__section-close {
    width: 25px;
    height: 25px;
    display: block;
    background: transparent url('../../../../themes/simple/images/ics-icon.png') no-repeat -27px 0;
    cursor: pointer;
    float: right;
}

.res-grammar__section-close:hover {
    background-position: 0 0;
}

/* --- Mobile paragraph example --- */
.res-grammar__mobile-example {
    display: inline-block;
    margin-left: var(--spacing-sm);
}

.res-grammar__mobile-example img {
    cursor: pointer;
}

.res-grammar__mobile-popup {
    clear: both;
}

.res-grammar__mobile-popup-content {
    background: var(--color-background-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-sm) 0;
}

.res-grammar__mobile-popup-content strong {
    color: var(--color-primary);
    font-size: var(--font-size-md);
}

.res-grammar__mobile-popup-content p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   BLOCK: res-search (search result items)
   ======================================== */

.res-search__title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    cursor: pointer;
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
}

.res-search__title div {
    font-family: var(--font-body);
}

.res-search__title--open {
    background-color: var(--color-background-dark);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
}

.res-search__arrow {
    background: transparent url('../../../../themes/simple/images/2026/LINK_ICON.png') no-repeat;
    background-size: 16px;
    width: 16px;
    height: 18px;
    float: left;
    margin-top: 10px;
    margin-right: var(--spacing-sm);
}

.res-search__close {
    width: 25px;
    height: 25px;
    display: block;
    background: transparent url('../../../../themes/simple/images/ics-icon.png') no-repeat -27px 0;
    cursor: pointer;
    float: right;
}

.res-search__close:hover {
    background-position: 0 0;
}

/* ========================================
   BLOCK: res-example (example popups)
   ======================================== */

.res-example {
    float: left;
    position: relative;
}

.res-example a {
    cursor: pointer;
}

.res-example--paragraph {
    display: inline;
}

.res-example--paragraph img {
    margin-top: 17px;
}

.res-example--paragraph-fix img {
    margin-top: 0;
}

.res-example__popup {
    position: absolute;
    bottom: 23px;
    background: var(--color-background-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    z-index: 20;
    padding: var(--spacing-md);
    min-width: 200px;
    transition: 1s;
    box-shadow: var(--shadow-sm);
    right: 17px;
}

.res-example__popup strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.res-example__popup p {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}

.res-example__popup--right {
    position: absolute;
    bottom: 23px;
    background: var(--color-background-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    z-index: 20;
    padding: var(--spacing-md);
    min-width: 200px;
    transition: 1s;
    box-shadow: var(--shadow-sm);
    left: 17px;
}

.res-example__popup--right strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.res-example__popup--right p {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}

/* Vocab builder: IE container variants */
.res-example__ie-wrap {
    height: 26px;
    display: flex;
    align-items: center;
    margin-top: 12px;
    margin-left: 10px;
}

.res-example__ie-wrap--sub {
    margin-top: 6px;
}

.res-example__popup--under-right {
    background: var(--color-background-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    z-index: 20;
    padding: var(--spacing-md);
    min-width: 200px;
    max-width: 350px;
    transition: 1s;
    box-shadow: var(--shadow-sm);
    margin-top: 70px;
}

.res-example__popup--small {
    position: absolute;
    background: var(--color-background-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    z-index: 20;
    padding: var(--spacing-md);
    width: 200px;
    transition: 1s;
    box-shadow: var(--shadow-sm);
    top: 40px;
    left: -130px;
}

.res-example__popup--small-right {
    position: absolute;
    background: var(--color-background-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    z-index: 20;
    padding: var(--spacing-md);
    width: 200px;
    transition: 1s;
    box-shadow: var(--shadow-sm);
    top: 40px;
    left: -48px;
}

.res-example__popup--small-sub {
    position: absolute;
    background: var(--color-background-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    z-index: 20;
    padding: var(--spacing-md);
    width: 200px;
    transition: 1s;
    box-shadow: var(--shadow-sm);
    margin-left: 25px;
}

.res-example__popup--small-sub-left {
    position: absolute;
    background: var(--color-background-light);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    z-index: 20;
    padding: var(--spacing-md);
    width: 200px;
    transition: 1s;
    box-shadow: var(--shadow-sm);
    right: 24px;
}

@media screen and (max-width: 600px) {
    .res-example__popup {
        position: relative;
        min-width: 100%;
    }
}

@media screen and (max-width: 900px) {
    .res-example__popup--under-right {
        width: 260px;
    }
}

@media screen and (max-width: 750px) {
    .res-example__popup--under-right {
        position: absolute;
        margin-top: 82px;
        margin-left: -120px;
    }
}

/* ========================================
   BLOCK: res-further (Further Readings)
   ======================================== */

.res-further {
    font-family: var(--font-body);
    color: var(--color-text-primary);
}

.res-further__inner {
    margin-bottom: 130px;
}

.res-further__title {
    margin-bottom: 35px !important;
    min-width: 750px;
    padding-bottom: 0;
}

/* --- Filter bar --- */
.res-further__filter {
    padding-left: var(--padding-lateral);
}

.res-further__filter-arg {
    height: 23px;
    float: left;
    margin-top: 24px;
}

.res-further__filter-label {
    font-family: var(--font-family-regular);
    font-size: 13px;
    color: var(--color-text-muted);
    float: left;
    margin-top: 2px;
    margin-right: 7px;
    margin-bottom: 0;
}

.res-further__filter-box {
    height: 23px;
    background-color: var(--color-background-dark);
    float: left;
}

.res-further__filter-select {
    margin-left: 10px;
    line-height: 23px;
    color: var(--color-text-primary);
    font-size: 13px;
    height: 23px;
    width: 145px;
    border: 0;
    padding-left: 10px;
    font-family: var(--font-family-regular);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url('../../../../themes/simple/images/select_arrow.png') var(--color-background-light) no-repeat;
    background-position: right center;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
}

.res-further__filter-type {
    float: left;
    margin-left: 60px;
    margin-top: 24px;
    width: 600px;
}

.res-further__filter-type p {
    font-family: var(--font-family-regular);
    font-size: 13px;
    color: var(--color-text-muted);
    float: left;
    margin-top: 2px;
    margin-right: 7px;
    margin-bottom: 0;
}

.res-further__filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.res-further__filter-checkbox {
    float: left;
    margin-right: 25px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.res-further__filter-checkbox p {
    padding-top: 3px;
    color: var(--color-text-primary);
    margin: 0;
}

.res-further__filter-checkbox input {
    float: left;
    margin-top: 6px;
}

.res-further__filter-checkbox img {
    float: left;
    padding-top: 5px;
}

.res-further__filter-sort {
    float: left;
    clear: both;
    margin-top: 35px;
}

.res-further__filter-sort p {
    font-family: var(--font-family-regular);
    font-size: 13px;
    color: var(--color-text-muted);
    float: left;
    margin-top: 2px;
    margin-right: 7px;
    margin-bottom: 0;
}

.res-further__filter-hide {
    float: left;
    margin-top: 35px;
    margin-left: 40px;
}

.res-further__filter-hide p {
    font-family: var(--font-family-regular);
    font-size: 13px;
    color: var(--color-text-muted);
    float: left;
    margin-top: 2px;
    margin-right: 7px;
    margin-bottom: 0;
}

.res-further__filter-confirm {
    background: url('../../../../themes/simple/images/2026/CONFIRM.png') no-repeat;
    background-size: 25px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    float: left;
    margin-top: 35px;
    margin-left: 40px;
}

/* --- Readings list --- */
.res-further__list {
    float: left;
    min-width: 800px;
    padding-left: var(--padding-lateral);
}

.res-further__item-wrap {
    float: left;
    overflow: auto;
}

.res-further__item-wrap:last-child {
    margin-bottom: 100px;
}

.res-further__item {
    float: left;
    width: 385px;
    height: 165px;
    margin-top: 40px;
    position: relative;
    cursor: pointer;
}

.res-further__edge {
    background: var(--color-text-muted);
    width: var(--padding-lateral);
    height: var(--padding-lateral);
    float: left;
    margin-right: -6px;
    position: relative;
}

.res-further__edge--read {
    background: var(--color-primary);
}

.res-further__type-icon {
    width: 25px;
    height: 25px;
    position: absolute;
}

.res-further__type-icon--video {
    background: url('../../../../themes/simple/images/furtherVideoBig.png') no-repeat;
    left: 8px;
    top: 8px;
}

.res-further__type-icon--audio {
    background: url('../../../../themes/simple/images/furtherAudioBig.png') no-repeat;
    top: 10px;
    left: 9px;
}

.res-further__type-icon--link {
    background: url('../../../../themes/simple/images/furtherLinkBig.png') no-repeat;
    left: 9px;
    top: 9px;
}

.res-further__type-icon--text {
    background: url('../../../../themes/simple/images/furtherReadingBig.png') no-repeat;
    top: 9px;
    left: 12px;
}

.res-further__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--border-radius-round);
    background: var(--color-primary);
    margin: 5px auto;
}

.res-further__body {
    border-left: var(--color-primary) 6px solid;
    display: flex;
    flex-flow: column nowrap;
    height: 100%;
    background: var(--color-background-light);
    margin-right: 15px;
}

.res-further__body--unread {
    border-color: var(--color-text-muted);
}

.res-further__body div:last-child {
    color: var(--color-primary);
}

.res-further__body-title {
    font-family: var(--font-family-regular);
    font-size: 17px;
    color: var(--color-text-primary);
    margin-top: 5px;
    margin-left: 15px;
    float: left;
    cursor: pointer;
    max-width: 310px;
    transition: var(--transition-fast);
}

.res-further__item:hover .res-further__body-title {
    color: var(--color-primary);
}

.res-further__body-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-primary);
    margin-top: 5px;
    margin-left: 15px;
    float: left;
    cursor: pointer;
    max-width: 310px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-fast);
}

.res-further__item:hover .res-further__body-desc {
    color: var(--color-primary);
}

.res-further__body-status {
    position: absolute;
    bottom: 3px;
    left: 48px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-muted);
}

.res-further__link {
    text-decoration: none;
}

/* --- Further popup --- */
.res-further__popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 42, 38, 0.5);
    z-index: 9999;
}

.res-further__popup {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9999999;
    min-width: 800px;
    padding: 35px 140px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    background-color: var(--color-background-dark);
    max-height: 82vh;
    max-width: 85vw;
}

.res-further__popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 99;
}

.res-further__popup-title {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--size-primary-header);
    color: var(--color-primary);
}

.res-further__popup-subtitle {
    font-family: var(--font-secondary-header);
    font-weight: var(--weight-secondary-header);
    font-size: var(--font-size-xl);
    color: var(--color-text-primary);
}

.res-further__popup-text {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}

.res-further__popup video {
    width: 100%;
    height: 100%;
    min-width: 301px;
    max-width: 1250px;
}

.res-further__popup iframe {
    max-width: 100%;
}

.res-further__popup audio {
    margin-top: 30px;
    width: 100%;
}

/* --- Empty state --- */
.res-further__empty {
    clear: both;
    float: left;
    margin-top: 50px;
}

.res-further__empty p {
    font-size: 21px;
    font-family: var(--font-body);
    font-weight: 100;
    color: var(--color-text-muted);
}

/* ========================================
   BLOCK: res-lowdown (Local Lowdown)
   ======================================== */

.res-lowdown {
    background: var(--color-background-dark);
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--color-text-primary);
}

.res-lowdown__inner {
    margin-bottom: 130px;
}

/* --- Search (reuses grammar search look) --- */
.res-lowdown__search {
    margin-bottom: 0;
    padding-bottom: 49px;
    padding-left: var(--padding-lateral);
    position: relative;
    overflow: hidden;
}

.res-lowdown__search-label {
    float: left;
    color: var(--color-text-primary);
    font-size: var(--font-size-md);
    font-family: var(--font-secondary-header);
    font-weight: bold;
    margin-right: 10px;
}

.res-lowdown__search-btn {
    cursor: pointer;
    float: left;
}

.res-lowdown__search-btn img {
    width: 25px;
}

/* --- Card grid --- */
.res-lowdown__grid {
    padding-left: var(--padding-lateral);
    padding-right: var(--padding-lateral);
    display: flex;
    justify-content: flex-start;
    flex-flow: row wrap;
}

.res-lowdown__card {
    height: 20vh;
    width: 20vh;
    background: var(--color-background-light);
    font-size: var(--font-size-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    margin-right: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.res-lowdown__card:hover {
    background: var(--color-primary);
    color: var(--color-background-light);
}

.res-lowdown__card-letter {
    font-size: 10vh;
    font-family: var(--font-body);
    font-weight: 100;
    padding: 0;
    margin: 0 auto;
}

.res-lowdown__card:hover .res-lowdown__card-letter {
    color: var(--color-background-light);
}

.res-lowdown__card-name {
    text-align: center;
    text-transform: uppercase;
    height: 50px;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    font-size: 1.8vh;
}

/* --- Detail view --- */
.res-lowdown__detail {
    padding-left: var(--padding-lateral);
    padding-right: var(--padding-lateral);
    margin-bottom: -71px;
}

.res-lowdown__detail-close {
    width: 45px;
    height: 45px;
}

.res-lowdown__detail-content {
    margin: 40px 0 0 20px;
    padding-bottom: 50px;
    padding-right: 50px;
}

/* ========================================
   BLOCK: res-vocab (Vocab Builder / Slang)
   ======================================== */

.res-vocab {
    width: calc(100vw - 37px);
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--color-text-primary);
}

.res-vocab__inner {
    margin-bottom: 130px;
}

.res-vocab__container {
    width: 100%;
    min-width: 350px;
    padding-left: var(--padding-lateral);
    padding-right: var(--padding-lateral);
    overflow-y: scroll;
}

.res-vocab__list {
    float: left;
    width: 100%;
    min-width: 300px;
}

/* --- Single vocab item --- */
.res-vocab__item--active {
    margin-bottom: 5px;
    position: relative;
    margin-left: 58px;
    background-color: var(--color-background-dark);
    width: calc(100% - 58px - 37px);
    clear: both;
}

.res-vocab__item--inactive {
    margin-bottom: 5px;
    position: relative;
    margin-left: 58px;
    background-color: var(--color-background-dark);
    height: 30px;
    width: calc(100% - 58px - 37px);
    clear: both;
}

.res-vocab__item--inactive .res-vocab__item-bar {
    height: 30px;
}

.res-vocab__item-bar:hover {
    cursor: pointer;
}

.res-vocab__item-bar:hover .res-vocab__item-title {
    background: var(--color-primary);
    color: var(--color-background-light);
}

.res-vocab__item-title {
    cursor: pointer;
    clear: both;
    height: 100%;
    margin: 0;
    padding: 0;
    float: left;
    width: 50px;
    text-align: center;
    font-weight: bold;
    transition: var(--transition-fast);
}

.res-vocab__item-title--active {
    background: var(--color-primary);
    color: var(--color-background-light);
    font-size: 30px;
    font-family: var(--font-family-regular);
    line-height: 50px;
}

.res-vocab__item-title--inactive {
    background: transparent;
    color: var(--color-primary);
    font-size: var(--font-size-lg);
    line-height: 30px;
    font-family: var(--font-family-regular);
}

.res-vocab__item-title--inactive:hover {
    background: var(--color-primary);
    color: var(--color-background-light);
}

.res-vocab__item-arrow {
    height: 30px;
    width: 30px;
}

.row-item__toggle--open.res-vocab__item-arrow {
    height: 45px;
    width: 45px;
}

/* --- Item content (expanded) --- */
.res-vocab__item-content {
    background: var(--color-background-light);
    padding: var(--spacing-lg);
    clear: both;
    position: relative;
    margin-bottom: 50px;
}

.res-vocab__item-content p {
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-family: var(--font-body);
}

/* --- Sidebar (letter navigation) --- */
.res-vocab__sidebar {
    width: 31px;
    border-right: 1px solid var(--color-primary);
    position: fixed;
    top: 150px;
}

.res-vocab__sidebar-letter {
    float: left;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.res-vocab__sidebar-letter:hover {
    background-color: var(--color-background-darker);
}

.res-vocab__sidebar-letter--active {
    background: var(--color-primary);
}

.res-vocab__sidebar-letter--active h4 {
    color: var(--color-background-light);
}

.res-vocab__sidebar-letter h4 {
    font-size: 12px;
    margin: 6px 0 5px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 860px) {
    .res-grammar__title,
    .res-further__title,
    .res-lowdown__title,
    .res-vocab__title {
        display: none;
    }

    .res-grammar__header-mobile,
    .res-further__header-mobile,
    .res-lowdown__header-mobile,
    .res-vocab__header-mobile {
        display: flex;
        align-items: center;
        min-height: 50px;
        line-height: 50px;
        padding: 0 0 10px 0;
        justify-content: flex-start;
        margin-top: 0;
        margin-bottom: 0;
    }

    .res-grammar__back-btn,
    .res-further__back-btn,
    .res-lowdown__back-btn,
    .res-vocab__back-btn {
        width: 42px;
        height: 50px;
        background: url('../../../../themes/simple/images/Mobile/arrowLeftBlack.png') no-repeat center;
        border-right: 1px solid var(--color-border);
        flex-basis: 18%;
        flex-shrink: 0;
    }

    .res-grammar__header-title,
    .res-further__header-title,
    .res-lowdown__header-title,
    .res-vocab__header-title {
        font-size: var(--font-size-lg);
        font-family: var(--font-secondary-header);
        color: var(--color-text-primary);
        margin: 0 0 0 16px !important;
        padding: 0 !important;
    }

    .res-grammar {
        width: 100%;
    }

    .res-further__list {
        min-width: auto;
        padding-left: var(--spacing-md);
    }

    .res-further__item {
        width: 100%;
        height: auto;
        min-height: 120px;
    }

    .res-further__popup {
        min-width: auto;
        width: 90vw;
        padding: var(--spacing-lg);
    }

    .res-further__popup video {
        min-width: auto;
        max-width: 100%;
        height: auto;
    }

    .res-lowdown__card {
        height: 15vh;
        width: 15vh;
    }

    .res-vocab__container {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .res-vocab__item--active,
    .res-vocab__item--inactive {
        margin-left: 0;
        width: 100%;
    }

    .res-vocab__sidebar {
        display: none;
    }
}

@media screen and (min-height: 895px) and (max-height: 917px) {
    .res-vocab__sidebar-letter h4 {
        font-size: 11px;
    }
}

@media screen and (min-height: 865px) and (max-height: 894px) {
    .res-vocab__sidebar-letter h4 {
        font-size: 10px;
    }
}
