/* Shared tab, detail and editor layout. Keep the family archive's paper palette. */
.invite-box label{display:block;margin:18px 0 8px;line-height:1.6}
.invite-box input{margin-bottom:10px}.invite-box button{min-height:44px}
.invite-email-status{margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.health-coming-soon .health-hero{margin-block:24px;min-height:380px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.health-coming-soon .health-hero h1{margin:22px 0}
.health-coming-soon .health-hero>p{max-width:560px}
.health-coming-soon #health-home{margin-top:28px;min-height:44px;white-space:normal}
.archive-document{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px;margin:24px 0}
.archive-document>div{min-width:0}.archive-document h2{font-size:26px;line-height:1.4;margin:10px 0}.archive-document p{font-size:14px}
.archive-document .section-actions{flex-wrap:wrap;flex-shrink:0}.archive-document a{min-height:44px}
@media(max-width:760px){.archive-document{flex-direction:column;align-items:stretch;padding:22px}.archive-document .section-actions{gap:10px}}
[hidden]{display:none!important}
#main,.content-top,.section-head>div,.form-grid>*,.notable-card>div{min-width:0}
#main h1,#main h2,#main h3,.modal h2,.drawer h2{overflow-wrap:anywhere}
.content-top h1{font-size:clamp(32px,3.5vw,44px);line-height:1.25;text-wrap:balance}
.content-top p{font-size:15px;line-height:1.85;color:#716151}
.content-top .section-head{margin-top:0;gap:20px;align-items:center}
.content-top .section-head>button{flex-shrink:0}
.page-trail{flex-wrap:wrap;line-height:1.6}
.page-trail button{min-height:44px;font-size:13px}
.toolbar{flex-wrap:wrap}
.toolbar input{flex:1 1 240px;min-width:0}
.toolbar select{flex:0 1 220px;max-width:240px;min-width:0}
.toolbar .count{line-height:1.6}
.people-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.person-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:22px;gap:6px}
.person-card .card-tag,.person-card:not(:has(.avatar)) .card-tag{position:static;display:block;font-size:10px;line-height:1.65;margin:0 0 6px;text-align:left;overflow-wrap:anywhere}
.person-card h3{margin:0;font-size:21px;line-height:1.4}
.person-card p{margin:0;font-size:13px;line-height:1.7;color:#716151;overflow-wrap:anywhere}
.person-card .avatar{margin:4px 0 8px}
.people-grid .no-results{padding:36px 20px;line-height:1.8}
.pager{flex-wrap:wrap;gap:14px;margin:24px 0}
.pager button{min-height:44px}
.article-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.article-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:28px}
.article-card .chapter{font-size:30px;margin-bottom:18px}
.article-card h2{font-size:27px;line-height:1.4}
.article-card p{font-size:14px;line-height:1.9;color:#716151;overflow-wrap:anywhere;margin-bottom:24px}
.article-card .text-btn{margin-top:auto;min-height:44px;text-align:left}
.article-empty{grid-column:1/-1;border:1px solid var(--line);background:#fffcf699;padding:40px 24px}
.article-empty p{max-width:52ch;margin-inline:auto;line-height:1.85}
.notable-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.notable-card{gap:20px;min-width:0}
.notable-card>div{flex:1}
.notable-card h2{font-size:clamp(23px,2.2vw,28px);line-height:1.4}
.notable-card p,.journal-prose{font-size:14px;line-height:1.85;overflow-wrap:anywhere}
.notable-grid>.panel,.journal-feed>.panel{padding:30px;line-height:1.85;grid-column:1/-1}
.journal-filters{flex-wrap:wrap;gap:8px}
.journal-filters button,.journal-actions button{min-height:44px;font-size:13px;white-space:normal;overflow-wrap:anywhere}
.journal-entry h2{font-size:28px;line-height:1.4;margin:16px 0 10px}
.journal-entry .note,.journal-review-note{font-size:12px;line-height:1.8}
.photo-card{width:100%;text-align:left;overflow:hidden;break-inside:avoid}
.photo-card h3,.photo-card p{overflow-wrap:anywhere;line-height:1.6}
.photo-card p{font-size:13px}
.memory-image{width:100%;max-height:60dvh;object-fit:contain;margin:20px auto}
.relation-fields{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.relation-fields input{min-width:0}
.relationship-result h2{overflow-wrap:anywhere;line-height:1.4}
.path button{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:13px;min-height:44px}
.path span{font-size:12px}
.city-card,.city-heading,.map-info{overflow-wrap:anywhere}
.city-heading,.city-person{min-height:44px}
.city-heading span,.city-person{font-size:13px;line-height:1.7}
.map-placeholder{min-width:0;overflow-wrap:anywhere}
.book-table-wrap,.ledger-table-wrap{max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:thin}
.book-table-wrap:focus-visible,.ledger-table-wrap:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.book-table-wrap table,.ledger-table{line-height:1.7}
.book-group h2,.book-entry summary{overflow-wrap:anywhere}
.book-entry summary{min-height:48px}
.book-toolbar label{font-size:13px}
.book-toolbar select,.book-toolbar input{min-width:0;width:100%}
.book-table-wrap button,.ledger-actions button{min-height:44px;white-space:normal;overflow-wrap:anywhere}
.ledger-heading{gap:18px;flex-wrap:wrap}
.ledger-summary{flex-wrap:wrap;gap:14px}
.ledger-table td{overflow-wrap:anywhere}
.donation-family-note,.donation-payment p,.donation-anonymous{font-size:14px;line-height:1.85}
.health-topics span{font-size:13px;line-height:1.6}
.health-faq summary{overflow-wrap:anywhere;min-height:48px}
.health-page a.health-source{font-size:13px;overflow-wrap:anywhere}
.view-error{padding:22px;border:1px solid #b99079;background:#fff8ee;color:var(--red);margin:20px 0;line-height:1.8}
.view-error button{min-height:44px;margin-top:10px}
.modal,.drawer{overflow-wrap:anywhere}
.modal{padding-top:48px}
.modal h2,.drawer h2{line-height:1.4}
.modal p{font-size:14px;line-height:1.85}
.modal .read-text{font-size:19px;line-height:1.95}
.modal .close,.drawer .close{min-width:44px;min-height:44px;top:8px;right:8px}
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.field{min-width:0}
.field label{font-size:13px;line-height:1.7}
.field input,.field select,.field textarea{max-width:100%;min-width:0}
.field textarea{min-height:150px;resize:vertical;line-height:1.8}
.form-actions{flex-wrap:wrap;gap:10px}
.form-actions button,.profile-actions button,.source-navigation button{min-height:44px}
.profile-actions{flex-wrap:wrap;gap:8px}
.profile-top h2,.profile-body p,.profile-details dd{overflow-wrap:anywhere}
.profile-body>p{white-space:pre-line;line-height:1.85}
.source-navigation{flex-wrap:wrap;gap:8px}
.source-navigation select{min-width:100px;max-width:180px;min-height:44px}
.error:empty{display:none}
.error{line-height:1.8;overflow-wrap:anywhere}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--red);outline-offset:3px}
html[lang="hi"] .content-top h1,html[lang="hi"] .article-card h2,html[lang="hi"] .notable-card h2{line-height:1.5;letter-spacing:0}
@media(max-width:1050px){.people-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.notable-grid{grid-template-columns:1fr}}
@media(max-width:760px){
  .content-top{padding-top:24px}.content-top h1{font-size:32px}.content-top p{font-size:14px}
  .content-top .section-head{align-items:flex-start;gap:14px}
  .people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .person-card{padding:18px 14px}.person-card h3{font-size:20px}
  .toolbar input{flex-basis:100%}.toolbar select{flex:1 1 200px;max-width:none}.toolbar .count{margin:4px 0}
  .article-grid,.form-grid{grid-template-columns:1fr}.article-card{padding:24px}.article-card h2{font-size:25px}
  .relation-fields{grid-template-columns:1fr}.relation-fields .swap{justify-self:center;min-height:44px;min-width:44px}
  .modal{padding:48px 20px 24px;max-height:94dvh}.modal h2{font-size:27px}.modal .read-text{font-size:18px}
  .field input:not([type="checkbox"]):not([type="radio"]),.field textarea,.field select,.toolbar input,.toolbar select,.book-toolbar input,.book-toolbar select,#city-search,.relation-fields input{font-size:16px;min-height:44px}
  .source-navigation{justify-content:space-between}.source-navigation select{flex:1;max-width:none;width:auto}
  .notable-card{padding:22px;gap:16px}.notable-grid>.panel,.journal-feed>.panel{padding:24px}
  .book-group{padding:18px 14px}.book-group table{min-width:580px}.book-group h2{font-size:22px}
  .book-entry .book-table-wrap table{min-width:0}
  .ledger-heading .section-actions{width:100%;margin-top:0}.ledger-summary{font-size:13px}
  .health-faq summary{font-size:16px}.health-topics span{font-size:12px}
  .donation-purpose{font-size:16px}.journal-entry h2{font-size:25px}
}
@media(max-width:420px){
  .people-grid{grid-template-columns:1fr}
  .notable-card{flex-direction:column}.notable-portrait{width:100px;flex-basis:auto}
  .form-actions>*{flex:1 1 140px}
  .source-navigation button{font-size:12px;padding-inline:10px}
  .profile-actions>button{flex:1 1 130px}
}
