
/* V2 Home — Two-column cards and home-only Hero */

body.wik-v2[data-page="home"] .top-area {
  min-height: 36svh;
}

body.wik-v2[data-page="home"] .hero {
  align-items: flex-end;
  justify-content: center;
  padding: 0 .15rem 1.5rem;
}

body.wik-v2[data-page="home"] .hero-surface {
  text-align: center;
}

body.wik-v2[data-page="home"] .hero-text {
  margin-left: auto;
  margin-right: auto;
}

.tool-section {
  margin-top: .25rem;
}

.tool-list {
  margin: 0;
  padding: 0;
}

.tool-category + .tool-category {
  margin-top: 1.55rem;
}

.tool-category-title {
  margin: 0 .15rem .72rem;
  font-size: var(--type-section);
  font-weight: var(--type-weight-heading);
  line-height: 1.35;
  color: var(--wik-gold-primary);
}

.tool-category-title span {
  display: block;
  margin-top: .18rem;
  color: var(--wik-text-secondary);
  font-size: var(--type-small);
  font-weight: 400;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: calc(var(--card-glass-spacing) / -2);
  padding: 0;
}

.tool-card {
  --tile: clamp(32px, 24.0226cqw, 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  isolation: isolate;
  container-type: inline-size;
  min-width: 0;
  min-height: 116px;
  height: 116px;
  margin: calc(var(--card-glass-spacing) / 2);
  padding: 60px 0 10px;
  border: 0;
  border-radius: var(--card-glass-radius);
  overflow: hidden;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 .9rem 1.9rem rgba(0,0,0,.28);
  color: var(--card-glass-text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 180ms ease;
}

.glass-plane,
.glass-lustre,
.glass-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.glass-plane {
  z-index: 0;
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.065) 0%,
      rgba(255,255,255,.024) 48%,
      rgba(18,21,21,.22) 100%),
    rgba(48,47,43,.42);
  -webkit-backdrop-filter: blur(15px) saturate(118%);
  backdrop-filter: blur(15px) saturate(118%);
  -webkit-mask-image: var(--aperture-mask, linear-gradient(#000,#000));
  mask-image: var(--aperture-mask, linear-gradient(#000,#000));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.glass-lustre {
  z-index: 1;
  background:
    radial-gradient(ellipse 95% 100% at -2% -12%,
      rgba(255,255,255,.12) 0%,
      transparent 75%),
    radial-gradient(ellipse 92% 95% at 105% 110%,
      rgba(255,255,255,.08) 0%,
      transparent 62%);
  -webkit-mask-image: var(--aperture-mask, linear-gradient(#000,#000));
  mask-image: var(--aperture-mask, linear-gradient(#000,#000));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.glass-edge {
  z-index: 2;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(255,255,255,.76) 0%,
    rgba(255,255,255,.30) 18%,
    rgba(255,255,255,.10) 37%,
    rgba(255,255,255,.08) 63%,
    rgba(255,255,255,.25) 83%,
    rgba(255,255,255,.60) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.tool-icon {
  position: absolute;
  z-index: 3;
  top: var(--card-glass-icon-inset);
  right: var(--card-glass-icon-inset);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.tool-icon > img {
  display: block;
  flex: 0 0 auto;
  width: 86.6667%;
  height: 86.6667%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tool-copy {
  position: relative;
  z-index: 3;
  display: block;
  min-width: 0;
  width: calc(100% - 16px);
  margin: 0 8px 8px 12px ;
}

.tool-title {
  display: block;
  margin: 0 0 4px;
  color: var(--card-glass-text);
  font-size: var(--type-title);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-align: left;
  overflow-wrap: break-word;
}

html:not(:lang(ja)) .tool-title {
  text-transform: uppercase;
}

.tool-description {
  display: block;
  color: var(--wik-text-secondary);
  font-size: var(--type-small);
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.tool-card[href]:hover,
.tool-card[href]:focus-visible {
  box-shadow: 0 1.1rem 2rem rgba(0,0,0,.36);
}

.tool-card[href]:focus-visible {
  outline: 2px solid #f3d27a;
  outline-offset: 2px;
}

.tool-card[aria-disabled="true"] {
  cursor: default;
}

@media (prefers-reduced-transparency: reduce) {
  .glass-plane {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(35,35,33,.76);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card {
    transition: none;
  }
}
