/* Original desktop.css is loaded separately without recreating its palette or metrics. */
#post-list > .content { flex: 1; min-width: 0; }
#post-list > .postListSidebarRight { flex: 0 0 170px; }
.reference-ad-top { min-height: 135px; display: flex; align-items: flex-start; }
.reference-ad a { display: block; position: relative; overflow: hidden; color: white; }
.reference-ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reference-ad .feature-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px; background: #0009; color: #fff; font: bold 14px Verdana,sans-serif; }
.reference-ad-top a { width: min(728px,100%); height: 90px; }
.reference-ad-left { margin: 12px 0 4px; }
.reference-ad-left a, .reference-ad-right a { width: 160px; height: 600px; }
.reference-ad-right { min-height: 602px; }
.reference-ad .post-card__header { display:none; }
.sidebar-chibi { max-width: 180px; }
#displayOptions { margin-top: 3px; margin-bottom: 0; }

    .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
    }

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    /* The slider */
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #585858;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 34px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .slider {
        background-color: hsl(120 9% 51% / 1);
    }

    input:checked + .slider:before {
        -webkit-transform: translateX(26px);
        -ms-transform: translateX(26px);
        transform: translateX(26px);
    }

#tag-sidebar li a { margin-right: 3px; }
#tag-sidebar h6 { font-weight: bold; }
.tag-count { white-space: nowrap; }
.more-tags { display: block; margin: 10px 0; }
.post-card__header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.image-list .thumb { position: relative; }
.image-list .thumb a:hover img { outline: 1px solid var(--c-link); }
.creator-list .thumb { height: 232px; }
.creator-list .user-card { flex-direction: column; background-image: none !important; }
.user-card-icon { width: 200px; height: 200px; display:flex; justify-content:center; align-items:center; }
.user-card-icon img { max-width: 200px; max-height: 200px; object-fit: contain; width: auto; height: auto; }
.user-card-info { text-align:center; font-size:11px; }
.user-card-service { color:#fff; padding:1px 3px; font-size:9px; }
.user-card-name { display:inline; font-size:11px; margin-left:4px; }
.user-card-count { font-size:10px; color:var(--c-text-soft); }
.creator-filters { display:grid; gap:4px; margin:10px 0; }
.paginator small { display:none; }
.paginator menu { display:flex; flex-wrap:wrap; justify-content:center; gap:0; list-style:none; margin:0; padding:0; }
.paginator li { list-style:none; margin:0; }
.paginator li.current a { border-color:transparent!important; font-weight:bold; color:var(--c-text); }
.paginator li button { margin:0 3px; padding:2px 6px; border:1px solid; opacity:.35; }
.paginator li:has(button:disabled) { display:none; }
.manual-page-chooser { text-align:center; margin-bottom:20px; }
#tag-container { columns:4 170px; column-gap:30px; }
#tag-container article { break-inside:avoid; padding:2px 0; }
#tag-container article a { display:flex; justify-content:space-between; gap:6px; }
.mobile-toggle, .close-sidebar, .backdrop { display:none; }
html.scroll-locked { overflow:hidden; }
html.scroll-locked body { position:fixed; top:var(--scroll-lock-top,0); width:100%; overflow:hidden; }
@media(max-width:600px) {
 .mobile-toggle { display:block; margin:8px 20px; }
 #post-list > .sidebar { position:fixed; left:-240px; top:0; bottom:0; padding:15px; min-width:210px; max-width:210px; margin:0; background:var(--c-bg); z-index:3; overflow-y:auto; overscroll-behavior:contain; }
 body.mobile-open #post-list > .sidebar { left:0; }
 .close-sidebar { display:block; float:right; }
 .backdrop { position:fixed; inset:0; z-index:2; background:#0006; }
 body.mobile-open .backdrop { display:block; touch-action:none; }
 #post-list > .content { margin:0; }
 #post-list > .postListSidebarRight { display:none; }
 .reference-ad-left { display:none; }
 .image-list { gap:10px!important; }
 .image-list .thumb { width:calc((100% - 10px)/2); height:200px; }
 .creator-list .thumb { height:232px; }
 .user-card-icon { width:100%; }
 .user-card-icon img { max-width:100%; }
}
/* Linkvertise handoff, using the directory's own card and control styles. */
html.handoff-open { overflow: hidden; }
html.handoff-open:not(.scroll-locked) body { position: fixed; top: var(--handoff-scroll-top, 0); width: 100%; overflow: hidden; }
.handoff { position: fixed; inset: 0; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; color: #f2f2f2; background: #17191a; border: 1px solid #464a53; border-radius: 5px; box-shadow: 0 8px 30px #0008; font-family: Arial, Helvetica, sans-serif; }
.handoff::backdrop { background: #000a; }
.handoff-header { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 5px 8px 5px 12px; background: #282a2e; border-bottom: 1px solid #ffffff0d; }
.handoff-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.handoff-brand img { object-fit: contain; }
.handoff-update { margin-left: auto; margin-right: 12px; color: #e9bbb4; font-size: 14px; font-weight: 800; }
.handoff-close { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #e6e6e6; font-size: 29px; line-height: 28px; }
.handoff-close:hover, .handoff-close:focus-visible { background: #ffffff1a; }
.handoff-preview { position: relative; min-height: 156px; overflow: hidden; display: flex; align-items: center; background: #202324; border-bottom: 1px solid #ffffff0d; }
.handoff-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px); transform: scale(1.1); opacity: .7; }
.handoff-preview-shade { position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / 50%), rgb(0 0 0 / 80%)); }
.handoff-preview-info { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px 20px 36px; }
.handoff-avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.handoff [hidden] { display: none !important; }
.handoff-preview-text { min-width: 0; }
.handoff-kind { display: inline-block; color: #fff; background: #2c333c; border-radius: 3px; padding: 3px 6px; font-size: 12px; font-weight: 700; }
.handoff-title { display: block; font-size: 24px; font-weight: 400; line-height: 1.2; margin-top: 7px; overflow-wrap: anywhere; }
.handoff-preview-label { position: absolute; bottom: 10px; left: 20px; color: #b3b3b3; font-size: 11px; }
.handoff-content { padding: 20px; }
.handoff h2 { font-size: 25px; line-height: 1.2; font-weight: 400; margin: 0 0 10px; }
#handoff-description { font-size: 14px; line-height: 1.5; color: #b3b3b3; margin: 0 0 20px; }
.handoff-continue, .handoff-continue:visited { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 16px 18px; border: 2px solid #e9bbb4; border-radius: 6px; background: #8c542c; box-shadow: inset 0 1px 0 #ffffff20, 0 3px 0 #3e281a; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.3; text-align: center; cursor: pointer; }
.handoff-continue:hover { background: #a36334; border-color: #f4cfc9; color: #fff; }
.handoff-continue:focus-visible { outline: 3px solid #e9bbb4; outline-offset: 3px; background: #a36334; }
.handoff-continue:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff20, 0 1px 0 #3e281a; }
.handoff-note { color: #85898b; text-align: center; font-size: 11px; margin: 13px 0 0; }
.handoff-note span { color: #cc9d97; }
@media (max-width: 480px) { .handoff-preview-info { padding: 18px 16px 34px; gap: 12px; } .handoff-content { padding: 18px 16px; } .handoff-title { font-size: 22px; } .handoff h2 { font-size: 23px; } .handoff-preview-label { left: 16px; } }


.handoff { background:var(--c-bg); color:var(--c-text); border-color:#689568; font-family:Verdana,sans-serif; }
.handoff-header { background:#93c393; }
.handoff-update,.handoff-close,.handoff-content h2 { color:#000; }
.handoff-close:hover { background:#0001; }
#handoff-description { color:#263e26; }
.handoff-preview { color:#fff; }
.handoff .handoff-continue,.handoff .handoff-continue:link,.handoff .handoff-continue:visited { background:#234f2a; color:#fff; border-color:#17391c; box-shadow:0 3px 0 #17391c; text-decoration:none; text-shadow:none; font-weight:700; }
.handoff .handoff-continue:hover,.handoff .handoff-continue:focus-visible { background:#193e20; border-color:#102b15; color:#fff; text-decoration:none; }
.handoff-note { color:#263e26; }
.handoff-note span { color:#009; }

/* Contain the handoff independently from the original site's content-box styles. */
.handoff, .handoff * { box-sizing: border-box; }
.handoff { width: min(480px, calc(100vw - 24px)); }
.handoff-header { gap: 8px; }
.handoff-brand { flex-shrink: 0; white-space: nowrap; }
.handoff-update { white-space: nowrap; margin-right: 0; }
.handoff-close { flex: 0 0 30px; }
.handoff-preview-info { min-width: 0; }
.handoff h2 { font-family: Verdana, sans-serif; font-size: 24px; line-height: 1.3; font-weight: 700; margin-bottom: 12px; }
.handoff-heading-line { display: block; white-space: nowrap; }
.handoff-title { font-family: Verdana, sans-serif; font-size: 21px; line-height: 1.35; }
.handoff-preview-label { right: 16px; line-height: 1.35; }
.handoff-continue { min-height: 58px; padding: 14px 12px; font-family: Verdana, sans-serif; font-size: 15px; line-height: 1.4; white-space: nowrap; }
#handoff-description { font-family: Verdana, sans-serif; overflow-wrap: break-word; }
.handoff-note span { white-space: nowrap; }
/* Keep the tall banner slot, but show the full replacement artwork. */
.reference-ad-left a { display: flex; align-items: center; justify-content: center; background: #93c393; }
.reference-ad-left a::before { content: ''; position: absolute; inset: -16px; background-image: var(--teaser-image); background-size: cover; background-position: center; filter: blur(14px); opacity: .35; }
.reference-ad-left img { position: relative; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.reference-ad-left .feature-title { z-index: 1; }
#tag-container article a { min-width: 0; }
#tag-container article span:first-child { min-width: 0; overflow-wrap: anywhere; }
#tag-container article span:last-child { flex-shrink: 0; }
@media(max-width:480px) {
 .handoff h2 { font-size: 21px; }
 .handoff-title { font-size: 19px; }
 .handoff-continue { font-size: 14px; }
 .handoff-update { font-size: 12px; }
}
@media(max-width:360px) {
 .handoff-header { padding-left: 10px; gap: 5px; }
 .handoff-brand { font-size: 13px; gap: 5px; }
 .handoff-update { font-size: 11px; }
 .handoff-content { padding-left: 12px; padding-right: 12px; }
 .handoff h2 { font-size: 20px; }
 .handoff-continue { font-size: 13px; padding-left: 8px; padding-right: 8px; }
}


/* Mobile header follows the original mobile layout. */
.header-toggle, .mobile-search { display: none; }
@media (max-width: 600px) {
 div#header { position: relative; margin: 0; padding-top: 70px; background: #50b347 url('assets/reference/topb.png') no-repeat 90px 10px; }
 div#header .tradio, div#header .tlabel { display: none; }
 div#header #site-title { position: absolute; left: 15px; top: 16px; margin: 0; padding: 0; font: bold 24px Tahoma,sans-serif; }
 div#header #site-title a { color: #fff; }
 div#header .header-toggle, div#header .mobile-toggle { display: flex; align-items: center; justify-content: center; position: absolute; top: 12px; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: #50b347; color: #102a0e; cursor: pointer; }
 div#header .header-toggle { right: 10px; }
 div#header .mobile-toggle { right: 56px; }
 .menu-bars { width: 32px; height: 30px; background: linear-gradient(to bottom,currentColor 0 7px,transparent 7px 12px,currentColor 12px 19px,transparent 19px 24px,currentColor 24px 30px); }
 div#header ul#navbar, div#header ul#subnavbar { display: none; margin: 0!important; }
 div#header.navigation-open ul#navbar, div#header.navigation-open ul#subnavbar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 4px 8px; background: #93c393; }
 div#header ul#navbar li, div#header ul#subnavbar li { display: block; min-width: 0; padding: 0; margin: 0; font-size: 12px; white-space: normal; }
 div#header ul#navbar li a, div#header ul#subnavbar li a { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 6px 4px; text-align: center; overflow-wrap: anywhere; }
 .mobile-search { display: block; padding: 0 25px 12px; }
 .mobile-search h5 { font: bold 16px/20px Arial,sans-serif; text-align: center; margin: 0; }
 .mobile-search form, .mobile-search .awesomplete { width: 100%; margin: 0; }
 .mobile-search input[type=text] { box-sizing: border-box; width: 100%; height: 38px; padding: 6px 8px; border: 0; background: #fff; color: #000; font: 16px Arial,sans-serif; }
 .mobile-search input[type=submit], .mobile-search #search-hint { display: none; }
 #post-list { margin-top: 0; }
}

@media (max-width: 600px) {
 .image-list .thumb { height: 160px; }
 .image-list .thumb img.preview { max-width: 100%; max-height: 150px; }
 .creator-list .thumb { height: 192px; }
 .user-card-icon { height: 160px; }
 .user-card-icon img { max-height: 150px; }
}

/* Keep keyboard and touch focus visible without changing the field size. */
input#search:focus {
 outline: 2px solid #234f2a;
 outline-offset: 2px;
 box-shadow: 0 0 0 4px rgb(35 79 42 / 18%);
 background-color: #fff;
 caret-color: #17391c;
}
