/* Brand-led header and footer; shared geometry for both color themes. */
.site-header{background:var(--paper)}
.mobile-journal-bar{display:none}
.site-header .header-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:28px;min-height:100px;padding-top:18px;padding-bottom:18px}
.site-header .brand{display:flex;flex-direction:row;align-items:center;gap:18px;min-width:0;flex:0 1 auto;letter-spacing:normal;position:relative;background:transparent;box-shadow:none;-webkit-tap-highlight-color:transparent}
.site-header .brand:focus{outline:none}
.site-header .brand-logo,.site-header .brand-logo>img{background:transparent;border:0;box-shadow:none}
.site-header .brand-logo{display:block;flex:0 0 192px;width:192px;height:58px}
.site-header .brand-text{display:block;max-width:210px;padding-left:18px;border-left:1px solid var(--line);font:14px/1.55 Arial,Helvetica,sans-serif;color:var(--muted)}
.site-header nav{display:flex;justify-content:center;align-items:center;gap:20px;flex-wrap:nowrap;width:auto;min-width:0;font:14px/20px Arial,Helvetica,sans-serif}
.site-header nav>a:not(.rss-link){display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:0 2px;margin:0;font-size:14px;line-height:20px;white-space:nowrap}
.site-header .header-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.site-header .rss-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 14px;border-radius:10px;white-space:nowrap;font:13px/20px Arial,Helvetica,sans-serif}
.site-header .rss-link .ui-icon{display:block;width:20px;height:20px;margin:0;flex:0 0 auto}
.site-header .rss-link>.rss-label{display:inline;margin:0;font:inherit}
.site-header .theme-toggle{margin:0}
.site-footer .footer-inner{display:block;padding-top:0;padding-bottom:0}
.site-footer .footer-main{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;padding:24px 64px 20px 0}
.site-footer .footer-identity{display:flex;align-items:center;gap:24px;min-width:0}
.site-footer .footer-brand{display:inline-flex;flex:0 0 auto;line-height:0}
.site-footer .footer-logo{display:block;width:200px;height:60px}
.site-footer .footer-description{max-width:230px;margin:0;font:14px/22px Arial,Helvetica,sans-serif;color:var(--muted)}
.site-footer .footer-links{display:flex;align-items:center;justify-content:flex-end;gap:24px;margin:0;font:14px/22px Arial,Helvetica,sans-serif}
.site-footer .footer-links a{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;min-height:48px;white-space:nowrap}
.site-footer .footer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 64px calc(20px + env(safe-area-inset-bottom,0px)) 0;border-top:1px solid var(--line)}
.site-footer .copyright{display:flex;align-items:center;min-height:48px;margin:0;font:12px/20px Arial,Helvetica,sans-serif;color:var(--muted)}
.site-footer .developer-credit{display:inline-flex;align-items:center;gap:10px;padding:0;white-space:nowrap;font:12px/20px Arial,Helvetica,sans-serif;color:var(--muted)}
.site-footer .developer-credit .theme-logo{display:block;width:104px;height:32px}
.site-footer .developer-credit>a{display:inline-flex;align-items:center;min-height:48px}
@media(max-width:1100px){
  .site-header .header-inner{grid-template-columns:minmax(0,1fr) auto;gap:10px 20px;padding-top:16px;padding-bottom:12px;min-height:0}
  .site-header nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:28px;padding-top:8px;border-top:1px solid var(--line)}
  .site-header .header-tools{grid-column:2;grid-row:1}
}
@media(max-width:900px){
  .site-footer .footer-identity{flex-direction:column;align-items:flex-start;gap:8px}
  .site-footer .footer-links{align-self:end}
  .site-footer .footer-links a{align-items:flex-end}
}
@media(max-width:700px){
  .mobile-journal-bar{display:block;border-bottom:1px solid var(--line);color:var(--muted);text-align:center;font:12px/18px Arial,Helvetica,sans-serif}
  .mobile-journal-bar>.container{padding-top:5px;padding-bottom:5px}
  .site-header .header-inner{gap:10px 16px;padding-top:16px;padding-bottom:10px}
  .site-header .brand{flex-direction:column;align-items:flex-start;gap:2px}
  .site-header .brand-logo{flex:0 0 auto;width:160px;height:48px}
  .site-header .brand-text{display:none}
  .site-header .header-tools{align-self:center;gap:8px}
  .site-header .rss-link{width:48px;height:48px;padding:0;border-radius:50%}
  .site-header .rss-link>.rss-label{display:none}
  .site-header nav{justify-content:space-between;gap:12px;padding-top:6px}
  .site-header nav>a:not(.rss-link){min-height:44px;padding:0;font-size:13px}
  .site-footer .footer-main{grid-template-columns:minmax(0,1fr);padding:24px 0 16px;gap:8px;text-align:center}
  .site-footer .footer-identity{flex-direction:column;align-items:center;gap:8px}
  .site-footer .footer-logo{width:180px;height:54px}
  .site-footer .footer-description{max-width:none;font-size:13px;line-height:20px}
  .site-footer .footer-links{align-self:auto;justify-content:center;gap:24px;font-size:13px;line-height:20px}
  .site-footer .footer-links a{align-items:center;min-height:44px}
  .site-footer .footer-bottom{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:4px;padding:16px 0 calc(14px + env(safe-area-inset-bottom,0px))}
  .site-footer .copyright{justify-content:center;min-height:20px}
  .site-footer .developer-credit{justify-self:center;flex-direction:column;gap:0;white-space:normal}
}
@media(max-width:360px){.site-header .brand-logo{width:144px;height:44px}.site-header nav>a:not(.rss-link){font-size:12px}.site-header nav{gap:10px}}
