/* ============================================================
   e-Bhumi — Land Unit Converter (v3)
   Page-specific blocks, loaded AFTER css/tool-pages.css
   Uses the shared .tp-* shell; all new classes are .luc-*
   ============================================================ */

/* ---------- Unit reference cards ---------- */
.luc-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.luc-unit {
  position: relative;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  box-shadow: var(--tp-shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.luc-unit:hover {
  transform: translateY(-2px);
  border-color: #c6dcd1;
  box-shadow: 0 12px 26px rgba(6, 51, 39, .08);
}

.luc-unit-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.luc-unit-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tp-soft);
  border: 1px solid #dbe8e1;
}
.luc-unit-icon img {
  width: 24px;
  height: 24px;
}
.luc-unit h3 {
  margin: 0;
  font-size: .98rem;
  font-weight: 700;
  color: var(--tp-dark);
}
.luc-unit h3 small {
  display: block;
  margin-top: 1px;
  font-size: .66rem;
  font-weight: 600;
  color: #8a9a92;
  letter-spacing: .02em;
}
.luc-unit-big {
  display: block;
  margin: 14px 0 2px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--tp-green);
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.luc-unit-note {
  margin: 0;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--tp-muted);
}

/* ---------- Relationship map ---------- */
.luc-map-card {
  padding: 16px;
  background:
    radial-gradient(380px 220px at 86% 0%, rgba(242, 169, 9, .10), transparent 68%),
    #fff;
  border: 1px solid var(--tp-line);
  border-radius: 18px;
  box-shadow: var(--tp-shadow-sm);
}
.luc-map-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.luc-map-copy h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--tp-dark);
}
.luc-map-copy > p {
  margin: 0 0 16px;
  font-size: .9rem;
  line-height: 1.85;
  color: var(--tp-muted);
}
.luc-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.luc-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--tp-pale);
  border: 1px solid #e4efe8;
  border-radius: 12px;
  font-size: .84rem;
  line-height: 1.75;
  color: #3e564b;
}
.luc-points li .tp-i {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--tp-green);
}
.luc-points strong {
  color: var(--tp-deep);
}

/* ---------- Calculator result tweaks ---------- */
.luc-result-note {
  width: 100%;
  margin: 0;
  font-size: .74rem;
  line-height: 1.7;
  color: #7b8b82;
}
.luc-result-item b {
  font-variant-numeric: tabular-nums;
}
.luc-result-item.is-accent {
  background: var(--tp-gold-soft);
}
.luc-result-item.is-accent b {
  color: #9a6c05;
}

/* ---------- Quick memo inside the form ---------- */
.luc-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
  margin: 4px 0 14px;
}
.luc-quick > span {
  grid-column: 1 / -1;
  font-size: .74rem;
  font-weight: 600;
  color: #7b8b82;
}
.luc-quick button {
  width: 100%;
  padding: 7px 8px;
}

.luc-memo {
  margin-top: 16px;
  padding: 13px 14px;
  background: var(--tp-pale);
  border: 1px dashed #cfe2d7;
  border-radius: 12px;
}
.luc-memo > b {
  display: block;
  margin-bottom: 8px;
  font-size: .76rem;
  color: var(--tp-deep);
}
.luc-memo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.luc-memo-grid span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: .74rem;
  color: var(--tp-muted);
}
.luc-memo-grid i {
  font-style: normal;
  font-weight: 700;
  color: var(--tp-ink);
}

/* ---------- Anchor offset under the sticky header ---------- */
.tp-page .tp-section[id],
.tp-page .luc-section[id] {
  scroll-margin-top: 132px;
}

/* ---------- Table helper ---------- */
.luc-table-unit {
  display: inline-block;
  margin-left: 6px;
  font-size: .68rem;
  font-weight: 600;
  color: #8a9a92;
}

/* ---------- Print ---------- */
@media print {
  .luc-unit:hover { transform: none; box-shadow: none; }
  .luc-unit, .luc-map-card { box-shadow: none; break-inside: avoid; }
  .luc-units { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .luc-units { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .luc-units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .luc-units { grid-template-columns: 1fr; }
  .luc-unit { padding: 16px; }
  .luc-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .luc-quick button.is-clear { grid-column: 1 / -1; }
  .luc-memo-grid { grid-template-columns: 1fr; }
}
