/* =========================================================
   Custom Search Modal
   ========================================================= */

/*
 * Minimal Mistakes는 검색창을 열 때
 * .initial-content에 is--hidden을 붙인다.
 *
 * 우리는 기존 페이지를 유지하고 그 위에
 * 검색 modal을 띄울 것이므로 다시 보이게 한다.
 */
.initial-content.is--hidden {
  display: block !important;
  visibility: visible !important;
}


/* 검색창이 열렸을 때 배경 스크롤 방지 */
body.search-modal-open {
  overflow: hidden;
}


/* =========================================================
   Overlay
   ========================================================= */

.search-content {
  display: none;
  visibility: hidden;

  position: fixed;
  inset: 0;

  z-index: 2000;

  padding: 90px 20px 30px;

  background: rgba(20, 24, 30, 0.32);

  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);

  overflow-y: auto;
}


/* 검색 활성화 */
.search-content.is--visible {
  display: block;
  visibility: visible;
}


/* =========================================================
   Search Panel
   ========================================================= */

.search-content__inner-wrap.custom-search {
  width: min(720px, 100%) !important;
  max-width: 720px !important;

  margin: 0 auto !important;
  padding: 0 !important;

  background: #ffffff;

  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);

  overflow: hidden;

  animation: custom-search-open 0.16s ease-out;
}


/* 등장 애니메이션 */
@keyframes custom-search-open {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================================================
   Search Header
   ========================================================= */

.custom-search__header {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 14px 16px;

  border-bottom: 1px solid #eeeeee;
}


.custom-search__icon {
  flex: 0 0 auto;

  font-size: 1rem;

  color: #777777;
}


/* form */
.custom-search__form {
  flex: 1;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
}


/* 검색 입력창 */
.custom-search .search-input {
  display: block;

  width: 100%;

  margin: 0 !important;
  padding: 4px 0 !important;

  border: none !important;
  outline: none !important;

  box-shadow: none !important;

  background: transparent !important;

  color: #333333;

  font-size: 1rem !important;
  line-height: 1.5 !important;

  font-family: inherit;
}


.custom-search .search-input::placeholder {
  color: #aaaaaa;
}


/* =========================================================
   Close Button
   ========================================================= */

.custom-search__close {
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: none;
  border-radius: 8px;

  background: transparent;

  color: #777777;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}


.custom-search__close:hover {
  background: #f2f2f2;
  color: #222222;
}


/* =========================================================
   Hint
   ========================================================= */

.custom-search__hint {
  padding: 9px 16px;

  border-bottom: 1px solid #f1f1f1;

  color: #999999;

  font-size: 0.72rem;
  line-height: 1.4;
}


/* =========================================================
   Results
   ========================================================= */

.custom-search .results {
  max-height: min(60vh, 520px);

  overflow-y: auto;

  padding: 0 16px 14px;
}


/* 검색 결과 개수 */
.custom-search .results__found {
  margin: 0 !important;
  padding: 12px 0 8px;

  color: #999999;

  font-size: 0.72rem !important;
}


/* 각 검색 결과 */
.custom-search .list__item {
  margin: 0 !important;

  border-top: 1px solid #f0f0f0;
}


/* 검색 결과 카드 */
.search-content .archive__item {
  width: 100% !important;

  margin: 0 !important;
  padding: 14px 2px !important;
}


/* title */
.search-content .archive__item-title {
  margin: 0 0 5px !important;

  font-size: 1rem !important;
  line-height: 1.4 !important;
}


.search-content .archive__item-title a {
  color: #333333;

  text-decoration: none;

  transition: color 0.15s ease;
}


.search-content .archive__item-title a:hover {
  color: #666666;
}


/* excerpt */
.search-content .archive__item-excerpt {
  margin: 0 !important;

  color: #777777;

  font-size: 0.8rem !important;
  line-height: 1.55 !important;
}


/*
 * 검색 결과에 teaser 이미지가 있는 경우
 * compact search에서는 숨김
 */
.search-content .archive__item-teaser {
  display: none !important;
}


/* =========================================================
   Scrollbar
   ========================================================= */

.custom-search .results::-webkit-scrollbar {
  width: 6px;
}


.custom-search .results::-webkit-scrollbar-thumb {
  background: #d5d5d5;

  border-radius: 10px;
}


.custom-search .results::-webkit-scrollbar-track {
  background: transparent;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

  .search-content {
    padding: 72px 12px 20px;
  }

  .search-content__inner-wrap.custom-search {
    border-radius: 12px;
  }

  .custom-search__header {
    padding: 12px 14px;
  }

  .custom-search .search-input {
    font-size: 16px !important;
  }

  .custom-search__hint {
    padding-left: 14px;
    padding-right: 14px;
  }

  .custom-search .results {
    max-height: 65vh;

    padding-left: 14px;
    padding-right: 14px;
  }
}

/* =========================================================
   Category Archive
   ========================================================= */

/* categories 페이지 상단의 "3D Vision 1" 목록 숨기기 */
.taxonomy__index {
  display: none !important;
}

/* index를 숨긴 뒤 위쪽 여백 정리 */
.taxonomy__section {
  margin-top: 0 !important;
}

/* =========================================================
   Sidebar Post Counts
   ========================================================= */

.sidebar-count {
  margin-left: 0.15em;
  color: #a0a0a0;
  font-size: 0.78em;
  font-weight: 400;
}

/* =========================================================
   Author Profile Links
   ========================================================= */

.author__urls li {
  display: flex !important;
  align-items: center !important;

  margin: 0 !important;
  padding: 0 !important;

  font-size: 0.64em !important;
  line-height: 1.15 !important;
}

.author__urls li + li {
  margin-top: 0.16em !important;
}

.author__urls li > a {
  display: flex !important;
  align-items: center !important;

  margin: 0 !important;
  padding: 0 !important;

  font-size: inherit !important;
  line-height: inherit !important;
}

.author__urls li > i,
.author__urls li > a > i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: 1.25em !important;
  min-width: 1.25em !important;

  margin: 0 0.28em 0 0 !important;

  font-size: 0.9em !important;
  line-height: 1 !important;
}

/* =========================================================
   Academic CV
   ========================================================= */

.academic-cv {
  font-size: 0.92em;
  line-height: 1.6;
  color: #333;
}


/* Section */
.academic-cv .cv-section {
  margin: 0 0 2.3rem;
}

.academic-cv .cv-section h2 {
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;

  border-bottom: 1px solid #e5e5e5;

  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.3;
}


/* Main entry */
.academic-cv .cv-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 2rem;

  margin: 0.8rem 0 0.25rem;
}

.academic-cv .cv-item-main {
  min-width: 0;
}

.academic-cv .cv-item-title {
  margin-bottom: 0.08rem;

  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.academic-cv .cv-item-subtitle {
  margin-top: 0.08rem;

  color: #555;

  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
}

.academic-cv .cv-item-role {
  margin-top: 0.18rem;

  color: #777;

  font-size: 0.86rem;
  font-weight: 400;
}


/* Dates */
.academic-cv .cv-item-date {
  flex: 0 0 auto;

  padding-top: 0.08rem;

  color: #777;

  font-size: 0.84rem;
  font-weight: 400;
  white-space: nowrap;
}


/* Supporting note */
.academic-cv .cv-note {
  margin-top: 0.25rem;

  color: #888;

  font-size: 0.8rem;
}


/* Research interests */
.academic-cv .cv-interests {
  display: flex;
  flex-wrap: wrap;

  gap: 0.35rem 0.55rem;

  margin-bottom: 0.8rem;
}

.academic-cv .cv-interests span {
  padding: 0.12rem 0.48rem;

  border: 1px solid #e1e4e8;
  border-radius: 999px;

  color: #444;
  background: transparent;

  font-size: 0.78rem;
}


/* Description bullets */
.academic-cv .cv-description {
  margin-top: 0.65rem;
  margin-bottom: 0;

  padding-left: 1.25rem;
}

.academic-cv .cv-description li {
  margin-bottom: 0.3rem;

  font-size: 0.88rem;
}


/* Skills */
.academic-cv .cv-skill-row {
  display: flex;

  margin-bottom: 0.35rem;

  font-size: 0.88rem;
}

.academic-cv .cv-skill-label {
  flex: 0 0 8rem;

  color: #333;

  font-weight: 600;
}


/* Awards */
.academic-cv .cv-award-project {
  margin-top: 0.55rem;

  font-size: 0.87rem;
}

.academic-cv .cv-award-project span {
  margin-right: 0.4rem;

  color: #888;

  font-size: 0.85rem;
}

.academic-cv .cv-award-project strong {
  font-weight: 500;
}


/* Mobile */
@media (max-width: 600px) {

  .academic-cv .cv-item {
    display: block;
  }

  .academic-cv .cv-item-date {
    margin-top: 0.25rem;
  }

  .academic-cv .cv-skill-row {
    display: block;
  }

  .academic-cv .cv-skill-label {
    display: block;
    margin-bottom: 0.05rem;
  }
}

/* =========================================================
   CV Card Layout
   ========================================================= */

.cv-page {
  margin-top: 0.5rem;
}

.cv-grid {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.cv-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.cv-card {
  padding: 1.2rem 1.35rem;

  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.cv-card-title {
  margin: 0 0 0.95rem;
  padding-bottom: 0.45rem;

  border-bottom: 1px solid #ececec;

  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.cv-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cv-item-main {
  min-width: 0;
}

.cv-item-heading {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.cv-item-sub {
  margin-top: 0.15rem;

  color: #555;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cv-item-role {
  margin-top: 0.18rem;

  color: #777;
  font-size: 0.86rem;
}

.cv-item-note {
  margin-top: 0.25rem;

  color: #888;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cv-item-date {
  flex: 0 0 auto;

  color: #777;
  font-size: 0.84rem;
  white-space: nowrap;
}

.cv-paragraph {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.cv-list {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.cv-list li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.cv-tags span {
  display: inline-block;
  padding: 0.2rem 0.55rem;

  border: 1px solid #e2e2e2;
  border-radius: 999px;

  background: #fafafa;
  color: #444;
  font-size: 0.78rem;
  line-height: 1.3;
}

.cv-skill-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.45rem;

  font-size: 0.9rem;
  line-height: 1.55;
}

.cv-skill-label {
  flex: 0 0 8rem;
  font-weight: 600;
  color: #333;
}

@media (max-width: 900px) {
  .cv-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cv-card {
    padding: 1rem;
  }

  .cv-item {
    display: block;
  }

  .cv-item-date {
    margin-top: 0.25rem;
  }

  .cv-skill-row {
    display: block;
  }

  .cv-skill-label {
    display: block;
    margin-bottom: 0.08rem;
  }
}

/* 단독 카드와 다음 grid 사이 간격 */
.cv-page > .cv-card {
  margin-bottom: 1.2rem;
}

/* =========================================================
   Academic Profile Homepage Style
   ========================================================= */

.profile-home {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #222;
}

.box-section {
  margin-bottom: 1.2rem;
  padding: 1.1rem 1.25rem;

  border: 1px solid #dddddd;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.section-title {
  margin-bottom: 0.9rem;
  padding-bottom: 0.35rem;

  border-bottom: 1px solid #e5e5e5;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Top Hero */
.ph-hero {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.ph-hero-text h1 {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
}

.ph-role {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #444;
}

.ph-hero-text p {
  margin: 0 0 0.9rem;
  font-size: 0.94rem;
  line-height: 1.7;
}

.ph-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.15rem;
  margin-top: 0.8rem;
  font-size: 0.86rem;
}

.ph-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #0066cc;
  text-decoration: none;
}

.ph-links a:hover {
  text-decoration: underline;
}

.ph-links a i {
  width: 1.05rem;
  text-align: center;
  font-size: 0.95em;
}

.ph-hero-photo img {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-left: auto;
  border: 1px solid #d9d9d9;
  border-radius: 0;
}

/* Research Overview */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.research-box {
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fafafa;
  padding: 0.85rem 0.9rem;
}

.research-box-title {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.research-box p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #444;
}

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.info-main {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.info-main strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.info-date {
  flex: 0 0 auto;
  font-size: 0.86rem;
  color: #666;
  white-space: nowrap;
}

.muted {
  color: #666;
}

.small-note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
}

.desc-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.desc-list li {
  margin-bottom: 0.35rem;
  font-size: 0.89rem;
  line-height: 1.65;
}

/* Skills */
.skill-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.89rem;
  line-height: 1.6;
}

.skill-row span:first-child {
  flex: 0 0 8.5rem;
  font-weight: 700;
}

.skill-row span:last-child {
  color: #444;
}

/* Mobile */
@media (max-width: 900px) {
  .ph-hero,
  .research-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .ph-hero-photo img {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .box-section {
    padding: 1rem;
  }

  .info-item,
  .skill-row {
    display: block;
  }

  .info-date {
    margin-top: 0.25rem;
  }

  .skill-row span:first-child {
    display: block;
    margin-bottom: 0.08rem;
  }
}