.xref-page{--xr-line:#d8d4c8;--xr-paper:#faf9f6;--xr-ink:#25251f;background:var(--xr-paper);color:var(--xr-ink);max-width:1190px;margin:0 auto;padding:clamp(25px,4vw,56px) clamp(18px,4vw,54px) clamp(32px,4.5vw,60px);box-sizing:border-box}.xref-page *{box-sizing:border-box}
body #wrapper .xref-page h1,body #wrapper .xref-page h2{color:var(--xr-ink);font-family:Georgia,'Times New Roman',serif;font-weight:400;text-transform:none;text-align:left}.xref-page h1{font-size:clamp(42px,5vw,68px)!important;line-height:1.08!important;letter-spacing:-.04em!important;border-bottom:1px solid var(--xr-line);margin:0!important;padding:0 0 .44em}.xref-page h2{font-size:clamp(25px,2.5vw,35px)!important;line-height:1.16!important;letter-spacing:-.02em!important;margin:27px 0 16px!important}.xref-grid{display:grid;background:#fff;border-top:1px solid var(--xr-line);border-left:1px solid var(--xr-line)}.xref-lead{grid-template-columns:repeat(3,minmax(0,1fr))}.xref-houses{grid-template-columns:repeat(auto-fit,minmax(0,1fr));border-top:0}.xref-guides{grid-template-columns:repeat(4,minmax(0,1fr))}.xref-guides-section{margin-top:42px}.xref-card{display:flex!important;align-items:center;justify-content:center;min-width:0;padding:12px;border:0;border-right:1px solid var(--xr-line);border-bottom:1px solid var(--xr-line);background:#fff;box-shadow:none!important;line-height:1!important}.xref-card:hover{background:#f0eee7}.xref-card:focus-visible,.xref-about-link a:focus-visible{outline:2px solid #886b32;outline-offset:-3px}.xref-card img{display:block;max-width:88%;height:auto;max-height:58px;object-fit:contain;margin:0!important;box-shadow:none!important}.xref-lead a{height:118px}.xref-houses a{height:93px}.xref-guides a{height:78px}.xref-card.xref-lux{background:#21231f}.xref-lux:hover{background:#353831}.xref-about-link{margin:32px auto 18px;text-align:center}.xref-about-link a{display:inline-block;text-decoration:underline;text-underline-offset:4px}
@media(max-width:660px){.xref-lead a{height:72px}.xref-card{padding:8px}.xref-houses{grid-template-columns:repeat(2,minmax(0,1fr))}.xref-houses a{height:68px}.xref-houses a:last-child:nth-child(odd){grid-column:1/-1}.xref-guides{grid-template-columns:repeat(2,minmax(0,1fr))}.xref-guides a{height:62px}.xref-guides-section{margin-top:30px}.xref-card img{max-height:40px}.xref-guides img{max-height:32px}.xref-page h2{margin:21px 0 13px!important}}

/* Keep the references headings legible over their light page background. */
html body #wrapper #main .xref-page :is(h1,h2),
html body #wrapper #main .xref-page :is(h1,h2) .el-motion-word {
    color: #25251f !important;
    -webkit-text-fill-color: #25251f !important;
}
/* Use each brand's field across the entire clickable tile. */
.xref-card.xref-vip { --xref-brand-field: #282824; }
.xref-card.xref-berkeley { --xref-brand-field: #1e342c; }

.xref-page .xref-card:is(.xref-vip, .xref-berkeley) {
    background-color: var(--xref-brand-field);
    padding: 4px 8px;
}
.xref-page .xref-card:is(.xref-vip, .xref-berkeley) img {
    box-sizing: border-box;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 0;
    background: transparent;
}
/* The Berkeley artwork includes a green safety margin inside its image file. */
.xref-page .xref-berkeley { overflow: hidden; }
.xref-page .xref-berkeley img { transform: scale(1.16); }
.xref-page .xref-houses .xref-card { height: 108px; }
@media (max-width: 660px) {
    .xref-page .xref-houses .xref-card { height: 84px; }
    .xref-page .xref-card:is(.xref-vip, .xref-berkeley) { padding: 3px 6px; }
}

/* Keep compact marks in proportion when the desktop gallery has a short final row. */
@media (min-width: 960px) {
    .xref-page > section:first-of-type {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .xref-page > section:first-of-type > :is(h2, .xref-lead) { grid-column: 1 / -1; }
    .xref-page > section:first-of-type > .xref-houses { display: contents; }
    .xref-page > section:first-of-type > .xref-houses > .xref-card {
        border-inline-start: 1px solid var(--xr-line);
        margin-inline-start: -1px;
    }
}

/* Size each guide by the visible part of its mark, including stacked logos. */
.xref-page .xref-guides .xref-card {
    height: 94px;
    padding: 8px 14px;
    background-color: #fff;
}
.xref-page .xref-guides .xref-card img {
    width: min(100%, var(--xref-guide-width, 162px));
    height: auto;
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}
.xref-guides .xref-ref-041 { --xref-guide-width: 177px; }
.xref-guides .xref-ref-007 { --xref-guide-width: 152px; }
.xref-guides .xref-ref-001,
.xref-guides .xref-ref-030 { --xref-guide-width: 174px; }
.xref-guides .xref-ref-009 { --xref-guide-width: 177px; }
.xref-guides .xref-ref-031 { --xref-guide-width: 120px; }
.xref-guides .xref-ref-032 { --xref-guide-width: 148px; }
@media (hover: hover) {
    .xref-page .xref-guides .xref-card:hover {
        outline: 1px solid #968767;
        outline-offset: -2px;
    }
}
@media (max-width: 660px) {
    .xref-page .xref-guides .xref-card { height: 76px; padding: 7px 10px; }
    .xref-page .xref-guides .xref-card img { max-height: 55px; }
}
