/* ════════════════════════════════════════════════════════════
   tamna/style.css — Rice farming break-even calculator
   Theme: Earth + rice-gold · ดูแบบชาวนา สบายตา
   Primary: gold #C8932E · field-green #5F8B5A · earth #5C4632
   ════════════════════════════════════════════════════════════ */

body.app-tamna {
  /* ─── tokens ─── */
  --gold:        #C8932E;
  --gold-dark:   #A07517;
  --gold-deep:   #6B4F0E;
  --gold-bg:     #FFF3D6;
  --gold-soft:   #FAEBC7;
  --gold-mist:   #FFFAE9;

  --green:       #5F8B5A;
  --green-dark:  #3F6B3A;
  --green-bg:    #E8F0E2;

  --earth:       #5C4632;
  --earth-soft:  #E8DECC;

  --ink:         #1F1611;
  --text:        #3D3327;
  --muted:       #8A7A66;
  --faint:       #C2B49E;

  --bg:          #FFFAE9;
  --card:        #FFFFFF;
  --card-soft:   #FAF4E2;
  --hairline:    #E8DCC5;
  --hairline-2: #D5C5AB;

  --danger:      #B85040;
  --success:     #5F8B5A;

  --r-card:      18px;
  --r-input:     12px;
  --r-pill:      999px;
  --shadow-soft: 0 1px 2px rgba(100,70,30,.05), 0 12px 30px -20px rgba(100,70,30,.15);

  background: var(--bg);
  color: var(--text);
}

body.app-tamna main.container {
  max-width: 1180px;
  padding: 1.25rem 1.25rem 3rem;
}

/* ─── BACK LINK ──────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 8px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  transition: color .15s, border-color .15s;
}
.back-link:hover { color: var(--gold-deep); border-color: var(--gold); }

/* ─── HERO BANNER ────────────────────────────────────── */
.tm-hero {
  position: relative;
  background:
    linear-gradient(135deg, var(--gold-bg) 0%, var(--green-bg) 100%);
  border: 1px solid var(--gold-soft);
  border-radius: 22px;
  padding: clamp(32px, 4vw, 48px);
  margin: 24px 0 clamp(28px, 4vw, 40px);
  overflow: hidden;
}
.tm-hero::before {
  /* rice silhouette decoration */
  content: "🌾";
  position: absolute;
  right: -10px;
  bottom: -30px;
  font-size: 220px;
  opacity: .08;
  transform: rotate(-12deg);
  pointer-events: none;
  line-height: 1;
}
.tm-hero-inner {
  position: relative;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1;
}
.tm-hero-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold), #E0B14A);
  color: #fff;
  border-radius: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 40px;
  box-shadow: 0 10px 24px -8px rgba(200,147,46,.5);
  transform: rotate(-4deg);
}
.tm-hero-body { flex: 1; min-width: 280px; }
.tm-hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(255,255,255,.6);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.tm-hero-title {
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.tm-hero-title-accent {
  color: var(--gold-deep);
  font-weight: 700;
}
.tm-hero-sub {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 22px;
  line-height: 1.6;
  max-width: 620px;
}
.tm-hero-sub strong { color: var(--gold-deep); font-weight: 600; }

.tm-hero-stats {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.tm-hero-stats li { display: flex; flex-direction: column; }
.tm-hero-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.tm-hero-stat-lbl {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 3px;
}

/* ─── 2-COLUMN LAYOUT ────────────────────────────────── */
.tm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.tm-layout > * { min-width: 0; }
@media (max-width: 980px) {
  .tm-layout { grid-template-columns: 1fr; }
}

/* ─── FORM SECTION ───────────────────────────────────── */
.tm-form-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 28px);
}
.tm-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -.015em;
  flex-wrap: wrap;
}

/* ─── STEP BADGE ─────────────────────────────────────── */
.tm-step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-deep);
  background: var(--gold-bg);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}

/* ─── RAI BLOCK (big primary input — STEP 1) ─────────── */
.tm-rai-block {
  margin-bottom: 8px;
}
.tm-rai-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -.02em;
  line-height: 1.2;
  flex-wrap: wrap;
}
.tm-rai-hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.55;
}
/* Grid: ไร่ (big) + งาน (small) */
.tm-rai-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .tm-rai-grid { grid-template-columns: 1.6fr 1fr; gap: 8px; }
}

.tm-rai-input {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--gold-mist) 0%, var(--gold-bg) 100%);
  border: 2px solid var(--gold-soft);
  border-radius: 18px;
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
.tm-rai-input:focus-within {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(200,147,46,.18);
}
.tm-rai-input input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  width: 100%;
  padding: 0;
  line-height: 1.05;
}
.tm-rai-unit {
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--gold-deep);
  font-weight: 700;
  flex-shrink: 0;
}

/* "งาน" input — smaller font + softer bg */
.tm-rai-input-ngan {
  background: var(--gold-mist);
  border-color: var(--hairline);
  padding: 18px 18px;
}
.tm-rai-input-ngan input {
  font-size: clamp(28px, 4.5vw, 38px);
}
.tm-rai-input-ngan .tm-rai-unit {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
}

/* Total area display */
.tm-rai-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 16px;
  background: var(--green-bg);
  border: 1px solid #C8D9B6;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  flex-wrap: wrap;
}
.tm-rai-total strong {
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tm-rai-sub {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.tm-divider {
  height: 1px;
  background: var(--hairline);
  margin: 28px 0 24px;
  position: relative;
}
.tm-divider::after {
  content: "🌾";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--card);
  padding: 0 10px;
  font-size: 18px;
}
.tm-section-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.55;
}

/* Cost categories list */
.tm-costs { display: flex; flex-direction: column; gap: 12px; }
.tm-cost-row {
  display: grid;
  grid-template-columns: 44px 1fr 160px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--card-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-input);
  transition: border-color .15s;
}
.tm-cost-row:focus-within {
  border-color: var(--gold);
  background: #fff;
}
.tm-cost-emoji {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--gold-bg);
  border-radius: 10px;
}
.tm-cost-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tm-cost-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
}
.tm-cost-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.tm-cost-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid var(--hairline);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.tm-cost-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,147,46,.12);
}
.tm-cost-input-wrap .tm-prefix {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.tm-cost-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  text-align: right;
  width: 100%;
}

@media (max-width: 480px) {
  .tm-cost-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 12px;
  }
  .tm-cost-emoji { width: 36px; height: 36px; font-size: 18px; }
  .tm-cost-input-wrap {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
}

/* ─── EXTRA (custom) rows ─────────────────────────── */
.tm-extras-section {
  margin-top: 18px;
  padding: 18px 18px 16px;
  background: var(--gold-mist);
  border: 1px dashed var(--gold-soft);
  border-radius: var(--r-input);
}
.tm-extras-head { margin: 0 0 14px; }
.tm-extras-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -.005em;
}
.tm-extras-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.tm-extras-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.tm-extra-row {
  display: grid;
  grid-template-columns: 1fr 160px 36px;
  gap: 8px;
  align-items: center;
}
@media (max-width: 480px) {
  .tm-extra-row { grid-template-columns: 1fr 36px; grid-template-rows: auto auto; gap: 6px; }
  .tm-extra-row .tm-extra-amount-wrap { grid-column: 1; grid-row: 2; }
  .tm-extra-row .tm-extra-remove      { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; height: auto; }
}
.tm-extra-name {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
.tm-extra-name:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,147,46,.12);
}
.tm-extra-name::placeholder { color: var(--faint); font-weight: 400; }
.tm-extra-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.tm-extra-amount-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,147,46,.12);
}
.tm-extra-amount-wrap .tm-prefix {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.tm-extra-amount {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 0;
  width: 100%;
}
.tm-extra-remove {
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
  transition: all .15s;
  line-height: 1;
}
.tm-extra-remove:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.tm-extra-add {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-deep);
  background: #fff;
  border: 1.5px dashed var(--gold);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .15s;
}
.tm-extra-add:hover {
  background: var(--gold);
  color: #fff;
  border-style: solid;
}
.tm-extra-add-icon {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Cost summary chip */
.tm-cost-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px;
  margin-top: 8px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  font-weight: 600;
}
.tm-cost-total-label { font-size: 15px; color: var(--gold-deep); }
.tm-cost-total-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

/* Production fields */
.tm-prod-section { margin-top: 28px; padding-top: 24px; border-top: 2px dashed var(--hairline); }
.tm-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 720px) { .tm-prod-grid { grid-template-columns: 1fr; } }
.tm-field { display: flex; flex-direction: column; gap: 6px; }
.tm-field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.005em;
}
.tm-field-label-hint {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.tm-field-input {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 14px;
  background: var(--card-soft);
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-input);
  transition: border-color .15s, box-shadow .15s;
}
.tm-field-input:focus-within {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200,147,46,.12);
}
.tm-field-input input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 0;
  width: 100%;
}
.tm-field-input .tm-suffix {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}
.tm-field-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 0;
}
.tm-field-note strong { color: var(--gold-deep); font-weight: 700; }

/* Price preset pills */
.tm-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.tm-preset {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .15s;
}
.tm-preset:hover { border-color: var(--gold); color: var(--gold-deep); }
.tm-preset.is-active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ─── RESULT COLUMN ──────────────────────────────────── */
.tm-result { display: flex; flex-direction: column; gap: 16px; }

.tm-result-hero {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 32px);
  position: relative;
  overflow: hidden;
}
.tm-result-hero.is-profit {
  background: linear-gradient(135deg, #F2F8EE 0%, #E5F0DC 100%);
  border-color: #C8D9B6;
}
.tm-result-hero.is-loss {
  background: linear-gradient(135deg, #FCEFE8 0%, #F7D9C8 100%);
  border-color: #E5B8A0;
}
.tm-result-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.tm-result-headline {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -.015em;
}
.tm-result-amount {
  font-size: clamp(32px, 5.5vw, 44px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.tm-result-amount .currency {
  font-size: .55em;
  font-weight: 500;
  color: var(--muted);
  margin-right: 4px;
}
.tm-result-amount.is-positive { color: var(--success); }
.tm-result-amount.is-negative { color: var(--danger); }
.tm-result-sub {
  font-size: 14px;
  color: var(--text);
  margin: 10px 0 0;
  line-height: 1.55;
}
.tm-result-sub strong { color: var(--ink); font-weight: 600; }

/* Detail breakdown */
.tm-detail-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 28px);
}
.tm-detail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
}
.tm-break {
  display: flex;
  flex-direction: column;
}
.tm-break-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--hairline);
}
.tm-break-row:last-child { border-bottom: 0; }
.tm-break-label { color: var(--muted); }
.tm-break-value {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.tm-break-row-subtotal {
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--gold-bg);
  border-radius: 10px;
  border-bottom: 0;
}
.tm-break-row-subtotal .tm-break-label { color: var(--gold-deep); font-weight: 700; }
.tm-break-row-subtotal .tm-break-value { color: var(--gold-deep); }
.tm-break-row-final {
  border-top: 2px solid var(--gold);
  margin-top: 8px;
  padding-top: 14px;
  border-bottom: 0;
}
.tm-break-row-final .tm-break-label { color: var(--ink); font-weight: 700; font-size: 15px; }
.tm-break-row-final .tm-break-value { color: var(--ink); font-size: 17px; font-weight: 700; }

/* Break-even card */
.tm-be-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 28px);
}
.tm-be-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .tm-be-grid { grid-template-columns: 1fr; } }
.tm-be {
  padding: 14px 16px;
  background: var(--gold-mist);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
}
.tm-be-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.tm-be-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.tm-be-unit {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.tm-be-note {
  font-size: 11.5px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Status callout */
.tm-status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--gold-mist);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
}
.tm-status.is-good {
  background: var(--green-bg);
  border-color: #B8CFA8;
}
.tm-status.is-bad {
  background: #FCEFE8;
  border-color: #E5B8A0;
}
.tm-status-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.tm-status-text {
  font-size: 13.5px;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}
.tm-status-text strong { color: var(--ink); font-weight: 700; }

/* Copy action */
.tm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .15s;
}
.tm-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.tm-btn.is-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.tm-btn.is-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.tm-btn.is-success { background: var(--green); color: #fff; border-color: var(--green); }

/* ─── INFO ACCORDION + FAQ ───────────────────────────── */
.tm-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 880px) { .tm-info-grid { grid-template-columns: 1fr; gap: 28px; } }
.tm-acc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  letter-spacing: -.005em;
}
.tm-acc {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
}
.tm-acc summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.tm-acc summary::-webkit-details-marker { display: none; }
.tm-acc summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted);
  transition: transform .2s, color .2s;
}
.tm-acc[open] summary { color: var(--gold-deep); font-weight: 600; }
.tm-acc[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--gold); }
.tm-acc-body {
  padding: 0 4px 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.tm-acc-body p { margin: 0 0 10px; }
.tm-acc-body p:last-child { margin: 0; }
.tm-acc-body strong { color: var(--gold-deep); font-weight: 700; }
.tm-acc-body ul { margin: 8px 0; padding-left: 22px; }
.tm-acc-body li { margin: 4px 0; }
.tm-acc-body a { color: var(--gold-deep); text-decoration: underline; }

.tm-rate-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tm-rate-list li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  align-items: baseline;
  font-size: 14px;
}
.tm-rate-pct {
  flex-shrink: 0;
  min-width: 80px;
  padding: 3px 10px;
  background: var(--gold-bg);
  color: var(--gold-deep);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tm-formula {
  background: var(--gold-bg);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.tm-formula strong { color: var(--gold-deep); }

.tm-glossary { margin: 0; }
.tm-glossary dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  margin-top: 14px;
}
.tm-glossary dt:first-child { margin-top: 0; }
.tm-glossary dd {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}
.tm-glossary dd strong { color: var(--gold-deep); }

.tm-related {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tm-related a { color: var(--gold-deep); text-decoration: none; font-weight: 600; }
.tm-related a:hover { text-decoration: underline; }

/* Empty state */
.tm-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-size: 15px;
  background: var(--card);
  border: 1px dashed var(--hairline-2);
  border-radius: var(--r-card);
}
.tm-empty-icon { font-size: 48px; margin-bottom: 12px; }
