/* Scoped to the dictionary: protected pages keep their existing presentation. */
.dictionary-guide { max-width: 1120px; }
.dictionary-guide [id] { scroll-margin-top: 104px; }
.dictionary-guide p, .dictionary-guide li { line-height: 1.65; }
.dictionary-guide a { color: #075c77; text-decoration: underline; text-underline-offset: 3px; }
.dictionary-guide a:focus-visible, .dictionary-guide summary:focus-visible { outline: 3px solid #075c77; outline-offset: 4px; }
.dictionary-intro, .dictionary-section { margin-top: 28px; padding: clamp(22px,4vw,42px); border: 1px solid #becfca; border-radius: 16px; background: #fbfdfb; }
.dictionary-intro { border-top: 5px solid #087b70; background: linear-gradient(130deg,#e4f1ee,#fbfdfb 85%); }
.dictionary-intro h1 { font-family: Georgia,serif; font-size: clamp(2.1rem,4vw,3.6rem); line-height: 1.1; max-width: 25ch; margin: 16px 0 24px; color: #163139; }
.dictionary-guide .eyebrow { color: #075e55; }
.dictionary-section h2 { font-size: clamp(1.5rem,2.7vw,2.1rem); line-height: 1.2; margin: 12px 0 18px; }
.provenance { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; border-block: 1px solid #bccdce; margin: 24px 0; padding: 18px 0; }
.provenance dt, .field-example dt { color: #456068; font-size: .85rem; }
.provenance dd { margin: 6px 0 0; font-weight: 700; color: #173b3e; }
.reading-note, .review-note { border-left: 4px solid #087b70; padding: 16px 20px; background: #edf8f5; color: #173b3e; }
.dictionary-guide .review-note { font-size: 1rem; }
.dictionary-jump { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; }
.dictionary-jump a { padding-block: 8px; }
.quality-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 24px 0; }
.quality-grid div { padding: 18px; background: #edf5f3; border-radius: 10px; border: 1px solid #c7d8d2; }
.quality-grid strong { display: block; font-size: 2.6rem; line-height: 1.15; color: #075e55; margin-bottom: 10px; }
.quality-grid span { color: #2e4b50; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 28px; }
.field-card { min-width: 0; display: flex; flex-direction: column; padding: 24px; background: white; border: 1px solid #b8cccc; border-top: 4px solid #087b70; border-radius: 10px; }
.field-card h3 { color: #163139; font-size: 1.3rem; line-height: 1.25; margin: 0 0 12px; }
.field-number { margin: 0 0 12px; font-size: .8rem; letter-spacing: .1em; color: #075e55; font-weight: 700; }
.dictionary-guide code { overflow-wrap: anywhere; word-break: normal; font-size: .9em; }
.field-key { display: block; background: #edf5f3; padding: 10px; color: #173b3e; border-radius: 5px; }
.field-type { color: #456068; font-size: .88rem; margin-bottom: 0; }
.field-example { padding: 14px; background: #f2f7f7; border-radius: 7px; margin: 0; }
.field-example dd { margin: 6px 0 0; overflow-wrap: anywhere; }
.field-limit { padding-left: 14px; border-left: 3px solid #849e98; color: #334e53; }
.field-presence { border-top: 1px solid #c7d8d8; padding-top: 14px; margin: auto 0 0; font-size: .85rem; color: #334e53; }
.reading-steps { padding-left: 24px; }
.reading-steps li { padding-left: 6px; margin-bottom: 18px; }
.dictionary-guide details { border: 1px solid #bccdce; border-radius: 8px; background: #f2f7f7; padding: 18px; }
.dictionary-guide summary { cursor: pointer; color: #173b3e; font-weight: 700; }
@media(max-width:700px) {
 .provenance,.quality-grid,.field-grid { grid-template-columns: 1fr; }
 .provenance { gap: 12px; }
 .provenance div + div { border-top: 1px solid #c7d8d8; padding-top: 10px; }
 .quality-grid { gap: 12px; }
 .quality-grid div { display: grid; grid-template-columns: 85px 1fr; gap: 14px; align-items: center; padding: 16px; }
 .quality-grid strong { font-size: 1.9rem; margin: 0; }
 .field-card { padding: 20px; }
 .dictionary-guide [id] { scroll-margin-top: 84px; }
 .dictionary-jump { flex-direction: column; gap: 4px; }
}
