/* Functional layout fixes using the existing Pinwheel theme. */
[hidden]{display:none!important}
@media(max-width:720px){.masthead__inner{flex-direction:column;align-items:flex-start;gap:.5rem}.navlinks{width:100%;display:flex;flex-wrap:wrap;gap:.45rem .9rem}.navlinks a:nth-child(n+3){display:inline-block}.shortlist__head{flex-wrap:wrap}.shortlist__head h2{width:100%}.result{overflow-wrap:anywhere}}

/* V12: readable result cards on the original pale ticket background. */
.result { color: #11182a; }
.result .tag { color: #26334d; background: #e6e9f8; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.045em; }
.result .tag--origin { color: #ffffff; background: #5140cc; }
.result .muted { color: #38445c; font-size: 1rem; line-height: 1.6; }
.result .muted a { color: #4935b8; text-decoration: underline; text-decoration-thickness: 2px; }
.result .muted a:hover { color: #922050; }

/* V13: site-wide readability without replacing the original theme. */
main a:not(.btn):not(.button) { color: #4935b8; }
main a:not(.btn):not(.button):hover { color: #922050; }
main .eyebrow, .section.prose#main .eyebrow { color: #4935b8; font-size: 0.82rem; }
.hero .eyebrow { color: #7ce8dd; }
.result .eyebrow { color: #4935b8; }
.notebook th, .notebook td, .notebook td:first-child, .notebook td:nth-child(3) { color: #11182a; font-size: 1rem; font-family: var(--font-body); width: auto; }
.notebook th { background: #e6e9f8; font-weight: 700; text-transform: none; letter-spacing: normal; }
.notebook td:first-child { font-weight: 700; }
.notebook .button { color: #fff; background: #5140cc; }
.btn, .notebook button { font-size: 0.95rem; line-height: 1.4; min-height: 44px; }
.navlinks a { font-size: 0.9rem; }
.pool-count, .reshuffle, .result__hint { font-size: 0.9rem; }
.spin, .ew-spin { background: linear-gradient(135deg, #5140cc, #a71f60); color: #fff; }
.spin:hover, .ew-spin:hover { background: linear-gradient(135deg, #4534b7, #8e194f); }
.wheel.is-settled .wedge-label, #ew-wheel.is-settled .wedge-label { opacity: 1; }
.wedge-label { font-weight: 600; }
.chip button { background: #5140cc; color: #fff; min-width: 36px; min-height: 36px; }
.field select, .segmented label { font-size: 0.9rem; }
.field select option { color: #11182a; background: #fff; }
.ew-tag { background: #5140cc; color: #fff; font-size: 0.8rem; }
.ew-hint, .ew-credit { font-size: 0.85rem; }
.ew-segmented label { font-size: 0.85rem; }

/* Worldwide finder, using the existing theme. */
.finder{padding:1.3rem;border:1px solid #c1c8db;border-radius:18px;background:#eef1ff;margin:1.5rem 0}.finder-checks,.finder-actions,.discovery-links{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;align-items:center}.notebook .finder-checks label{display:flex;align-items:center;gap:.6rem}.notebook .finder-checks input{width:1.2rem;height:1.2rem}.origin-grid{list-style:none;padding:0}.name-meta{font-weight:700;color:#4935b8}.name-meaning{font-size:1.05rem}.notebook .card details{margin:.6rem 0;background:transparent}.notebook .card summary{font-size:.9rem;cursor:pointer}.discovery-links{justify-content:center;margin:1.5rem auto;max-width:100%;padding:0 1rem}main .discovery-links a{color:#fff;border:1px solid #b7b0ee;padding:.7rem 1rem;border-radius:12px;background:#302561}main .discovery-links a:hover{color:#fff;background:#4935b8}.notebook #library .card:before{display:none}.notebook #library .card{display:flex;flex-direction:column}.notebook #library .card>.btn{margin-top:auto;align-self:flex-start}.notebook .collection-links{line-height:1.8}

.notebook .reference-method{border:1px solid #c1c8db;border-radius:12px;padding:1rem;background:#eef1ff;margin:1rem 0}.notebook .reference-method summary{font-weight:700;cursor:pointer}.notebook .reference-method p{font-size:.95rem;line-height:1.65}
