:root { --market-ink:#222120; --market-accent:#c40f2d; --market-surface:#f7f5f2; --market-border:#e1dcd7; }
body { color:var(--market-ink); background:var(--market-surface); }
:focus-visible { outline:3px solid var(--market-accent); outline-offset:4px; }
.hd-site-header { background:#fff; box-shadow:none; border-color:var(--market-border); }
.hd-header-inner { max-width:1280px; }
.market-home { max-width:1280px; margin:auto; padding:32px 24px 64px; }
.market-hero { display:grid; grid-template-columns:1fr 280px; position:relative; gap:28px; background:#ecebff; padding:48px; border-radius:24px; }
.market-eyebrow { font-size:11px; font-weight:800; letter-spacing:.16em; color:#4d46b8; margin:0 0 16px; }
.market-hero h1 { font-family:'DM Sans',sans-serif; font-size:clamp(32px,4.5vw,58px); font-weight:800; line-height:1.08; letter-spacing:-.055em; margin:0; }
.market-hero h1 em { font-style:normal; color:var(--market-accent); }
.market-intro { max-width:560px; color:#53576d; line-height:1.65; margin-top:20px; font-size:16px; }
.market-hero-art { position:relative; display:grid; place-items:center; min-height:220px; }
.market-search { grid-column:1/-1; display:grid; grid-template-columns:1fr 210px auto; gap:0; background:white; padding:8px; border:1px solid #dedcef; border-radius:14px; box-shadow:0 6px 20px #171c3508; }
.market-search label { padding:6px 16px; display:flex; flex-direction:column; font-size:11px; font-weight:700; gap:4px; }
.market-search label + label { border-left:1px solid var(--market-border); }
.market-search input,.market-search select { border:0; background:white; color:var(--market-ink); width:100%; min-width:0; font-size:15px; padding:4px 0; font-weight:400; }
.market-button { display:inline-flex; justify-content:center; align-items:center; background:var(--market-accent); color:white; border:0; border-radius:10px; padding:15px 22px; font-size:14px; font-weight:700; text-align:center; min-height:48px; transition:background .15s; }
.market-button:hover { background:#a10c25; }
.market-section { margin-top:40px; }
.market-section-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:20px; }
.market-section h2,.market-closing h2 { font-size:24px; font-weight:800; letter-spacing:-.03em; }
.market-section-heading>a { font-size:13px; font-weight:700; color:#a10c25; text-decoration:underline; text-underline-offset:4px; }
.market-categories { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.market-category { background:white; border:1px solid var(--market-border); border-radius:14px; padding:20px 16px; position:relative; transition:border-color .15s; }
.market-category:hover { border-color:var(--market-accent); }
.market-category>span:first-child { display:grid; place-items:center; width:48px; height:48px; background:#fff1f2; border-radius:14px; font-size:27px; margin-bottom:18px; color:var(--market-accent); }
.market-category strong { font-size:13px; }
.market-arrow { position:absolute; top:15px; right:15px; color:#73758c; }
.market-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.market-card { border-radius:16px; border:1px solid var(--market-border); background:white; overflow:hidden; }
.market-card-image { position:relative; display:block; aspect-ratio:4/3; overflow:hidden; background:#f0ece8; }
.market-card-image img { width:100%; height:100%; object-fit:cover; }
.market-image-empty { display:flex; height:100%; align-items:center; justify-content:center; flex-direction:column; color:#696d82; gap:8px; }
.market-image-empty>span { font-size:44px; color:#a3a7ba; }
.market-image-empty small { font-size:11px; }
.market-test { position:absolute; left:12px; top:12px; background:#fff7da; color:#71540b; padding:4px 9px; border-radius:5px; font-size:10px; font-weight:800; }
.market-card-copy { padding:16px; }
.market-card-price { font-size:22px; font-weight:800; letter-spacing:-.035em; margin-bottom:8px; }
.market-card-price small { font-size:13px; letter-spacing:0; }
.market-card h3 { font-size:14px; font-weight:600; line-height:1.4; margin-bottom:8px; }
.market-card h3 a:hover { text-decoration:underline; }
.market-card-location { font-size:12px; color:#605b57; }
.market-card-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:10px; color:#605b57; margin-top:18px; padding-top:12px; border-top:1px solid #f0ece8; }
.market-empty { background:white; padding:32px; border:1px dashed #b7bacb; border-radius:14px; color:#605b57; font-size:14px; }
.market-closing { display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-top:48px; border-top:1px solid var(--market-border); padding-top:32px; }
.market-closing .market-button { margin-top:20px; }
.market-guide { padding:28px; background:#eaf5ef; border-radius:16px; display:grid; gap:8px; color:#1a6247; }
.market-guide strong { font-size:21px; }
.market-guide>span:last-child { justify-self:end; font-size:25px; }
.market-share { border:1px solid var(--market-border); background:white; padding:10px 14px; border-radius:10px; font-size:13px; margin:12px 0; }
@media(max-width:1000px) { .market-hero { padding:32px; grid-template-columns:1fr 200px; } .market-categories { grid-template-columns:repeat(3,1fr); } .market-search { grid-template-columns:1fr 160px; } .market-search button { grid-column:1/-1; margin-top:8px; } .market-grid { gap:14px; } }
@media(max-width:700px) { .market-home { padding:16px 16px 32px; } .market-hero { display:block; padding:28px 20px 20px; border-radius:18px; } .market-hero-art { display:none; } .market-search { margin-top:24px; display:flex; flex-direction:column; } .market-search label+label { border-left:0; border-top:1px solid var(--market-border); } .market-intro { font-size:14px; } .market-hero h1 { font-size:36px; } .market-categories { gap:8px; } .market-category { padding:14px 10px; } .market-category strong { font-size:12px; } .market-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .market-card-copy { padding:12px; } .market-card-price { font-size:19px; } .market-section h2 { font-size:21px; } .market-section-heading { align-items:flex-start; } .market-section-heading>a { font-size:11px; flex-shrink:0; } .market-closing { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }
.market-home h2,.market-home h3 { font-family:'DM Sans',sans-serif; }
.workspace-page h1 { font-size:32px; font-weight:800; margin-bottom:16px; }
.workspace-page h2 { font-size:24px; font-weight:700; margin-top:32px; }
.workspace-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:20px 0; }
.workspace-actions [role=status] { flex-basis:100%; font-size:13px; }
.workspace-list { display:grid; gap:12px; }
.workspace-item { background:white; border:1px solid var(--market-border); padding:20px; border-radius:14px; }
.workspace-item a { display:block; color:#a10c25; font-weight:700; margin:8px 0; }
.workspace-item p { white-space:pre-wrap; overflow-wrap:anywhere; }
.workspace-dialog { border:0; border-radius:18px; padding:28px; width:min(520px,calc(100vw - 32px)); max-height:85vh; overflow:auto; color:var(--market-ink); }
.workspace-dialog::backdrop { background:#171c35aa; }
.workspace-dialog h2 { font-family:inherit; font-size:23px; font-weight:800; margin-bottom:20px; }
.workspace-dialog h3 { font-size:20px; font-weight:700; }
.workspace-dialog p { white-space:pre-wrap; overflow-wrap:anywhere; margin:14px 0; }
.workspace-dialog label { display:grid; gap:8px; font-size:14px; font-weight:600; margin:18px 0; }
.workspace-dialog input,.workspace-dialog select,.workspace-dialog textarea { border:1px solid #a8adbf; border-radius:8px; padding:12px; width:100%; background:white; }
.workspace-dialog textarea { min-height:130px; }
.workspace-dialog button { margin-right:8px; }
button:disabled { opacity:.55; cursor:wait; }
.deal-badge { display:inline-block; color:#07613a; background:#d8f4e5; padding:6px 10px; border-radius:8px; margin:8px 0; }
.market-card { position:relative; }
.market-favorite { position:absolute; right:10px; top:10px; border:1px solid #e1dcd7; background:white; color:#c40f2d; border-radius:50%; width:40px; height:40px; font-size:27px; display:grid; place-items:center; }
.market-favorite[aria-pressed=true] { background:#c40f2d; color:white; }
/* Shared marketplace surfaces retain each page's existing interaction hooks. */
#adsPageRoot { max-width:1280px; padding-bottom:32px; }
#adsPageRoot h1 { font:800 clamp(26px,3vw,36px)/1.2 'DM Sans',sans-serif; letter-spacing:-.04em; }
#adsPageRoot h2,#adsPageRoot h3 { font-family:'DM Sans',sans-serif; }
#adsPageRoot article { border:1px solid var(--market-border); border-radius:16px; background:white; box-shadow:none; }
#adsPageRoot article:hover { box-shadow:0 6px 22px #171c350c; }
#adsPageRoot #advFilter { border:1px solid var(--market-border); border-radius:16px; box-shadow:none; background:white; }
#adsPageRoot input,#adsPageRoot select { min-height:42px; border-color:#dcd6d0; }
#adsPageRoot button[type=submit] { color:white; background:var(--market-accent); border-color:var(--market-accent); }
#adsPageRoot article img { aspect-ratio:4/3; object-fit:cover; }
#adsPageRoot .market-share { margin:12px 6px 12px 0; }
@media(max-width:700px) {
    .hd-site-header { border-radius:0; margin:0; }
    .hd-mobile-dock { padding-bottom:env(safe-area-inset-bottom); }
    .workspace-page h1 { font-size:26px; }
    #adsPageRoot { overflow-x:clip; }
}

/* Override the previous global theme on the redesigned surfaces. */
.market-home h1,.market-home h2,.market-home h3,.workspace-page h1,.workspace-page h2 { font-family:DM Sans,sans-serif!important; }
.market-home,.workspace-page { color:var(--market-ink); }
.market-preview-image { width:100%; max-height:280px; object-fit:contain; border-radius:12px; margin:12px 0; }
/* Swiss masthead and common controls */
.hd-site-header {
    padding:0;
    background:#fff!important;
    border-bottom:1px solid var(--market-border)!important;
}
.hd-site-header .hd-header-inner {
    display:flex!important;
    max-width:1328px!important;
    min-height:68px;
    padding:10px 24px!important;
    gap:16px!important;
    border-radius:0;
    background:#fff;
    box-shadow:none;
    color:var(--market-ink);
}
.swiss-brand {
    display:inline-flex;
    align-items:center;
    gap:10px;
    flex:none;
    font-size:21px;
    font-weight:800;
    letter-spacing:-.055em;
}
.swiss-cross {
    display:inline-grid;
    place-items:center;
    flex:none;
    width:34px;
    height:34px;
    border-radius:7px;
    background:var(--market-accent);
}
.swiss-cross::before {
    content:"";
    width:58%;
    aspect-ratio:1;
    background:#fff;
    clip-path:polygon(34% 0,66% 0,66% 34%,100% 34%,100% 66%,66% 66%,66% 100%,34% 100%,34% 66%,0 66%,0 34%,34% 34%);
}
.hd-header-inner > nav {
    align-items:center;
    gap:10px;
    white-space:nowrap;
}
.hd-site-header .hd-header-inner nav > a { color:var(--market-ink)!important; }
.hd-site-header .hd-header-inner nav > .swiss-publish { color:#fff!important; }
.hd-site-header .hd-primary-nav-link.is-active {
    background:#fff1f2;
    border-color:transparent;
    color:#a10c25!important;
    box-shadow:none;
}
.hd-site-header .hd-primary-nav-link::after,
.hd-site-header .hd-primary-nav-link::before { display:none; }
#langToggle {
    border:1px solid var(--market-border)!important;
    background:white!important;
    box-shadow:none;
}
#langMenu { border:1px solid var(--market-border)!important; }
.swiss-compact-publish,.swiss-compact-search { display:none; }
#mobile-menu {
    max-height:calc(100dvh - 68px);
    overflow:auto;
    margin:0;
    border-radius:0;
    background:#fff!important;
    border:0;
    border-top:1px solid var(--market-border);
}
.swiss-menu-link {
    display:block;
    text-align:center;
    padding:12px;
    border-radius:10px;
    background:#fff1f2;
    color:#a10c25;
    font-weight:700;
}
#main :is(h1,h2,h3) { font-family:inherit; }
#main :is(input,textarea,select):focus-visible {
    outline:2px solid var(--market-accent)!important;
    outline-offset:2px;
}
#main :is(.bg-purple-500,.bg-purple-600,.bg-indigo-600,.bg-violet-600),
.hd-site-header :is(.bg-purple-500,.bg-purple-600) {
    background-color:var(--market-accent)!important;
    color:#fff!important;
}
#main :is(.bg-purple-500,.bg-purple-600,.bg-indigo-600,.bg-violet-600):hover,
.hd-site-header :is(.bg-purple-500,.bg-purple-600):hover {
    background-color:#a10c25!important;
}
#main :is(.bg-purple-50,.bg-indigo-50,.bg-violet-50) { background-color:#fff1f2!important; }
#main :is(.text-indigo-600,.text-indigo-700,.text-violet-700) { color:#a10c25!important; }
main :is(.rounded-2xl,.rounded-3xl)[class*="bg-white"] {
    box-shadow:0 2px 8px #28202009;
}
main a.group[class*="rounded-"]:hover { transform:none; }
main .backdrop-blur-xl { backdrop-filter:none; }
.nible-surprise { display:none; }

/* Alpine cover */
.market-home { padding-top:28px; }
.market-hero {
    isolation:isolate;
    overflow:hidden;
    grid-template-columns:minmax(0,1fr);
    gap:32px;
    background:#b30f2b;
    color:white;
    padding:clamp(28px,4vw,56px);
    border-radius:20px;
}
.market-hero-copy { position:relative; z-index:1; max-width:71%; }
.market-hero h1 { font-size:clamp(34px,4.45vw,65px); }
.market-hero h1 em { color:#ffdadb; }
.market-eyebrow { color:#fff0ec; }
.market-intro { color:#fff4f0; }
.market-hero-art {
    position:absolute;
    inset:0 0 auto auto;
    width:44%;
    min-height:0;
    display:block;
    opacity:.9;
}
.market-hero-art svg { display:block; width:100%; }
.market-search {
    z-index:1;
    grid-template-columns:minmax(0,1fr) minmax(140px,.36fr) auto;
    color:var(--market-ink);
    border:0;
    padding:8px;
    gap:4px;
}
.market-search button { grid-column:auto; margin:0; }
.market-search :is(input,select) { min-height:36px!important; }
.market-category { min-width:0; }
.market-category strong { overflow-wrap:anywhere; }
.market-category svg { width:24px; height:24px; }
.market-section-heading h2 { line-height:1.2; }
.market-test { color:#7a1727; background:#fff1f2; }
.market-guide { background:#fff1f2; color:#851329; }
.market-favorite:hover { border-color:var(--market-accent); }

/* Search, account and publication */
.swiss-search-actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    font-size:13px;
}
.swiss-search-actions:empty { display:none; }
#adsPageRoot .swiss-search-actions button { margin:8px 0 0; }
.swiss-results-search { border-radius:14px; }
.swiss-signin {
    max-width:500px;
    margin:0 auto;
    padding:clamp(24px,5vw,60px) 16px;
}
.swiss-signin-card {
    color:var(--market-ink);
    background:#fff;
    border:1px solid var(--market-border);
    border-radius:18px;
    padding:clamp(22px,4vw,38px);
}
.swiss-signin-heading h1 { font-size:32px; font-weight:800; margin-top:12px; }
.swiss-signin-heading p { color:#605b57; margin-top:4px; }
#adForm .glass { background:#fff; border:1px solid var(--market-border); }
#adForm .lift:hover { transform:none; }
#adForm :is(#section-location,#section-essentials,#section-description,#section-photos) { scroll-margin-top:90px; }
.swiss-contact-bar { z-index:41; }

@media (max-width:1279px) {
    .hd-header-inner > nav { display:none!important; }
    .hd-header-inner #menu-btn { display:block!important; }
    #mobile-menu:not(.hidden) { display:block!important; }
    .swiss-compact-publish {
        display:inline-flex;
        min-height:42px;
        margin-inline-start:auto;
        padding:8px 13px;
    }
}
@media (min-width:768px) and (max-width:1279px) {
    .swiss-compact-search { display:block; margin-inline-start:auto; font-weight:700; padding:10px; }
    .swiss-compact-publish { margin-inline-start:0; }
}
@media (max-width:1023px) {
    #adsPageRoot #sortBar { display:none; }
}
@media (max-width:767px) {
    .hd-site-header .hd-header-inner { min-height:58px; padding:8px 14px!important; gap:10px!important; }
    .swiss-brand { font-size:18px; gap:7px; }
    .swiss-brand .swiss-cross { width:29px; height:29px; }
    .hd-mobile-dock {
        inset:auto 0 0;
        padding:4px 6px max(4px,env(safe-area-inset-bottom));
        border-radius:0;
        background:#fff;
        box-shadow:0 -2px 14px #28202012;
    }
    .hd-mobile-dock .hd-mobile-dock__item { min-height:50px; border-radius:8px; font-size:11px; }
    .hd-mobile-dock .hd-mobile-dock__item--primary { margin-top:0; box-shadow:none; }
    body:has(.swiss-contact-bar) .hd-mobile-dock { display:none!important; }
    #cookieConsentBanner { bottom:56px; }
}
@media (max-width:700px) {
    .market-home { padding-top:14px; }
    .market-hero { padding:24px 18px 18px; }
    .market-hero-copy { max-width:100%; }
    .market-hero h1 { font-size:clamp(29px,7.9vw,42px); }
    .market-hero-art { display:block; opacity:.22; width:64%; }
    .market-search { position:relative; }
    .market-search button { margin-top:4px; }
    .market-section-heading > a { flex-shrink:1; text-align:end; }
    #adForm { padding:16px; }
}

/* Shared footer */
footer.swiss-footer {
    margin-top:clamp(32px,6vw,72px);
    padding:0;
    border-top:4px solid var(--market-accent)!important;
    background:#242120!important;
    clip-path:none;
    font-size:14px;
}
footer.swiss-footer > .swiss-footer-inner {
    max-width:1328px!important;
    margin-inline:auto;
    padding:clamp(24px,4vw,48px) clamp(16px,3vw,36px) 20px;
}
.swiss-footer-lead {
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:18px 32px;
}
.swiss-footer-intro p {
    max-width:44ch;
    margin-top:10px;
    line-height:1.5;
}
.swiss-footer-actions {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
}
.swiss-footer-actions a {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:48px;
    padding:8px 14px;
    border:1px solid #635653;
    border-radius:9px;
    background:#302a28;
    font-weight:750;
    text-align:center;
    overflow-wrap:anywhere;
}
.swiss-footer-actions a:hover { background:#433836; }
.swiss-footer-actions a.swiss-footer-publish { border-color:#c40f2d; background:#c40f2d; }
.swiss-footer-actions a.swiss-footer-publish:hover { color:#fff!important; background:#a10c25; }
.swiss-footer-actions svg { width:17px; height:17px; flex:none; }
.swiss-footer-resources,.swiss-footer-legal {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:2px 18px;
}
.swiss-footer-resources { margin-top:18px; padding-top:10px; border-top:1px solid #514643; }
.swiss-footer :is(li a,.swiss-footer-resources a,.swiss-footer-legal a,.swiss-footer-legal button,.swiss-footer-top) {
    display:inline-flex;
    align-items:center;
    min-height:36px;
    text-align:start;
    overflow-wrap:anywhere;
}
.swiss-footer a:hover,.swiss-footer button:hover { text-decoration:underline; }
.swiss-footer :focus-visible { outline:2px solid #ffb4bf!important; outline-offset:3px; }
.swiss-footer-directories {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:start;
    gap:8px;
    margin-top:10px;
}
footer.swiss-footer details {
    margin:0;
    border:1px solid #605552!important;
    border-radius:9px;
}
.swiss-footer summary {
    display:flex;
    align-items:center;
    gap:6px;
    min-height:44px;
    padding:9px 12px;
    list-style:none;
    cursor:pointer;
    font-weight:700;
}
.swiss-footer summary::-webkit-details-marker { display:none; }
.swiss-footer summary::after {
    content:"";
    width:7px;
    height:7px;
    flex:none;
    margin-inline-start:auto;
    border-inline-end:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(45deg);
}
.swiss-footer details[open] summary { border-bottom:1px solid #605552; }
.swiss-footer details[open] summary::after { transform:rotate(225deg); }
.swiss-footer details ul {
    display:flex;
    flex-wrap:wrap;
    gap:0 12px;
    padding:6px 12px;
}
.swiss-footer-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:2px 20px;
    padding-top:9px;
    margin-top:14px;
    border-top:1px solid #514643;
    font-size:12px;
}
.swiss-footer-bottom small { font-size:inherit; }
.swiss-footer-language-code {
    padding:2px 5px;
    border-radius:4px;
    background:#413634;
    font-size:11px;
}
.swiss-footer a[aria-current="true"] { font-weight:800; text-decoration:underline; }
@media (max-width:760px) {
    .swiss-footer-actions { width:100%; }
    .swiss-footer-actions a { padding:8px 5px; gap:5px; font-size:12px; }
    .swiss-footer-directories { grid-template-columns:minmax(0,1fr); }
    .swiss-footer :is(li a,.swiss-footer-resources a,.swiss-footer-legal a,.swiss-footer-legal button,.swiss-footer-top) {
        min-height:44px;
    }
}
@media (max-width:480px) {
    .swiss-footer-actions a { flex-direction:column; }
}

/* Page frames shared by account, editorial and administrative views. */
body:is(.page-account,.page-admin) #main {
    max-width:1328px!important;
    margin-inline:auto;
    padding-inline:clamp(14px,3vw,32px);
}
.page-guide #main > :is(.page-region,article,section,div):not(.fixed):not(.absolute):not(.pointer-events-none) {
    max-width:1080px!important;
    margin-inline:auto!important;
}
.view-register #main > .swiss-register {
    max-width:720px!important;
    margin-inline:auto!important;
}
body.view-login #main > .swiss-signin {
    max-width:500px!important;
    margin-inline:auto!important;
}
:is(.view-contact,.view-forgot-password,.view-reset-password) .page-region {
    padding-inline:16px;
}
.view-ad-detail #main > .page-region {
    max-width:1280px!important;
    margin-inline:auto!important;
}
.view-ad-form #main > .swiss-publish-page {
    max-width:1120px!important;
    margin-inline:auto!important;
    padding:clamp(14px,3vw,32px);
}
.swiss-publish-back {
    display:inline-block;
    margin-bottom:16px;
    color:#a10c25;
    font-weight:700;
    text-decoration:underline;
}
.swiss-publish-page .top-banner { color:#fff; background:#a10c25; }
.swiss-publish-page #progressBar { background:#fff; }
.swiss-publish-page .status-pill {
    display:inline-flex;
    align-items:center;
    gap:7px;
    border:1px solid var(--market-border);
    border-radius:999px;
    padding:5px 9px;
    font-size:12px;
}
.swiss-publish-page .status-pill::before {
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:#a49b96;
}
.swiss-publish-page .status-pill[data-complete="true"]::before { background:#217a4c; }
@media (max-width:767px) {
    .swiss-publish-page .sticky-cta { bottom:calc(60px + env(safe-area-inset-bottom)); }
}
.view-index #main > .market-home,
.page-market #main > #adsPageRoot {
    max-width:1280px!important;
    margin-inline:auto!important;
}
.swiss-publish-page > div > .glass {
    background:#fff;
    border:1px solid var(--market-border);
}

/* View hierarchy and compact navigation used outside the catalogue. */
#main .hd-view-title {
    font-size:clamp(25px,3.2vw,38px);
    line-height:1.1;
    font-weight:800;
    overflow-wrap:anywhere;
    text-wrap:balance;
}
#main .hd-view-navigation {
    display:flex;
    align-items:center;
    gap:8px;
    overflow:auto;
    scrollbar-width:thin;
    margin-block:18px 14px!important;
    padding:4px 3px 8px;
}
.hd-view-navigation a,.hd-jump-navigation a {
    flex:none;
    display:inline-flex;
    align-items:center;
    min-height:42px;
    padding:7px 13px;
    border-radius:9px;
    border:1px solid var(--market-border);
    background:white;
    color:var(--market-ink);
    font-size:13px;
    font-weight:700;
}
.hd-view-navigation a:hover,.hd-jump-navigation a:hover { border-color:#d29ca5; }
.hd-view-navigation a[aria-current=page] { background:#fff0f2; border-color:#e6abb4; color:#9a142a; }
.hd-jump-navigation {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-block:14px;
}
.hd-page-intro {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:14px;
    margin-block:24px 18px;
}
.hd-page-intro p { margin-top:6px; color:#605b57; }
.hd-panel,#main .hd-reading-panel {
    border:1px solid var(--market-border);
    border-radius:15px;
    background:#fff;
    box-shadow:none;
}
.hd-panel-content { padding:clamp(14px,3vw,28px); }
.hd-favorites .market-grid { gap:12px; }
.hd-favorite-card > button { background:#fff; }
.hd-favorite-card > a:focus-visible { outline-offset:-3px; }
.hd-favorite-card h3 { white-space:normal; }
#main .hd-workspace-panel {
    border:1px solid var(--market-border);
    border-radius:14px;
    margin-block:12px;
    padding:clamp(12px,2.5vw,22px);
    background:white;
}
.hd-workspace-panel h2 { margin-top:0; }
.hd-form-emblem { margin-bottom:12px; }
#main :is(.hd-reading-panel,.profile-overview) {
    border-top:3px solid var(--market-accent);
}
.page-guide #main :is(article,.page-region) p { line-height:1.65; }
.page-guide #main .guide-search-item { background:white; border-radius:12px; box-shadow:none; }
.page-guide #main .guide-search-item:hover { border-color:#d29ca5; transform:none; }
.page-admin #main :is(th,td) { padding-block:12px; vertical-align:middle; }
.page-admin #main :is(.shadow-2xl,.shadow-xl) { box-shadow:0 2px 8px #28202009; }
.hd-local-listings {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}
.hd-local-listings > * { min-width:0; overflow-wrap:anywhere; }
.hd-listing-heading { padding:16px; border:1px solid var(--market-border); border-radius:14px; background:white; }
.hd-listing-price { color:#a10c25; font-size:clamp(27px,4vw,42px); font-weight:850; line-height:1.1; }
.hd-listing-no-photo {
    min-height:clamp(180px,27vw,340px);
    display:grid;
    align-content:center;
    justify-items:center;
    gap:10px;
    padding:16px;
    color:#766763;
    background:#efebe8;
}
#main :is(#mainPhotoWrap,#listingDescription,#listingDetails,#listingSeller,#profile-listings) { scroll-margin-top:86px; }
#main .hd-map-toolbar { border-bottom:1px solid var(--market-border); box-shadow:none; }
#main .hd-map-toolbar .hd-view-title { font-size:clamp(13px,2vw,18px); }
.hd-publish-overview { display:grid; gap:12px; }
.hd-publish-step { flex:1!important; align-items:flex-start!important; flex-direction:column; }
#main .hd-live-preview {
    border:1px solid var(--market-border);
    border-radius:10px;
    background:#fff;
}
.hd-live-preview summary { cursor:pointer; padding:12px 16px; font-weight:750; }
.hd-live-preview[open] summary { border-bottom:1px solid var(--market-border); }
#main :is(.hd-chat-shell) .hd-view-title { font-size:clamp(18px,2.4vw,28px); }
#main .hd-chat-shell a:hover { background-color:#fff1f2; }
#main .hd-chat-shell button[type=submit] { min-height:44px; border-radius:10px; }
@media (max-width:760px) {
    #main .hd-view-navigation { margin-block:10px!important; }
    .hd-view-navigation a,.hd-jump-navigation a { min-height:44px; }
    .hd-local-listings { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .hd-local-listings :is(h2,h3,p) { overflow-wrap:anywhere; }
    .hd-listing-heading { padding:13px; }
    .hd-publish-step { min-width:calc(50% - 8px); }
    .hd-favorites .market-card-price { font-size:17px; }
}
.hd-listing-currency { color:#a10c25; font-weight:800; font-size:17px; }
#main .hd-contents {
    margin-block:14px;
    border:1px solid var(--market-border);
    border-radius:10px;
    background:#fff;
}
.hd-contents summary { padding:10px 13px; cursor:pointer; font-weight:750; }
.hd-contents ul { display:grid; gap:3px; padding:0 13px 12px; }
.hd-contents li a {
    display:inline-block;
    padding:5px 0;
    color:#9a142a;
    text-decoration:underline;
}
.page-guide #main h2[id] { scroll-margin-top:86px; }
@media (max-width:760px) {
    .hd-listing-no-photo { min-height:146px; }
}
