#toolkit { color: #302f2b; }
.tk-heading { margin-bottom: clamp(1.3rem, 2vw, 1.9rem); }
.tk-heading h2, .tk-dialog h2 { margin: 0; font-family: var(--serif, Georgia, serif); font-weight: 500; line-height: 1.04; }
.tk-heading h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.tk-heading p { margin: .65rem 0 0; font: 400 1rem/1.55 var(--sans, Arial, sans-serif); color: #55544e; }
.tk-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.tk-card { min-width: 0; padding: clamp(1.2rem, 2.2vw, 2rem); border: 1px solid #d9d6cf; border-radius: 4px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; font: inherit; color: #302f2b; background: #fffefa; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.tk-card:hover, .tk-card:focus-visible { background: #f2f2ea; border-color: #888e79; }
.tk-icon { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #eef0e8; color: #50583f; margin-bottom: 1rem; }
.tk-icon svg { width: 1.45rem; height: 1.45rem; }
.tk-card-title { font: 500 clamp(1.55rem, 2.4vw, 2.05rem)/1.12 var(--serif, Georgia, serif); margin-bottom: .45rem; }
.tk-card-copy { font: 400 1rem/1.5 var(--sans, Arial, sans-serif); color: #53524b; }
.tk-dialog, .tk-dialog * { box-sizing: border-box; }
.tk-dialog { position: fixed; inset: 0; width: min(48rem, calc(100vw - 2rem)); height: max-content; max-width: none; max-height: calc(100dvh - 2rem); padding: 0; margin: auto; color: #302f2b; background: #fbfaf8; border: none; border-radius: 8px; box-shadow: 0 1.5rem 6rem #16191140; overflow: hidden; font: 400 1rem/1.5 var(--sans, Arial, sans-serif); }
.tk-dialog:not([open]) { display: none; }
.tk-dialog::backdrop { background: rgba(28, 30, 24, .59); }
body:has(.tk-dialog[open]) { overflow: hidden; }
.tk-sheet { max-height: calc(100dvh - 2rem); display: flex; flex-direction: column; }
.tk-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.35rem clamp(1rem, 4vw, 2rem); flex: none; border-bottom: 1px solid #d9d6cf; }
.tk-dialog h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.tk-close { display: grid; place-items: center; flex: 0 0 2.75rem; height: 2.75rem; background: transparent; color: #302f2b; border: 1px solid #d9d6cf; border-radius: 50%; cursor: pointer; }
.tk-close svg { width: 1.2rem; height: 1.2rem; }
.tk-dialog-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.15rem clamp(1rem, 4vw, 2rem) 1.6rem; }
#tk-dialog-intro { margin: 0 0 1.35rem; color: #515149; max-width: 64ch; }
.tk-tour-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem; }
.tk-home { min-width: 0; margin: 0; padding: 0; border: 0; }
.tk-home legend { font: 500 1.65rem/1.2 var(--serif, Georgia, serif); color: #485039; margin-bottom: .1rem; }
.tk-home label, .tk-search-label { display: block; font-weight: 600; font-size: .9rem; margin: .85rem 0 .25rem; }
.tk-home input, .tk-home textarea, .tk-search { width: 100%; border: 1px solid #c5c4b9; background: white; color: #302f2b; border-radius: 3px; padding: .6rem .7rem; font: inherit; }
.tk-home textarea { display: block; resize: vertical; }
.tk-home input::placeholder, .tk-home textarea::placeholder, .tk-search::placeholder { color: #6b6b63; }
.tk-storage, .tk-source { color: #5c5c52; font-size: .875rem; margin: 1rem 0 0; }
.tk-source a { color: #425034; text-underline-offset: .2em; text-decoration: underline; }
.tk-fund-item { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 0; cursor: pointer; border-top: 1px solid #d9d6cf; }
.tk-fund-item input { flex: 0 0 1.1rem; width: 1.1rem; height: 1.1rem; margin: .22rem 0 0; accent-color: #515a40; }
.tk-fund-item strong, .tk-fund-item span span { display: block; }
.tk-fund-item span span { color: #515149; margin-top: .15rem; }
.tk-glossary { margin: 1rem 0 0; }
.tk-glossary > div { padding: .75rem 0; border-top: 1px solid #d9d6cf; }
.tk-glossary dt { font-weight: 600; }
.tk-glossary dd { margin: .2rem 0 0; color: #515149; }
.tk-dialog [hidden] { display: none !important; }
.tk-card:focus-visible, .tk-dialog :is(button, input, textarea, a):focus-visible { outline: 2px solid #59634a; outline-offset: 3px; }
@media (max-width: 44rem) {
  .tk-cards { grid-template-columns: 1fr; gap: .65rem; }
  .tk-card { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; padding: 1.1rem; }
  .tk-icon { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .tk-card-copy, .tk-card-title { grid-column: 2; }
}
@media (max-width: 34rem) {
  .tk-tour-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tk-dialog { width: calc(100vw - 1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .tk-card { transition: none; }
}
