/* =========================================================
   YAWC Author Page (Clean / Full)
   - 現行HTML準拠（.yawc-authorHero__cover なしでもOK）
   - FIXED: 永久太枠（10pxテスト）
   - ACTIVE: 点灯
   - DIM: 消灯
========================================================= */

.yawc-authorPage { margin: 0; }
.yawc-authorPage * { box-sizing: border-box; }

.yawc-authorHero{
  --yawc-accent: #00ffff;
  position: relative;
  border-radius: 18px;
  overflow: hidden;

  /* coverは JS が section 自体に入れる */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* レイアウトの最低高さ */
  min-height: 320px;
}

/* 暗幕（読みやすさ確保） */
.yawc-authorHero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.70));
  pointer-events: none;
}

/* inner */
.yawc-authorHero__inner{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 18px 28px;
  display: flex;
  gap: 18px;
  align-items: center;
}

@media (max-width: 720px){
  .yawc-authorHero__inner{
    padding: 18px 14px 20px;
    align-items: flex-start;
  }
}

/* icon */
.yawc-authorHero__icon{
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  min-width: 112px;
}

.yawc-authorHero__icon img,
.yawc-authorHero__icon .avatar{
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(255,255,255,.88);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

/* meta */
.yawc-authorHero__meta{ min-width: 0; color: #fff; }

.yawc-authorHero__name{
  color: #fff;
  text-decoration: none;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: .02em;
  display: inline-block;
  line-height: 1.1;
  margin-bottom: 10px;
}

@media (max-width: 720px){
  .yawc-authorHero__name{ font-size: 34px; }
}

/* Modes (HUMAN/AI/HYBRID) */
.yawc-authorHero__modes{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 14px;
}

.yawc-authorHero__modes .yawc-js-mode{
  appearance: none;
  border: 2px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

/* 点灯（フィルタ状態） */
.yawc-authorHero__modes .yawc-js-mode.yawc-is-active{
  border-color: color-mix(in srgb, var(--yawc-accent) 70%, white 30%);
  box-shadow: 0 0 0 2px rgba(0,0,0,.25) inset, 0 0 0 1px rgba(255,255,255,.25);
  background: rgba(0,0,0,.34);
}

/* 消灯 */
.yawc-authorHero__modes .yawc-js-mode.yawc-is-dim{
  opacity: .35;
  filter: saturate(.6);
}

/* ===== 永久太枠（テスト：10px） =====
   border がテーマに潰されるケースがあるので
   outline + box-shadow の二段構えにする
*/
.yawc-authorHero__modes .yawc-js-mode.yawc-is-fixed{
  border-width: 2px !important; /* borderは残す */
  border-color: rgba(255,255,255,.90) !important;

  outline: 10px solid rgba(255,255,255,.88) !important;  /* 太枠（最優先） */
  outline-offset: -6px; /* pill内側に寄せる */

  box-shadow:
    0 0 0 2px rgba(0,0,0,.45) inset,
    0 10px 28px rgba(0,0,0,.28);
}

/* hover */
.yawc-authorHero__modes .yawc-js-mode:hover{
  transform: translateY(-1px);
}

/* Role tabs */
.yawc-authorHero__roleTabs{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.yawc-roleTab{
  appearance: none;
  border: 2px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

/* 選択中（点灯） */
.yawc-roleTab.yawc-is-active{
  border-color: color-mix(in srgb, var(--yawc-accent) 70%, white 30%);
  background: rgba(0,0,0,.30);
  box-shadow: 0 0 0 2px rgba(0,0,0,.35) inset;
}

/* 所属（永久太枠：10pxテスト） */
.yawc-roleTab.yawc-is-fixed{
  outline: 10px solid rgba(255,255,255,.88) !important;
  outline-offset: -6px;
  border-color: rgba(255,255,255,.90) !important;
  box-shadow:
    0 0 0 2px rgba(0,0,0,.45) inset,
    0 10px 28px rgba(0,0,0,.22);
}

/* disabled */
.yawc-roleTab.is-disabled{
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

/* desc */
.yawc-authorHero__desc{
  margin: 14px 0 0;
  opacity: .92;
  line-height: 1.9;
  font-size: 16px;
  max-width: 70ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

/* patches */
.yawc-authorHero__patches{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.yawc-authorHero__patch{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
}

.yawc-authorHero__patch img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

/* =========================================================
   Posts Wrap
========================================================= */
.yawc-authorPostsWrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}

.yawc-authorPostsTitle{
  font-size: 34px;
  font-weight: 900;
  margin: 10px 0 18px;
  color: #fff;
}

/* Loading state */
#yawc-author-posts.is-loading{
  opacity: .65;
  filter: saturate(.9);
}

/* =========================================================
   AJAX HTML (author-ajax.php output)
   .yawc-postList / .yawc-postCard...
========================================================= */
.yawc-postList{ }

.yawc-postList__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.yawc-postList__count{
  opacity: .75;
  color: rgba(255,255,255,.88);
  font-weight: 800;
}

/* cards grid */
.yawc-postList__items{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px){
  .yawc-postList__items{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .yawc-postList__items{ grid-template-columns: 1fr; }
}

.yawc-postCard{
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.yawc-postCard__link{
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 14px 14px 16px;
}

.yawc-postCard__thumb{
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 12px;
  display: block;
}

.yawc-postCard__title{
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  color: rgba(255,255,255,.96);
}

.yawc-postCard__meta{
  font-size: 12px;
  opacity: .75;
  color: rgba(255,255,255,.88);
}

/* pager */
.yawc-postList__pager{
  margin-top: 18px;
  text-align: center;
}

.yawc-postList__more{
  appearance: none;
  border: 2px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.92);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.yawc-postList--empty p{
  opacity: .75;
  color: rgba(255,255,255,.88);
}