/* Author footer: shared editorial pages; the six landing pages retain their footer. */
.hm-author-footer { --hf-bg:var(--reader-shell,#f3f4f0); --hf-text:var(--reader-text,#2d332c); --hf-heading:var(--reader-heading,#242c25); --hf-muted:var(--reader-copy,#454c43); --hf-rule:var(--reader-rule,#e1e5dc); --hf-accent:var(--reader-accent,#315b48); display:block; width:100%; margin:0; padding:0; border-top:1px solid var(--hf-rule); background:var(--hf-bg); color:var(--hf-text); direction:rtl; text-align:right; }
.hm-author-footer, .hm-author-footer * { box-sizing:border-box; }
.hm-footer-inner { max-width:1400px; margin-inline:auto; padding:56px clamp(24px,5vw,64px) 22px; }
.hm-footer-main { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:clamp(48px,8vw,120px); padding-bottom:38px; }
.hm-footer-author { max-width:470px; }
.hm-footer-identity { display:flex; align-items:center; gap:20px; }
.hm-author-footer .hm-footer-avatar { display:block; width:88px; height:88px; flex:0 0 88px; max-width:none; border-radius:50%; object-fit:cover; object-position:28% 42%; border:4px solid var(--reader-paper,#fff); outline:1px solid var(--hf-rule); }
.hm-author-footer h2 { margin:0; color:var(--hf-heading); font-family:inherit; font-size:17px; font-weight:650; line-height:1.8; }
.hm-author-footer #hm-footer-name { font-size:26px; font-weight:750; }
.hm-author-footer .hm-footer-role { margin:4px 0 0; font-size:13px; line-height:1.8; color:var(--hf-muted); }
.hm-author-footer .hm-footer-bio { margin:20px 0 12px; color:var(--hf-muted); font-size:15px; line-height:2; }
.hm-author-footer a { color:var(--hf-text); text-decoration:none; }
.hm-author-footer a:hover { color:var(--hf-accent); text-decoration:underline; text-underline-offset:6px; }
.hm-author-footer a:focus-visible { outline:2px solid var(--hf-accent); outline-offset:5px; border-radius:2px; }
.hm-author-footer .hm-footer-about { display:inline-flex; gap:20px; align-items:center; min-height:44px; color:var(--hf-accent); font-size:14px; font-weight:650; }
.hm-footer-links { display:grid; grid-template-columns:1fr 1fr; gap:28px; padding-top:10px; }
.hm-author-footer .hm-footer-links h2 { font-size:15px; padding-bottom:14px; margin-bottom:8px; border-bottom:1px solid var(--hf-rule); }
.hm-footer-links ul { list-style:none; margin:0; padding:0; }
.hm-footer-links li { margin:0; padding:0; }
.hm-footer-links a { display:flex; align-items:center; min-height:44px; padding-block:8px; font-size:15px; line-height:1.6; }
.hm-footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--hf-rule); padding-top:16px; font-size:12px; line-height:1.9; }
.hm-author-footer .hm-footer-bottom p { margin:0; color:var(--hf-muted); }
.hm-footer-bottom p span { margin-inline:8px; }
.hm-footer-bottom a { display:inline-flex; gap:12px; align-items:center; min-height:44px; }
/* Remove the redundant legacy navigation only beside the new editorial footer. */
.site:has(.hm-author-footer) > .section-nav { display:none; }
@media(max-width:760px) {
  .hm-footer-inner { padding:34px 24px 16px; }
  .hm-footer-main { grid-template-columns:1fr; gap:28px; padding-bottom:26px; }
  .hm-footer-author { max-width:none; }
  .hm-footer-identity { gap:16px; }
  .hm-author-footer .hm-footer-avatar { width:72px; height:72px; flex-basis:72px; border-width:3px; }
  .hm-author-footer #hm-footer-name { font-size:23px; }
  .hm-author-footer .hm-footer-role { font-size:12px; }
  .hm-author-footer .hm-footer-bio { font-size:14px; margin-top:18px; }
  .hm-footer-links { gap:22px; padding-top:0; }
  .hm-author-footer .hm-footer-links h2, .hm-footer-links a { font-size:14px; }
  .hm-footer-bottom { flex-wrap:wrap; gap:4px 16px; }
}
@media(prefers-reduced-motion:reduce) { .hm-author-footer a { transition:none; } }

/* Proposed social and learning footer revision — local preview only. */
.hm-footer-main { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:clamp(40px,6vw,90px); }
.hm-footer-links { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:32px; }
.hm-footer-social { margin-top:22px; }
.hm-author-footer .hm-footer-social h2 { font-size:14px; font-weight:600; margin:0 0 12px; }
.hm-social-icons { display:flex; flex-wrap:wrap; gap:10px; }
.hm-author-footer .hm-social-icons a { display:inline-flex; width:46px; height:46px; align-items:center; justify-content:center; border:1px solid var(--hf-rule); border-radius:50%; color:var(--hf-accent); background:var(--reader-paper,#fff); transition:background .18s,color .18s,border-color .18s; }
.hm-social-icons svg { width:21px; height:21px; display:block; }
.hm-author-footer .hm-social-icons a:hover { color:var(--reader-paper,#fff); background:var(--hf-accent); border-color:var(--hf-accent); }
@media(max-width:760px) {
 .hm-footer-main { grid-template-columns:1fr; gap:30px; }
 .hm-footer-links { grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:20px; }
 .hm-footer-links a { min-height:50px; }
 .hm-footer-social { margin-top:20px; }
}
@media(prefers-reduced-motion:reduce) { .hm-author-footer .hm-social-icons a { transition:none; } }

/* Keep DOM order consistent with the mobile reading order. */
.hm-footer-main { grid-template-areas:"author links" "social links"; row-gap:22px; }
.hm-footer-author { grid-area:author; }
.hm-footer-links { grid-area:links; }
.hm-footer-social { grid-area:social; margin-top:0; }
@media(max-width:760px) {
 .hm-footer-main { grid-template-areas:"author" "links" "social"; row-gap:30px; }
 .hm-footer-social { margin-top:0; }
}
