/* R42: source-derived layout rules from the locked V22-R34 HTML (see crosswalk). */
html body.htc5-r42 main[data-htc5-route="home"] .r39-quick-panel{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
html body.htc5-r42 main[data-htc5-route="home"] .intro-section{grid-template-columns:40% 1fr!important;gap:36px!important;align-items:center!important;}
@media (max-width:900px){html body.htc5-r42 main[data-htc5-route="home"] .r39-quick-panel{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;}}
@media (max-width:900px){html body.htc5-r42 main[data-htc5-route="home"] .intro-section{gap:22px!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="home"] .intro-section{grid-template-columns:1fr!important;gap:0!important;}}
html body.htc5-r42 main[data-htc5-route="home"] .r39-quick-panel{gap:12px!important;}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="home"] .r39-quick-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}}
html body.htc5-r42 main[data-htc5-route="tree"] .htc5-r37-tree-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,27%)!important;gap:16px!important;align-items:stretch!important;min-width:0!important;}
html body.htc5-r42 main[data-htc5-route="tree"] .htc5-r37-tree-lower{margin:16px 0 12px!important;}
@media (max-width:1150px){html body.htc5-r42 main[data-htc5-route="tree"] .htc5-r37-tree-layout{grid-template-columns:minmax(0,1fr) minmax(250px,28%)!important;}}
@media (max-width:1000px){html body.htc5-r42 main[data-htc5-route="tree"] .htc5-r37-tree-layout{grid-template-columns:minmax(0,1fr)!important;}}
html body.htc5-r42 main[data-htc5-route="members"] .gpc5-r37-directory-layout{grid-template-columns:minmax(190px,23%) minmax(0,1fr)!important;}
html body.htc5-r42 main[data-htc5-route="members"] .gpc5-directory-card{gap:9px!important;padding:12px!important;min-width:0!important;}
@media (max-width:920px){html body.htc5-r42 main[data-htc5-route="members"] .gpc5-r37-directory-layout{grid-template-columns:1fr!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="members"] .gpc5-directory-card{padding:10px!important;gap:7px!important;}}
html body.htc5-r42 main[data-htc5-route="shrines"] .r37-shrines .r36-shrine-feature{display:grid!important;grid-template-columns:40% minmax(0,1fr)!important;padding:16px!important;gap:24px!important;align-items:center!important;}
html body.htc5-r42 main[data-htc5-route="shrines"] .r37-shrines .r36-shrine-facts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;padding:12px!important;}
@media (max-width:920px){html body.htc5-r42 main[data-htc5-route="shrines"] .r37-shrines .r36-shrine-feature{grid-template-columns:1fr!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="shrines"] .r37-shrines .r36-shrine-feature{padding:12px!important;gap:12px!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="shrines"] .r37-shrines .r36-shrine-facts{grid-template-columns:1fr 1fr!important;gap:10px!important;padding:10px!important;}}
html body.htc5-r42 main[data-htc5-route="shrines"] .r37-shrines .r36-shrine-facts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;padding:9px 0!important;align-items:stretch!important;}
@media (max-width:1100px){html body.htc5-r42 main[data-htc5-route="shrines"] .r37-shrines .r36-shrine-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:0!important;}}
html body.htc5-r42 main[data-htc5-route="memorial"] .gpc5-community-tabs{display:flex!important;align-items:stretch!important;gap:5px!important;padding:6px!important;}
html body.htc5-r42 main[data-htc5-route="memorial"] .gpc5-r37-calendar-layout{grid-template-columns:minmax(250px,.9fr) minmax(0,2.3fr)!important;}
@media (max-width:920px){html body.htc5-r42 main[data-htc5-route="memorial"] .gpc5-r37-calendar-layout{grid-template-columns:1fr!important;}}
html body.htc5-r42 main[data-htc5-route="news"] .r36-news:not(.gpc5-news-compact) .r36-news-layout{grid-template-columns:minmax(0,2.7fr) minmax(235px,1fr)!important;}
@media (max-width:1160px){html body.htc5-r42 main[data-htc5-route="news"] .r36-news:not(.gpc5-news-compact) .r36-news-layout{grid-template-columns:minmax(0,2.4fr) minmax(210px,1fr)!important;}}
@media (max-width:920px){html body.htc5-r42 main[data-htc5-route="news"] .r36-news:not(.gpc5-news-compact) .r36-news-layout{grid-template-columns:1fr!important;}}
html body.htc5-r42 main[data-htc5-route="contact"] .htc5-contact-showcase{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)!important;}
@media (max-width:920px){html body.htc5-r42 main[data-htc5-route="contact"] .htc5-contact-showcase{grid-template-columns:1fr!important;}}
html body.htc5-r42 main[data-htc5-route="contact"] .htc5-contact-showcase{align-items:stretch!important;}
html body.htc5-r42 main[data-htc5-route="account"] .htc5-account-layout:not(.htc5-r36-account-guest){display:grid!important;grid-template-columns:278px minmax(0,1fr)!important;gap:20px!important;align-items:start!important;}
html body.htc5-r42 main[data-htc5-route="account"] .r40-account-sidebar{min-width:0!important;display:grid!important;gap:15px!important;}
html body.htc5-r42 main[data-htc5-route="account"] .htc5-account-edit{min-width:0!important;display:grid!important;gap:15px!important;}
@media (max-width:1050px){html body.htc5-r42 main[data-htc5-route="account"] .htc5-account-layout:not(.htc5-r36-account-guest){grid-template-columns:240px minmax(0,1fr)!important;gap:13px!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="account"] .htc5-account-layout:not(.htc5-r36-account-guest){grid-template-columns:1fr!important;gap:13px!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="account"] .r40-account-sidebar{gap:10px!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="account"] .htc5-account-edit{gap:12px!important;}}
html body.htc5-r42 main[data-htc5-route="account"] .htc5-account-layout:not(.htc5-r36-account-guest){grid-template-columns:250px minmax(0,1fr)!important;}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="account"] .htc5-account-layout:not(.htc5-r36-account-guest){grid-template-columns:1fr!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="account"] .htc5-account-layout:not(.htc5-r36-account-guest){grid-template-columns:minmax(0,1fr)!important;min-width:0!important;max-width:100%!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="account"] .htc5-account-edit{grid-template-columns:minmax(0,1fr)!important;min-width:0!important;max-width:100%!important;}}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="account"] .r40-account-sidebar{grid-template-columns:minmax(0,1fr)!important;min-width:0!important;max-width:100%!important;}}
html body.htc5-r42 main[data-htc5-route="documents"] .htc5-r36-two-column{display:grid!important;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)!important;gap:18px!important;align-items:start!important;}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="documents"] .htc5-r36-two-column{grid-template-columns:1fr!important;gap:12px!important;}}
html body.htc5-r42 main[data-htc5-route="notices"] .htc5-r36-two-column{display:grid!important;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)!important;gap:18px!important;align-items:start!important;}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="notices"] .htc5-r36-two-column{grid-template-columns:1fr!important;gap:12px!important;}}
html body.htc5-r42 main[data-htc5-route="stats"] .r41-stat-tiles{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;}
@media (max-width:760px){html body.htc5-r42 main[data-htc5-route="stats"] .r41-stat-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}

/* Keep source order for keyboard navigation and mobile as well. */
html body.htc5-r42 main[data-htc5-route="contact"] .htc5-contact-showcase .htc5-contact-story{grid-column:2!important;grid-row:1!important}
html body.htc5-r42 main[data-htc5-route="contact"] .htc5-contact-showcase .htc5-contact-message{grid-column:1!important;grid-row:1!important}
@media(max-width:920px){html body.htc5-r42 main[data-htc5-route="contact"] .htc5-contact-showcase .htc5-contact-story{grid-column:1!important;grid-row:2!important}}
body.htc5-r42 .htc5-account-edit>.htc5-r42-personal{border:1px solid #d6c39c;background:rgba(255,250,237,.91);border-radius:12px;min-width:0;padding:12px 16px}
body.htc5-r42 .htc5-account-edit>[hidden]{display:none!important}
body.htc5-r42 .htc5-r42-personal .htc5-account-setting-form{margin-top:12px}
body.htc5-r42 .gpc5-r37-directory-main .gpc5-directory-heading{margin:0 0 14px;min-width:0}
body.htc5-r42 .gpc5-r37-directory-main .gpc5-directory-heading h2{font:700 30px/1.3 Charm,Georgia,serif;color:#67431e}
body.htc5-r42 .gpc5-community-tabs{margin-top:0}
@media(max-width:760px){body.htc5-r42 .htc5-r42-personal{padding:10px}body.htc5-r42 .gpc5-r37-directory-main .gpc5-directory-heading h2{font-size:25px}}
