/* NIKAYA V137.1 — PROFESSIONAL ENTITY DETAIL POLISH
   Visual-only upgrade, no JS dependency, no DB/schema changes. */
:root{
  --nk1371-ink:#24332f;
  --nk1371-muted:#68766f;
  --nk1371-green:#185f4d;
  --nk1371-green2:#2f7a65;
  --nk1371-gold:#b88a39;
  --nk1371-paper:#fffdf8;
  --nk1371-canvas:#f7f5ef;
  --nk1371-line:#e6dfd2;
  --nk1371-shadow:0 18px 50px rgba(44,54,48,.09);
}

/* Remove visual residue left by the legacy title system when a view uses Entity System. */
body:has(.nk-entity-hero) .app-page-title,
body:has(.nk-place132) .app-page-title{display:none!important}

.nk-entity-breadcrumb{
  max-width:1220px;margin:22px auto 12px;padding:0 18px;
  font-size:12.5px;color:#829089;letter-spacing:.01em
}
.nk-entity-breadcrumb a{color:var(--nk1371-green);font-weight:650}
.nk-entity-breadcrumb span{color:#b8b2a6}

.nk-entity-hero{
  max-width:1220px;grid-template-columns:210px minmax(0,1fr);gap:30px;
  padding:30px 34px;margin-bottom:14px;border:1px solid var(--nk1371-line);
  border-radius:28px;background:
    radial-gradient(circle at 92% 12%,rgba(184,138,57,.10),transparent 23%),
    linear-gradient(145deg,#fffefb 0%,#f7faf7 100%);
  box-shadow:var(--nk1371-shadow)
}
.nk-entity-hero:before{
  content:"";position:absolute;inset:0 auto 0 0;width:5px;
  background:linear-gradient(180deg,var(--nk1371-gold),var(--nk1371-green));
}
.nk-entity-hero__media img{
  width:210px;height:210px;border-radius:22px;border:1px solid #e8e1d5;
  box-shadow:0 10px 28px rgba(45,57,51,.12)
}
.nk-entity-hero__media>span{
  right:-10px;bottom:-8px;width:48px;height:48px;background:var(--nk1371-green);
  border:4px solid var(--nk1371-paper);box-shadow:0 8px 22px rgba(24,95,77,.24)
}
.nk-entity-hero__eyebrow{
  color:var(--nk1371-gold);font-size:11px;letter-spacing:.16em;font-weight:850
}
.nk-entity-hero h1{
  color:var(--nk1371-ink);font-size:clamp(30px,4.2vw,50px);font-weight:780;
  letter-spacing:-.025em;line-height:1.08;margin-bottom:13px
}
.nk-entity-hero p{color:#5c6b64;font-size:15.5px;line-height:1.72;max-width:850px}
.nk-entity-hero__facts{margin-top:17px;gap:9px}
.nk-entity-hero__facts span{
  background:rgba(255,255,255,.82);border-color:#e7e1d5;padding:8px 11px;
  color:#69756f;font-size:11.5px;box-shadow:0 2px 8px rgba(48,60,54,.03)
}
.nk-entity-hero__facts b{color:#374b43}
.nk-entity-hero__mark{font-size:220px;color:rgba(24,95,77,.025);right:26px;bottom:-72px}

.nk-entity-tools{
  max-width:1220px;margin:0 auto 12px;padding:10px 2px;gap:9px
}
.nk-entity-tools a,.nk-entity-tools button{
  min-height:38px;padding:9px 13px;border-color:#dfd9cc;border-radius:10px;background:#fffdfa;
  color:#335e50;font-size:12px;box-shadow:0 3px 11px rgba(48,60,54,.035);
  transition:.15s ease
}
.nk-entity-tools a:hover,.nk-entity-tools button:hover{
  transform:translateY(-1px);background:#f3f8f5;border-color:#bfd4cb;text-decoration:none
}
.nk-entity-research-strip{
  max-width:1220px;margin:0 auto 24px;padding:13px 16px;border:1px solid #e6dfd1;
  border-left:4px solid var(--nk1371-gold);border-radius:10px;background:#fffaf0;color:#697069
}

/* Modernize old entity page internals without rewriting stored/content HTML. */
#nk-entity-main{max-width:1220px;margin:0 auto 44px;padding:0 2px;color:var(--nk1371-ink)}
#nk-entity-main>.table,
#nk-entity-main .table_row{width:100%!important;max-width:100%!important}
#nk-entity-main .table_small{vertical-align:top}
#nk-entity-main .wrapper{max-width:100%}
#nk-entity-main .card{
  border:1px solid var(--nk1371-line)!important;border-radius:16px!important;
  background:var(--nk1371-paper)!important;box-shadow:0 7px 26px rgba(45,57,51,.055)
}
#nk-entity-main .card-header{background:transparent!important;border-bottom-color:#eee7dc!important}
#nk-entity-main h2,#nk-entity-main h3,#nk-entity-main h4{color:#30483f}
#nk-entity-main p,#nk-entity-main li{line-height:1.72}
#nk-entity-main table{border-color:#e7e1d7}
#nk-entity-main table th{background:#f6f8f5;color:#3b544b;font-weight:750}
#nk-entity-main table td,#nk-entity-main table th{border-color:#e7e1d7!important}
#nk-entity-main .scroll-nav{
  top:84px!important;padding:14px!important;border:1px solid #e3ddd2!important;border-radius:14px!important;
  background:rgba(255,253,248,.96)!important;box-shadow:0 8px 24px rgba(45,57,51,.06)
}
#nk-entity-main .scroll-nav a{color:var(--nk1371-green)}
#nk-entity-main img{border-radius:10px}

/* Place detail already has a complete V132 information architecture; polish its outer frame instead of duplicating a second hero. */
.nk-entity-main--place{max-width:none;padding:0;margin:0}
body:has(.nk-place132) .nk-place132{max-width:1220px;margin:26px auto 50px;padding-inline:16px}
body:has(.nk-place132) .nk-place132-hero{
  border-radius:26px!important;border-color:var(--nk1371-line)!important;
  box-shadow:var(--nk1371-shadow)!important;overflow:hidden
}
body:has(.nk-place132) .nk-place132-panel,
body:has(.nk-place132) .nk-place132-sidecard,
body:has(.nk-place132) .nk-place132-related{
  border-color:var(--nk1371-line)!important;box-shadow:0 8px 28px rgba(45,57,51,.05)
}

@media(max-width:760px){
  .nk-entity-breadcrumb{padding-inline:12px}
  .nk-entity-hero{grid-template-columns:1fr;padding:22px 20px;border-radius:20px;margin-inline:8px}
  .nk-entity-hero__media img{width:132px;height:132px}
  .nk-entity-hero h1{font-size:32px}
  .nk-entity-tools{padding-inline:8px}
  .nk-entity-research-strip{margin-inline:8px}
  #nk-entity-main{padding-inline:8px}
}

@media print{
  .nk-entity-hero{box-shadow:none;background:#fff}
  .nk-entity-tools{display:none!important}
}
