* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #f4f7fc; color: #0b1a33; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Microsoft YaHei', sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, #directoryTitle:focus-visible { outline: 3px solid #8ec7ff; outline-offset: 3px; }
.calculator-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; flex-shrink: 0; min-height: 66px; padding: 10px 28px; background: #fff; border-bottom: 1px solid #e7edf5; }
.calculator-plan { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; color: #16803d; background: #eaf8ef; font-size: .8rem; font-weight: 500; }
.calculator-plan strong { font-size: .85rem; font-style: italic; font-weight: 800; }
.calculator-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 1.325rem; font-weight: 700; line-height: 1.4; }
.calculator-title-icon { width: 34px; height: 34px; color: #006acd; }
.calculator-open-link { display: inline-flex; align-items: center; gap: 6px; justify-self: end; color: #69798d; font-size: .9rem; white-space: nowrap; }
.calculator-open-link:hover { color: #006acd; }
.calculator-main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; padding: 32px 24px 16px; }
.nav-content { width: 100%; max-width: 1160px; min-width: 0; }
.search-card { padding: 26px 28px 22px; border: 1px solid #e5ebf3; border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgba(18,61,107,.06); }
.search-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-kicker { display: block; margin-bottom: 7px; color: #8895a7; font-size: .75rem; }
.search-heading h2 { margin: 0 0 8px; color: #315d8d; font-size: 1.45rem; font-weight: 700; }
.search-heading p { margin: 0; color: #69798d; font-size: .85rem; line-height: 1.8; }
.directory-meta { color: #8895a7; font-size: .78rem; white-space: nowrap; }
.directory-meta strong { margin-right: 3px; color: #315d8d; font-size: 1.2rem; font-weight: 600; }
.directory-meta > span { padding: 0 8px; color: #b8c4d2; }
.search-form { display: flex; gap: 12px; }
.search-input-wrap { display: flex; flex: 1; align-items: center; gap: 11px; min-width: 0; padding: 0 14px; border: 1px solid #dce5f0; border-radius: 12px; color: #8895a7; background: #f8faff; }
.search-input-wrap:focus-within { border-color: #006acd; box-shadow: 0 0 0 3px #e7f2ff; }
.search-input-wrap > svg { flex-shrink: 0; width: 20px; height: 20px; }
.search-input-wrap input { flex: 1; min-width: 0; width: 100%; height: 46px; padding: 10px 0; border: 0; outline: none; color: #0b1a33; background: transparent; font-size: .875rem; }
.search-input-wrap input::placeholder { color: #9aa8ba; }
.search-input-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; }
.clear-query { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: #e9eef6; color: #69798d; font-size: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 21px; border: 1px solid #dce5f0; border-radius: 11px; font-size: .85rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.button.primary { color: #fff; border-color: #006acd; background: #006acd; }
.button.primary:hover { background: #0059b3; }
.button.secondary { color: #315d8d; background: #fff; }
.button.secondary:hover { background: #eef4fe; }
.search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; margin-top: 13px; color: #96a3b5; font-size: .72rem; }
.search-hints button { padding: 2px 0; border: 0; color: #697f99; background: transparent; font-size: inherit; }
.search-hints button:hover { color: #006acd; }
.new-window-note { margin-left: auto; color: #96a3b5; }
.featured-panel { margin-top: 24px; padding: 22px; border: 1px solid #d2dce9; border-radius: 22px; background: transparent; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; color: #315d8d; font-size: 1rem; font-weight: 600; }
.section-heading > span { color: #8895a7; font-size: .75rem; }
.quick-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.quick-link { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 11px; border: 1px solid #e3eaf4; border-radius: 11px; background: #fff; color: #315d8d; font-size: .8rem; }
.quick-link > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-link:hover { border-color: #bfd6ed; background: #f8faff; }
.quick-badge { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 8px; color: #4c83b4; background: #eef4fe; font-size: .8rem; font-weight: 700; }
.quick-arrow { margin-left: auto; color: #a2b1c3; font-size: .8rem; }
.category-tabs { position: sticky; top: 0; z-index: 3; display: flex; flex-direction: column; gap: 10px; margin: 20px 0 22px; padding: 12px 0; background: #f4f7fc; }
.category-all-row { display: flex; }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; min-width: 0; }
.category-tab { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 34px; padding: 6px 11px; border: 1px solid #dce5f0; border-radius: 9px; color: #69798d; background: #fff; font-size: .77rem; white-space: nowrap; }
.category-tab span { color: #a3afbd; font-size: .66rem; font-variant-numeric: tabular-nums; }
.category-tab:hover { border-color: #bfd6ed; color: #315d8d; }
.category-tab[aria-pressed="true"] { border-color: #b7d5f2; color: #006acd; background: #eaf3fe; }
.category-tab[aria-pressed="true"] span { color: #6193c2; }
.directory-heading { margin-bottom: 18px; }
.results-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#filterStatus { margin: 0; color: #8895a7; font-size: .75rem; line-height: 1.8; }
.reset-filters { padding: 0; border: 0; color: #006acd; background: transparent; font-size: .75rem; }
.category-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.category-section { min-width: 0; padding: 21px; border: 1px solid #e0e8f3; border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(18,61,107,.025); }
.category-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; margin-bottom: 4px; border-bottom: 1px solid #edf1f7; }
.category-heading h3 { margin: 0 0 6px; color: #315d8d; font-size: .95rem; font-weight: 600; }
.category-heading p { margin: 0; color: #96a3b5; font-size: .7rem; line-height: 1.7; }
.category-count { flex-shrink: 0; color: #96a3b5; font-size: .68rem; }
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.directory-site { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 88px; padding: 12px 3px; border-bottom: 1px solid #f0f3f8; }
.directory-site:hover .site-name { color: #006acd; }
.directory-site:hover .site-badge { color: #006acd; background: #e9f2fd; }
.site-badge { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid #e7edf6; border-radius: 10px; color: #6a8cb0; background: #f3f7fc; font-size: .9rem; font-weight: 600; }
.site-copy { flex: 1; min-width: 0; }
.site-copy > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-name { margin-bottom: 5px; color: #31516f; font-size: .83rem; font-weight: 600; }
.site-description { margin-bottom: 4px; color: #8895a7; font-size: .68rem; }
.site-host { color: #a0adbd; font: .65rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.site-arrow { flex-shrink: 0; color: #bac6d4; font-size: .8rem; }
.empty-state { padding: 45px 20px; border: 1px dashed #ccd9e9; border-radius: 20px; text-align: center; }
.empty-symbol { display: block; margin-bottom: 8px; color: #90aac6; font-size: 3rem; line-height: 1; }
.empty-state h3 { color: #315d8d; font-size: 1.05rem; font-weight: 600; }
.empty-state p { margin: 12px 0 20px; color: #8895a7; font-size: .8rem; line-height: 1.8; }
.calculator-tips { flex-shrink: 0; width: 100%; max-width: 1160px; margin-top: auto; padding: 20px 4px 0; border-top: 1px solid #dfe7f1; color: #66758a; font-size: .78rem; line-height: 1.9; text-align: left; }
.calculator-tips h2 { margin: 0 0 12px; color: #315d8d; font-size: .9rem; font-weight: 600; }
.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tips-grid p { margin: 0; }
.tips-grid strong { display: block; margin-bottom: 4px; color: #536277; font-weight: 600; }
.review-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #e7edf5; color: #96a3b5; font-size: .7rem; }
.noscript-note { margin: 14px 0 0; color: #69798d; font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) { .quick-links { grid-template-columns: repeat(4, minmax(0, 1fr)); } .category-directory { gap: 16px; } .category-section { padding: 18px; } .site-grid { column-gap: 8px; } .directory-site { gap: 8px; } .site-arrow { display: none; } }
@media (max-width: 767.98px) { .calculator-header { padding: 8px 16px; gap: 10px; } .calculator-plan { padding: 5px 8px; font-size: .72rem; } .calculator-title { gap: 7px; font-size: 1.175rem; } .calculator-title-icon { width: 30px; height: 30px; } .calculator-open-link { font-size: .8rem; } .calculator-main { padding: 24px 16px 16px; } .search-card { padding: 22px; } .category-directory { grid-template-columns: 1fr; } .quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } .category-list { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 10px; } .tips-grid { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 575.98px) { .calculator-header { grid-template-columns: minmax(0, 1fr) auto; } .calculator-title { grid-column: 1 / -1; grid-row: 1; } .calculator-plan { grid-column: 1; grid-row: 2; } .calculator-open-link { grid-column: 2; grid-row: 2; } .calculator-main { padding: 20px 12px 16px; } .search-card { padding: 20px 16px; border-radius: 22px; } .search-heading { margin-bottom: 16px; gap: 10px; } .search-heading h2 { font-size: 1.25rem; } .search-heading p { font-size: .78rem; } .search-form { gap: 8px; } .search-input-wrap { padding: 0 10px; gap: 8px; } .search-input-wrap input { height: 42px; font-size: .8rem; } .search-form .button { padding: 8px 12px; font-size: .8rem; } .search-input-wrap > svg { width: 17px; height: 17px; } .new-window-note { width: 100%; margin: 3px 0 0; } .featured-panel { padding: 18px 14px; border-radius: 20px; } .featured-panel .section-heading > span { display: none; } .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .quick-link { padding: 8px; font-size: .76rem; } .quick-badge { flex-basis: 25px; height: 25px; } .category-tabs { margin-top: 14px; margin-bottom: 14px; } .category-section { padding: 18px 13px; } .category-heading { gap: 8px; } .category-heading p { max-width: 230px; font-size: .66rem; } .category-count { font-size: .63rem; } .directory-site { min-height: 84px; gap: 7px; } .site-badge { flex-basis: 26px; height: 28px; border-radius: 8px; font-size: .8rem; } .site-name { font-size: .78rem; } .site-description { font-size: .64rem; } .site-host { font-size: .6rem; } .directory-heading { gap: 8px; } }
