/* Optional demand lookup: distinct from the calculator, in the same Mat Rong palette. */
.tools-ivory .seo-demand { margin-bottom: 24px; color: #171612; }
.tools-ivory .seo-demand-shell { border: 1px solid #dec8aa; border-radius: 8px; background: #fffdfa; padding: 0; }
.tools-ivory .seo-demand-shell > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.tools-ivory .seo-demand-shell > summary::-webkit-details-marker { display: none; }
.tools-ivory .seo-demand-shell > summary > span { min-width: 0; }
.tools-ivory .seo-demand-shell > summary small { display: block; color: #927041; font-size: 10px; letter-spacing: .12em; margin-bottom: 6px; }
.tools-ivory .seo-demand-shell > summary strong { display: block; font: 600 19px/1.35 var(--sans); }
.tools-ivory .seo-demand-open { font: 500 13px/1.5 var(--sans); }
.tools-ivory .seo-demand-open > span { color: #b1843f; margin-left: 10px; }
.tools-ivory .seo-demand-shell[open] > summary { border-bottom: 1px solid #e9dcc9; }
.tools-ivory .seo-demand-body { padding: 22px 24px; }
.tools-ivory .seo-demand-intro { margin: 0 0 22px; max-width: 850px; color: #6a655e; font-size: 14px; }
.tools-ivory .seo-demand fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tools-ivory .seo-demand-source { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 18px; }
.tools-ivory .seo-demand-source label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.tools-ivory .seo-demand input[type=radio], .tools-ivory .seo-demand input[type=checkbox] { width: 17px; height: 17px; min-width: 17px; min-height: 17px; margin: 3px 0; padding: 0; accent-color: #171612; }
.tools-ivory .seo-demand .bt-check { align-items: flex-start; font-size: 12px; line-height: 1.75; }
.tools-ivory .seo-demand-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.tools-ivory .seo-demand-market { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.tools-ivory .seo-demand .bt-field { min-width: 0; }
.tools-ivory .seo-demand .bt-field label { font-size: 13px; }
.tools-ivory .seo-demand :is(input:not([type=radio]):not([type=checkbox]),textarea,select) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; border: 1px solid #d9d5ce; border-radius: 6px; background: #fff; color: #171612; font: 400 16px/1.5 var(--sans); padding: 10px 12px; min-height: 44px; }
.tools-ivory .seo-demand textarea { min-height: 116px; resize: vertical; }
.tools-ivory .seo-demand .bt-field small { font-size: 11px; color: #6a655e; line-height: 1.6; }
.tools-ivory .seo-demand .bt-field .bt-error, .tools-ivory .seo-demand .bt-error { color: #9b3434; }
.tools-ivory .seo-demand-consent { margin: 22px 0 16px; max-width: 1020px; }
.tools-ivory .seo-demand .bt-button { border-radius: 6px; }
.tools-ivory .seo-demand .bt-button:not(.bt-secondary) { background: #171612; border-color: #171612; color: #fff; }
.tools-ivory .seo-demand .text-link { min-height: 44px; background: none; border: 0; cursor: pointer; font: inherit; }
.tools-ivory .seo-demand .bt-status { margin: 14px 0 0; font-size: 12px; color: #75572e; }
.tools-ivory .seo-demand-results { margin-top: 26px; padding-top: 24px; border-top: 1px solid #dec8aa; }
.tools-ivory .seo-demand-results h3 { font: 600 24px/1.3 var(--sans); margin: 0 0 14px; }
.tools-ivory .seo-demand-results h4 { font: 600 17px/1.4 var(--sans); margin: 20px 0 10px; }
.tools-ivory .seo-demand-results > p { font-size: 13px; }
.tools-ivory .seo-demand-state { padding: 11px 14px; background: #f8f1e7; border-left: 2px solid #b1843f; }
.tools-ivory .seo-demand-measure { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); align-items: center; gap: 24px; margin: 21px 0; }
.tools-ivory .seo-demand-measure > div { display: flex; flex-direction: column; gap: 6px; }
.tools-ivory .seo-demand-measure span { font-size: 12px; }
.tools-ivory .seo-demand-measure strong { font: 700 33px/1.2 var(--serif); overflow-wrap: anywhere; }
.tools-ivory .seo-demand-measure :is(small,p) { font-size: 12px; line-height: 1.7; color: #6a655e; }
.tools-ivory .seo-demand-without-volume .seo-demand-measure span { font: 600 20px/1.4 var(--sans); }
.tools-ivory .seo-demand-without-volume .seo-demand-measure strong { font: 400 14px/1.6 var(--sans); color: #6a655e; }
.tools-ivory .seo-demand-source-note { font-size: 12px; line-height: 1.7; color: #6a655e; overflow-wrap: anywhere; }
.tools-ivory .seo-demand :is(.seo-demand-keywords,.seo-demand-limits) { border-top: 1px solid #e9dcc9; padding: 17px 0; }
.tools-ivory .seo-demand :is(.seo-demand-keywords,.seo-demand-limits) > summary { cursor: pointer; font-size: 13px; min-height: 26px; }
.tools-ivory .seo-demand table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.tools-ivory .seo-demand th, .tools-ivory .seo-demand td { padding: 10px; border-bottom: 1px solid #eee6da; overflow-wrap: anywhere; vertical-align: top; }
.tools-ivory .seo-demand th:last-child, .tools-ivory .seo-demand td:last-child { text-align: right; }
.tools-ivory .seo-demand table :is(th,td):first-child { text-align: left; }
.tools-ivory .seo-demand td details { padding: 0; }
.tools-ivory .seo-demand td details summary { cursor: pointer; font-size: 11px; }
.tools-ivory .seo-demand ul { padding-left: 22px; font-size: 12px; color: #6a655e; line-height: 1.8; }
.tools-ivory .seo-demand-scenarios { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 20px 0; }
.tools-ivory .seo-demand-scenario { min-width: 0; display: flex; flex-direction: column; gap: 10px; background: #f8f1e7; border: 1px solid #dec8aa; border-radius: 6px; padding: 17px; }
.tools-ivory .seo-demand-scenario > label { font-size: 13px; font-weight: 500; }
.tools-ivory .seo-demand-rate { display: flex; align-items: center; gap: 10px; max-width: 140px; }
.tools-ivory .seo-demand-scenario strong { font: 600 26px/1.2 var(--serif); overflow-wrap: anywhere; }
.tools-ivory .seo-demand-scenario small { font-size: 11px; color: #6a655e; }
.tools-ivory .seo-demand-apply { padding-top: 8px; }
.tools-ivory .seo-demand-apply-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.tools-ivory .seo-demand-apply-preview { font-size: 14px; line-height: 1.7; margin: 20px 0; }
.tools-ivory .seo-demand [hidden] { display: none !important; }
.tools-ivory .seo-demand :focus-visible { outline: 2px solid #b1843f; outline-offset: 3px; }
@media(max-width:960px) { .tools-ivory .seo-demand-fields { grid-template-columns: 1fr; } .tools-ivory .seo-demand-apply-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .tools-ivory .seo-demand-shell > summary { grid-template-columns: 1fr; gap: 9px; padding: 17px; }
  .tools-ivory .seo-demand-shell > summary strong { font-size: 18px; }
  .tools-ivory .seo-demand-body { padding: 18px 17px; }
  .tools-ivory .seo-demand :is(.seo-demand-market,.seo-demand-measure,.seo-demand-apply-fields) { grid-template-columns: 1fr; }
  .tools-ivory .seo-demand-scenarios { grid-template-columns: 1fr; }
  .tools-ivory .seo-demand-scenario { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; }
  .tools-ivory .seo-demand-scenario strong { font-size: 24px; }
  .tools-ivory .seo-demand .bt-controls { align-items: stretch; }
  .tools-ivory .seo-demand .bt-controls .bt-button { width: 100%; }
}
@media print { .tools-ivory .seo-demand { display: none !important; } }
