
/* =========================================================
   THINK ABOUT BOOKS — CANONICAL HEADER
   ========================================================= */

.tab-canonical-header {
    position: relative;
    z-index: 10000;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #edf1f4;
}

.tab-canonical-header__inner {
    width: min(calc(100% - 48px), 1840px);
    margin: 0 auto;
    min-height: 104px;

    display: grid;
    grid-template-columns: 270px minmax(650px, 1fr) minmax(400px, 500px);
    align-items: center;
    gap: 26px;

    overflow: visible;
}


/* LOGO */

.tab-canonical-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.tab-canonical-logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.tab-canonical-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(20px, 1.65vw, 34px);

    height: 104px;

    overflow: visible;
}

.tab-canonical-nav > a,
.tab-canonical-nav > .tab-mega-parent > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    height: 104px;

    padding: 0;

    color: #071b3b;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
}

.tab-canonical-nav > a:hover,
.tab-canonical-nav > a:focus,
.tab-canonical-nav
.tab-mega-parent:hover
> .tab-mega-trigger,
.tab-canonical-nav
.tab-mega-parent:focus-within
> .tab-mega-trigger {
    color: #348ca8;
}

.tab-canonical-nav .tab-mega-trigger {
    color: #348ca8;
}

.tab-canonical-nav .tab-mega-chevron {
    display: inline-block;

    font-size: 12px;
    line-height: 1;

    transform: translateY(-1px);
}


/* Books parent must remain part of hover bridge */

.tab-canonical-nav .tab-mega-parent {
    position: static;
    height: 104px;

    display: flex;
    align-items: center;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.tab-canonical-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 17px;
}


/* SEARCH */

.tab-canonical-search {
    width: min(100%, 400px);
    height: 48px;

    display: flex;
    align-items: stretch;

    margin: 0;

    background: #fff;

    border: 1px solid #dce7ec;
    border-radius: 12px;

    overflow: hidden;
}

.tab-canonical-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 46px;

    margin: 0 !important;
    padding: 0 17px !important;

    border: 0 !important;
    border-radius: 0 !important;

    outline: 0 !important;
    box-shadow: none !important;

    background: transparent !important;

    color: #071b3b;
    font-size: 14px;
    font-weight: 400;
}

.tab-canonical-search
input[type="search"]::placeholder {
    color: #788797;
    opacity: 1;
}

.tab-canonical-search button {
    flex: 0 0 58px;

    width: 58px;
    height: 48px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0 !important;
    border-radius: 0 !important;

    background: #348ca8 !important;
    color: #fff !important;

    font-size: 17px;

    cursor: pointer;
}


/* =========================================================
   ACCOUNT ICON
   ========================================================= */

.tab-canonical-account {
    position: relative;

    display: block;

    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    border: 2px solid #071b3b;
    border-radius: 50%;

    text-decoration: none;
}

.tab-canonical-account__head {
    position: absolute;

    width: 9px;
    height: 9px;

    left: 50%;
    top: 8px;

    transform: translateX(-50%);

    border: 2px solid #071b3b;
    border-radius: 50%;
}

.tab-canonical-account__body {
    position: absolute;

    width: 19px;
    height: 10px;

    left: 50%;
    bottom: 7px;

    transform: translateX(-50%);

    border: 2px solid #071b3b;
    border-bottom: 0;

    border-radius: 12px 12px 0 0;
}


/* =========================================================
   CART ICON
   ========================================================= */

.tab-canonical-cart {
    position: relative;

    display: block;

    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    text-decoration: none;
}

.tab-canonical-cart__basket {
    position: absolute;

    width: 27px;
    height: 21px;

    left: 5px;
    top: 12px;

    border: 2px solid #071b3b;
    border-top: 0;

    transform: skew(-5deg);
}

.tab-canonical-cart__basket::before {
    content: "";

    position: absolute;

    width: 10px;
    height: 2px;

    left: -6px;
    top: -6px;

    background: #071b3b;
}

.tab-canonical-cart__basket::after {
    content: "••";

    position: absolute;

    left: 3px;
    bottom: -11px;

    color: #071b3b;

    font-size: 13px;
    letter-spacing: 7px;
    line-height: 1;
}

.tab-canonical-cart__count {
    position: absolute;

    right: -3px;
    top: -5px;

    min-width: 23px;
    height: 23px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #348ca8;
    color: #fff;

    border-radius: 50%;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   MEGA MENU TYPOGRAPHY
   HEADINGS = BOLD
   ITEMS = REGULAR
   ========================================================= */

.tab-canonical-header
.tab-mega-menu
.tab-mega-heading,

.tab-canonical-header
.tab-mega-menu
.tab-mega-feature__label {
    font-weight: 700 !important;
}

.tab-canonical-header
.tab-mega-menu
.tab-mega-column
a:not(.tab-mega-heading) {
    font-weight: 400 !important;
}


/* Preserve current mega menu visibility */

@media (min-width: 1101px) {

    .tab-canonical-header,
    .tab-canonical-header__inner,
    .tab-canonical-nav,
    .tab-canonical-nav .tab-mega-parent {
        overflow: visible !important;
    }

    .tab-canonical-header {
        position: relative;
        z-index: 10000;
    }

    .tab-canonical-header__inner {
        position: relative;
    }

    .tab-canonical-nav {
        position: static;
    }

    .tab-canonical-nav
    .tab-mega-parent {
        position: static !important;
    }

    .tab-canonical-nav
    .tab-mega-menu {
        z-index: 9999 !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

.tab-canonical-mobile-toggle,
.tab-canonical-mobile-menu {
    display: none;
}


@media (max-width: 1450px) {

    .tab-canonical-header__inner {
        grid-template-columns:
            220px
            minmax(590px, 1fr)
            minmax(330px, 400px);

        gap: 18px;
    }

    .tab-canonical-logo img {
        width: 190px;
    }

    .tab-canonical-nav {
        gap: 18px;
    }

    .tab-canonical-nav > a,
    .tab-canonical-nav > .tab-mega-parent > a {
        font-size: 14px;
    }

    .tab-canonical-actions {
        gap: 12px;
    }
}


@media (max-width: 1100px) {

    .tab-canonical-header__inner {
        width: min(calc(100% - 32px), 100%);
        min-height: 82px;

        display: flex;
        justify-content: space-between;

        gap: 18px;
    }

    .tab-canonical-logo img {
        width: 170px;
    }

    .tab-canonical-nav {
        display: none;
    }

    .tab-canonical-search {
        display: none;
    }

    .tab-canonical-actions {
        margin-left: auto;
    }

    .tab-canonical-mobile-toggle {
        width: 42px;
        height: 42px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 5px;

        padding: 0;

        background: transparent;
        border: 0;

        cursor: pointer;
    }

    .tab-canonical-mobile-toggle span {
        display: block;

        width: 23px;
        height: 2px;

        background: #071b3b;
    }

    .tab-canonical-mobile-menu {
        display: none;

        padding: 10px 20px 22px;

        background: #fff;

        border-top: 1px solid #edf1f4;
    }

    .tab-canonical-mobile-menu.is-open {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 0 22px;
    }

    .tab-canonical-mobile-menu a {
        padding: 13px 0;

        color: #071b3b;
        text-decoration: none;

        border-bottom: 1px solid #edf1f4;

        font-size: 15px;
        font-weight: 500;
    }
}


@media (max-width: 600px) {

    .tab-canonical-header__inner {
        width: calc(100% - 24px);
        min-height: 72px;
    }

    .tab-canonical-logo img {
        width: 145px;
    }

    .tab-canonical-account,
    .tab-canonical-cart {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .tab-canonical-mobile-menu.is-open {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   TAB DISCOVERY RESULTS
   ========================================================= */

.tab-discovery-results {
    width: min(calc(100% - 48px), 1440px);
    margin: 0 auto;
    padding: 64px 0 90px;
}

.tab-discovery-results__header {
    margin-bottom: 42px;
    text-align: center;
}

.tab-discovery-results__eyebrow {
    margin: 0 0 8px;

    color: #348ca8;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.tab-discovery-results__header h1 {
    margin: 0;

    color: #071b3b;

    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
}

.tab-discovery-results__count {
    margin: 12px 0 0;

    color: #71808f;

    font-size: 14px;
}

.tab-discovery-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 36px 24px;
}

.tab-discovery-card {
    min-width: 0;
}

.tab-discovery-card__image {
    display: block;

    aspect-ratio: 2 / 3;

    margin-bottom: 14px;

    background: #f6f8fa;

    overflow: hidden;
}

.tab-discovery-card__image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.tab-discovery-card__body {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.tab-discovery-card__title {
    color: #071b3b;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;

    text-decoration: none;
}

.tab-discovery-card__author {
    color: #71808f;

    font-size: 13px;
}

.tab-discovery-card__price {
    color: #1686a5;

    font-size: 15px;
    font-weight: 700;
}

.tab-discovery-pagination {
    margin-top: 50px;
}

.tab-discovery-pagination ul {
    display: flex;
    justify-content: center;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.tab-discovery-pagination a,
.tab-discovery-pagination span {
    min-width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce7ec;
    border-radius: 8px;

    text-decoration: none;
}

.tab-discovery-empty {
    padding: 70px 20px;
    text-align: center;
}

@media (max-width:1200px) {

    .tab-discovery-grid {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }
}

@media (max-width:750px) {

    .tab-discovery-results {
        width: calc(100% - 28px);
        padding-top: 40px;
    }

    .tab-discovery-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 28px 16px;
    }
}



/* =========================================================
   THINK ABOUT BOOKS — AUTHORS DIRECTORY
   ========================================================= */

.tab-authors-directory {
    width: min(calc(100% - 48px), 1440px);
    margin: 0 auto;
    padding: 58px 0 100px;
}


/* HERO */

.tab-authors-hero {
    max-width: 760px;
    margin: 0 auto 58px;
    text-align: center;
}

.tab-authors-eyebrow {
    margin: 0 0 10px;

    color: #348ca8;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .13em;
    text-transform: uppercase;
}

.tab-authors-hero h1 {
    margin: 0;

    color: #071b3b;

    font-size: clamp(38px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.05;
}

.tab-authors-hero > p:not(.tab-authors-eyebrow) {
    max-width: 590px;

    margin: 16px auto 0;

    color: #687887;

    font-size: 17px;
    line-height: 1.6;
}


/* SEARCH */

.tab-authors-search {
    position: relative;

    max-width: 620px;

    margin: 32px auto 0;
}

.tab-authors-search::before {
    content: "⌕";

    position: absolute;

    left: 21px;
    top: 50%;

    transform: translateY(-50%);

    color: #78909c;

    font-size: 23px;

    pointer-events: none;
}

#tab-author-search {
    width: 100%;
    height: 58px;

    padding: 0 24px 0 54px;

    border: 1px solid #d9e4e9;
    border-radius: 14px;

    background: #fff;

    color: #071b3b;

    font-size: 16px;

    outline: none;

    box-shadow:
        0 7px 25px
        rgba(7,27,59,.045);

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

#tab-author-search:focus {
    border-color: #59c9dd;

    box-shadow:
        0 8px 30px
        rgba(52,140,168,.12);
}


/* SECTION HEADINGS */

.tab-authors-featured,
.tab-authors-all {
    margin-top: 58px;
}

.tab-authors-featured h2,
.tab-authors-all h2 {
    margin: 0;

    color: #071b3b;

    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}


/* FEATURED */

.tab-authors-featured-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0,1fr));

    gap: 12px;

    margin-top: 24px;
}

.tab-author-chip {
    min-height: 54px;

    display: flex;
    align-items: center;

    padding: 13px 17px;

    border: 1px solid #e0e9ed;
    border-radius: 11px;

    background: #fff;

    color: #172f4c;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;

    text-decoration: none;

    transition:
        transform .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        color .15s ease;
}

.tab-author-chip:hover {
    transform: translateY(-2px);

    border-color: #9edce8;

    color: #1686a5;

    box-shadow:
        0 8px 22px
        rgba(7,27,59,.07);
}


/* ALL AUTHORS HEADER */

.tab-authors-all-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    padding-bottom: 20px;

    border-bottom: 1px solid #e3eaee;
}


/* A-Z */

.tab-authors-letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    gap: 4px;
}

.tab-authors-letters a {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    color: #607485;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease;
}

.tab-authors-letters a:hover {
    background: #eaf7fa;

    color: #1686a5;
}


/* LETTER GROUP */

.tab-author-letter-group {
    display: grid;

    grid-template-columns:
        75px 1fr;

    gap: 25px;

    padding: 31px 0;

    border-bottom: 1px solid #edf1f3;

    scroll-margin-top: 150px;
}

.tab-author-letter-group h3 {
    margin: 0;

    color: #59c9dd;

    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}


/* AUTHOR NAMES */

.tab-author-name-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 10px 28px;
}

.tab-author-name {
    padding: 4px 0;

    color: #263d56;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;

    text-decoration: none;

    transition:
        color .15s ease,
        transform .15s ease;
}

.tab-author-name:hover {
    color: #1686a5;

    transform: translateX(3px);
}


/* TABLET */

@media (max-width:1100px) {

    .tab-authors-featured-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

    .tab-author-name-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

    .tab-authors-all-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tab-authors-letters {
        justify-content: flex-start;
    }
}


/* MOBILE */

@media (max-width:700px) {

    .tab-authors-directory {
        width: calc(100% - 28px);

        padding:
            38px 0
            70px;
    }

    .tab-authors-hero {
        margin-bottom: 42px;
    }

    .tab-authors-featured-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .tab-author-letter-group {
        grid-template-columns: 42px 1fr;

        gap: 14px;
    }

    .tab-author-letter-group h3 {
        font-size: 29px;
    }

    .tab-author-name-grid {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .tab-authors-letters a {
        width: 28px;
        height: 28px;
    }
}



/* =========================================================
   TAB AUTHORS DIRECTORY V2
   Featured + Tabbed A-Z
   ========================================================= */

.tab-authors-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;

    margin-bottom: 24px;
}

.tab-authors-section-heading p,
.tab-authors-small-label {
    margin: 0 0 5px;

    color: #348ca8;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.tab-authors-section-heading span {
    max-width: 360px;

    color: #71808f;

    font-size: 13px;
    line-height: 1.5;

    text-align: right;
}


/* SEARCH BUTTON */

.tab-authors-search {
    display: flex;
}

.tab-authors-search input {
    flex: 1;

    border-radius:
        14px 0 0 14px !important;
}

.tab-authors-search button {
    min-width: 105px;

    border: 0;
    border-radius:
        0 14px 14px 0;

    background: #1686a5;

    color: #fff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}


/* SMALLER FEATURED CARDS */

.tab-authors-featured-grid {
    gap: 10px !important;
}

.tab-author-chip {
    min-height: 48px !important;

    justify-content: space-between;

    padding:
        10px 15px !important;
}

.tab-author-chip-arrow {
    color: #59c9dd;

    font-size: 16px;

    opacity: 0;

    transform: translateX(-5px);

    transition:
        opacity .15s ease,
        transform .15s ease;
}

.tab-author-chip:hover
.tab-author-chip-arrow {
    opacity: 1;

    transform: translateX(0);
}


/* DIRECTORY */

.tab-authors-browser {
    margin-top: 64px;
}

.tab-authors-browser-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 25px;

    margin-bottom: 22px;
}

.tab-authors-browser-title h2 {
    margin: 0;

    color: #071b3b;

    font-size: 28px;
    font-weight: 700;
}


/* ALPHABET */

.tab-authors-tabs {
    display: grid;

    grid-template-columns:
        repeat(27, minmax(30px,1fr));

    gap: 4px;

    padding:
        11px;

    border:
        1px solid #e1e9ed;

    border-radius: 13px;

    background: #f9fbfc;
}

.tab-authors-tabs a,
.tab-authors-tabs span {
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #52697b;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}

.tab-authors-tabs a:hover {
    background: #eaf7fa;

    color: #1686a5;
}

.tab-authors-tabs .is-active {
    background: #1686a5;

    color: #fff;

    box-shadow:
        0 5px 15px
        rgba(22,134,165,.18);
}

.tab-authors-tabs .is-disabled {
    color: #c3cdd2;

    cursor: default;
}


/* ONE LETTER PANEL */

.tab-authors-letter-panel {
    display: grid;

    grid-template-columns:
        85px 1fr;

    gap: 28px;

    margin-top: 28px;

    padding: 32px 0;

    border-top: 1px solid #edf1f3;
}

.tab-authors-letter-mark {
    color: #59c9dd;

    font-size: 52px;
    font-weight: 700;
    line-height: 1;
}

.tab-author-tab-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 8px 30px;
}

.tab-author-tab-grid a {
    display: block;

    padding: 7px 0;

    color: #263d56;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;

    text-decoration: none;

    transition:
        color .15s ease,
        transform .15s ease;
}

.tab-author-tab-grid a:hover {
    color: #1686a5;

    transform: translateX(3px);
}


/* CLEAR SEARCH */

.tab-authors-clear-search {
    padding: 9px 14px;

    border: 1px solid #dce7eb;
    border-radius: 8px;

    color: #52697b;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}


/* EMPTY */

.tab-authors-empty {
    padding: 45px 20px;

    color: #71808f;

    text-align: center;
}

.tab-authors-empty h3 {
    margin: 0 0 7px;

    color: #071b3b;

    font-size: 21px;
}


/* TABLET */

@media (max-width:1100px) {

    .tab-authors-tabs {
        display: flex;
        flex-wrap: wrap;
    }

    .tab-authors-tabs a,
    .tab-authors-tabs span {
        width: 38px;
    }

    .tab-author-tab-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }
}


/* MOBILE */

@media (max-width:700px) {

    .tab-authors-section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

    .tab-authors-section-heading span {
        text-align: left;
    }

    .tab-authors-search button {
        min-width: 82px;
    }

    .tab-authors-letter-panel {
        grid-template-columns:
            42px 1fr;

        gap: 14px;
    }

    .tab-authors-letter-mark {
        font-size: 34px;
    }

    .tab-author-tab-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 7px 18px;
    }
}

@media (max-width:450px) {

    .tab-author-tab-grid {
        grid-template-columns: 1fr;
    }
}

