/* 호랑이청소부 V4: 카테고리 비주얼, 접근성, fail-open 모션 */

/* 자바스크립트 준비 전에는 콘텐츠를 숨기지 않는다. */
.tc-motion-capable .tc-home:not(.is-motion-ready) .tc-type-word,
.tc-motion-capable .tc-home:not(.is-motion-ready) .tc-hero-copy > .tc-kicker,
.tc-motion-capable .tc-home:not(.is-motion-ready) .tc-hero-copy > .tc-hero-lede,
.tc-motion-capable .tc-home:not(.is-motion-ready) .tc-hero-copy > .tc-actions,
.tc-motion-capable .tc-home:not(.is-motion-ready) .tc-hero-copy > .tc-hero-points,
.tc-motion-capable .tc-home:not(.is-motion-ready) .tc-hero-visual,
.tc-motion-capable .tc-home:not(.is-motion-ready) [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
}

.tc-category-card-media,
.tc-category-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #171510;
}

.tc-category-card-media img,
.tc-category-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .7s var(--tc-ease), filter .3s ease;
}

.tc-category-card-media figcaption,
.tc-category-hero-media figcaption {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(8, 8, 7, .74);
  color: #fffdf7;
  font-size: .64rem;
  font-weight: 720;
  line-height: 1.25;
  backdrop-filter: blur(8px);
}

.tc-magazine .tc-category-grid {
  gap: 16px;
}

.tc-magazine .tc-category-grid > a {
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-color: #c4bcaf;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 12px 34px rgba(34, 27, 15, .06);
}

.tc-magazine .tc-category-grid > a:hover,
.tc-magazine .tc-category-grid > a:focus-visible {
  border-color: #8b6400;
  background: #fff9e8;
  box-shadow: 0 20px 44px rgba(34, 27, 15, .12);
}

.tc-magazine .tc-category-grid > a:focus-visible {
  outline: 3px solid #795700;
  outline-offset: 3px;
}

.tc-magazine .tc-category-grid > a:hover .tc-category-card-media img,
.tc-magazine .tc-category-grid > a:focus-visible .tc-category-card-media img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.tc-category-card-media {
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid #c4bcaf;
}

.tc-category-card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 6, 5, .5));
  content: "";
  pointer-events: none;
}

.tc-category-card-icon,
.tc-category-hero-icon {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .52);
  background: var(--tc-signal);
  color: #11100d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.tc-category-card-icon {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.tc-magazine .tc-category-card-copy {
  align-self: stretch;
  padding: 22px 22px 25px;
}

.tc-magazine .tc-category-card-copy > p {
  margin: 0 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #745500;
  font-size: .76rem;
}

.tc-magazine .tc-category-card-copy > p span {
  padding-right: 9px;
  border-right: 1px solid #c7b98d;
  color: #13120f;
}

.tc-magazine .tc-category-card-copy h3 {
  margin: 0 0 11px;
  font-size: clamp(1.16rem, 1.35vw, 1.34rem);
  line-height: 1.28;
}

.tc-magazine .tc-category-card-copy strong {
  color: #575249;
  font-size: .82rem;
  line-height: 1.62;
}

.tc-magazine .tc-category-grid > a > b {
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(8, 8, 7, .72);
  color: #fff;
  backdrop-filter: blur(8px);
}

.tc-category-page .tc-category-hero {
  padding: clamp(48px, 5vw, 76px) max(var(--tc-gutter), calc((100vw - var(--tc-max)) / 2)) clamp(60px, 7vw, 96px);
}

.tc-category-page .tc-category-hero > nav {
  max-width: var(--tc-max);
  margin: 0 auto clamp(32px, 4vw, 52px);
}

.tc-category-page .tc-category-hero > .tc-category-hero-layout {
  max-width: var(--tc-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
}

.tc-category-hero-copy {
  min-width: 0;
}

.tc-category-hero-icon {
  width: 64px;
  height: 64px;
  margin: 4px 0 26px;
  border-radius: 18px;
  font-size: 2.15rem;
}

.tc-category-page .tc-category-hero-copy h1 {
  max-width: 760px;
  margin: 0 0 34px;
  font-size: clamp(3.2rem, 5.7vw, 6.3rem);
}

.tc-category-hero-copy > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.tc-category-hero-copy > div > p {
  margin: 0;
  color: #d0cbc1;
  font-size: 1rem;
  line-height: 1.78;
}

.tc-category-hero-copy > div > strong {
  color: var(--tc-signal);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .86;
  white-space: nowrap;
}

.tc-category-hero-copy > div > strong small {
  display: block;
  margin-top: 9px;
  color: #b8b2a7;
  font-size: .74rem;
  text-align: right;
}

.tc-category-hero-media {
  aspect-ratio: 3 / 2;
  border: 1px solid #39352c;
  border-radius: 20px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .35);
}

.tc-category-hero-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.tc-category-page .tc-category-tabs a {
  min-height: 48px;
  font-size: .8rem;
  line-height: 1.3;
}

.tc-category-page .tc-category-tabs a > span,
.tc-category-page .tc-category-tabs a > small {
  font-size: .7rem;
}

.tc-category-page .tc-category-tabs a:focus-visible {
  outline: 3px solid #795700;
  outline-offset: 2px;
}

@media (max-width: 1040px) {
  .tc-category-page .tc-category-hero > .tc-category-hero-layout {
    grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
    gap: 36px;
  }

  .tc-category-page .tc-category-tabs a {
    font-size: .78rem;
  }
}

@media (max-width: 760px) {
  .tc-category-page .tc-category-hero {
    padding-top: 34px;
  }

  .tc-category-page .tc-category-hero > .tc-category-hero-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .tc-category-hero-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 15px;
    font-size: 1.82rem;
  }

  .tc-category-page .tc-category-hero-copy h1 {
    margin-bottom: 26px;
    font-size: clamp(2.7rem, 12vw, 4.3rem);
  }

  .tc-category-hero-copy > div {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .tc-category-hero-copy > div > p {
    font-size: .93rem;
  }

  .tc-category-hero-copy > div > strong {
    font-size: 3.2rem;
  }

  .tc-category-hero-media {
    border-radius: 15px;
  }

  .tc-category-page .tc-category-tabs a {
    min-height: 52px;
    padding: 12px 11px;
    font-size: .79rem;
  }
}

@media (max-width: 760px) {
  body.theme-tiger {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  body.theme-tiger .tc-mobile-actions {
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 560px) {
  .tc-magazine .tc-category-grid {
    gap: 9px;
  }

  .tc-magazine .tc-category-grid > a {
    min-height: 0;
    padding: 0;
    border-radius: 12px;
  }

  .tc-category-card-media {
    aspect-ratio: 16 / 10;
  }

  .tc-category-card-media figcaption {
    right: 7px;
    bottom: 7px;
    max-width: calc(100% - 14px);
    padding: 4px 6px;
    font-size: .52rem;
  }

  .tc-category-card-icon {
    top: 9px;
    left: 9px;
    width: 34px;
    height: 34px;
    font-size: 1.16rem;
  }

  .tc-magazine .tc-category-grid > a > b {
    top: 9px;
    right: 9px;
    width: 32px;
    height: 32px;
    font-size: .83rem;
  }

  .tc-magazine .tc-category-card-copy {
    padding: 13px 12px 15px;
  }

  .tc-magazine .tc-category-card-copy > p {
    margin-bottom: 8px;
    gap: 6px;
    font-size: .64rem;
  }

  .tc-magazine .tc-category-card-copy > p span {
    padding-right: 6px;
  }

  .tc-magazine .tc-category-card-copy h3 {
    margin-bottom: 0;
    font-size: .94rem;
    line-height: 1.34;
  }

  .tc-magazine .tc-category-card-copy strong {
    display: none;
  }

  .tc-category-hero-copy > div {
    grid-template-columns: 1fr;
  }

  .tc-category-hero-copy > div > strong {
    justify-self: start;
  }

  .tc-category-hero-copy > div > strong small {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tc-category-card-media img,
  .tc-category-hero-media img {
    transition: none;
  }
}
