:root { --hub-backdrop: radial-gradient(ellipse at 50% -10%, #1b1812 0%, #0b0b0d 55%, var(--bg) 100%) fixed; }
/* Public site masthead; the static pages and the React client use the same markup. */
.public-mast { position:relative; z-index:12; flex:none; background:var(--ink); color:var(--text); border-bottom:1px solid var(--bone-glow); }
.public-mast .mast-inner { box-sizing:border-box; max-width:1200px; min-height:60px; padding:0 28px; margin:auto; display:flex; align-items:center; gap:28px; }
.public-mast a { color:inherit; text-decoration:none; }
.mast-brand { display:inline-flex; align-items:center; gap:9px; flex:none; font:700 24px/1 var(--display); letter-spacing:.035em; }
.mast-brand img { width:29px; height:29px; }
.mast-links { display:flex; gap:22px; align-self:stretch; }
.mast-links a,.mast-login,.mast-action,.mast-desk,.mast-menu { font:400 15px/1.3 var(--serif); }
.public-mast .mast-links a { display:flex; align-items:center; position:relative; color:var(--muted); white-space:nowrap; }
.public-mast .mast-links a[aria-current],.public-mast .mast-links a:hover { color:var(--text-strong); }
.mast-links a[aria-current]::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--bone); }
.mast-end { margin-inline-start:auto; display:flex; align-items:center; gap:10px; flex:none; }
.public-mast .mast-tg { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; box-sizing:border-box; border:1px solid transparent; border-radius:5px; color:var(--muted); background:transparent; transition:background .15s,color .15s; flex:none; }
.public-mast .mast-tg svg { width:18px; height:18px; }
.public-mast .mast-tg:hover { background:var(--bone-glow); color:var(--text-strong); }
.public-mast .mast-login { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:0 11px; border-radius:5px; color:var(--text); white-space:nowrap; transition:background .15s,color .15s; }
.public-mast .mast-login:hover,.public-mast .mast-login[aria-current] { background:var(--bone-glow); color:var(--text-strong); }
.public-mast .mast-action { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:0 15px; box-sizing:border-box; border:1px solid #eadab2; color:#161411; font-weight:700; border-radius:5px; white-space:nowrap; background:linear-gradient(180deg,#eadab2,#d6c293); box-shadow:0 4px 14px rgba(217,201,160,.2),inset 0 1px 0 rgba(255,250,235,.5); transition:background .15s,border-color .15s,box-shadow .15s,transform .12s; cursor:pointer; }
.public-mast .mast-action:hover { border-color:#f3e5c2; background:linear-gradient(180deg,#f3e5c2,#e0cd9e); box-shadow:0 6px 18px rgba(217,201,160,.3),inset 0 1px 0 rgba(255,250,235,.65); transform:translateY(-1px); }
.mast-sep { width:1px; height:20px; background:rgba(217,201,160,.14); flex:none; }
.public-mast .mast-desk { display:inline-flex; align-items:center; justify-content:center; gap:7px; height:36px; padding:0 13px; box-sizing:border-box; border:1px solid rgba(217,201,160,.28); border-radius:6px; background:rgba(217,201,160,.08); color:#efe5ce; font-size:14.5px; white-space:nowrap; transition:background .15s,border-color .15s,color .15s; cursor:pointer; }
.public-mast .mast-desk svg { width:14px; height:14px; color:#cbb78b; flex:none; transition:color .15s; }
.public-mast .mast-desk:hover { background:rgba(217,201,160,.15); border-color:rgba(217,201,160,.48); color:#f6efe0; }
.public-mast .mast-desk:hover svg { color:#e6d5ab; }
.public-mast .mast-desk[aria-current] { background:rgba(217,201,160,.16); border-color:var(--bone); color:var(--text-strong); }
.public-mast .mast-desk[aria-current] svg { color:var(--bone); }

/* Profile avatar button and dropdown (shared by static <details> and React component) */
.mast-profile { position:relative; flex:none; }
.mast-profile > summary,.mast-profile > button.mast-profile-btn { list-style:none; width:36px; height:36px; padding:0; border-radius:50%; background:radial-gradient(circle at 35% 25%,rgba(217,201,160,.22),rgba(217,201,160,.07)); border:1px solid rgba(217,201,160,.38); color:#efe5ce; font:600 15.5px/1 var(--display); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; user-select:none; transition:background .15s,border-color .15s,color .15s,box-shadow .15s; }
.mast-profile > summary::-webkit-details-marker { display:none; }
.mast-profile > summary:hover,.mast-profile > button.mast-profile-btn:hover { background:radial-gradient(circle at 35% 25%,rgba(217,201,160,.3),rgba(217,201,160,.11)); border-color:var(--bone); color:#f7f1e3; }
.mast-profile[open] > summary,.mast-profile > button.mast-profile-btn[aria-expanded="true"] { border-color:var(--bone); box-shadow:0 0 0 3px rgba(217,201,160,.14); }
.mast-profile-menu { position:absolute; right:0; top:calc(100% + 10px); width:246px; padding:6px; border-radius:8px; background:linear-gradient(180deg,#19191e,#121216); border:1px solid rgba(217,201,160,.28); box-shadow:0 18px 46px rgba(0,0,0,.78); z-index:40; font:400 14px/1.35 var(--serif); color:#ddd8cc; }
.mast-profile-head { display:flex; align-items:center; gap:10px; padding:8px 10px 10px; border-bottom:1px solid rgba(217,201,160,.14); margin-bottom:4px; }
.mast-profile-av { width:34px; height:34px; border-radius:50%; background:radial-gradient(circle at 35% 25%,rgba(217,201,160,.22),rgba(217,201,160,.07)); border:1px solid rgba(217,201,160,.4); color:#efe5ce; font:600 15px/1 var(--display); display:inline-flex; align-items:center; justify-content:center; flex:none; }
.mast-profile-meta { min-width:0; }
.mast-profile-name { font-size:14.5px; font-weight:700; color:#f3ece0; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mast-profile-login { font:400 11.5px/1.3 system-ui,-apple-system,sans-serif; color:#9d978b; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mast-profile-menu form { margin:0; }
.mast-profile-item { display:flex; align-items:center; gap:10px; width:100%; box-sizing:border-box; padding:8px 10px; border:0; border-radius:5px; background:transparent; color:#ddd8cc; font:inherit; text-align:left; text-decoration:none; cursor:pointer; }
.mast-profile-item:hover { background:rgba(217,201,160,.1); color:#f5efe2; }
.mast-profile-item svg { width:15px; height:15px; color:#c9b68c; flex:none; }
.mast-profile-sep { height:1px; background:rgba(217,201,160,.12); margin:4px 6px; }
.mast-profile-out { color:#d8a39d; }
.mast-profile-out svg { color:#d8a39d; }
.mast-profile-out:hover { background:rgba(216,120,110,.12); color:#f0beb8; }

.mast-menu { position:relative; display:none; }
.mast-menu summary { width:36px; height:36px; display:grid; place-items:center; cursor:pointer; list-style:none; border:1px solid var(--bone-soft); border-radius:5px; }
.mast-menu summary::-webkit-details-marker { display:none; }
.mast-menu summary span { width:15px; height:8px; border-block:1.5px solid currentColor; }
.mast-menu nav { position:absolute; right:0; top:calc(100% + 8px); min-width:190px; display:grid; padding:6px; background:var(--panel-2); border:1px solid var(--bone-soft); border-radius:6px; box-shadow:0 12px 30px #0008; z-index:40; }
.mast-menu nav a { padding:11px 12px; border-radius:4px; }
.public-mast :focus-visible { outline:2px solid var(--bone); outline-offset:2px; }
@media(max-width:1080px){
  .public-mast .mast-inner { min-height:56px; gap:8px; padding:0 14px; }
  .mast-brand { font-size:21px; gap:5px; } .mast-brand img { width:24px; height:24px; }
  .mast-links,.public-mast .mast-tg,.mast-sep { display:none; } .mast-menu { display:block; } .mast-end { gap:7px; }
  .public-mast .mast-login { min-height:34px; padding:0 8px; font-size:13.5px; }
  .public-mast .mast-action { min-height:34px; padding:0 12px; font-size:13.5px; }
  .public-mast .mast-desk { height:34px; padding:0 11px; font-size:13.5px; gap:6px; }
  .mast-profile > summary,.mast-profile > button.mast-profile-btn,.mast-menu summary { width:34px; height:34px; }
}
@media(max-width:360px){
  .public-mast .mast-inner { padding-inline:8px; gap:4px; }
  .mast-brand { font-size:18px; gap:2px; }
  .mast-end { gap:5px; }
  .public-mast .mast-login { padding:0 6px; font-size:12.5px; }
  .public-mast .mast-action { padding-inline:9px; font-size:12.5px; }
  .public-mast .mast-desk { padding-inline:9px; font-size:12.5px; }
}

.public-mast .mast-action[aria-current] { background:rgba(217,201,160,.14); border-color:var(--bone); color:var(--text-strong); box-shadow:none; transform:none; }
.mast-menu nav [aria-current] { background:var(--bone-glow); color:var(--text-strong); }
@media(prefers-reduced-motion:reduce){ .public-mast .mast-action,.public-mast .mast-desk,.public-mast .mast-desk svg { transition:none; } .public-mast .mast-action:hover { transform:none; } }

.mast-context { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font:600 17px var(--display); }
@media(max-width:1080px){ .mast-context { display:none; } }
@media(max-width:480px){ .mast-brand span { display:none; } .mast-brand { gap:0; } }

/* Structured public site footer (shared by all public pages and the Ghost blog theme) */
.site-footer {
  flex:none;
  width:100%;
  margin-top:auto;
  background:linear-gradient(180deg, rgba(13,13,16,.72), var(--ink));
  border-top:1px solid rgba(217,201,160,.16);
  color:var(--muted);
  font:400 14.5px/1.55 var(--serif);
}
.site-footer-inner {
  box-sizing:border-box;
  max-width:1200px;
  margin:0 auto;
  padding:46px 28px 28px;
}
.site-footer-grid {
  display:grid;
  grid-template-columns:minmax(240px,1.45fr) repeat(3,minmax(0,1fr));
  gap:32px 40px;
  align-items:start;
}
.site-footer-brand {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:13px;
}
.site-footer .site-footer-logo {
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:var(--text-strong);
  text-decoration:none;
  font:700 22px/1 var(--display);
  letter-spacing:.035em;
}
.site-footer .site-footer-logo img { width:26px; height:26px; display:block; flex:none; }
.site-footer .site-footer-logo:hover { color:var(--bone); }
.site-footer .site-footer-desc {
  margin:0;
  max-width:32ch;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.site-footer .site-footer-tg {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:2px;
  padding:7px 13px;
  border-radius:5px;
  border:1px solid rgba(217,201,160,.34);
  background:rgba(217,201,160,.06);
  color:var(--bone);
  text-decoration:none;
  font:600 13.5px/1.2 system-ui,-apple-system,sans-serif;
  transition:background .15s,border-color .15s,color .15s;
}
.site-footer .site-footer-tg span { width:15px; height:15px; display:inline-flex; flex:none; }
.site-footer .site-footer-tg svg { width:15px; height:15px; }
.site-footer .site-footer-tg:hover {
  background:rgba(217,201,160,.14);
  border-color:var(--bone);
  color:var(--text-strong);
}
.site-footer-col { min-width:0; }
.site-footer .site-footer-heading {
  margin:0 0 13px;
  color:var(--bone);
  font:600 13px/1.2 var(--display);
  letter-spacing:.13em;
  text-transform:uppercase;
}
.site-footer .site-footer-list {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.site-footer .site-footer-list li { margin:0; padding:0; }
.site-footer .site-footer-list a {
  display:inline-block;
  color:var(--text);
  opacity:.84;
  text-decoration:none;
  font-size:14.5px;
  line-height:1.45;
  overflow-wrap:anywhere;
  transition:color .15s,opacity .15s;
}
.site-footer .site-footer-list a:hover {
  color:var(--bone);
  opacity:1;
}
.site-footer-bar {
  margin-top:36px;
  padding-top:18px;
  border-top:1px solid rgba(217,201,160,.1);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:8px 24px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.site-footer :focus-visible { outline:2px solid var(--bone); outline-offset:3px; border-radius:3px; }
@media(max-width:900px){
  .site-footer-inner { padding:40px 22px 24px; }
  .site-footer-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 24px; }
  .site-footer-brand { grid-column:1 / -1; }
  .site-footer .site-footer-desc { max-width:52ch; }
}
@media(max-width:560px){
  .site-footer-inner { padding:34px 18px 24px; }
  .site-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px 20px; }
  .site-footer-col:last-child { grid-column:1 / -1; }
  .site-footer-bar { margin-top:28px; padding-top:16px; flex-direction:column; align-items:flex-start; gap:4px; font-size:12.5px; }
}
@media(max-width:360px){
  .site-footer-grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce){
  .site-footer .site-footer-tg, .site-footer .site-footer-list a { transition:none; }
}
