/* =========================
   HAPPY PENS CORE — EXPERTS
========================= */

.hpc-expert-page{
  max-width:1180px;
  margin:24px auto;
  padding:0 20px 60px;
  color:#171411;
  font-family:Arial,sans-serif;
}

/* HERO */

.hpc-expert-hero{
  margin:0 0 22px;
  padding:28px;
  background:#FDFBF8;
  border:1px solid rgba(176,138,82,.28);
  border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.04);
}

.hpc-expert-hero-grid{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:24px;
  align-items:start;
  min-width:0;
}

.hpc-expert-photo{
  width:280px;
  height:360px;
  min-width:0;
  overflow:hidden;
  background:#F3F0EB;
  border:1px solid rgba(176,138,82,.24);
  border-radius:12px;
}

.hpc-expert-photo img{
  width:100%;
  height:100%;
  min-height:0;
  display:block;
  object-fit:cover;
}

.hpc-expert-hero-content{
  position:relative;
  min-width:0;
  padding:6px 0;
  display:flex;
  flex-direction:column;
justify-content:flex-start;
}

.hpc-expert-hero-content h1{
  margin:0 0 0;
  color:#171411;
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:clamp(30px,4vw,50px);
  font-weight:400;
  line-height:0.4;
}

/* EXPERT HERO META */


.hpc-expert-public-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0;
  margin:2px 0 20px;
  color:#171411;
  font-family:Arial,sans-serif;
}

.hpc-expert-meta-country,
.hpc-expert-meta-joined{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.hpc-expert-meta-country{
  color:#171411;
  font-size:14px;
  font-weight:700;
}

.hpc-expert-meta-country .hpc-icon{
  width:15px;
  height:15px;
  flex:0 0 15px;
  color:#B08A52;
}

.hpc-expert-meta-country .hpc-icon svg{
  width:15px;
  height:15px;
}

.hpc-expert-meta-dot{
  margin:0 14px;
  color:#B08A52;
  font-size:18px;
  font-weight:700;
  line-height:1;
}

.hpc-expert-meta-joined-label{
  color:#9A9288;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hpc-expert-meta-joined-date{
  color:#5E5A55;
  font-size:13px;
  font-weight:600;
}

/* EXPERT HERO STATUSES */

.hpc-expert-statuses{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:0 0 18px;
}

.hpc-expert-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:0 12px;
  background:#FBF8F1;
  border:1px solid rgba(176,138,82,.28);
  border-radius:999px;
  color:#8A6A3F;
  font-family:Arial,sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1;
  letter-spacing:.075em;
  text-transform:uppercase;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.hpc-expert-status::after{
  display:none !important;
}

.hpc-expert-about{
  max-width:760px;
  color:#5E5A55;
  font-family:Arial,sans-serif;
  font-size:15px;
  line-height:1.65;
}

.hpc-expert-about p{
  margin:0 0 14px;
}

.hpc-expert-about p:last-child{
  margin-bottom:0;
}

/* COUNTS */

.hpc-expert-counts{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:14px;
  margin:0 0 22px;
}

.hpc-expert-count-card{
  min-width:0;
  padding:18px 14px;
  background:#FFFDF9;
  border:1px solid rgba(176,138,82,.22);
  border-radius:12px;
  text-align:center;
  box-shadow:0 10px 24px rgba(0,0,0,.03);
}

.hpc-expert-count-card strong{
  display:block;
  margin-bottom:6px;
  color:#171411;
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:28px;
  font-weight:400;
  line-height:1.1;
}

.hpc-expert-count-card span{
  display:block;
  color:#8A6A3F;
  font-family:Arial,sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1.1;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* SECTIONS */

.hpc-expert-section,
.hpc-expert-links{
  margin:0 0 22px;
  padding:22px;
  background:#FDFBF8;
  border:1px solid rgba(176,138,82,.28);
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.03);
}

.hpc-expert-section h2{
  margin:0 0 18px;
  color:#171411;
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:24px;
  font-weight:400;
  line-height:1.2;
}

/* ACHIEVEMENTS */

.hpc-expert-achievements-list{
  display:grid;
  gap:0 22px;
}

.hpc-expert-achievements-small{
  grid-template-columns:1fr;
}

.hpc-expert-achievements-medium,
.hpc-expert-achievements-large{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.hpc-expert-achievements-large{
  max-height:340px;
  overflow-y:auto;
  padding-right:8px;
}

.hpc-expert-achievement-item{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px 14px;
  align-items:baseline;
  padding:12px 0;
  border-bottom:1px solid rgba(176,138,82,.14);
}

.hpc-expert-achievement-title{
  color:#171411;
  font-family:Arial,sans-serif;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
}

.hpc-expert-achievement-year{
  color:#8A6A3F;
  font-family:Arial,sans-serif;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.hpc-expert-achievement-note{
  grid-column:1 / -1;
  color:#5E5A55;
  font-family:Arial,sans-serif;
  font-size:13px;
  line-height:1.45;
}

/* CONTRIBUTIONS */

.hpc-expert-contribution-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.hpc-expert-contribution-group{
  min-width:0;
  padding:16px 18px;
  background:#FFFDF9;
  border:1px solid rgba(176,138,82,.22);
  border-radius:10px;
}

.hpc-expert-contribution-group h3{
  margin:0 0 12px;
  color:#8A6A3F;
  font-family:Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:1;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.hpc-expert-contribution-list{
  max-height:330px;
  overflow-y:auto;
}

.hpc-expert-contribution-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:0;
  padding:7px 0;
  border-bottom:1px solid rgba(176,138,82,.12);
}

.hpc-expert-contribution-row:last-child{
  border-bottom:0;
}

.hpc-expert-contribution-arrow{
  flex:0 0 14px;
  width:14px;
  color:#B08A52;
  font-family:Arial,sans-serif;
  font-weight:700;
  font-size:15px;
  line-height:1.2;
}

.hpc-expert-contribution-row a,
.hpc-expert-contribution-title{
  display:block;
  margin:0;
  padding:0;
  color:#171411;
  font-family:Arial,sans-serif;
  font-size:15px;
  font-weight:700;
  line-height:1.4;
  text-decoration:none !important;
}

.hpc-expert-contribution-row a:hover{
  color:#B08A52;
}

/* TOP 3 — SHOWCASE COPY */

.hpc-expert-showcase-top3{
  display:grid;
  grid-template-columns:1.18fr .91fr .91fr;
  gap:14px;
  align-items:stretch;
  min-width:0;
}

.hpc-expert-showcase-pen{
  position:relative;
  display:grid;
  grid-template-rows:auto 1fr;
  min-width:0;
  height:100%;
  background:#FFFDF9;
  border:1px solid rgba(176,138,82,.24);
  border-radius:10px;
  overflow:visible;
  color:#171411;
  text-decoration:none !important;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}

.hpc-expert-showcase-pen:hover{
  transform:translateY(-2px);
  border-color:rgba(176,138,82,.55);
  background:#FDFBF8;
  box-shadow:0 10px 22px rgba(0,0,0,.06);
}

.hpc-expert-showcase-pen-image{
  position:relative;
  display:block;
  height:190px;
  overflow:hidden;
  background:#F3F0EB;
  border-radius:10px 10px 0 0;
}

.hpc-expert-showcase-pen-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .22s ease;
}

.hpc-expert-showcase-pen:hover .hpc-expert-showcase-pen-image img{
  transform:scale(1.03);
}

.hpc-expert-showcase-rank{
  position:absolute;
  top:0;
  left:0;
  z-index:3;
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#c49a45,#9b6e21);
  border-radius:10px 0 3px 0;
  color:#fff;
  font-family:Georgia,serif;
  font-size:20px;
  line-height:1;
}

.hpc-expert-showcase-pen-1 .hpc-expert-showcase-rank{
  width:54px;
  height:54px;
  font-size:28px;
}

.hpc-expert-showcase-pen-text{
  min-height:118px;
  display:flex;
  flex-direction:column;
  padding:13px 14px 14px;
}

.hpc-expert-showcase-pen-text strong{
  display:block;
  margin-bottom:8px;
  color:#171411;
  font-family:Arial,sans-serif;
  font-size:15px;
  font-weight:700;
  line-height:1.25;
}

.hpc-expert-showcase-pen-text strong a{
  color:#171411;
  text-decoration:none !important;
}

.hpc-expert-showcase-pen-text strong a:hover{
  color:#B08A52;
}

.hpc-expert-showcase-pen-1 .hpc-expert-showcase-pen-text strong{
  font-size:17px;
}

.hpc-expert-showcase-pen-text small{
  display:block;
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid rgba(176,138,82,.14);
  color:#8A6A3F;
  font-family:Arial,sans-serif;
  font-size:12px;
  line-height:1.4;
}

.hpc-expert-showcase-pen-note{
  position:relative;
  display:block;
  margin:10px 0 0;
  padding:8px 34px 8px 9px;
  background:#FDFBF8;
  border:1px solid rgba(176,138,82,.16);
  border-radius:6px;
  color:#5E5A55;
  font-family:Arial,sans-serif;
  font-size:14px;
  font-style:italic;
  line-height:1.6;
  cursor:default;
}

.hpc-expert-showcase-pen-note-text{
  display:block;
  max-height:22px;
  overflow:hidden;
  transition:max-height .22s ease;
}

.hpc-expert-showcase-pen:hover .hpc-expert-showcase-pen-note-text,
.hpc-expert-showcase-pen-note:focus-within .hpc-expert-showcase-pen-note-text{
  max-height:1000px;
}

.hpc-expert-showcase-pen-note-text::before{
  content:"❝";
  color:#B08A52;
  font-size:15px;
  margin-right:3px;
}

.hpc-expert-showcase-pen-note-text::after{
  content:"❞";
  color:#B08A52;
  font-size:15px;
  margin-left:3px;
}

@media(max-width:900px){

  .hpc-expert-showcase-top3{
    grid-template-columns:1fr;
  }

  .hpc-expert-showcase-pen-image{
    height:auto;
    aspect-ratio:16 / 9;
  }
}

/* UNAVAILABLE */

.hpc-expert-unavailable{
  max-width:860px;
  margin:48px auto;
  padding:28px;
  background:#FDFBF8;
  border:1px dotted #B08A52;
  border-radius:10px;
  color:#5E5A55;
  font-family:Arial,sans-serif;
  font-size:14px;
  line-height:1.45;
  text-align:center;
}

/* MY EXPERT PROFILE */

.hpc-my-expert-profile{
  max-width:980px;
  margin:24px auto;
  padding:0 20px 60px;
  color:#171411;
  font-family:Arial,sans-serif;
}

.hpc-my-expert-profile h2{
  margin:0 0 10px;
  color:#171411;
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:34px;
  font-weight:400;
  line-height:1.15;
}

.hpc-my-expert-intro{
  max-width:720px;
  margin:0 0 22px;
  color:#5E5A55;
  font-family:Arial,sans-serif;
  font-size:15px;
  line-height:1.55;
}

.hpc-my-expert-form{
  padding:28px;
  background:#FDFBF8;
  border:1px solid rgba(176,138,82,.28);
  border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.04);
}

.hpc-my-expert-field{
  margin:0 0 18px;
}

.hpc-my-expert-field label{
  display:block;
  margin:0 0 7px;
  color:#8A6A3F;
  font-family:Arial,sans-serif;
  font-size:10px;
  font-weight:700;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hpc-my-expert-field input,
.hpc-my-expert-field textarea{
  width:100%;
  min-height:38px;
  box-sizing:border-box;
  padding:10px 12px;
  background:#FFFDF9;
  border:1px solid rgba(176,138,82,.28);
  border-radius:4px;
  color:#171411;
  font-family:Arial,sans-serif;
  font-size:14px;
  line-height:1.45;
}

.hpc-my-expert-field textarea{
  min-height:140px;
  resize:vertical;
}

.hpc-my-expert-field input:focus,
.hpc-my-expert-field textarea:focus{
  outline:none;
  border-color:rgba(176,138,82,.62);
  box-shadow:0 0 0 2px rgba(176,138,82,.12);
}

.hpc-my-expert-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 18px;
}

.hpc-my-expert-photo-preview{
  display:block;
  width:120px;
  height:120px;
  margin:0 0 12px;
  object-fit:cover;
  background:#F3F0EB;
  border:1px solid rgba(176,138,82,.35);
  border-radius:10px;
}

.hpc-my-expert-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  margin:4px 0 22px;
  padding:13px 14px;
  background:#FFFDF9;
  border:1px solid rgba(176,138,82,.22);
  border-radius:8px;
  color:#5E5A55;
  font-family:Arial,sans-serif;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}

.hpc-my-expert-toggle input{
  flex:0 0 auto;
}

.hpc-my-expert-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  padding-top:4px;
}

.hpc-my-expert-actions button,
.hpc-my-expert-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:4px;
  font-family:Arial,sans-serif;
  font-size:12px;
  font-weight:700;
  line-height:1;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none !important;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}

.hpc-my-expert-actions button{
  background:#B08A52;
  border:1.5px solid #B08A52;
  color:#FDFBF8;
}

.hpc-my-expert-actions button:hover{
  background:#171411;
  border-color:#171411;
  color:#FDFBF8;
}

.hpc-my-expert-actions a{
  background:transparent;
  border:1.5px solid #B08A52;
  color:#B08A52 !important;
}

.hpc-my-expert-actions a:hover{
  background:#B08A52;
  border-color:#B08A52;
  color:#FDFBF8 !important;
}

/* FORM NOTICES */

.hpc-expert-form-notice{
  margin:0 0 18px;
  padding:13px 14px;
  border-radius:8px;
  font-family:Arial,sans-serif;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
}

.hpc-expert-form-success{
  background:rgba(72,128,76,.10);
  border:1px solid rgba(72,128,76,.24);
  color:#2f6f38;
}

.hpc-expert-form-error{
  background:rgba(160,60,45,.10);
  border:1px solid rgba(160,60,45,.24);
  color:#9b3427;
}

/* RESPONSIVE */

@media(max-width:980px){

  .hpc-expert-hero-grid{
    grid-template-columns:1fr;
  }

  .hpc-expert-photo,
  .hpc-expert-photo img{
    min-height:340px;
  }

  .hpc-expert-contribution-grid,
  .hpc-expert-top-three-grid{
    grid-template-columns:1fr;
  }

}

@media(max-width:768px){

  .hpc-expert-page,
  .hpc-my-expert-profile{
    margin:18px auto;
    padding:0 14px 50px;
  }

  .hpc-expert-hero,
  .hpc-my-expert-form{
    padding:22px;
  }

  .hpc-expert-hero-content h1,
  .hpc-my-expert-profile h2{
    font-size:28px;
  }

  .hpc-expert-counts,
  .hpc-expert-counts-2,
  .hpc-expert-counts-3,
  .hpc-expert-counts-4{
    grid-template-columns:1fr;
  }

  .hpc-expert-achievements-medium,
  .hpc-expert-achievements-large{
    grid-template-columns:1fr;
  }

  .hpc-my-expert-grid{
    grid-template-columns:1fr;
  }

  .hpc-my-expert-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  .hpc-my-expert-actions button,
  .hpc-my-expert-actions a{
    width:100%;
  }
}

@media(max-width:560px){

  .hpc-expert-hero,
  .hpc-expert-section,
  .hpc-expert-links,
  .hpc-my-expert-form{
    border-radius:12px;
  }

  .hpc-expert-photo,
  .hpc-expert-photo img{
    min-height:280px;
  }

  .hpc-expert-section,
  .hpc-expert-links{
    padding:18px;
  }

  .hpc-expert-achievement-item{
    grid-template-columns:1fr;
    gap:4px;
  }

  .hpc-expert-top-pen-image{
    height:auto;
    aspect-ratio:16 / 9;
  }
}

.hpc-expert-form-notice{
  transition:opacity .25s ease;
}

.hpc-expert-form-notice.hpc-notice-hidden{
  opacity:0;
}

@keyframes hpcExpertNoticeFade{
  0%{
    opacity:1;
    max-height:120px;
    margin-bottom:18px;
  }

  80%{
    opacity:1;
    max-height:120px;
    margin-bottom:18px;
  }

  100%{
    opacity:0;
    max-height:0;
    margin-bottom:0;
    padding-top:0;
    padding-bottom:0;
    overflow:hidden;
  }
}

.hpc-expert-email{
  color:#8A6A3F;
  font-family:Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  text-decoration:none !important;
  overflow-wrap:anywhere;
}

.hpc-expert-email:hover{
  color:#B08A52;
}

.single-hpa_expert .entry-header,
.single-hpa_expert .entry-title{
  display:none !important;
}
.hpc-expert-photo-monogram{
  width:100%;
  height:100%;
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#FFFDF9;
  border:1px solid rgba(176,138,82,.22);
  color:#B08A52;
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:72px;
  font-weight:400;
  line-height:1;
  letter-spacing:.02em;
}

.hpc-my-expert-photo-preview{
  width:120px;
  height:120px;
  margin:0 0 12px;
  overflow:hidden;
  background:#F3F0EB;
  border:1px solid rgba(176,138,82,.35);
  border-radius:10px;
}

.hpc-my-expert-photo-preview img,
.hpc-my-expert-photo-preview .hpc-expert-photo-monogram{
  width:100%;
  height:100%;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  object-fit:cover;
}

.hpc-my-expert-photo-preview .hpc-expert-photo-monogram{
  font-size:34px;
}

/* =========================
   AUTHOR BOX
========================= */

.hpc-author-box{
    display:flex;
    align-items:center;
    justify-content:right;
    gap:10px;

    margin:28px 0;

    padding:12px 12px;

}

.hpc-author-box-label{

    color:#8A6A3F;

    font-family:Arial,sans-serif;
    font-size:9px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    line-height:1;
}

.hpc-author-box-name{

    color:#171411 !important;

    font-family:"Libre Baskerville",Georgia,serif;
    font-size:13px;
    font-weight:400;
    line-height:1.2;

    text-decoration:none !important;

    transition:.18s ease;
}

.hpc-author-box-name:hover{

    color:#B08A52 !important;
}

@media (max-width:640px){

    .hpc-author-box{

        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .hpc-author-box-name{

        font-size:20px;
    }

}

/* =========================
   EXPERTS DIRECTORY
========================= */

.hpc-experts-directory{
  margin:24px 0;
  color:#171411;
  font-family:Arial,sans-serif;
}

.hpc-experts-directory-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}

.hpc-expert-directory-card{
  min-width:0;
  padding:14px;
  background:#FDFBF8;
  border:1px solid rgba(176,138,82,.24);
  border-radius:10px;
  box-shadow:0 8px 18px rgba(0,0,0,.025);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  position:relative;
}

.hpc-expert-directory-card:hover{
  transform:translateY(-2px);
  border-color:rgba(176,138,82,.48);
  box-shadow:0 10px 22px rgba(0,0,0,.05);
}

.hpc-expert-directory-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 12px;
  padding-left:14px;
}

.hpc-expert-directory-photo{
  flex:0 0 72px;
  width:72px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#F3F0EB;
  border:1px solid rgba(176,138,82,.28);
  border-radius:50%;
  text-decoration:none !important;
}

.hpc-expert-directory-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .22s ease;
}

.hpc-expert-directory-card:hover .hpc-expert-directory-photo img{
  transform:scale(1.04);
}

.hpc-expert-directory-photo .hpc-expert-photo-monogram{
  width:100%;
  height:100%;
  min-height:0;
  border:none;
  border-radius:0;
  font-size:28px;
}

.hpc-expert-directory-work-mini{
  align-self:center;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  min-width:0;
  margin-top:20px;
  color:#8A6A3F;
  font-family:Arial,sans-serif;
  line-height:1;
}

.hpc-expert-directory-work-mini .hpc-icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
  color:#B08A52;
}

.hpc-expert-directory-work-mini .hpc-icon svg{
  width:22px;
  height:22px;
}

.hpc-expert-directory-work-mini strong{
  color:#171411;
  font-family:"Libre Baskerville",Georgia,serif;
  font-size:22px;
  font-weight:400;
  line-height:1;
}

.hpc-expert-directory-body{
  padding:0;
  text-align:left;
}

.hpc-expert-directory-body h3{
  margin:0 0 4px;
  color:#171411;
  font-family:"Libre Baskerville", Georgia, serif;
  font-size:18px;
  font-weight:400;
  line-height:1.18;
}

.hpc-expert-directory-body h3 a{
  color:#171411;
  text-decoration:none !important;
}

.hpc-expert-directory-body h3 a:hover{
  color:#B08A52;
}

.hpc-expert-directory-country{
  margin:0 5px 10px;
  color:#6F665E;
  font-family:Arial,sans-serif;
  font-size:12px;
  font-weight:600;
  line-height:1.25;
}

.hpc-expert-directory-statuses{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  gap:4px;
  margin:0;
}

.hpc-expert-directory-statuses span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:0 5px;
  background:#FBF8F1;
  border:1px solid rgba(176,138,82,.26);
  border-radius:999px;
  color:#8A6A3F;
  font-family:Arial,sans-serif;
  font-size:9px;
  font-weight:700;
  line-height:1;
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.hpc-expert-directory-statuses span:not(:last-child)::after{
  display:none;
  content:none;
}

.hpc-experts-directory-empty{
  padding:28px;
  background:#FDFBF8;
  border:1px dotted #B08A52;
  border-radius:10px;
  color:#5E5A55;
  font-family:Arial,sans-serif;
  font-size:14px;
  line-height:1.45;
  text-align:center;
}

.hpc-expert-directory-card-link-full{
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:10px;
}

.hpc-expert-directory-top,
.hpc-expert-directory-body{
  position:relative;
  z-index:2;
  pointer-events:none;
}

.hpc-expert-directory-photo,
.hpc-expert-directory-body h3 a{
  pointer-events:auto;
}

@media(max-width:1200px){

  .hpc-experts-directory-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:980px){

  .hpc-experts-directory-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:700px){

  .hpc-experts-directory-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:480px){

  .hpc-experts-directory-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   AUTHOR CARD — FINAL FLEX
========================= */

.hpc-expert-card-author{
  display:flex;
  align-items:center;
  gap:18px;
  width:100%;
  box-sizing:border-box;
  margin:36px 0;
  padding:14px 18px;
  background:#FDFBF8;
  border:1px solid rgba(176,138,82,.16);
  border-radius:10px;
  box-shadow:0 6px 18px rgba(23,20,17,.025);
}

.hpc-expert-card-author .hpc-expert-card-photo{
  flex:0 0 64px;
  width:64px;
  height:64px;
  overflow:hidden;
  border-radius:50%;
  border:1px solid rgba(176,138,82,.26);
  background:#F3F0EB;
}

.hpc-expert-card-author .hpc-expert-card-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.hpc-expert-card-author .hpc-expert-photo-monogram{
  width:100%;
  height:100%;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:#FFFAF3;
  color:#B08A52;
  font-family:"Libre Baskerville",Georgia,serif;
  font-size:24px;
}

.hpc-expert-card-author .hpc-expert-card-main{
  flex:0 0 210px;
  min-width:0;
}

.hpc-expert-card-author .hpc-expert-card-label{
  display:block;
  margin:0 0 4px;
  color:#8A6A3F;
  font-size:10px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.hpc-expert-card-author h3{
  margin:0;
  font-family:"Libre Baskerville",Georgia,serif;
  font-size:20px;
  font-weight:400;
  line-height:1.2;
}

.hpc-expert-card-author h3 a{
  color:#171411;
  text-decoration:none !important;
}

.hpc-expert-card-country{
  display:block;
  margin-top:4px;
  color:#6F665E;
  font-size:12px;
}

.hpc-expert-card-author .hpc-expert-card-statuses{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:0 8px;
  margin:0;
}

.hpc-expert-card-author .hpc-expert-card-statuses span{
  color:#6F665E;
  font-family:Arial,sans-serif;
  font-size:12px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:0;
  text-transform:none;
  white-space:nowrap;
}

.hpc-expert-card-author .hpc-expert-card-statuses span:not(:last-child)::after{
  content:"·";
  margin-left:8px;
  color:rgba(176,138,82,.7);
}

.hpc-expert-card-author .hpc-expert-card-link{
  flex:0 0 auto;
  margin-left:auto;
  border:none !important;
  background:transparent !important;
  padding:0 !important;
  color:#B08A52 !important;
  font-size:10px;
  font-weight:800;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none !important;
  white-space:nowrap;
}

.hpc-expert-card-author .hpc-expert-card-link::after{
  content:" →";
}

.hpc-expert-card-author .hpc-expert-card-link:hover{
  color:#171411 !important;
}

/* =========================
   EXPERT SECTION DIVIDER
========================= */

.hpc-expert-section-divider{
  width:100%;
  height:1px;
  margin:-4px 0 18px;
  background:linear-gradient(
    90deg,
    rgba(176,138,82,.34),
    rgba(176,138,82,.08)
  );
}

/* =========================
   EXPERT ACHIEVEMENTS — POLISH
========================= */

.hpc-expert-achievement-item{
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:start;
  gap:7px 12px;
}

.hpc-expert-achievement-dot{
  color:#B08A52;
  font-family:Georgia,serif;
  font-size:17px;
  line-height:1.05;
}

.hpc-expert-achievement-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.hpc-expert-achievement-title{
  line-height:1.35;
}

.hpc-expert-achievement-note{
  grid-column:auto;
  display:block;
  color:#5E5A55;
  font-size:13px;
  line-height:1.45;
}

/* =========================
   HPC ICONS
========================= */

.hpc-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  flex:0 0 25px;
}

.hpc-icon svg{
  width:35px;
  height:35px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.hpc-icon-facebook svg,
.hpc-icon-youtube svg{
  fill:currentColor;
  stroke:none;
}

/* =========================
   ICON BRAND COLORS
========================= */

.hpc-icon-website{
    color:#B08A52;
}

.hpc-icon-email{
    color:#B08A52;
}

.hpc-icon-instagram{
    color:#E4405F;
}

.hpc-icon-youtube{
    color:#FF0000;
}

.hpc-icon-facebook{
    color:#1877F2;
}

.hpc-icon-x{
    color:#111111;
}

/* =========================
   EXPERT LINKS — ICON FINAL
========================= */

.hpc-expert-links{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:0 0 22px;
  padding:18px 22px;
  background:#FDFBF8;
  border:1px solid rgba(176,138,82,.22);
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.025);
}

.hpc-expert-contact-links{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:22px;
  min-width:0;
}

.hpc-expert-socials{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:18px;
}

.hpc-expert-contact-links a,
.hpc-expert-socials a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#171411;
  font-family:Arial,sans-serif;
  font-size:15px;
  font-weight:600;
  line-height:1.35;
  text-decoration:none;
  padding:2px 2px;
  border-radius:6px;
  transition:background .18s,color .18s;

}

.hpc-expert-socials a{
  color:#8A6A3F;
  font-size:15px;
}

.hpc-expert-contact-links a:hover,
.hpc-expert-socials a:hover{
    background:#F3E8D3;
    color:#171411;
}

@media(max-width:760px){

  .hpc-expert-links{
    align-items:flex-start;
    flex-direction:column;
    gap:14px;
  }

  .hpc-expert-socials{
    justify-content:flex-start;
  }
}

/* HERO EDIT */

.hpc-expert-hero-toolbar{
  position:absolute;
  top:0;
  right:0;
  z-index:5;
  display:flex;
  justify-content:flex-end;
  margin:0;
}

.hpc-expert-edit-profile{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    background:#FDFBF8;
    border:1px solid rgba(176,138,82,.32);
    border-radius:6px;
    color:#8A6A3F !important;
    text-decoration:none !important;
    font-family:Arial,sans-serif;
    font-size:12px;
    font-weight:700;
    line-height:1;
    transition:all .18s ease;
}

.hpc-expert-edit-profile:hover{
    background:#F7F2E7;
    border-color:#B08A52;
    color:#171411 !important;
}

.hpc-expert-edit-profile .hpc-icon{
    width:15px;
    height:15px;
    flex:0 0 15px;
}

.hpc-expert-profile-nav-item:has(.hpc-my-expert-empty){
  display:none !important;
}

/* =========================
   MY EXPERT PROFILE — PHOTO / AVATAR
========================= */

.hpc-my-expert-photo-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    align-items:start;
}

.hpc-my-expert-photo-preview{
    width:150px;
    height:150px;
    margin:10px 0 12px;
    overflow:hidden;
    border:1px solid rgba(176,138,82,.28);
    background:#FDFBF8;
}

.hpc-my-expert-photo-preview img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.hpc-my-expert-avatar-preview{
    border-radius:50%;
}

.hpc-my-expert-avatar-preview img{
    border-radius:50%;
}

.hpc-my-expert-avatar-image{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border-radius:50%;
}

.hpc-my-expert-field small{
    display:block;
    margin-top:7px;
    color:#8B867F;
    font-size:12px;
    line-height:1.4;
}

@media(max-width:700px){
    .hpc-my-expert-photo-grid{
        grid-template-columns:1fr;
    }
}

/* =========================
   EXPERT CARDS — ACCOUNT AVATAR
========================= */

.hpc-expert-card-avatar-image{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border-radius:50%;
}