/* Saved Home79 preferences: the original Home76/Home77 theme rules stay in charge. */
[data-home76] .h76-content.h79-content{grid-template-areas:var(--h79-areas)}
[data-home76] .h79-content>*{min-width:0}
[data-home76] .h79-content .h76-card[data-home-preview]{display:grid}
[data-home76] .h79-content .h76-card--tile[data-home-preview]{display:flex}
[data-home76] .h79-content .h76-discussion[data-home-preview]{display:flex}

/* A reordered leading topic shares the existing two-column area with My space. */
@media(min-width:701px){
 [data-home76] .h79-content[data-h79-first="market"]>.h76-market .h76-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 [data-home76] .h79-content[data-h79-first="market"]>.h76-market .h76-catalog-links{position:static;justify-content:flex-end;padding:0 15px 5px;flex-wrap:wrap}
 [data-home76] .h79-content[data-h79-first="social"]>.h76-social .h76-social-grid{grid-template-columns:1fr}
 [data-home76] .h79-content[data-h79-first="social"]>.h76-social .h76-social-grid>section+section{border-left:0;border-top:1px solid var(--h76-line);padding-left:0;padding-top:7px}
 [data-home76] .h79-content[data-h79-first="social"]>.h76-social .h76-related{grid-template-columns:repeat(2,minmax(0,1fr))}
 [data-home76] .h79-content[data-h79-first="time"]>.h76-time .h76-time-grid{grid-template-columns:1fr}
 [data-home76] .h79-content[data-h79-first="time"]>.h76-time .h76-rides-list{border-left:0;border-top:1px solid var(--h76-line);padding:5px 0 0}
 [data-home76] .h79-content[data-h79-first="advice"]>.h76-advice .h76-guide-grid{grid-template-columns:1fr}
 [data-home76] .h79-content[data-h79-first="advice"]>.h76-advice .h76-guide-grid>.h76-card+.h76-card{border-left:0;border-top:1px solid var(--h76-line)}
 [data-home76] .h79-content .h76-guide-grid>.h76-card:nth-child(n+3){border-top:1px solid var(--h76-line)}
 [data-home76] .h79-content .h76-guide-grid>.h76-card:nth-child(odd){border-left:0}
}
@media(min-width:1181px){
 [data-home76] .h79-content .h76-event-cards>.h76-card:nth-child(n+3){border-top:1px solid var(--h76-line)}
 [data-home76] .h79-content .h76-event-cards>.h76-card:nth-child(odd){border-left:0}
}
@media(max-width:700px){
 /* Keep homepage settings reachable on phones without changing the site menu. */
 [data-home76] .h76-context-row{flex-wrap:wrap}
 [data-home76] .h76-desktop-actions{display:flex;flex:1 0 100%;justify-content:flex-end;margin:0;border-top:1px solid var(--h76-line)}
 [data-home76] .h76-desktop-actions>button{display:none}
 [data-home76] .h76-desktop-actions>a{min-height:44px;margin:0;padding:5px 8px;border:0;font-size:12px}
 [data-home76] .h79-content>*{order:var(--h79-order,0)}
 /* Requested cards remain present on phones; the existing housing/jobs tabs remain. */
 [data-home76] .h79-content .h76-card--tile[data-home-preview]{display:grid}
}

/* Compact changes spacing and minimum image/card sizes, never content or counts. */
#home76[data-home76] .h79-content[data-h79-density="compact"]{gap:8px}
#home76[data-home76] .h79-density--compact .h76-heading{padding:8px 12px 6px;min-height:36px}
#home76[data-home76] .h79-density--compact .h76-card{min-height:96px;padding-block:6px;gap:8px}
#home76[data-home76] .h79-density--compact .h76-photo,
#home76[data-home76] .h79-density--compact .h76-photo img,
#home76[data-home76] .h79-density--compact .h76-card-copy{min-height:84px}
#home76[data-home76] .h79-density--compact .h76-card--feature{min-height:118px}
#home76[data-home76] .h79-density--compact .h76-card--feature>.h76-photo{min-height:104px}
#home76[data-home76] .h79-density--compact .h76-card--tile{min-height:0;padding-top:0}
#home76[data-home76] .h79-density--compact .h76-card--tile>.h76-photo{height:115px;min-height:115px;flex-basis:115px}
#home76[data-home76] .h79-density--compact .h76-card--tile>.h76-card-copy{min-height:0}
#home76[data-home76] .h79-density--compact .h76-market-grid,
#home76[data-home76] .h79-density--compact .h76-social-grid,
#home76[data-home76] .h79-density--compact .h76-time-grid,
#home76[data-home76] .h79-density--compact .h76-guide-grid{gap:8px}
#home76[data-home76] .h79-density--compact .h76-discussion{min-height:62px;padding-block:8px}
#home76[data-home76] .h79-density--compact .h76-section-note{padding-bottom:6px}
#home76[data-home76] .h79-density--compact .h76-related{padding-block:7px;gap:6px}
#home76[data-home76] .h79-density--compact .h76-courses{padding-block:8px;margin-bottom:8px}
#home76[data-home76] .h79-density--compact .h76-newcomer{padding-block:10px}
@media(max-width:700px){
 #home76[data-home76] .h79-density--compact .h76-card--tile{min-height:94px;padding-block:6px}
 #home76[data-home76] .h79-density--compact .h76-card--tile>.h76-photo{height:auto;min-height:82px;flex-basis:auto}
 #home76[data-home76] .h79-density--compact .h76-card--tile>.h76-card-copy{min-height:82px}
 #home76[data-home76] .h79-density--compact .h76-card--feature{min-height:110px}
 #home76[data-home76] .h79-density--compact .h76-card--feature>.h76-photo{min-height:96px}
}

/* Home81: catalog access remains visible below previews on desktop and mobile. */
#home76[data-home76] .h81-catalog-all{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;box-sizing:border-box;width:100%;padding:10px 12px;border-top:1px solid var(--h76-line);background:color-mix(in srgb,var(--h76-link) 7%,var(--h76-surface));color:var(--h76-link);font-size:13px;font-weight:750;line-height:1.3;text-align:center;text-decoration:none}
#home76[data-home76] .h81-catalog-all:hover{background:color-mix(in srgb,var(--h76-link) 14%,var(--h76-surface))}
#home76[data-home76] .h81-catalog-all:focus-visible{outline:2px solid var(--h76-link);outline-offset:-3px}
#home76[data-home76] .h81-catalog-all>span{font-size:17px}

/* The jobs route stays visible when navigation updates the URL without activating :target. */
body.home-page.jobs-catalog81 #job-search.home-job-search{display:block}

/* Home82: independent catalogues and one visual language for “All”. */
#home76[data-home76] .h76-services{grid-area:services}
#home76[data-home76] .h82-catalog-panel .h76-market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:0 12px 12px}
#home76[data-home76] .h82-catalog-panel .h76-card{grid-template-columns:124px minmax(0,1fr);min-width:0;padding:12px;align-items:start;border:0}
#home76[data-home76] .h82-catalog-panel .h76-card:nth-child(even){border-left:1px solid var(--h76-line)}
#home76[data-home76] .h82-catalog-panel .h76-card:nth-child(n+3){border-top:1px solid var(--h76-line)}
#home76[data-home76] .h82-catalog-panel .h76-photo{height:130px;min-height:130px;border-radius:12px;overflow:hidden}
#home76[data-home76] .h82-catalog-panel .h76-photo img{height:100%;min-height:0}
#home76[data-home76] .h82-catalog-panel .h76-card-copy{min-height:130px}
#home76[data-home76] :is(.h76-heading>.h76-text-link,.h76-section-head>a,.h76-mini-heading>.h76-text-button,.h76-subscriptions>.h76-heading>.h76-text-button,.h81-catalog-all){display:inline-flex;align-items:center;justify-content:center;gap:9px;box-sizing:border-box;min-height:42px;padding:9px 15px;border:1px solid color-mix(in srgb,var(--h76-link) 24%,var(--h76-line));border-radius:12px;background:color-mix(in srgb,var(--h76-link) 9%,var(--h76-surface));color:var(--h76-link);font-size:13px;font-weight:750;line-height:1.25;text-decoration:none;white-space:normal;text-align:center;transition:background .16s,border-color .16s}
#home76[data-home76] :is(.h76-heading>.h76-text-link,.h76-section-head>a,.h76-mini-heading>.h76-text-button,.h76-subscriptions>.h76-heading>.h76-text-button,.h81-catalog-all):hover{background:color-mix(in srgb,var(--h76-link) 17%,var(--h76-surface));border-color:var(--h76-link)}
#home76[data-home76] :is(.h76-heading>.h76-text-link,.h76-section-head>a,.h76-mini-heading>.h76-text-button,.h76-subscriptions>.h76-heading>.h76-text-button,.h81-catalog-all):focus-visible{outline:2px solid var(--h76-link);outline-offset:3px}
#home76[data-home76] .h81-catalog-all{width:calc(100% - 24px);margin:10px 12px 12px;min-height:44px}
#home76[data-home76] .h81-catalog-all>span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:color-mix(in srgb,var(--h76-link) 12%,transparent)}
#home76[data-home76] .l82-legend{margin:8px 4px 12px;color:var(--h76-muted)}
#home76[data-home76] .h76-card-copy>.l82-badges{padding-right:22px}
@media(min-width:701px){
 #home76[data-home76] :is([data-h79-first="market"]>.h76-market,[data-h79-first="services"]>.h76-services) .h76-market-grid{grid-template-columns:1fr}
 #home76[data-home76] :is([data-h79-first="market"]>.h76-market,[data-h79-first="services"]>.h76-services) .h76-card:nth-child(even){border-left:0;border-top:1px solid var(--h76-line)}
}
@media(max-width:950px){
 #home76[data-home76] .h82-catalog-panel .h76-card{grid-template-columns:100px minmax(0,1fr);padding:10px;gap:10px}
}
@media(max-width:700px){
 #home76[data-home76] .h82-catalog-panel .h76-market-grid{grid-template-columns:1fr;padding:0 6px 6px}
 #home76[data-home76] .h82-catalog-panel .h76-card:nth-child(even){border-left:0}
 #home76[data-home76] .h82-catalog-panel .h76-card+.h76-card{border-top:1px solid var(--h76-line)}
 #home76[data-home76] .h82-catalog-panel .h76-photo{height:112px;min-height:112px}
 #home76[data-home76] :is(.h76-heading>.h76-text-link,.h76-section-head>a,.h76-mini-heading>.h76-text-button,.h76-subscriptions>.h76-heading>.h76-text-button){min-height:44px;padding:8px 11px;font-size:12px;flex-shrink:0}
}

/* Home84: one personal workspace with live counts, without a reserved subscription row. */
#home76[data-home76] .h84-space{align-self:start;display:flex;min-height:0;padding-bottom:4px}
#home76[data-home76] .h84-space>.h76-heading{padding-bottom:8px}
#home76[data-home76] :is(.h84-space-tabs,.h84-drawer-modes){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:4px;margin:0 12px 10px;border:1px solid var(--h76-line);border-radius:12px;background:var(--h76-soft)}
#home76[data-home76] :is(.h84-space-tabs,.h84-drawer-modes)>button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:8px 6px;margin:0;border:1px solid transparent;border-radius:8px;background:none;color:var(--h76-muted)!important;box-shadow:none;font-size:12px;font-weight:700;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
#home76[data-home76] :is(.h84-space-tabs,.h84-drawer-modes)>button[aria-selected="true"]{border-color:var(--h76-line);background:var(--h76-surface);color:var(--h76-link)!important;box-shadow:0 1px 3px color-mix(in srgb,black 6%,transparent)}
#home76[data-home76] .h84-tab-label{min-width:0}
#home76[data-home76] .h84-space-tabs svg{display:none}
#home76[data-home76] .h84-drawer-modes svg{width:18px;height:18px;flex:0 0 18px}
#home76[data-home76] .h84-space-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:19px;min-height:19px;padding:2px 4px;border-radius:6px;background:color-mix(in srgb,var(--h76-link) 10%,var(--h76-surface));color:var(--h76-link);font-size:10px;line-height:1}
#home76[data-home76] .h84-space-panel{min-height:0;outline-offset:2px}
#home76[data-home76] .h84-space .h76-sidebar-empty{min-height:0;padding:12px 15px;gap:7px}
#home76[data-home76] .h84-space .h76-sidebar-empty>svg{width:25px;height:25px}
#home76[data-home76] .h84-space .h76-sidebar-empty strong{font-size:14px}
#home76[data-home76] .h84-space .h76-subscription-empty{padding-top:10px}
#home76[data-home76] .h84-space .h76-subscribe-add{display:flex;width:calc(100% - 24px);min-height:44px;margin:6px 12px}
#home76[data-home76] .h84-space-all{display:flex;align-items:center;justify-content:space-between;gap:8px;width:calc(100% - 24px);min-height:44px;margin:2px 12px 6px;padding:9px 3px;border-top:1px solid var(--h76-line);font-size:12px;text-align:left}
#home76[data-home76] .h84-space-all>span{font-size:19px}
#home76[data-home76] .h84-drawer-modes{margin:0 0 14px}
#home76[data-home76] .h84-drawer-modes>button{font-size:14px}
#home76[data-home76] .h76-drawer :is(.h76-icon-button,.h76-drawer-tabs button,.h76-subscription-tools button){min-height:44px}
#home76[data-home76] .h76-drawer .h76-icon-button{min-width:44px}
#home76[data-home76] .h84-space-entry{min-height:44px}
@media(max-width:700px){
 #home76[data-home76] .h76-mobile-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 #home76[data-home76] .h76-mobile-actions>button,#home76[data-home76] .h76-create>summary{min-height:44px}
 #home76[data-home76] .h84-space{display:flex;align-self:stretch;width:100%}
 #home76[data-home76] .h84-space .h76-saved-preview>.h76-saved-row:nth-child(n+3){display:none}
 #home76[data-home76] .h84-space-tabs svg{display:block;width:17px;height:17px;flex:0 0 17px}
}
