/* Trellis Wire Rule Desk — policy (Appily-onehundredtwelve / V K Enterprises)
   Trellis-wire plant-tag nav · greenhouse glass reading pane · vine spine.
   Retires Clamp Rule Board / Spec Binder Desk / Policy Bed.
   Not: Matter Brief · Frequency · Cassette · Rolodex · Hanging File · Code Book ·
   Binder · Statute · Flight Rules · Detour · Bylaw Banner · Row Marker soil stakes ·
   Hose Code · Rule Blotter · Boarding Pass · Greenhouse Bylaw · dual-column legal. */

body.a112-body.page-a112-trellisrule {
  background:
    radial-gradient(900px 420px at 10% -4%, rgba(45, 106, 79, 0.14), transparent 55%),
    radial-gradient(760px 380px at 100% 8%, rgba(244, 162, 97, 0.1), transparent 52%),
    linear-gradient(180deg, #DCEFE0 0%, var(--a112-plot) 45%, #EDE4D0 100%);
}

.page-a112-trellisrule .tw-desk {
  max-width: var(--a112-wrap);
  width: 100%;
  margin: 0 auto var(--a112-space-5);
  padding-bottom: 1rem;
}

.page-a112-trellisrule .tw-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--a112-soil);
}

.page-a112-trellisrule .tw-mast {
  padding: clamp(1.25rem, 3vw, 2rem) 0 1.1rem;
  animation: twMastIn 0.45s ease both;
}

@keyframes twMastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.page-a112-trellisrule .tw-mast h1 {
  margin: 0 0 0.4rem;
  font-family: var(--a112-font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  color: var(--a112-leaf-deep);
  line-height: 1.08;
}

.page-a112-trellisrule .tw-mast > p:last-child {
  margin: 0;
  max-width: 58ch;
  color: var(--a112-mute);
  line-height: 1.45;
}

/* Trellis wire + hanging tags */
.page-a112-trellisrule .tw-wire {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: var(--a112-space-3);
  padding: 1.75rem 0.5rem 0.75rem;
}

.page-a112-trellisrule .tw-wire-line {
  position: absolute;
  top: 0.85rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6B7280, #9CA3AF 40%, #4B5563 70%, #9CA3AF);
  box-shadow: 0 2px 0 rgba(15, 31, 23, 0.25);
  z-index: 0;
}

.page-a112-trellisrule .tw-tag {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 6.2rem;
  max-width: 8.5rem;
  padding: 1.15rem 0.55rem 0.65rem;
  text-decoration: none;
  text-align: center;
  color: var(--a112-ink);
  background: linear-gradient(180deg, #F4EBDA, #E8DCC8);
  border: 2px solid #5C4033;
  border-radius: 4px 4px 14px 14px;
  box-shadow: 2px 3px 0 rgba(15, 31, 23, 0.2);
  transform: rotate(var(--tw-tilt, -2deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: twTagIn 0.45s ease both;
  animation-delay: calc(var(--tw-i, 0) * 60ms);
}

.page-a112-trellisrule .tw-tag:nth-child(odd) { --tw-tilt: -3deg; }
.page-a112-trellisrule .tw-tag:nth-child(even) { --tw-tilt: 2.5deg; }

@keyframes twTagIn {
  from { opacity: 0; transform: translateY(-18px) rotate(0deg); }
  to { opacity: 1; transform: translateY(0) rotate(var(--tw-tilt, -2deg)); }
}

.page-a112-trellisrule .tw-tag-eye {
  position: absolute;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid #5C4033;
  background: #FFFBF2;
  box-shadow: 0 -6px 0 1px #9CA3AF;
}

.page-a112-trellisrule .tw-tag small {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  opacity: 0.65;
}

.page-a112-trellisrule .tw-tag strong {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.page-a112-trellisrule .tw-tag--leaf.is-active,
.page-a112-trellisrule .tw-tag--leaf:hover { background: linear-gradient(180deg, #D8F3DC, #B7E4C7); }
.page-a112-trellisrule .tw-tag--basin.is-active,
.page-a112-trellisrule .tw-tag--basin:hover { background: linear-gradient(180deg, #D7F0FA, #A8D8EA); }
.page-a112-trellisrule .tw-tag--sun.is-active,
.page-a112-trellisrule .tw-tag--sun:hover { background: linear-gradient(180deg, #FFE8C8, #F4C98A); }
.page-a112-trellisrule .tw-tag--sprout.is-active,
.page-a112-trellisrule .tw-tag--sprout:hover { background: linear-gradient(180deg, #D4F0E4, #9ED9BC); }
.page-a112-trellisrule .tw-tag--bloom.is-active,
.page-a112-trellisrule .tw-tag--bloom:hover { background: linear-gradient(180deg, #FFE0E4, #F5B0BA); }
.page-a112-trellisrule .tw-tag--soil.is-active,
.page-a112-trellisrule .tw-tag--soil:hover { background: linear-gradient(180deg, #E8DCC8, #D4C0A0); }

.page-a112-trellisrule .tw-tag.is-active {
  transform: translateY(4px) rotate(0deg) scale(1.04);
  box-shadow: 0 6px 0 var(--a112-moss);
  z-index: 2;
}

.page-a112-trellisrule .tw-tag:hover {
  transform: translateY(2px) rotate(0deg);
}

/* Greenhouse glass pane */
.page-a112-trellisrule .tw-pane {
  position: relative;
  background:
    linear-gradient(135deg, rgba(216, 243, 220, 0.35), transparent 40%),
    var(--a112-surface);
  border: 3px solid var(--a112-moss);
  border-radius: var(--a112-radius-lg);
  padding: clamp(1.15rem, 2.5vw, 1.6rem) clamp(1.15rem, 3vw, 1.85rem) clamp(1.35rem, 3vw, 1.85rem) clamp(2.4rem, 5vw, 3rem);
  box-shadow: var(--a112-shadow-soft);
  color: var(--a112-ink);
  line-height: 1.6;
  animation: twPaneIn 0.55s 0.08s ease both;
}

@keyframes twPaneIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.page-a112-trellisrule .tw-pane::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--a112-leaf), var(--a112-sprout), var(--a112-lime));
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.18);
}

.page-a112-trellisrule .tw-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.page-a112-trellisrule .tw-meta span {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--a112-glass);
  border: 1px solid var(--a112-border);
  border-radius: 999px;
  color: var(--a112-leaf-deep);
}

.page-a112-trellisrule .tw-pane h2 {
  margin: 1.35rem 0 0.45rem;
  font-family: var(--a112-font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--a112-leaf-deep);
  line-height: 1.25;
  position: relative;
}

.page-a112-trellisrule .tw-pane h2:first-of-type {
  margin-top: 0.25rem;
}

.page-a112-trellisrule .tw-pane h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--a112-sun);
  transform-origin: left center;
  animation: twRuleDraw 0.5s ease both;
}

@keyframes twRuleDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.page-a112-trellisrule .tw-pane p,
.page-a112-trellisrule .tw-pane li {
  font-size: 1rem;
  color: var(--a112-ink);
}

.page-a112-trellisrule .tw-pane p {
  margin: 0 0 0.85rem;
  max-width: 68ch;
}

.page-a112-trellisrule .tw-pane ul {
  margin: 0 0 0.95rem;
  padding-left: 1.2rem;
}

.page-a112-trellisrule .tw-pane li + li {
  margin-top: 0.35rem;
}

.page-a112-trellisrule .tw-pane a {
  color: var(--a112-leaf-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 720px) {
  .page-a112-trellisrule .tw-wire {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.85rem;
    -webkit-overflow-scrolling: touch;
  }

  .page-a112-trellisrule .tw-tag {
    flex: 0 0 auto;
    min-width: 5.8rem;
  }

  .page-a112-trellisrule .tw-pane {
    padding-left: 2rem;
  }

  .page-a112-trellisrule .tw-pane::before {
    left: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-a112-trellisrule .tw-mast,
  .page-a112-trellisrule .tw-tag,
  .page-a112-trellisrule .tw-pane,
  .page-a112-trellisrule .tw-pane h2::after {
    animation: none;
  }
}
