:root {
    --page-width: 1040px;
    --ink: #3a3a3a;
    --muted: #6c6c6c;
    --line: #d2d2d2;
    --link: #1d5c88;
    --link-hover: #b2392f;
    --nav: #252525;
    --panel: #f6f6f6;
}

* { box-sizing: border-box; }
html { background: #d7d7d7 url('/assets/images/bg_silverlake.jpg') center top / cover fixed no-repeat; }
body { margin: 0; color: var(--ink); font: 13px/1.55 Arial, Helvetica, sans-serif; background: transparent; }
a:link, a:visited { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; color: #fff; background: #111; transform: translateY(-150%); }
.skip-link:focus { color: #fff; transform: translateY(0); }
.topborder { height: 5px; background: #1d1d1d; border-bottom: 1px solid #555; }
.phpld-wbox { width: min(var(--page-width), calc(100% - 28px)); margin: 0 auto; }
.masthead { width: min(942px, calc(100% - 18px)); height: auto; margin: 10px auto 0; }
.masthead-inner { min-height: 126px; background: rgba(255,255,255,.9) url('/assets/images/header-bg-pattern.png') repeat; border-bottom: 1px solid #c7c7c7; }
.masthead .phpld-wbox { position: relative; }
.userPanel { min-height: 28px; padding-top: 7px; text-align: right; color: #777; font-size: 12px; }
.header { width: 100%; height: auto; min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0; padding: 0; }
.headerLogo h1, .headerLogo .site-name { margin: 0; font: 38px/1 Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.headerLogo a { color: #343434; text-shadow: 0 1px 0 #fff; }
.headerLogo a:hover { text-decoration: none; color: #111; }
.headerSearch { width: min(470px, 50%); display: flex; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.headerSearch input { min-width: 0; flex: 1; height: 38px; padding: 8px 12px; border: 1px solid #aaa; border-right: 0; background: #fff; font-size: 14px; }
.headerSearch button { width: 54px; border: 1px solid #111; color: #fff; background: #323232 url('/assets/images/search_bg_pattern.png') center; font-weight: bold; cursor: pointer; }
#nav { min-height: 42px; background: var(--nav); border-top: 1px solid #111; border-bottom: 1px solid #111; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
#nav ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
#nav li { border-right: 1px solid #444; }
#nav a { display: block; padding: 12px 13px 11px; color: #eee; font-size: 12px; text-shadow: 0 -1px 0 #000; }
#nav a:hover, #nav a:focus { color: #fff; background: #3e3e3e; text-decoration: none; }
.menu-toggle { display: none; }
.wrap { width: min(960px, 100%); margin: 0 auto; padding: 20px 0 38px; }
.content-wrapper { background: rgba(255,255,255,.96); border: 1px solid #bdbdbd; box-shadow: 0 2px 9px rgba(0,0,0,.2); }
.path { padding: 9px 15px; border-bottom: 1px solid var(--line); background: #f2f2f2; color: #777; }
.breadcrumbs { width: auto; margin: 0; padding: 0; background: transparent; }
.breadcrumbs a:link, .breadcrumbs a:visited { color: var(--link); font-weight: bold; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: start; }
.main-content { min-width: 0; padding: 18px 20px 28px; border-right: 1px solid var(--line); }
.category-sidebar { min-width: 0; }
.category-sidebar h2 { margin: 0; padding: 10px 12px; color: #fff; background: #333 url('/assets/images/title-solid-bg.png') repeat; font-size: 15px; }
.boxPopCats { margin: 0; padding: 0; list-style: none; }
.boxPopCats li { border-bottom: 1px solid #ddd; }
.boxPopCats a:link, .boxPopCats a:visited { display: block; padding: 7px 10px; color: var(--link); background: #f6f6f6; }
.boxPopCats a:hover, .boxPopCats a:focus { padding-left: 14px; color: var(--link-hover); background: #e7e7e7; text-decoration: none; }
.welcome-copy { margin-bottom: 18px; }
.welcome-copy h1, .category-intro h1 { margin: 0 0 8px; color: #333; font: 24px/1.2 Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.welcome-copy p, .category-intro p { margin: 7px 0; }
.adult-warning { padding: 10px 12px; border-left: 4px solid #a3332b; background: #f8eeee; }
.popular-categories { display: flex; flex-wrap: wrap; gap: 5px 14px; padding: 10px 12px; border: 1px solid #d2d2d2; background: #f7f7f7; }
.popular-categories strong { color: #333; }
.popular-categories a { font-weight: bold; }
.directory-section { margin-top: 20px; }
.section-title { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; padding: 7px 11px; color: #fff; background: #3b3b3b url('/assets/images/title-striped-bg.png') repeat; }
.section-title h1, .section-title h2 { margin: 0; color: #fff; font: bold 16px/1.35 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.section-title a, .section-title span { color: #e8e8e8; font-size: 11px; }
.friends-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #d1d1d1; border-bottom: 0; }
.friend-card { min-width: 0; padding: 12px; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; background: #fff; }
.friend-card:nth-child(2n) { border-right: 0; }
.friend-card h3 { margin: 0 0 4px; font-size: 15px; }
.friend-card p { margin: 4px 0 7px; color: #555; }
.listing-list-item { position: relative; padding: 13px 12px 13px; border: 1px solid #ddd; border-top: 0; background: linear-gradient(#fff, #fafafa); }
.listing-list-item:first-of-type { border-top: 1px solid #ddd; }
.listing-title { margin: 0 0 5px; font-size: 16px; line-height: 1.25; letter-spacing: 0; }
.listing-title a { font-weight: bold; }
.description { margin: 0 0 7px; color: #505050; }
.listing-meta { margin-right: 90px; color: #777; font-size: 11px; }
.more-categories { margin-left: 3px; }
.read-more { font-size: 11px; font-weight: bold; white-space: nowrap; }
.listing-list-item > .read-more { position: absolute; right: 12px; bottom: 12px; }
.listing-detail .listing-description { font-size: 15px; }
.listing-detail dl { margin-top: 20px; display: grid; grid-template-columns: 90px minmax(0, 1fr); border-top: 1px solid #ddd; }
.listing-detail dt, .listing-detail dd { margin: 0; padding: 10px; border-bottom: 1px solid #ddd; }
.listing-detail dt { font-weight: bold; background: #f4f4f4; }
.visit-site { display: inline-block; padding: 9px 14px; border: 1px solid #173f5d; color: #fff; background: #26658f; font-weight: bold; }
.visit-site:hover { color: #fff; background: #174a6e; text-decoration: none; }
.directory-note { color: var(--muted); font-size: 12px; }
.text-page { font-size: 14px; }
.text-page h2 { margin: 22px 0 5px; font: 20px/1.25 Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.text-page li { margin: 5px 0; }
.directory-guide { margin-top: 24px; padding-top: 16px; border-top: 1px solid #d8d8d8; }
.directory-guide h2 { margin: 0 0 7px; font: 21px/1.25 Georgia, 'Times New Roman', serif; letter-spacing: 0; }
.directory-guide p { margin: 7px 0; }
.site-footer { padding: 26px 0 18px; color: #bbb; background: #222; border-top: 4px solid #111; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid p { margin: 5px 0; }
.footer-grid nav { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 6px 16px; }
.footer-grid a { color: #ddd; }
.copyright { margin: 20px 0 0; text-align: center; color: #777; font-size: 11px; }

@media (max-width: 760px) {
    .phpld-wbox { width: min(100% - 18px, var(--page-width)); }
    .header { min-height: 112px; align-items: stretch; justify-content: center; flex-direction: column; gap: 12px; padding: 7px 0 18px; }
    .headerLogo h1, .headerLogo .site-name { font-size: 32px; text-align: center; }
    .headerSearch { width: 100%; }
    .menu-toggle { display: block; width: 100%; padding: 11px; border: 0; color: #fff; background: #252525; text-align: left; font-weight: bold; }
    #nav ul { display: none; }
    #nav ul.is-open { display: block; }
    #nav li { border-right: 0; border-top: 1px solid #444; }
    #nav a { padding: 10px 12px; }
    .layout { grid-template-columns: 1fr; }
    .main-content { padding: 15px 13px 24px; border-right: 0; }
    .category-sidebar { border-top: 1px solid var(--line); }
    .boxPopCats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .boxPopCats li:nth-child(odd) { border-right: 1px solid #ddd; }
    .friends-grid { grid-template-columns: 1fr; }
    .friend-card { border-right: 0; }
    .footer-grid { flex-direction: column; }
    .footer-grid nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
    .userPanel { text-align: center; }
    .boxPopCats { grid-template-columns: 1fr; }
    .boxPopCats li:nth-child(odd) { border-right: 0; }
    .listing-meta { margin-right: 0; padding-bottom: 22px; }
    .listing-list-item > .read-more { left: 12px; right: auto; }
    .listing-detail dl { grid-template-columns: 1fr; }
    .listing-detail dt { border-bottom: 0; }
}
