/* The Clan Forge shared dashboard header — additions only, no global restyling */
.cf-dashboard-header{overflow:visible;position:relative;z-index:100;gap:clamp(8px,1.2vw,22px)}
.cf-dashboard-header .forge-desktop-nav{display:flex;align-items:center;gap:clamp(5px,.75vw,15px);min-width:0}
.cf-dashboard-header .forge-desktop-nav>a{white-space:nowrap}
.cf-dashboard-header .cf-head-actions{display:flex;align-items:center;gap:clamp(4px,.5vw,12px);margin-left:auto;flex-shrink:0}
.cf-head-svg{display:block;width:19px;height:19px;filter:drop-shadow(0 1px 1px #0009)}
.cf-head-icon,.cf-head-pop>summary{width:37px;height:38px;display:inline-flex;align-items:center;justify-content:center;color:#ebd2a0;background:linear-gradient(155deg,#443021aa,#1b1412aa);border:1px solid #9b784b88;border-radius:5px;cursor:pointer;position:relative;list-style:none;text-decoration:none;transition:background .18s,box-shadow .18s,color .18s}
.cf-head-pop>summary::-webkit-details-marker{display:none}
.cf-head-icon:hover,.cf-head-pop>summary:hover,.cf-head-pop[open]>summary,.cf-head-icon:focus-visible,.cf-head-pop>summary:focus-visible{background:linear-gradient(145deg,#59402b,#27201a);color:#ffedc1;box-shadow:inset 0 1px #f3dba044,0 0 11px #ccaa6950}
.cf-head-pop{position:relative;display:inline-flex}
.cf-head-panel{position:absolute;z-index:999;top:calc(100% + 10px);right:0;min-width:245px;max-width:min(340px,92vw);padding:15px;background:linear-gradient(145deg,#32251c,#171312 80%);color:#f5e5c6;border:1px solid #b79660;box-shadow:0 18px 40px #000a,inset 0 1px #e9c58e55;display:grid;gap:7px;border-radius:6px}
.cf-head-panel a,.cf-head-panel .cf-menu-future{display:block;padding:8px 10px;color:#ead4ae;text-decoration:none;font-size:14px;line-height:1.35}
.cf-head-panel a:hover,.cf-head-panel a:focus-visible{background:linear-gradient(90deg,#25445a,#263342);color:#ffe5b3}
.cf-head-panel p{font-size:13px;line-height:1.45;margin:5px 0 9px;color:#cfc1ac}
.cf-search-panel{left:0;right:auto;min-width:min(340px,90vw)}
.cf-search-panel label{font-size:13px}.cf-search-panel input{width:100%;min-width:0}.cf-search-panel button{width:100%}
.cf-head-shortcuts{display:flex;gap:6px;flex-wrap:wrap}.cf-head-shortcuts a{font-size:12px}
.cf-dashboard-header .cf-head-avatar{border-radius:50%;width:37px;height:37px}
.cf-dashboard-header .cf-member-trigger{width:auto;max-width:155px;gap:5px;padding:0 10px;white-space:nowrap;font-size:13px}
.cf-member-trigger .cf-head-svg{width:13px;height:13px}
.cf-member-panel{min-width:250px}.cf-menu-relief{height:12px;margin:3px 12px;background:url('/social/assets/theme/hall-ornaments/divider-fine.svg') center/contain no-repeat;opacity:.78}
.cf-menu-future{opacity:.55;cursor:not-allowed}
.cf-head-icon[data-unread]::after,.cf-head-pop[data-unread]>summary::after{content:'';width:8px;height:8px;position:absolute;right:1px;top:1px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#e8f7ff,#478dbf 70%);box-shadow:0 0 6px #65a6e0}
.cf-head-pop[data-unread="notice"]>summary::after{background:radial-gradient(circle at 35% 30%,#fff0bd,#c09b49 70%);box-shadow:0 0 6px #e4bb65}
.cf-dashboard-header :is(a,button,summary,input):focus-visible{outline:2px solid #f6d99e;outline-offset:3px}
@media(max-width:1120px){.cf-dashboard-header .forge-desktop-nav{display:none}.cf-dashboard-header .cf-member-trigger{max-width:116px}.cf-dashboard-header .forge-menu-button{display:inline-flex}}
@media(max-width:600px){.cf-dashboard-header .cf-member-pop{display:none}.cf-dashboard-header .cf-head-actions{gap:4px}.cf-head-icon,.cf-head-pop>summary{width:34px;height:35px}.cf-dashboard-header .cf-head-join{display:none}}
@media(prefers-reduced-motion:reduce){.cf-head-icon,.cf-head-pop>summary{transition:none}}

/* Approved gold-and-leather styling: header guest actions and Hall creation CTA.
   Scoped to existing controls; no markup/URL or other shared-theme changes. */
.cf-dashboard-header a.forge-signin,
.cf-dashboard-header a.cf-head-join,
.halls-wrap .halls-heading a.halls-gold-link {
 display:inline-flex;align-items:center;justify-content:center;min-height:38px;
 padding:7px 17px;line-height:1.25;white-space:nowrap;
 text-decoration:none!important;font-size:clamp(12px,.88vw,14px);
 font-weight:600;letter-spacing:.035em;color:#f5dfb4!important;
 border:1px solid #b99b63;border-radius:3px;
 background:linear-gradient(180deg,#456483 0%,#27435f 38%,#142941 100%);
 box-shadow:inset 0 1px 0 #ffefbd44,inset 0 -2px 0 #091c34aa,0 2px 7px #0007;
 text-shadow:0 1px 2px #081525;transition:background .2s,box-shadow .2s,transform .2s;
}
.cf-dashboard-header a.forge-signin{background:linear-gradient(180deg,#493b2c,#30251e 48%,#1d1715);border-color:#a98a5c}
.cf-dashboard-header a.cf-head-join{background:linear-gradient(180deg,#426480,#23425e 48%,#12283d)}
.cf-dashboard-header a.forge-signin:hover,
.cf-dashboard-header a.cf-head-join:hover,
.halls-wrap .halls-heading a.halls-gold-link:hover {
 color:#fff0ca!important;background:linear-gradient(180deg,#5d7d9b,#315473 49%,#1a3451);
 box-shadow:inset 0 1px #ffe3a77a,0 0 0 1px #e5c18340,0 0 14px #4477a45b,0 3px 10px #0009;
 transform:translateY(-1px)
}
.cf-dashboard-header a.forge-signin:focus-visible,
.cf-dashboard-header a.cf-head-join:focus-visible,
.halls-wrap .halls-heading a.halls-gold-link:focus-visible{outline:2px solid #f5d69b;outline-offset:3px}
.cf-dashboard-header a.forge-signin:active,
.cf-dashboard-header a.cf-head-join:active,
.halls-wrap .halls-heading a.halls-gold-link:active{transform:translateY(1px)}
@media(max-width:600px){.cf-dashboard-header a.forge-signin,.cf-dashboard-header a.cf-head-join{min-height:36px;padding:7px 10px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.cf-dashboard-header a.forge-signin,.cf-dashboard-header a.cf-head-join,.halls-wrap .halls-heading a.halls-gold-link{transition:none;transform:none!important}}

/* Shared active House Banner — overlaps hero; does not change nav markup. */
body.forge-room-clan-halls,
body.forge-room-clans,
body.forge-room-clan {--cf-banner-hi:#426888;--cf-banner-mid:#24435f;--cf-banner-low:#102338}
body.forge-room-academy {--cf-banner-hi:#32644f;--cf-banner-mid:#1c4736;--cf-banner-low:#09281e}
body.forge-room-tavern {--cf-banner-hi:#7b3542;--cf-banner-mid:#54212f;--cf-banner-low:#2b101d}
body.forge-room-armory {--cf-banner-hi:#785337;--cf-banner-mid:#523923;--cf-banner-low:#2c2018}
/* Neutral leather for any page without a named Room. */
body {--cf-banner-hi-default:#59412f;--cf-banner-mid-default:#34261e;--cf-banner-low-default:#1c1713}
.cf-dashboard-header,
.cf-dashboard-header .forge-desktop-nav {overflow:visible!important}
.cf-dashboard-header .forge-desktop-nav>a[aria-current="page"] {
 position:relative;isolation:isolate;z-index:2;
 background:transparent!important;border-color:transparent!important;
 box-shadow:none!important;overflow:visible!important;
 text-shadow:0 1px 3px #000;
}
/* Gold perimeter and smaller inset fabric produce a fine gold-trimmed pennant. */
.cf-dashboard-header .forge-desktop-nav>a[aria-current="page"]::before,
.cf-dashboard-header .forge-desktop-nav>a[aria-current="page"]::after {
 content:"";position:absolute;pointer-events:none;display:block;
 clip-path:polygon(0 0,100% 0,100% calc(100% - 18px),50% 100%,0 calc(100% - 18px));
}
.cf-dashboard-header .forge-desktop-nav>a[aria-current="page"]::before {
 inset:0 -1px -26px;z-index:-2;
 background:linear-gradient(90deg,#77512b 0%,#efd8a2 22%,#ab7b39 52%,#f1d9a1 79%,#65441f 100%);
 filter:drop-shadow(0 5px 5px #000b);
}
.cf-dashboard-header .forge-desktop-nav>a[aria-current="page"]::after {
 inset:1.5px .7px -23px;z-index:-1;
 background:linear-gradient(115deg,#fff2c21c,transparent 45%),linear-gradient(180deg,var(--cf-banner-hi,var(--cf-banner-hi-default)) 0%,var(--cf-banner-mid,var(--cf-banner-mid-default)) 65%,var(--cf-banner-low,var(--cf-banner-low-default)) 100%);
 box-shadow:inset 0 1px #fff3;
}
.cf-dashboard-header .forge-desktop-nav>a[aria-current="page"]:hover::after,
.cf-dashboard-header .forge-desktop-nav>a[aria-current="page"]:focus-visible::after {filter:brightness(1.13)}
@media(max-width:1120px) {
 .cf-dashboard-header .forge-desktop-nav>a[aria-current="page"]::before,
 .cf-dashboard-header .forge-desktop-nav>a[aria-current="page"]::after {display:none}
}


/* Hall page hero ownership — category and individual Clan pages render their
   own contextual artwork; suppress the generic shared-layout hero on those
   pages only. No change to the global header, other Rooms or main navigation. */
@supports selector(body:has(.halls-directory-hero)) {
 body:has(.halls-world .halls-directory-hero) > .forge-shell > .forge-page-hero,
 body:has(.forge-experience .forge-experience-hero) > .forge-shell > .forge-page-hero {
   display:none !important;
 }
}
/* Category Hall hero: protect the illustration, not a dark screen over it. */
body .halls-world .halls-directory-hero {
 min-height:clamp(300px,50svh,680px);
 background-image:linear-gradient(90deg,rgba(13,27,42,.26),rgba(12,20,30,.10) 48%,rgba(11,15,21,.14)),var(--directory-bg) !important;
 background-position:center,center 49%;
 background-size:cover;
 background-repeat:no-repeat;
 border-top:0;
 display:grid;
 place-items:center;
 padding:clamp(16px,3vw,40px);
}
/* A localized readable backing rather than darkening the whole picture. */
body .halls-world .halls-directory-hero .halls-hero-inner {
 width:min(760px,100%);
 padding:clamp(20px,3.6vw,42px) clamp(22px,4vw,56px);
 background:radial-gradient(ellipse at 50% 42%,rgba(13,17,20,.76),rgba(9,14,20,.56) 68%,rgba(9,14,20,.20));
 border:1px solid rgba(206,172,109,.34);
 box-shadow:0 16px 45px rgba(0,0,0,.22),inset 0 1px rgba(255,225,164,.08);
 backdrop-filter:blur(2px);
 -webkit-backdrop-filter:blur(2px);
 text-align:center;
}
body .halls-world .halls-directory-hero h1 {
 font-size:clamp(29px,3vw,49px);
 line-height:1.12;
 text-transform:uppercase;
 margin:10px 0;
}
body .halls-world .halls-directory-hero p {
 font-size:clamp(15px,1.3vw,19px);
 line-height:1.5;
 margin:10px auto 0;
 max-width:620px;
}
@media(max-width:620px){
 body .halls-world .halls-directory-hero{min-height:50svh;padding:12px}
 body .halls-world .halls-directory-hero .halls-hero-inner{padding:22px 14px}
}



/* Clan Forge — HALL DIRECTORY HERO REFINEMENT
   Keep the existing category hero artwork and functionality unchanged.
   Fine flourishes only around the subtitle; lightweight corners inset 50px.
   Scope to /social/halls.php category hero (NOT the main Clan Halls hero). */
body .halls-world .halls-directory-hero .halls-hero-inner {
  position:relative;
  isolation:isolate;
  width:min(680px,calc(100% - 16px));
  max-width:100%;
  padding:clamp(54px,5vw,70px) clamp(44px,5.5vw,72px);
  border:0 !important;
  box-shadow:none !important;
  background:radial-gradient(ellipse closest-side at 50% 50%,rgba(8,14,22,.78) 0%,rgba(8,14,22,.64) 40%,rgba(8,14,22,.28) 70%,rgba(8,14,22,0) 100%) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
/* Independent corner ornaments: deliberately inside, never drawn on the edge. */
body .halls-world .halls-directory-hero .halls-hero-inner::before,
body .halls-world .halls-directory-hero .halls-hero-inner::after {
  content:"";position:absolute;pointer-events:none;
  width:clamp(34px,4vw,55px);height:clamp(34px,4vw,55px);
  background-size:contain;background-repeat:no-repeat;
  opacity:.82;filter:drop-shadow(0 2px 3px rgba(0,0,0,.48));
}
body .halls-world .halls-directory-hero .halls-hero-inner::before {
  top:clamp(22px,3vw,50px);left:clamp(22px,3vw,50px);
  background-image:url('/social/assets/theme/hall-ornaments/corner-nw.svg');
  background-position:left top;
}
body .halls-world .halls-directory-hero .halls-hero-inner::after {
  bottom:clamp(22px,3vw,50px);right:clamp(22px,3vw,50px);
  background-image:url('/social/assets/theme/hall-ornaments/corner-se.svg');
  background-position:right bottom;
}
body .halls-world .halls-directory-hero h1 {
  font-size:clamp(27px,2.65vw,40px) !important;
  margin:8px 0 14px !important;
  line-height:1.15 !important;
}
/* Matching fine relief above and below the contextual tagline. */
body .halls-world .halls-directory-hero .halls-hero-inner > p {
  position:relative;display:table;
  margin:8px auto !important;
  padding:26px 12px !important;
  max-width:min(560px,100%);
  font-size:clamp(15px,1.25vw,18px) !important;
  line-height:1.5;
}
body .halls-world .halls-directory-hero .halls-hero-inner > p::before,
body .halls-world .halls-directory-hero .halls-hero-inner > p::after {
  content:"";position:absolute;left:50%;transform:translateX(-50%);
  width:min(350px,85%);height:18px;
  background:url('/social/assets/theme/hall-ornaments/divider-fine.svg') center/contain no-repeat;
  opacity:.86;pointer-events:none;
}
body .halls-world .halls-directory-hero .halls-hero-inner > p::before{top:0}
body .halls-world .halls-directory-hero .halls-hero-inner > p::after{bottom:0}
@media(max-width:620px){
  body .halls-world .halls-directory-hero .halls-hero-inner{width:100%;padding:52px 24px}
  body .halls-world .halls-directory-hero .halls-hero-inner::before{top:18px;left:16px}
  body .halls-world .halls-directory-hero .halls-hero-inner::after{right:16px;bottom:18px}
  body .halls-world .halls-directory-hero .halls-hero-inner > p{padding:22px 6px !important}
}

/* Account dropdown refinement — matching secure Sign Out form to ordinary links. */
.cf-member-panel{gap:3px;padding:11px 14px}
.cf-member-panel>a,.cf-member-panel .cf-menu-halls>a{padding:5px 8px;line-height:1.25}
.cf-member-panel .cf-menu-halls{display:grid;gap:3px}
.cf-member-panel .cf-menu-halls-title{margin:4px 0 0}
.cf-member-panel .cf-menu-halls-empty{display:block;margin:2px 8px}
.cf-member-panel .cf-menu-relief{height:10px;margin:1px 12px}
.cf-member-panel .cf-logout-form{display:block;margin:0;padding:0;border:0;background:none;box-shadow:none}
.cf-member-panel .cf-logout-submit{display:block;box-sizing:border-box;width:100%;min-height:0;margin:0;padding:5px 8px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#ead4ae;text-align:left;text-decoration:none;font:inherit;font-size:14px;line-height:1.25;letter-spacing:normal;text-transform:none;text-shadow:none;cursor:pointer}
.cf-member-panel .cf-logout-submit:hover,.cf-member-panel .cf-logout-submit:focus-visible{background:linear-gradient(90deg,#25445a,#263342);color:#ffe5b3;box-shadow:none}
