#dictionary { width: 100%; text-align: left; }
#dictionary > div, #dictionary .formula, #dictionary .ex > div { text-align: left; }
#dictionary .crumbs { margin: 30px 0 0; font-family: "IBM Plex Mono", monospace; font-size: 0.65em; letter-spacing: 1px; text-transform: uppercase; color: grey; }
#dictionary .crumbs a { color: inherit; }
#dictionary h1 { margin: 8px 0 20px; background: none !important; color: inherit !important; font-size: 1.9em; line-height: 1.15; text-transform: none; letter-spacing: 0; padding: 0; text-align: left; }
body.dark #dictionary h1 { background: none !important; color: #eee !important; }
#dictionary h2 { margin: 36px 0 8px; font-family: "IBM Plex Mono", monospace; font-size: 0.7em; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: grey; text-align: left; }
#dictionary p, #dictionary li { font-size: 0.92em; line-height: 1.5; }
#dictionary p { margin: 0 0 14px; }
#dictionary ul { margin: 0 0 14px; padding-left: 22px; }
#dictionary li { margin-bottom: 8px; }
#dictionary .card { position: relative; isolation: isolate; margin: 0 0 8px; padding: 16px 18px; background: #fff; border: 1px solid #bbb; border-radius: 2px; }
#dictionary .card::before { content: ""; position: absolute; z-index: -1; top: 4px; left: 4px; right: -7px; bottom: -7px; background-image: linear-gradient(#ccc 0 0); background-size: 2px 2px; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px), repeating-linear-gradient(0deg, #000 0 2px, transparent 2px 5px); -webkit-mask-composite: source-in; mask-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px), repeating-linear-gradient(0deg, #000 0 2px, transparent 2px 5px); mask-composite: intersect; }
#dictionary .card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; outline: 1px solid #bbb; border-radius: 1px; pointer-events: none; }
#dictionary .card p { margin: 0; }
body.dark #dictionary .card::after { background: #000; outline-color: #4b4b4b; }
#dictionary .formula { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; font-family: "IBM Plex Mono", monospace; font-size: 0.65em; text-transform: uppercase; }
#dictionary .formula span { padding: 9px 12px; border: 1px solid #bbb; background: #fff; }
body.dark #dictionary .formula span { background: #000; border-color: #4b4b4b; }
#dictionary .formula b { font-size: 1.4em; }
#dictionary .ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 18px 0 22px; }
#dictionary .ex .card p { margin-top: 8px; font-size: 0.8em; line-height: 1.4; }
#dictionary .ex .n { font-family: "IBM Plex Mono", monospace; font-size: 1.4em; font-weight: 700; line-height: 1.1; }
#dictionary .ex .l { font-family: "IBM Plex Mono", monospace; font-size: 0.6em; letter-spacing: 1px; text-transform: uppercase; color: grey; }
@media (max-width: 520px) { #dictionary .ex { grid-template-columns: 1fr; } }
#dictionary p a, #dictionary li a { color: inherit; text-decoration-color: #999; text-underline-offset: 3px; }
#dictionary p a:hover, #dictionary li a:hover { text-decoration-color: currentColor; }
#dictionary #related-companies { margin: 18px 0 0; }
#dictionary #related-companies .related-grid { row-gap: 20px; column-gap: 24px; }
#dictionary .terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 14px 0 0; }
#dictionary .terms .card { display: block; margin: 0; padding: 12px 14px; color: inherit; text-decoration: none; text-align: left; }
#dictionary .terms .card b { display: block; font-family: "IBM Plex Mono", monospace; font-size: 0.68em; letter-spacing: 1px; text-transform: uppercase; }
#dictionary .terms .card span { display: block; margin-top: 4px; font-size: 0.75em; line-height: 1.35; color: #555; }
#dictionary .terms a.card:hover::after { outline-color: #000; }
body.dark #dictionary .terms .card span { color: #bbb; }
body.dark #dictionary .terms a.card:hover::after { outline-color: #bbb; }
#dictionary .terms .card.soon { opacity: 0.45; }
@media (max-width: 600px) { #dictionary .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
#dictionary .all-terms { margin-top: 26px; font-family: "IBM Plex Mono", monospace; font-size: 0.7em; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
#dictionary .intro { color: #555; }
body.dark #dictionary .intro { color: #bbb; }
#dictionary .topics { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 6px; font-family: "IBM Plex Mono", monospace; font-size: 0.65em; letter-spacing: 1px; text-transform: uppercase; }
#dictionary .topics a { color: grey; }
#dictionary section { scroll-margin-top: 80px; }
