/* Shared estate header.
   Legacy selectors remain scoped for pages that have not opted into data-estate-header.
   Migrated pages receive every locked metric from this file and must not override them. */

.site-head:not([data-estate-header]) {
  display:flex;
  align-items:center;
  gap:12px;
  line-height:1.5;
  padding-bottom:11px;
  border-bottom:1px solid var(--border);
}
.site-head:not([data-estate-header]) .site-title {
  font-size:22px;
  font-weight:600;
  letter-spacing:.01em;
  color:var(--text);
  user-select:none;
}
.site-head:not([data-estate-header]) .site-title .accent {
  color:var(--accent);
  text-shadow:0 0 12px rgba(255,176,0,.5);
}
.site-head:not([data-estate-header]) .site-divide {
  border-left:1px solid var(--border);
  padding-left:12px;
}
.site-head:not([data-estate-header]) .site-spacer { flex:1; }

.site-head[data-estate-header] {
  height:var(--site-head-h);
  box-sizing:border-box;
  padding:0;
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  border-bottom:1px solid var(--edge);
  color:var(--ink-4);
  font-family:Urbanist,ui-sans-serif,system-ui,sans-serif;
}
.site-service {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:22px;
  font-weight:600;
  line-height:1;
  letter-spacing:.01em;
  color:var(--ink);
}
.site-identity-divider {
  flex:0 0 1px;
  width:1px;
  height:20px;
  margin:0 12px;
  background:var(--edge);
}
.site-estate {
  flex:none;
  font-size:14px;
  font-weight:500;
  line-height:1;
  color:var(--ink-4);
  text-decoration:none;
  white-space:nowrap;
}
.site-estate:hover { color:var(--ink-2); }
.site-head-spacer { flex:1 1 auto; min-width:8px; }
.site-context {
  flex:none;
  font-size:12px;
  font-weight:400;
  line-height:1;
  color:var(--ink-4);
  white-space:nowrap;
}
.site-actions { display:flex; align-items:center; gap:15px; white-space:nowrap; }
.site-actions button,
.site-actions a,
.site-theme {
  font:500 12px/1 Urbanist,ui-sans-serif,system-ui,sans-serif;
  color:var(--ink-2);
}
.site-actions button,
.site-theme { border:0; background:none; cursor:pointer; }
.site-actions button { min-width:44px; min-height:44px; padding:0; }
.site-theme {
  flex:none;
  position:relative;
  min-width:44px;
  min-height:44px;
  padding:0;
}
.site-actions button:hover,
.site-actions a:hover,
.site-theme:hover { color:var(--ink); }

@media (max-width:900px) {
  .site-head[data-estate-header] [data-priority="low"] { display:none !important; }
}
@media (max-width:700px) {
  .site-head[data-estate-header] [data-priority="secondary"] { display:none !important; }
}
@media (max-width:480px) {
  .site-head[data-estate-header] [data-priority="primary"] { display:none !important; }
  .site-head[data-estate-header] .site-service { flex:0 1 auto; }
}
