/* Static OneNav adaptation. The existing theme CSS supplies the card and grid design. */
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.main-footer .footer-copyright { text-align: center; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #f1404b !important; outline-offset: 3px; }
button { cursor: pointer; }
.static-banner { background-size: cover !important; background-position: center 58% !important; min-height: 280px; display: flex; align-items: center; position: relative; }
.static-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.08) 58%, rgba(0,0,0,.25)); pointer-events: none; }
.static-banner > .search-container { position: relative; z-index: 1; width: 100%; }
.static-search { width: 100%; max-width: 800px; min-height: 200px; padding: 0; }
.static-search .search-box-big { width: 100%; }
.static-search .search-list-menu { display: flex; justify-content: center; align-items: center; gap: 0; margin: 0 auto; overflow: visible; }
.static-search .search-menu { background: transparent; border: 0; border-radius: 0; color: rgba(255,255,255,.76); font-size: 16px; font-weight: 500; line-height: 1.5; padding: 10px 20px; position: relative; transition: color .2s; }
.static-search .search-menu, .static-search .search-term { text-shadow: 0 1px 5px rgba(0,0,0,.65); }
.static-search .search-menu:hover, .static-search .search-menu.active { color: #fff; }
.static-search .search-menu.active::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: 3px; height: 4px; border-radius: 8px; background: #fff; }
.static-search .search-form { display: block; position: relative; height: 50px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); margin: 0; }
.static-search .search-form:focus-within { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.static-search .search-key { display: block; width: 100%; height: 100%; box-sizing: border-box; padding: 0 60px 0 20px; border: 0 !important; border-radius: inherit !important; background: transparent !important; box-shadow: none !important; font-size: 18px; color: #333; }
.static-search .search-key:focus-visible, .static-search .search-submit-btn:focus-visible { outline: none !important; }
.static-search .search-key::placeholder { color: #a8abad; opacity: 1; }
.static-search .search-tools { position: absolute; display: flex; align-items: center; justify-content: center; right: 0; top: 0; height: 100%; padding: 3px; }
.static-search .search-submit-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 0; padding: 0; border: 0; border-radius: 10px; background: #f1404b !important; color: #fff !important; font-size: 22px; }
.static-search .search-submit-btn:hover { background: #d92531 !important; color: #fff !important; }
.static-search .search-list-group { margin-top: 0; min-height: 41px; }
.static-search .search-group[hidden] { display: none; }
.static-search .search-group { display: flex; justify-content: center; align-items: center; gap: 0; padding: 0; margin: 0; list-style: none; overflow: visible; }
.static-search .search-group li { list-style: none; margin: 0; padding: 10px 16px; }
.static-search .search-term { display: block; background: none; border: 0; padding: 0; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.5; white-space: nowrap; }
.static-search .search-group li:has(.search-term.active)::before { opacity: 1; border-width: 8px 8px 0; }
.static-search .search-term.active, .static-search .search-term:hover { color: #fff; }
.static-card .item-image img { object-fit: contain !important; background: #fff; }
.static-card .sites-tags { display: flex; align-items: center; }
.static-card .togo { font-size: 18px; line-height: 1; }
.static-card .sites-body { min-width: 0; }
.static-card .item-title b { font-weight: 600; }
.sites-preview .static-preview-image { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: linear-gradient(145deg, #f5f7f9, #e8edf1); color: #777f88; }
.sites-preview .static-preview-image img.static-preview-logo { width: 84px; height: 84px; object-fit: contain; border-radius: 18px; background: #fff; padding: 12px; }
.static-preview-label { max-width: 85%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.static-category-sidebar { gap: 8px; }
.static-sidebar-site { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px; border-radius: 8px; background: #f7f8f9; color: #4b4f54; font-size: 12px; }
.static-sidebar-site:hover { color: #f1404b; background: #fff3f4; }
.static-sidebar-site img { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; border-radius: 50%; background: #fff; }
.static-sidebar-site span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.tax-favorites .io-widget-single-posts-list .widget-header h3 { font-size: 18px; font-weight: 600; }
body.tax-favorites .static-category-sidebar { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.tax-favorites .static-category-sidebar > .static-sidebar-site { width: 100% !important; max-width: none !important; min-height: 46px; margin: 0 !important; flex: none !important; font-size: 14px; }
body.tax-favorites .static-category-sidebar .static-sidebar-site img { width: 30px; height: 30px; flex-basis: 30px; }
.empty-category { padding: 28px; color: #70757b; background: #fff; border-radius: 12px; }
.slider-tab .tab-item.active { background-color: var(--focus-color, #f1404b); }
.tab-pane:not(.active) { display: none; }
.aside-ul .aside-btn.active { color: #f1404b; }
.static-results-page { min-height: calc(100vh - 140px); padding: 0 24px 72px; background: #f1f3f6; }
.static-results-container { max-width: 1260px; margin: 0 auto; }
.directory-search-hero { position: relative; margin: 0 -24px; padding: 42px 24px 92px; color: #fff; background: url('hero.jpg') center 58% / cover no-repeat; }
.directory-search-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(16,23,35,.42),rgba(22,28,37,.27) 54%,rgba(19,22,31,.38)); }
.directory-search-hero > .static-results-container { position: relative; z-index: 1; }
.directory-breadcrumb { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.83); font-size: 13px; }
.directory-breadcrumb a { color: inherit; }
.directory-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.directory-hero-content { max-width: 850px; margin: 18px auto 0; text-align: center; }
.directory-hero-kicker { display: inline-block; padding: 5px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 30px; background: rgba(255,255,255,.12); font-size: 13px; }
.directory-hero-content h1 { margin: 14px 0 8px; color: #fff; font-size: clamp(28px,3.1vw,40px); font-weight: 650; line-height: 1.3; }
.directory-hero-content > p { margin: 0; color: rgba(255,255,255,.91); font-size: 15px; }
#directory-search { max-width: 850px; margin: 26px auto 0; }
.directory-search-controls { display: flex; height: 58px; padding: 4px; border-radius: 13px; background: #fff; box-shadow: 0 9px 24px rgba(0,0,0,.16); }
.directory-search-controls:focus-within { box-shadow: 0 9px 24px rgba(0,0,0,.16), 0 0 0 3px rgba(241,64,75,.3); }
.directory-search-controls input { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 9px; padding: 0 18px; background: transparent; color: #333; font-size: 17px; box-shadow: none; }
.directory-search-controls input:focus { outline: 0; box-shadow: none; }
.directory-search-controls input::placeholder { color: #a4a9af; opacity: 1; }
.directory-search-controls button { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 94px; border: 0; border-radius: 10px; padding: 0 18px; color: #fff; background: #f1404b; font-weight: 600; }
.directory-search-controls button:hover { background: #d92531; color: #fff; }
.directory-search-controls button .iconfont { font-size: 19px; font-weight: 400; }
.directory-results-wrap { position: relative; z-index: 2; margin-top: -38px; }
.directory-results-panel { min-height: 260px; padding: 26px; border-radius: 15px; background: #fff; box-shadow: 0 6px 26px rgba(30,38,50,.055); }
.directory-results-head { display: flex; justify-content: space-between; align-items: end; gap: 15px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #eceef0; }
.directory-results-kicker { display: block; color: #f1404b; font-size: 12px; font-weight: 600; }
.directory-results-head h2 { margin: 4px 0 0; color: #3f4449; font-size: 23px; font-weight: 650; }
#result-status { margin: 0; color: #737a81; font-size: 14px; text-align: right; }
.static-results-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.result-card { min-width: 0; padding: 16px; border-radius: 12px; background: #f7f8f9; transition: background .2s, box-shadow .2s, transform .2s; }
.result-card:hover { background: #fff; box-shadow: 0 10px 25px rgba(30,38,50,.1); transform: translateY(-2px); }
.result-card-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; min-height: 70px; color: #3f4449; }
.result-card-main:hover { color: #f1404b; }
.result-card img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; border-radius: 50%; background: #fff; }
.result-card-main > div { min-width: 0; }
.result-card h3 { margin: 1px 0 5px; color: inherit; font-size: 17px; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-card p { margin: 0; color: #90959b; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #e7e9eb; color: #91979d; font-size: 12px; }
.result-card-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-card-foot a { flex: 0 0 auto; color: #6e747a; }
.result-card-foot a:hover { color: #f1404b; }
.directory-browse[hidden] { display: none !important; }
.directory-browse > p { margin: 0 0 15px; color: #71777d; font-size: 14px; }
.directory-browse nav { display: flex; flex-wrap: wrap; gap: 10px; }
.directory-browse a { display: inline-block; padding: 10px 16px; border-radius: 9px; background: #f3f4f6; color: #4b5056; font-size: 14px; }
.directory-browse a:hover { background: #fff0f1; color: #f1404b; }
.static-supplement { padding: 86px 18px 60px; min-height: 70vh; }
.static-supplement h1 { font-size: clamp(28px,3vw,40px); font-weight: 650; margin-bottom: 8px; }
.static-supplement .lead { color: #70757b; font-size: 16px; margin-bottom: 34px; }
.static-supplement section { margin: 0 0 30px; }
.static-supplement h2 { font-size: 22px; font-weight: 600; margin: 0 0 14px; }
.supplement-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.supplement-links li { min-width: 0; }
.supplement-links a { display: flex; align-items: center; gap: 10px; background: #fff; padding: 12px; border-radius: 11px; min-height: 51px; color: #30343a; box-shadow: 0 2px 10px rgba(18,28,38,.04); }
.supplement-links a:hover { color: #f1404b; }
.supplement-links img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; }
.supplement-links span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.static-author { padding-top: 86px; padding-bottom: 70px; }
.static-author-cover { min-height: 265px; padding: 72px 30px 28px; border-radius: 14px; color: #fff; background: linear-gradient(180deg,rgba(18,30,45,.12),rgba(18,30,45,.7)),url('onenav/images/user-default-cover-full.jpg') center / cover; text-align: center; }
.static-author-avatar { display: block; margin: 0 auto 12px; width: 88px; height: 88px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; background: #fff; }
.static-author-cover h1 { color: #fff; font-size: 30px; font-weight: 650; margin: 0 0 6px; }
.static-author-cover p { color: rgba(255,255,255,.92); margin: 0; }
.static-author-nav { display: flex; gap: 4px; padding: 10px 20px; margin: 14px 0 24px; background: #fff; border-radius: 12px; }
.static-author-nav a { display: inline-block; padding: 10px 18px; color: #555; border-radius: 8px; }
.static-author-nav a:hover { color: #f1404b; background: #fff3f4; }
.static-author-section { background: #fff; border-radius: 14px; padding: 22px; margin-bottom: 24px; }
.static-author-section h2 { margin: 0 0 18px; font-size: 23px; font-weight: 650; }
.static-author-post { display: block; padding: 16px 18px; border-radius: 10px; background: #f7f8f9; color: #333; }
.static-author-post:hover { color: #f1404b; }
.static-author-section .supplement-links a { background: #f7f8f9; }
@media (max-width: 767px) {
  body.mobile-menu-open .mobile-header::before { content: ""; position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,.45); }
  body.mobile-menu-open .mobile-nav { transform: translateX(0); }
}
@media (min-width: 992px) {
  main.is_category > .sidebar.sidebar-tools { position: sticky; top: 80px; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  body.tax-favorites main.is_category.container { width: calc(100% - 32px); max-width: 1920px !important; }
  body.tax-favorites main.is_category > .sidebar { width: clamp(340px, 25vw, 500px) !important; margin-right: calc(-1 * clamp(340px, 25vw, 500px)) !important; }
  body.tax-favorites main.is_category .content-layout { margin-left: calc(clamp(340px, 25vw, 500px) + 15px) !important; }
}
@media (max-width: 1199px) { .static-results-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .supplement-links { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 767px) {
  .ioui-aside { display: none !important; }
  .static-banner { min-height: 240px; background-position: 59% center !important; }
  .static-search { min-height: 180px; padding: 28px 0 15px; }
  .static-search .search-list-menu { gap: 0; margin-bottom: 0; }
  .static-search .search-menu { font-size: 16px; padding: 8px 16px; }
  .static-search .search-menu.active::after { height: 4px; }
  .static-search .search-form { height: 54px; border-radius: 12px; }
  .static-search .search-key { padding: 0 60px 0 18px; font-size: 17px; }
  .static-search .search-submit-btn { width: 48px; height: 48px; font-size: 22px; }
  .static-search .search-list-group { margin-top: 0; }
  .static-search .search-group { justify-content: center; gap: 0; }
  .static-search .search-group li { padding: 10px 8px; }
  .static-search .search-term { font-size: 13px; }
  .static-results-page { padding: 0 16px 40px; }
  .directory-search-hero { margin: 0 -16px; padding: 25px 16px 76px; }
  .directory-hero-content { margin-top: 22px; }
  .directory-hero-content > p { font-size: 13px; line-height: 1.6; }
  #directory-search { margin-top: 22px; }
  .directory-search-controls { height: 54px; }
  .directory-search-controls input { padding: 0 13px; font-size: 15px; }
  .directory-search-controls button { min-width: 74px; padding: 0 10px; }
  .directory-search-controls button .iconfont { font-size: 16px; }
  .directory-results-wrap { margin-top: -32px; }
  .directory-results-panel { padding: 20px 16px; }
  .directory-results-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  #result-status { text-align: left; }
  .static-supplement { padding: 72px 16px 40px; }
  .static-author { padding: 70px 10px 36px; }
  .static-author-cover { min-height: 235px; padding: 42px 15px 22px; }
  .static-author-nav { margin: 10px 0 18px; padding: 7px; }
  .static-author-section { padding: 16px 12px; }
  .supplement-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .supplement-links a { padding: 9px; font-size: 13px; }
  .static-results-grid { grid-template-columns: 1fr; gap: 10px; }
  .result-card { padding: 14px; }
  .result-card h3 { font-size: 16px; }
  body.mobile-menu-open .mobile-header { display: block; }
  body.mobile-menu-open .mobile-nav { display: block; }
}
@media (min-width: 768px) and (max-width: 900px) { .static-results-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
