/* Thicket Pulse — policy desk (presentation layout) */

.tp-policy {
  --tp-policy-measure: 68ch;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.35rem, 3.5vw, 2.75rem) clamp(1rem, 3vw, 2rem) 4rem;
}

.tp-policy__mast {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 1.45rem 1.5rem 1.55rem;
  border-radius: var(--tp-radius);
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(31, 74, 56, 0.97), rgba(21, 36, 28, 0.92) 55%, rgba(46, 184, 176, 0.35));
  color: #eef6f0;
  box-shadow: var(--tp-shadow);
}

.tp-policy__mast::after {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  right: -2rem;
  top: -3rem;
  border-radius: 45% 55% 50% 50% / 50% 40% 60% 50%;
  background: radial-gradient(circle at 35% 40%, rgba(255, 92, 43, 0.35), transparent 65%);
  pointer-events: none;
}

.tp-policy__mast > * { position: relative; z-index: 1; }

.tp-policy__mast .tp-kicker { color: var(--tp-vein); }

.tp-policy__mast h1 {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.tp-policy__mast-copy {
  margin: 0;
  max-width: 42ch;
  color: rgba(238, 246, 240, 0.82);
  line-height: 1.5;
  font-size: 0.95rem;
}

.tp-policy__seal {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  line-height: 1.25;
  color: #f5fff7;
  animation: tp-policy-seal 8s ease-in-out infinite;
}

.tp-policy__seal strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.15rem;
}

@keyframes tp-policy-seal {
  0%, 100% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; transform: rotate(0deg); }
  50% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; transform: rotate(3deg); }
}

.tp-policy__layout {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.tp-policy__index {
  position: sticky;
  top: 1rem;
  padding: 0.85rem;
  border-radius: var(--tp-radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--tp-line);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(21, 36, 28, 0.04);
}

.tp-policy__index-label {
  margin: 0 0 0.65rem 0.35rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-policy__tabs {
  display: grid;
  gap: 0.35rem;
}

.tp-policy__tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--tp-ink);
  text-decoration: none;
  transition: transform 0.3s var(--tp-snap), background 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.tp-policy__tab:hover {
  transform: translateX(3px);
  background: var(--tp-meadow);
  border-color: rgba(46, 184, 176, 0.25);
}

.tp-policy__tab.is-active {
  background: var(--tp-pine);
  color: #f5fff7;
  border-color: var(--tp-pine);
  box-shadow: 0 12px 22px rgba(31, 74, 56, 0.22);
}

.tp-policy__tab-code {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9px;
  background: rgba(21, 36, 28, 0.06);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 750;
}

.tp-policy__tab.is-active .tp-policy__tab-code {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tp-policy__tab-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.tp-policy__panel {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  box-shadow: 0 16px 36px rgba(21, 36, 28, 0.06);
}

.tp-policy__panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tp-line);
}

.tp-policy__panel-head h2 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.tp-policy__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--tp-meadow);
  border: 1px solid var(--tp-line);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-pine);
}

.tp-policy__body {
  max-width: var(--tp-policy-measure);
  display: grid;
  gap: 0.95rem;
}

.tp-policy__para {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--tp-ink);
}

.tp-policy__para + .tp-policy__para {
  padding-top: 0.15rem;
}

.tp-policy__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.tp-policy__fact {
  padding: 0.95rem 1rem;
  border-radius: var(--tp-radius-sm);
  background: var(--tp-meadow);
  border: 1px solid var(--tp-line);
  transition: transform 0.3s var(--tp-snap), border-color 0.25s ease, box-shadow 0.3s ease;
}

.tp-policy__fact:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 184, 176, 0.4);
  box-shadow: 0 12px 24px rgba(21, 36, 28, 0.06);
}

.tp-policy__fact span {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-vein);
}

.tp-policy__fact strong,
.tp-policy__fact a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--tp-ink);
  text-decoration: none;
  word-break: break-word;
  line-height: 1.35;
}

.tp-policy__fact a:hover { color: var(--tp-flare); }

.tp-policy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--tp-line);
}

@media (max-width: 860px) {
  .tp-policy__mast {
    grid-template-columns: 1fr;
  }

  .tp-policy__seal {
    width: 4.5rem;
    height: 4.5rem;
  }

  .tp-policy__layout {
    grid-template-columns: 1fr;
  }

  .tp-policy__index {
    position: static;
    padding: 0.65rem;
  }

  .tp-policy__tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.15rem;
    scroll-snap-type: x mandatory;
  }

  .tp-policy__tab {
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .tp-policy__facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-policy__seal { animation: none; }
  .tp-policy__tab,
  .tp-policy__fact { transition: none; }
}
