:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #211b27;
  background: #f7f5f1;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; }
:is(a, button, input, summary):focus-visible { outline: 3px solid #f56600; outline-offset: 3px; }
.shell { width: min(100% - 48px, 1120px); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 30; padding: 12px 16px; border-radius: 6px; color: #211b27; background: #fff; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: relative; z-index: 20; color: #fff; background: rgba(46, 26, 71, .97); border-bottom: 1px solid #ffffff2a; }
.header-inner { min-height: 59px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 8px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; gap: 1px; }
.brand strong { font-size: 17px; line-height: 1.05; color: #fff; overflow-wrap: anywhere; }
.brand small { font-size: 10px; line-height: 1.25; color: #d8cbe4; overflow-wrap: anywhere; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 28px; min-width: 0; }
.site-nav > a, .more-sites summary { font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.site-nav > a, .more-sites summary { display: inline-flex; align-items: center; min-height: 24px; }
.site-nav > a:hover, .more-sites summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.support-button { min-height: 39px; padding: 8px 12px; border: 1px solid #c8b8d7; border-radius: 6px; background: transparent; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.support-button:hover { background: #ffffff22; }
.more-sites { position: relative; }
.more-sites summary { list-style: none; cursor: pointer; }
.more-sites summary::-webkit-details-marker { display: none; }
.more-sites summary::after { content: "⌄"; margin-left: 8px; font-size: 16px; }
.more-sites-menu { position: absolute; z-index: 25; top: calc(100% + 19px); right: 0; width: 260px; display: grid; gap: 2px; padding: 9px; border: 1px solid #e3dce9; border-radius: 7px; background: #fff; color: #211b27; box-shadow: 0 16px 32px #211b2733; }
.more-sites-menu a { padding: 9px 10px; border-radius: 4px; font-size: 13px; text-decoration: none; }
.more-sites-menu a:hover { background: #f4eef9; color: #522d80; }
.more-sites-menu hr { width: 100%; margin: 3px 0; border: 0; border-top: 1px solid #e7e1eb; }
.menu-toggle { display: none; }
.main-content { flex: 1; }
.page-heading { color: #fff; background: radial-gradient(circle at 88% 22%, rgba(245, 102, 0, .35), transparent 30%), linear-gradient(135deg, #2e1a47, #522d80); }
.hero-inner { position: relative; padding-block: 76px 82px; }
.page-share { position: absolute; top: 76px; right: 0; z-index: 10; }
.share-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #fff; color: #522d80; cursor: pointer; box-shadow: 0 5px 15px #211b2726; }
.share-button:hover { background: #f5eefa; }
.share-menu { position: absolute; top: calc(100% + 8px); right: 0; width: min(230px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 8px; border: 1px solid #ded4e8; border-radius: 8px; background: #fff; color: #211b27; box-shadow: 0 16px 35px #211b2740; }
.share-menu > a, .share-menu > button { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 5px; background: none; color: #2e1a47; text-align: left; text-decoration: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.share-menu > a:hover, .share-menu > button:hover { background: #f3eef8; }
.share-status { display: block; min-height: 0; padding: 0 10px; color: #522d80; font-size: 12px; line-height: 1.4; }
.share-status:empty { display: none; }
.share-fallback { display: grid; gap: 5px; padding: 8px 10px; color: #5f5964; font-size: 12px; }
.share-fallback input { width: 100%; padding: 7px; border: 1px solid #b9b4bf; border-radius: 4px; color: #211b27; }
.eyebrow { margin: 0 0 18px; color: #ad4f0a; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
.page-heading .eyebrow { color: #ffd3b2; }
.page-heading h1 { max-width: 930px; margin: 0 0 16px; font-size: clamp(46px, 5.5vw, 70px); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; overflow-wrap: anywhere; }
.page-heading p:last-child { max-width: 640px; margin: 0; color: #f1e9f5; font-size: 16px; line-height: 1.55; }
.catalog { padding-top: 37px; padding-bottom: 72px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.catalog-heading .eyebrow { margin-bottom: 9px; }
.catalog-heading h2 { margin: 0; font-size: 35px; font-weight: 400; line-height: 1.15; }
.catalog-count { margin: 0 0 3px; color: #64616a; font-size: 13px; }
.catalog-controls { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 16px; border: 1px solid #e1dce4; border-radius: 12px; background: #fff; box-shadow: 0 4px 13px #2e1a470c; }
.search-field { width: min(100%, 480px); display: grid; gap: 7px; }
.search-field label, .view-controls > span { color: #322b37; font-size: 13px; font-weight: 700; }
.search-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #817688; border-radius: 6px; background: #fff; color: #211b27; font-size: 15px; }
.search-field input::placeholder { color: #76717a; }
.view-controls { display: flex; align-items: center; gap: 4px; }
.view-controls > span { margin-right: 8px; }
.view-controls button { min-height: 40px; padding: 8px 15px; border: 1px solid #817688; background: #fff; color: #2e1a47; font-size: 13px; font-weight: 700; cursor: pointer; }
.view-controls button:first-of-type { border-radius: 6px 0 0 6px; }
.view-controls button:last-of-type { border-radius: 0 6px 6px 0; margin-left: -5px; }
.view-controls button[aria-pressed="true"] { position: relative; border-color: #522d80; background: #522d80; color: #fff; }
.tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; margin-top: 18px; }
.tool-card { display: flex; flex-direction: column; min-height: 310px; padding: 23px; border: 1px solid #e1dce4; border-top: 4px solid #f56600; border-radius: 9px; background: #fff; box-shadow: 0 4px 14px #2e1a470d; }
.tool-card:hover { border-color: #b8a6c9; border-top-color: #f56600; box-shadow: 0 8px 22px #2e1a471b; }
.tool-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 8px; background: #f0e9f7; }
.tool-icon-shape { position: relative; width: 25px; height: 25px; border: 2px dashed #522d80; border-radius: 5px; }
.tool-icon-shape::after { content: ""; position: absolute; width: 8px; height: 8px; border: 2px solid #f56600; border-radius: 50%; right: -6px; bottom: -5px; background: #f0e9f7; }
.tool-copy { flex: 1; }
.tool-category { margin-bottom: 8px; color: #ad4f0a; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tool-card h3 { margin-bottom: 9px; color: #2e1a47; font-size: 23px; line-height: 1.2; }
.tool-card h3 a { text-decoration: none; }
.tool-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tool-copy > p:not(.tool-category) { margin-bottom: 16px; color: #5f5964; font-size: 14px; line-height: 1.55; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tool-tags span { padding: 4px 8px; border-radius: 4px; background: #f2edf6; color: #4b2b70; font-size: 11px; font-weight: 700; }
.tool-open { align-self: start; color: #522d80; font-size: 14px; font-weight: 800; text-decoration: none; }
.tool-open { display: inline-flex; align-items: center; min-height: 24px; }
.tool-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 24px; border: 1px dashed #bfb0cc; border-radius: 8px; color: #5f5964; background: #fff; }
.tool-list[data-view="list"] { display: block; }
.tool-list[data-view="list"] .tool-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 0; padding: 19px 22px; }
.tool-list[data-view="list"] .tool-icon { margin: 0; }
.tool-list[data-view="list"] .tool-card h3 { font-size: 19px; margin-bottom: 5px; }
.tool-list[data-view="list"] .tool-copy > p:not(.tool-category) { margin-bottom: 0; }
.tool-list[data-view="list"] .tool-tags { display: none; }
.tool-list[data-view="list"] .tool-open { align-self: center; white-space: nowrap; }
.site-footer { border-top: 1px solid #dcd5e2; background: #f7f5f1; }
.footer-citation { padding: 14px 0; border-bottom: 1px solid #e4ddea; }
.footer-citation summary { width: fit-content; color: #522d80; font-size: 13px; font-weight: 700; cursor: pointer; }
.footer-citation summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-citation-content { max-width: 850px; padding: 12px 0 2px; color: #635e67; font-size: 13px; line-height: 1.6; }
.footer-citation-content p { margin: 0 0 9px; }
.footer-citation-content a { color: #522d80; text-decoration: underline; overflow-wrap: anywhere; }
.footer-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #635e67; font-size: 12px; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner a { font-weight: 700; text-underline-offset: 3px; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 24px; }
.support-dialog { width: min(100% - 32px, 470px); padding: 26px; border: 1px solid #e1dce4; border-radius: 9px; box-shadow: 0 20px 60px #211b2744; }
.support-dialog::backdrop { background: #211b27a8; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { min-width: 0; overflow-wrap: anywhere; color: #2e1a47; font-size: 26px; line-height: 1.2; }
.dialog-heading button { border: 0; background: none; color: #522d80; font-size: 27px; line-height: 1; cursor: pointer; }
.support-dialog p { color: #5f5964; font-size: 14px; line-height: 1.6; }
.donate-link { display: inline-flex; max-width: 100%; overflow-wrap: anywhere; gap: 8px; align-items: center; padding: 12px 15px; border-radius: 6px; background: #522d80; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.donate-link:hover { background: #2e1a47; }
@media (max-width: 760px) {
  .header-inner { position: relative; min-height: 62px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; }
  .menu-toggle { width: 42px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #ffffff88; border-radius: 6px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 19px; height: 2px; background: #fff; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border: 1px solid #5f4a75; border-radius: 0 0 8px 8px; background: #2e1a47; box-shadow: 0 15px 25px #211b2733; }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .more-sites summary { padding: 11px 10px; }
  .support-button { margin: 7px 10px; align-self: start; max-width: calc(100% - 20px); white-space: normal; text-align: left; }
  .more-sites-menu { position: static; width: 100%; margin: 0 0 8px; box-shadow: none; }
  .hero-inner { padding-block: 56px 62px; }
  .page-share { top: 40px; }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 32px, 1120px); }
  .dialog-heading { flex-direction: column-reverse; align-items: flex-end; }
  .dialog-heading h2 { width: 100%; font-size: 20px; }
  .page-heading h1 { font-size: clamp(39px, 9vw, 52px); }
  .page-heading .eyebrow { padding-right: 55px; }
  .page-heading h1 { padding-right: 18px; }
  .page-heading p:last-child { font-size: 15px; }
  .catalog { padding-top: 30px; padding-bottom: 52px; }
  .catalog-heading h2 { font-size: 31px; }
  .catalog-controls { align-items: stretch; flex-direction: column; gap: 17px; }
  .search-field { width: 100%; }
  .view-controls { align-self: end; }
  .tool-list[data-view="list"] .tool-card { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .tool-list[data-view="list"] .tool-icon { width: 38px; height: 38px; }
  .tool-list[data-view="list"] .tool-open { grid-column: 2; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; padding: 20px 0; }
}
@media (max-width: 380px) {
  .header-inner { gap: 8px; }
  .brand { gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 8px; }
  .menu-toggle { width: 38px; height: 38px; flex: none; }
  .page-heading .eyebrow { padding-right: 45px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
