/* One button appearance; page-specific CSS controls only surrounding layout. */
:root {
 --button-bg:#f0f3e9;
 --button-border:#d6ddca;
 --button-ink:#4b5141;
 --button-hover-bg:#dce4cf;
 --button-hover-border:#aebc98;
 --button-hover-ink:#303d23;
 --button-radius:4px;
 --button-font:15px/1.6 Georgia,'Times New Roman',serif;
}
:root body :is(.page,.site-shell) :is(a.book-tag-person,span.book-tag-person,a.contents-button,a.read-action,.chapter-grid a,summary) {
 box-sizing:border-box;
 max-width:100%;
 min-height:44px;
 padding:9px 12px;
 border:1px solid var(--button-border);
 border-radius:var(--button-radius);
 background:var(--button-bg);
 color:var(--button-ink);
 font:var(--button-font);
 letter-spacing:normal;
 text-transform:none;
 text-decoration:none;
 overflow-wrap:anywhere;
 white-space:normal;
}
:root body :is(.page,.site-shell) :is(a.book-tag-person,span.book-tag-person,a.contents-button,a.read-action) { display:inline-block; }
:root body :is(.page,.site-shell) :is(a.book-tag-person,a.contents-button,a.read-action,.chapter-grid a,summary):hover {
 background:var(--button-hover-bg);
 border-color:var(--button-hover-border);
 color:var(--button-hover-ink);
}
:root body :is(.page,.site-shell) :is(a.book-tag-person,a.contents-button,a.read-action,.chapter-grid a,summary):focus-visible {
 outline:2px solid var(--accent);
 outline-offset:3px;
}
:root body :is(.page,.site-shell) summary {
 display:list-item;
 width:fit-content;
 cursor:pointer;
 list-style-position:inside;
 margin:0 0 12px;
}
:root body :is(.page,.site-shell) summary::marker { color:var(--accent); }
:root body :is(.page,.site-shell) details[open] > summary { border-color:var(--button-hover-border); }
:root body :is(.page,.site-shell) .chapter-grid {
 display:flex;
 flex-wrap:wrap;
 gap:12px 16px;
}
:root body :is(.page,.site-shell) .chapter-grid a {
 display:grid;
 place-items:center;
 width:48px;
 height:48px;
 padding:0;
 flex:0 0 48px;
}
:root body :is(.page,.site-shell) .read-action .transition-label { text-decoration:none; }
:root body :is(.page,.site-shell) .read-action .transition-symbol { margin-left:6px; }
:root .book-related-list,:root .bible-authors,:root .related-persons { column-gap:16px; row-gap:12px; }
:root .bible-authors .book-tag-person { margin-block:6px; }
:root .bible-authors .book-tag-person + .book-tag-person { margin-left:16px; }

/* Common navigation buttons preserve the header typography. */
:root body header nav a.research-navigation {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:44px;
 max-width:100%;
 padding:10px;
 border:1px solid var(--button-border);
 border-radius:6px;
 background:var(--button-bg);
 color:var(--button-ink);
 text-decoration:none;
}
:root body header nav a.research-navigation .transition-label { text-decoration:none; }
:root body header nav a.research-navigation:hover { background:var(--button-hover-bg); border-color:var(--button-hover-border); color:var(--button-hover-ink); text-decoration:none; }
:root body header nav { gap:12px; }
