/* Tokyo Escort Comparison v4 — quick matrix above agency cards, mobile-first */

.escmp {
    --escmp-accent: #791507;
    --escmp-ink: #332b30;
    --escmp-border: #eadcde;
    --escmp-muted: #65595e;
    box-sizing: border-box;
    color: var(--escmp-ink);
    background: #fff;
    margin: 44px auto 52px;
    max-width: 980px;
    border: 1px solid var(--escmp-border);
    border-radius: 12px;
    overflow: clip;
    box-shadow: 0 8px 32px rgba(40, 5, 10, .04);
}

.escmp * {
    box-sizing: border-box;
}

.escmp__head {
    padding: 24px 24px 20px;
    /* background: linear-gradient(135deg, #fff9f7, #fff); */
    border-bottom: 1px solid var(--escmp-border);
}

.escmp__kicker {
    font-size: 12px;
    letter-spacing: .13em;
    font-weight: 700;
    color: var(--escmp-accent);
    margin: 0 0 8px !important;
}

.escmp h3 {
    /* font-family: inherit; */
    color: #381e25;
    font-size: clamp(23px,3vw,32px);
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -.015em;
    font-family: tsukuMin, serif;
}

.escmp__head > p:not(.escmp__kicker) {
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 10px;
    color: #413b3e;
}

.escmp__head .escmp__disclosure {
    color: var(--escmp-muted) !important;
    font-size: 12px !important;
}

.escmp__quick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 17px;
}

.escmp__quick a {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #d7b8bd;
    background: #fff;
    color: var(--escmp-accent);
    border-radius: 22px;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

.escmp__quick a:hover,
.escmp__quick a:focus-visible {
    color: #fff;
    background: var(--escmp-accent);
    outline-offset: 2px;
}


/* Overview matrix */

.escmp__overview {
    padding: 24px 20px 28px;
    border-bottom: 1px solid var(--escmp-border);
    scroll-margin-top: 24px;
}

.escmp__overview h4,
.escmp__group h4 {
    font-size: 21px;
    line-height: 1.35;
    margin: 0 0 8px;
    color: #371e24;
    font-family: tsukuMin, serif;
}

.escmp__overview-lead {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px;
    color: #4e4145;
}

.escmp__overview-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 1px solid #e3d3d5;
    border-radius: 9px;
    outline-offset: 3px;
    -webkit-overflow-scrolling: touch;
}

.escmp__overview-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
    font-size: 13px;
    line-height: 1.55;
}

.escmp__overview-table th,
.escmp__overview-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    border-right: 1px solid #ecdfe0;
    border-bottom: 1px solid #ecdfe0;
    overflow-wrap: break-word;
}

.escmp__overview-table tr > *:last-child {
    border-right: 0;
}

.escmp__overview-table tbody tr:last-child > * {
    border-bottom: 0;
}

.escmp__overview-table thead th {
    color: #ffffff;
    background: #2d2d2d;
    font-weight: 700;
    white-space: normal;
}

.escmp__overview-table thead th:nth-child(1) {
    width: 25%;
}

.escmp__overview-table thead th:nth-child(2) {
    width: 21%;
}

.escmp__overview-table thead th:nth-child(3) {
    width: 34%;
}

.escmp__overview-table thead th:nth-child(4) {
    width: 20%;
}

.escmp__overview-table .escmp__hint {
    display: block;
    font-weight: 400;
    font-size: 10px;
    color: #ffffff;
}

.escmp__overview-table .escmp__overview-group th {
    color: #ffffff;
    background: #747474;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .015em;
    padding: 9px 13px;
    border-right: 0;
    border-bottom: 1px solid #dfc5cc;
}

.escmp__overview-row th {
    font-weight: 700;
    background: #fff;
    line-height: 1.55;
}

.escmp__overview-row:nth-of-type(even) td,
.escmp__overview-row:nth-of-type(even) th {
    /* background: #fffafa; */
}

.escmp__overview-row--own td, .escmp__overview-row--own th {
    /* background: #fff0ed!important; */
}

.escmp__overview-row:hover td,
.escmp__overview-row:hover th {
    background: #fdf0f0 !important;
}

.escmp__jump-link {
    color: #77182a;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    font-weight: 800;
}

.escmp__jump-link:hover,
.escmp__jump-link:focus-visible {
    color: #bf193e;
    outline-offset: 3px;
}

.escmp__jump-link::after {
    content: '  ↓';
    font-size: 12px;
}

.escmp__mini-own {
    display: block;
    font-size: 10px;
    color: #791507;
    font-weight: 700;
    margin-top: 2px;
}

.escmp__overview-fee strong {
    font-size: 15px;
    color: #631726;
    font-weight: 800;
}

.escmp__overview-schedule strong {
    font-size: 16px;
    color: #441c28;
    font-weight: 800;
}

.escmp__overview-table small {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    color: #706166;
    margin-top: 3px;
    font-weight: 400;
}

.escmp__overview-note {
    font-size: 11px;
    line-height: 1.65;
    margin: 11px 0 0;
    color: #5e5357;
}

.escmp__swipe-hint {
    display: none;
    font-size: 12px;
    color: #6e2332;
    margin: 0 0 8px;
    font-weight: 700;
}

.escmp__unknown {
    color: #766a6d;
    font-weight: 700;
}


/* Provider details below overview */

.escmp__group {
    padding: 24px 20px 26px;
    scroll-margin-top: 24px;
}

.escmp__group + .escmp__group {
    border-top: 1px solid var(--escmp-border);
}

.escmp__group-note {
    font-size: 12px;
    line-height: 1.6;
    color: var(--escmp-muted);
    margin: 0 0 16px;
}

.escmp__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.escmp__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #7d7d7d;
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(55, 11, 22, .035);
    scroll-margin-top: 24px;
}

.escmp__card:target {
    outline: 1px solid #737373;
    /* outline-offset: 2px; */
    box-shadow: 0 0 0 6px rgba(121,21,7,.09);
}

.escmp__card-head {
    background: #f7f7f7;
    padding: 15px 16px 13px;
    border-bottom: 1px solid #e0e0e0;
}

.escmp__card--own .escmp__card-head {
    background: #f8f8f8;
}

.escmp__card-head h5 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 6px;
    font-weight: 800;
    color: #501b2b;
}

.escmp__card-head h5 a {
    color: #2e2d2d;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-family: tsukuMin, serif;
}

.escmp__card-tagline {
    font-size: 12px;
    color: #69575d;
    line-height: 1.5;
    margin: 7px 0 0;
}

.escmp__own {
    display: inline-block;
    background: #791507;
    color: #fff;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 700;
    margin: 0;
}

.escmp__card-body {
    display: flex;
    flex-direction: column;
    padding: 3px 16px 6px;
}

.escmp__field {
    padding: 7px 0 7px;
    border-bottom: 1px solid #f0e5e7;
    min-width: 0;
    line-height: 1.35;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.escmp__field:last-child {
    border-bottom: 0;
}

.escmp__field h6 {
    color: #736166;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 4px;
}

.escmp__field-value {
    color: #42363b;
    font-size: 13px;
}

.escmp__field-value small {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    color: #695b60;
    margin-top: 4px;
}

.escmp__field--price .escmp__price {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    color: #69172c;
}

.escmp__selection {
    display: grid;
    gap: 3px;
    font-size: 13px;
}

.escmp__selection strong {
    color: #39232a;
}

.escmp__roster {
    font-size: 19px;
}

.escmp__field details {
    margin-top: 7px;
    font-size: 12px;
}

.escmp__field summary {
    cursor: pointer;
    color: #741a30;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.escmp__field details p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.6;
}

.escmp__back {
    display: block;
    margin-top: auto;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #585858;
    background: #f7f7f7;
    border-top: 1px solid #eddfe2;
    text-decoration: none;
    text-align: right;
}

.escmp__back:hover {
    background: #f9e8eb;
}

.escmp__foot {
    background: #f9f4f4;
    border-top: 1px solid var(--escmp-border);
    padding: 18px 24px;
    font-size: 12px;
    line-height: 1.7;
    color: #555;
}

.escmp__foot strong {
    font-size: 13px;
    color: #351d23;
}

.escmp__foot p {
    margin: 7px 0 0;
}


@media (max-width: 820px) {

    .escmp {
        margin: 28px 0 38px;
        border-radius: 10px;
    }

    .escmp__head {
        padding: 19px 15px;
    }

    .escmp__overview {
        padding: 19px 12px 23px;
    }

    .escmp__group {
        padding: 19px 12px 22px;
    }

    .escmp__cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .escmp__overview-table {
        min-width: 680px;
        font-size: 12px;
    }

    .escmp__overview-table th,
    .escmp__overview-table td {
        padding: 11px 10px;
    }

    .escmp__overview-table thead th:first-child,
    .escmp__overview-row th {
        position: sticky;
        left: 0;
        z-index: 1;
        box-shadow: 2px 0 6px rgba(32, 10, 19, .06);
    }

    .escmp__overview-table thead th:first-child {
        z-index: 2;
    }

    .escmp__swipe-hint {
        display: block;
    }

}


@media (prefers-reduced-motion: reduce) {

    .escmp * {
        scroll-behavior: auto !important;
        transition: none !important;
    }

}