/* Historical record explorer: scoped, server-rendered and RTL-native. */
.pfh-ot-stats { display:grid; grid-template-columns:repeat(3,1fr); margin:30px 0 0; border-top:1px solid #d7ddcf; padding-top:24px; gap:24px; max-width:780px; }
.pfh-ot-stats div { display:flex; flex-direction:column-reverse; gap:8px; }
.pfh-ot-stats dt { color:#626653; font-size:14px; font-weight:400; }
.pfh-ot-stats dd { margin:0; font-size:38px; line-height:1.4; font-weight:600; color:#213d30; }
.pfh-ot-stats dd.pfh-ot-stat-text { font-size:20px; }
.pfh-ot-explorer { direction:rtl; color:#292e27; font-family:var(--pfh-font-family); scroll-margin-top:24px; }
.pfh-ot-filters { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(180px,1fr) auto; gap:18px; padding:24px; border:1px solid #d9dfd1; border-radius:10px; background:#eef0e7; align-items:end; }
.pfh-ot-filters label { display:block; font-size:14px; color:#213d30; font-weight:500; margin-bottom:8px; }
.pfh-ot-filters input[type=search],.pfh-ot-filters select { width:100%; min-height:48px; border:1px solid #a7b39e; border-radius:6px; background:#fffefb; font:inherit; font-size:15px; padding:10px 12px; color:#293629; }
.pfh-ot-filters button { min-height:48px; border:1px solid #213d30; background:#213d30; color:white; border-radius:6px; padding:10px 24px; font-size:15px; }
.pfh-ot-filters button:hover { background:#345841; }
.pfh-ot-filters .pfh-ot-check { grid-column:1 / 3; display:flex; align-items:center; gap:9px; margin:0; font-weight:400; }
.pfh-ot-check input { width:18px; height:18px; accent-color:#213d30; flex-shrink:0; }
.pfh-ot-clear { font-size:14px; text-align:center; }
.pfh-ot-explorer :is(input,select,button,a,summary):focus-visible { outline:3px solid #946b2c; outline-offset:4px; }
.pfh-ot-results-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:24px 0; }
.pfh-ot-results-heading p { margin:0!important; color:#213d30; }
.pfh-ot-results-heading span { font-size:13px; color:#626653; }
.pfh-ot-house { background:#fffefb; border:1px solid #dce0d5; border-radius:12px; margin-bottom:24px; overflow:hidden; }
.pfh-ot-house > header { padding:22px 26px; display:flex; align-items:center; justify-content:space-between; gap:18px; background:#eff1e8; border-bottom:1px solid #dce0d5; }
.pfh-ot-house header h3 { font-size:26px; line-height:1.5; color:#213d30; margin:4px 0 0; }
.pfh-ot-house header p { font-size:14px; margin:4px 0 0; color:#56634e; }
.pfh-ot-house header > a { font-size:13px; }
.pfh-ot-members { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.pfh-ot-member { padding:24px 26px; border-bottom:1px solid #e0e3d9; min-width:0; scroll-margin-top:24px; }
.pfh-ot-member:nth-child(odd) { border-inline-end:1px solid #e0e3d9; }
.pfh-ot-member:last-child:nth-child(odd) { grid-column:1 / -1; border-inline-end:0; }
.pfh-ot-member-title { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.pfh-ot-member h4 { margin:0; font-size:20px; line-height:1.7; color:#213d30; font-weight:600; }
.pfh-ot-badge { display:inline-block; padding:3px 9px; border-radius:4px; background:#eaf0e4; color:#365033; font-size:12px; line-height:1.8; }
.pfh-ot-badge--review { background:#f7edd9; color:#79511c; }
.pfh-ot-role { font-size:13px; color:#695535; margin-block:10px!important; }
.pfh-ot-facts { margin:16px 0; display:grid; gap:10px; font-size:14px; }
.pfh-ot-facts > div { display:grid; grid-template-columns:120px minmax(0,1fr); gap:12px; }
.pfh-ot-facts dt { color:#69695b; font-weight:400; }
.pfh-ot-facts dd { margin:0; color:#30382b; overflow-wrap:anywhere; line-height:1.9; }
.pfh-ot-member details { border-top:1px dashed #d4dacb; margin-top:16px; padding-top:12px; }
.pfh-ot-member summary { cursor:pointer; color:#294b32; font-size:13px; padding:5px 0; }
.pfh-ot-member details blockquote { margin:12px 0; padding:14px 16px; background:#f4f3ea; border-inline-start:3px solid #9b804d; font-size:14px; line-height:2; }
.pfh-ot-member details :is(p,a) { font-size:12px; }
.pfh-ot-note { margin:16px 22px!important; padding:13px 16px; background:#faf0df; border-inline-start:3px solid #9b793e; font-size:14px; color:#604b27; }
.pfh-ot-pagination { display:flex; gap:20px; justify-content:center; align-items:center; flex-wrap:wrap; padding:12px 0; font-size:14px; }
.pfh-ot-pagination a { padding:10px 22px; min-height:44px; border:1px solid #adb8a0; border-radius:6px; text-decoration:none; background:white; }
.pfh-ot-empty { padding:48px 24px; text-align:center; background:#eef0e7; border-radius:10px; }
.pfh-ot-comparisons { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.pfh-ot-comparisons article { border:1px solid #dce0d5; border-radius:8px; padding:22px; background:#fffefb; }
.pfh-ot-comparisons p { margin-top:14px!important; font-size:15px; color:#535d4c; }
.pfh-ot-source { padding:30px; background:#edf0e5; border-radius:12px; border:1px solid #d9dfd0; }
.pfh-ot-source h3 { color:#213d30; line-height:1.7; font-size:24px; margin:12px 0; }
.pfh-ot-source p { max-width:860px; }
@media(max-width:767px) {
 .pfh-ot-stats { gap:14px; }
 .pfh-ot-stats dt { font-size:12px; }
 .pfh-ot-stats dd { font-size:30px; }
 .pfh-ot-stats dd.pfh-ot-stat-text { font-size:16px; }
 .pfh-ot-filters { grid-template-columns:minmax(0,1fr); padding:18px; gap:14px; }
 .pfh-ot-filters .pfh-ot-check { grid-column:auto; font-size:13px; }
 .pfh-ot-members,.pfh-ot-comparisons { grid-template-columns:minmax(0,1fr); }
 .pfh-ot-results-heading { flex-direction:column; align-items:flex-start; gap:6px; font-size:14px; }
 .pfh-ot-house > header { padding:20px; align-items:flex-start; }
 .pfh-ot-house header h3 { font-size:23px; }
 .pfh-ot-member { padding:22px 18px; }
 .pfh-ot-member:nth-child(odd) { border-inline-end:0; }
 .pfh-ot-member h4 { font-size:19px; }
 .pfh-ot-facts > div { grid-template-columns:94px minmax(0,1fr); gap:8px; }
 .pfh-ot-source { padding:22px; }
 .pfh-ot-source h3 { font-size:21px; }
}
