/* YS-115: shared, team-neutral atmosphere. Functional status colors stay separate. */
.ys-site .ys-global-header {
    border-bottom: 2px solid var(--ys-accent-decorative);
    background: var(--ys-paper);
}
.ys-site .ys-global-menu a:hover {
    text-decoration: underline;
    text-decoration-color: var(--ys-accent-decorative);
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
}
.ys-site a.ys-shell-button {
    box-shadow: inset 0 -3px 0 var(--ys-brand-hover);
}
.ys-site .ys-global-footer {
    background: var(--ys-surface);
    border-top: 3px solid var(--ys-accent-decorative);
    padding-bottom: 32px;
}

/* The familiar spreading-cheer mark is the single expressive motif. */
.ys-site .ys-home-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ys-surface-warm);
    border-radius: 4px;
    padding: 48px 40px;
    margin-block: 16px 12px;
    gap: 32px 48px;
}
.ys-site .ys-home-intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 300px;
    height: 300px;
    left: 27%;
    bottom: -86px;
    background: url('symbol.svg') center / contain no-repeat;
    opacity: .09;
}
.ys-site .ys-home-intro h1 { color: var(--ys-brand-hover); }
.ys-site .ys-home .ys-section-heading {
    border-top: 0;
    padding-top: 12px;
    position: relative;
}
.ys-site .ys-home .ys-section-heading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--ys-accent-decorative);
}
.ys-site .ys-project-card {
    border-top: 3px solid var(--ys-accent-decorative);
    background: var(--ys-paper);
}
.ys-site .ys-project-card .ys-project-kind {
    display: inline-block;
    padding: 3px 8px;
    background: var(--ys-surface);
    border-radius: 2px;
}
.ys-site .ys-project-bottom {
    background: var(--ys-surface-soft);
    margin: 0 -24px -24px;
    padding: 16px 24px;
}
.ys-site .ys-project-card:hover,.ys-site .ys-project-card:focus-visible {
    border-color: var(--ys-brand);
}
.ys-site .ys-home-guide {
    background: var(--ys-surface-soft);
    border: 0;
    padding: 32px;
    margin-bottom: 28px;
}
.ys-site .ys-guide-steps>li::before {
    color: var(--ys-paper);
    background: var(--ys-brand);
    border-color: var(--ys-brand);
}
.ys-site .ys-home-faq details[open] {
    border-bottom-color: var(--ys-brand);
}
.ys-site .ys-home-faq details[open]>summary { color: var(--ys-brand-hover); }
.ys-site .ys-home-sellers {
    border-top: 3px solid var(--ys-accent-decorative);
    padding-top: 32px;
}

/* Common public, account and seller screens keep the same visual language. */
.ys-site .yellship>h1,.ys-site .yellship .ys-heading>h1 {
    border-inline-start: 4px solid var(--ys-accent-decorative);
    padding-inline-start: 16px;
}
.ys-site .yellship .ys-team-profile {
    background: var(--ys-surface-warm);
    padding: 24px;
    border-top: 3px solid var(--ys-accent-decorative);
}
.ys-site .yellship .ys-team-service-title {
    border-bottom: 1px solid var(--ys-divider-decorative);
    padding-bottom: 12px;
}
.ys-site .yellship .bm-card-body {
    background: var(--ys-surface-soft);
}
.ys-site .yellship :is(.bm-detail,.ys-cf-hero,.ys-cm-detail)>.bm-panel {
    border-top: 3px solid var(--ys-accent-decorative);
    background: var(--ys-surface-soft);
}
.ys-site .yellship .ys-home-identity {
    background: var(--ys-surface-warm);
    border-top: 3px solid var(--ys-accent-decorative);
    padding: 20px;
}
.ys-site .yellship .ys-home-services {
    background: var(--ys-surface-soft);
    padding: 0 20px;
    border-top: 3px solid var(--ys-accent-decorative);
}
.ys-site .yellship .ys-home-services a:last-child { border-bottom: 0; }
.ys-site .yellship .ys-home-settings {
    background: var(--ys-surface-soft);
    padding: 24px;
}
.ys-site .yellship .ys-history-nav a[aria-current] {
    background: var(--ys-surface);
    box-shadow: 8px 0 var(--ys-surface), -8px 0 var(--ys-surface);
}
.ys-site .yellship .ys-payment-summary {
    background: var(--ys-surface-soft);
    border-top: 3px solid var(--ys-accent-decorative);
    padding: 16px;
}
@media (min-width:641px) and (max-width:999px) {
    .ys-site .ys-project-bottom { margin: 0 -16px -16px; padding: 16px; }
}
@media (max-width:640px) {
    .ys-site .ys-home-intro { padding: 28px 20px; gap: 24px; }
    .ys-site .ys-home-intro::before { width: 220px; height: 220px; left: auto; right: -72px; top: -26px; bottom: auto; opacity: .07; }
    .ys-site .ys-project-bottom { margin: 0 -16px -16px; padding: 12px 16px; }
    .ys-site .ys-home-guide { padding: 24px 16px; }
    .ys-site .yellship .ys-team-profile { padding: 16px; }
    .ys-site .yellship .ys-home-identity { padding: 16px; }
    .ys-site .yellship .ys-home-settings { padding: 16px; }
}
@media (max-width:359px) {
    .ys-site .ys-home-intro { padding-inline: 16px; }
}

/* YS-187: merchandise first. Restrict the stronger hierarchy to buyer surfaces. */
.ys-site :is(.ys-home,.ys-auction-view,.ys-fan,.ys-contact,.ys-global-header){--ys-brand:#254e70;--ys-brand-hover:#1c3e5b}
.ys-site .ys-global-header{border-bottom:1px solid var(--ys-line);padding-block:14px}
.ys-site .ys-global-footer{border-top:1px solid var(--ys-line);background:#f5f7f8}
.ys-site .ys-site-main{padding-top:20px}
.ys-site :is(.ys-auction-view,.ys-fan,.ys-contact)>h1{border:0;padding:0;font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.4;margin:20px 0 16px;letter-spacing:-.025em}
.ys-site :is(.ys-auction-view,.ys-fan,.ys-contact)>h1::before{display:none}
.ys-site .yellship:is(.ys-auction-view,.ys-fan) .ys-preview,.ys-site .ys-home>.ys-preview{padding:8px 12px;margin:0 0 16px;font-size:.75rem;line-height:1.55;border-left-width:2px;gap:4px 12px}
.ys-site .ys-home-intro{background:white;padding:32px 0 36px;border:0;gap:40px}
.ys-site .ys-home-intro::before{display:none}
.ys-site .ys-home-intro h1{color:var(--ys-ink);font-size:clamp(2rem,3.7vw,3.25rem);line-height:1.25;letter-spacing:-.04em}
.ys-site .ys-home-intro-copy>p:first-child{font-size:1.125rem;font-weight:600}
.ys-site .ys-home-intro .ys-home-offers{font-size:.9375rem;line-height:1.8;color:var(--ys-muted)}
.ys-site a.ys-shell-button{box-shadow:none;background:var(--ys-brand)}
.ys-site .ys-home-section{margin-top:16px;padding-block:20px}
.ys-site .ys-home .ys-section-heading::before{display:none}
.ys-site .ys-section-heading{border:0;align-items:center;margin-bottom:20px}
.ys-site .ys-section-heading h2{margin:0;font-weight:700}
.ys-site .ys-project-grid{gap:28px}
.ys-site .ys-project-card{padding:0;border:0;border-radius:0;background:white;overflow:hidden}
.ys-site .ys-project-heading{display:flex;flex-direction:column;gap:16px}
.ys-site .ys-project-image{width:100%;aspect-ratio:16/10;border-radius:8px;background:#f5f7f8}
.ys-site .ys-project-copy{width:100%}
.ys-site .ys-project-copy h3{font-size:1.25rem;font-weight:700;line-height:1.5;margin:4px 0 8px}
.ys-site .ys-project-stats{padding:12px 0 16px}
.ys-site .ys-project-bottom{margin:0;padding:16px 0;background:white;border-top:1px solid var(--ys-line)}
.ys-site .ys-project-action{background:var(--ys-brand);color:white;text-decoration:none;padding:10px 18px;border-radius:5px;font-weight:600}
.ys-site .ys-home-guide{background:#f5f7f8;border:0;border-radius:8px;padding:28px}
.ys-site .ys-directory-team{background:white}

/* A photograph and a price are the two anchors of a catalogue card. */
.ys-site .ys-auction-view .bm-grid{gap:24px;margin-block:24px}
.ys-site .ys-auction-view .bm-card{border:0;border-radius:0;overflow:visible;background:white}
.ys-site .ys-auction-view .bm-card:hover{border:0}
.ys-site .ys-auction-view .bm-card:hover :is(h2,h3){text-decoration:underline;text-underline-offset:4px}
.ys-site .ys-auction-view .bm-card>:is(img,svg,.bm-placeholder){aspect-ratio:4/3;border-radius:8px;background:#f5f7f8;object-fit:contain}
.ys-site .ys-auction-view .bm-card .bm-card-body{padding:16px 0 8px;gap:6px}
.ys-site .ys-auction-view .bm-card :is(h2,h3){margin:2px 0 8px;font-size:1.125rem;font-weight:600;line-height:1.5}
.ys-site .ys-auction-view .bm-card .ys-card-price{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:2px 0 8px}
.ys-site .ys-auction-view .bm-card [data-bm-price]{font-size:1.75rem;font-weight:700;line-height:1.25;color:var(--ys-ink);letter-spacing:-.035em}
.ys-site .ys-auction-view .bm-card [data-bm-price-label]{font-size:.75rem;color:var(--ys-muted)}
.ys-site .ys-auction-view .bm-card :is(.ys-card-deadline,.ys-card-bids){font-size:.75rem;color:var(--ys-muted)}
.ys-site .ys-auction-view .bm-card .bm-badge{padding:2px 8px;font-size:.6875rem;border-radius:3px}
.ys-site .ys-auction-view .ys-event-filters{padding:16px 20px;border:0;background:#f5f7f8;border-radius:8px}
.ys-site .ys-auction-view .ys-event-meta{align-items:center;gap:16px;margin-bottom:20px}
.ys-site .ys-auction-view .ys-event-hero{background:#f5f7f8;border-radius:8px;overflow:hidden}
.ys-site .ys-auction-view .ys-team-profile{border:0;border-radius:8px;background:#f5f7f8}

/* Purchase panel stays visually connected to its product, without framing every paragraph. */
.ys-site .ys-lot-view .ys-lot-team{margin:0 0 20px;font-size:.875rem}
.ys-site .ys-lot-view .bm-detail{gap:32px}
.ys-site .ys-lot-view .bm-detail>.bm-panel{background:white;border:0;border-top:3px solid var(--ys-brand);border-radius:0;padding:20px 0 0}
.ys-site .ys-lot-view .bm-gallery :is(img,.ys-art){background:#f5f7f8;border-radius:8px;aspect-ratio:4/3;object-fit:contain}
.ys-site .ys-lot-view .ys-gallery-main{border-radius:8px;overflow:hidden}
.ys-site .ys-lot-view .bm-price{font-size:clamp(2.25rem,4vw,3rem);line-height:1.2;color:var(--ys-ink);letter-spacing:-.045em;margin:4px 0 10px}
.ys-site .ys-lot-view [data-bm-price-label]{font-size:.8125rem;color:var(--ys-muted);margin:12px 0 0}
.ys-site .ys-lot-view .bm-panel>p{font-size:.875rem;margin:8px 0;line-height:1.65}
.ys-site .ys-lot-view .ys-price-shipping{display:inline-block;background:#f5f7f8;border-radius:3px;padding:3px 8px;font-size:.75rem}
.ys-site .ys-lot-view .ys-own-bid{padding:8px 12px;border:0;font-size:.8125rem;background:var(--ys-success-surface);color:var(--ys-success)}
.ys-site .ys-lot-view .bm-panel h3{font-size:1.125rem;margin:20px 0 8px}
.ys-site .ys-lot-view .ys-bid-form{margin:16px 0 24px;gap:12px}
.ys-site .ys-lot-view .ys-bid-form input[name=amount]{font-size:1.5rem;font-weight:600;height:60px;border:1px solid var(--ys-brand);background:#f5f7f8}
.ys-site .ys-lot-view .ys-bid-form>.bm-check{font-size:.8125rem;line-height:1.65;padding-block:4px}
.ys-site .ys-lot-view .ys-bid-form>p{font-size:.75rem;color:var(--ys-muted);line-height:1.65;margin:0}
.ys-site .ys-lot-view .ys-bid-form>ul{display:flex;flex-wrap:wrap;gap:4px 16px;list-style:none;padding:0;margin:0;font-size:.75rem}
.ys-site .ys-lot-view .ys-bid-form>ul a{display:inline-flex;min-height:44px;align-items:center}
.ys-site .ys-lot-view .ys-purchase-conditions{border-block:1px solid var(--ys-line);margin:12px 0;font-size:.8125rem;line-height:1.7}
.ys-site .ys-lot-view .ys-purchase-conditions>summary{min-height:48px;padding:12px 0;font-weight:600;cursor:pointer}
.ys-site .ys-lot-view .ys-purchase-conditions [data-ys-bid-summary]>h3{display:none}
.ys-site .ys-lot-view .ys-purchase-conditions dd{margin:4px 0 16px}
.ys-site .ys-lot-view :is(.ys-bid-form>button,[data-ys-participation] .bm-button,.ys-bid-success .bm-button){width:100%;min-height:54px;border-radius:5px;font-weight:700}
.ys-site .ys-lot-view :is(.ys-bid-terms,.ys-bid-shipping,.ys-delivery-terms,.ys-lot-rules){font-size:.8125rem;line-height:1.7}
.ys-site .ys-lot-view .ys-lot-description{border-top:1px solid var(--ys-line);padding-top:8px}
.ys-site .ys-lot-view .ys-lot-description h2{font-size:1.25rem}
.ys-site .ys-lot-view .ys-lot-description p{font-size:.9375rem;line-height:1.9}
.ys-site .ys-lot-view .ys-bid-success{padding:16px;background:var(--ys-success-surface);border:0;border-radius:6px}
.ys-site .ys-lot-view .ys-bid-success p{font-size:.875rem;line-height:1.7;margin:0 0 10px}

/* Account: purchases first, compact supporting navigation, recognizable merchandise. */
.ys-site .ys-fan .ys-home-identity{padding:0 0 16px;border:0;background:white}
.ys-site .ys-fan .ys-home-quick{gap:8px;margin-bottom:24px}
.ys-site .ys-fan .ys-home-quick>a{padding:8px 12px;min-height:44px;font-size:.8125rem}
.ys-site .ys-fan .ys-home-quick .ys-home-pending-link{background:var(--ys-brand);border-color:var(--ys-brand);color:white}
.ys-site .ys-fan .ys-home-quick.has-pending .ys-home-ticket-link{background:white;color:var(--ys-brand)}
.ys-site .ys-fan .ys-home-attention{padding:20px;background:#f5f7f8;border:0;border-radius:8px}
.ys-site .ys-fan .ys-home-list li{padding:16px 0}
.ys-site .ys-fan .ys-home-list h3{margin:6px 0 8px;font-size:1rem;line-height:1.5}
.ys-site .ys-fan .ys-home-list p{margin:4px 0;font-size:.8125rem}
.ys-site .ys-fan .ys-home-attention .ys-home-action{display:inline-flex;justify-content:center;min-height:44px;padding:8px 14px;background:var(--ys-brand);color:white;border-radius:5px;text-decoration:none;font-size:.875rem;font-weight:600}
.ys-site .ys-fan .ys-home-list .ys-bid-product{display:grid;grid-template-columns:112px minmax(0,1fr);gap:8px 20px;align-items:start}
.ys-site .ys-fan .ys-bid-product-image{grid-row:1 / span 2;background:#f5f7f8;border-radius:6px;overflow:hidden}
.ys-site .ys-fan .ys-bid-product-image :is(img,svg,.bm-placeholder){width:100%;height:auto;aspect-ratio:1;object-fit:contain;display:block}
.ys-site .ys-fan .ys-bid-product>.ys-home-action{grid-column:2;font-size:.8125rem;min-height:44px;display:inline-flex;align-items:center}
.ys-site .ys-fan .ys-bid-comparison{gap:4px 12px;margin:10px 0}
.ys-site .ys-fan .ys-bid-comparison dd{font-size:1.125rem;font-weight:700}
.ys-site .ys-fan .ys-home-services{border:0;padding:0 16px;background:#f5f7f8;border-radius:8px}
.ys-site .ys-fan .ys-home-settings{background:#f5f7f8;border-radius:8px;padding:20px}
.ys-site .ys-fan .ys-home-tickets{margin-top:28px}
.ys-site .ys-fan .ys-fan-payment{max-width:920px;margin-inline:auto;border:1px solid var(--ys-line);border-radius:10px;padding:28px;background:white}
.ys-site .ys-fan .ys-payment-product{display:grid;grid-template-columns:160px minmax(0,1fr);gap:24px;align-items:center;padding-bottom:24px;margin-bottom:20px;border-bottom:1px solid var(--ys-line)}
.ys-site .ys-fan .ys-payment-product-image{background:#f5f7f8;border-radius:6px;overflow:hidden}
.ys-site .ys-fan .ys-payment-product-image :is(img,svg,.bm-placeholder){width:100%;height:auto;aspect-ratio:1;object-fit:contain;display:block}
.ys-site .ys-fan .ys-payment-product h2{margin:0 0 12px;font-size:1.25rem;font-weight:600;line-height:1.5}
.ys-site .ys-fan .ys-payment-amount{display:grid;gap:4px;margin:0}
.ys-site .ys-fan .ys-payment-amount span{font-size:.8125rem;color:var(--ys-muted)}
.ys-site .ys-fan .ys-payment-amount strong{font-size:2rem;letter-spacing:-.03em;line-height:1.25}
.ys-site .ys-fan .ys-payment-summary{padding:16px 20px;border:0;border-radius:6px;background:#f5f7f8}
.ys-site .ys-fan .ys-payment-state{border-radius:6px;padding:16px 20px}
.ys-site .ys-fan .ys-fan-payment .bm-form{padding:16px 0;border:0}
.ys-site .ys-fan .ys-fan-payment button[type=submit]{min-height:54px;font-weight:700}
.ys-site .ys-fan .ys-history-notices{background:#f5f7f8;border:0;border-radius:6px;margin-top:24px;padding:14px 20px}
.ys-site .ys-fan .ys-history-row{padding:20px 0}
.ys-site .ys-fan .ys-history-amount{font-size:1.25rem;font-weight:700}

@media(min-width:1024px){
 .ys-site .ys-lot-view .bm-detail{grid-template-columns:minmax(0,1.2fr) minmax(360px,1fr)!important;column-gap:48px}
 .ys-site .ys-lot-view .ys-detail-enhanced>.ys-lot-description{grid-column:1/-1;grid-row:3;max-width:780px}
 .ys-site .ys-lot-view .ys-detail-enhanced>.bm-panel{grid-row:1 / span 2}
}
@media(max-width:640px){
 .ys-site .ys-global-header{padding-block:10px}
 .ys-site .ys-global-header .ys-logo{width:146px}
 .ys-site .ys-site-main{padding-top:14px}
 .ys-site .ys-home-intro{padding:16px 0 24px;gap:16px}
 .ys-site .ys-home-intro h1{font-size:2rem}
 .ys-site .ys-home-section{margin-top:24px}
 .ys-site .ys-home-guide{padding:20px 16px}
 .ys-site .ys-project-grid{gap:28px}
 .ys-site .ys-project-heading{gap:12px}
 .ys-site .ys-project-copy h3{font-size:1.125rem}
 .ys-site .ys-project-bottom{margin:0;padding:12px 0}
 .ys-site .ys-project-stats{padding:8px 0 12px}
 .ys-site .ys-auction-view .bm-grid:has(.ys-lot-card){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 12px}
 .ys-site .ys-auction-view .ys-lot-card .bm-card-body{padding:10px 0 0;gap:4px}
 .ys-site .ys-auction-view .ys-lot-card h3{font-size:.875rem;line-height:1.55;margin:2px 0 4px}
 .ys-site .ys-auction-view .ys-lot-card [data-bm-price]{font-size:1.25rem}
 .ys-site .ys-auction-view .ys-lot-card .bm-countdown{font-size:.75rem}
 .ys-site .ys-auction-view .ys-lot-card .ys-card-deadline{font-size:.6875rem}
 .ys-site .ys-lot-view .bm-detail{gap:20px}
 .ys-site .ys-lot-view .bm-price{font-size:2.5rem}
 .ys-site .ys-lot-view .ys-lot-description{margin-top:4px}
 .ys-site .ys-fan .ys-home-attention{padding:16px}
 .ys-site .ys-fan .ys-home-list .ys-bid-product{grid-template-columns:88px minmax(0,1fr);gap:6px 12px}
 .ys-site .ys-fan .ys-bid-comparison{grid-template-columns:1fr;gap:2px}
 .ys-site .ys-fan .ys-bid-comparison dt{font-size:.75rem}
 .ys-site .ys-fan .ys-bid-comparison dd{margin:0 0 4px}
 .ys-site .ys-fan .ys-fan-payment{border:0;padding:0;border-radius:0}
 .ys-site .ys-fan .ys-payment-product{grid-template-columns:96px minmax(0,1fr);gap:16px;padding-bottom:20px}
 .ys-site .ys-fan .ys-payment-product h2{font-size:1rem;margin-bottom:10px}
 .ys-site .ys-fan .ys-payment-amount strong{font-size:1.625rem}
 .ys-site .ys-fan .ys-payment-summary{padding:14px 16px}
}