/**
 * AI Landlord Notice & Letter Builder — tool styles (screen).
 */

.lnb-tool {
	max-width: 860px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
	color: #222;
}

.lnb-hidden {
	display: none !important;
}

/* Hero + intro */
.lnb-hero {
	text-align: center;
	margin-bottom: 1.5rem;
}

.lnb-hero h1 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.lnb-lede {
	font-size: 1.15rem;
	color: #555;
}

.lnb-intro {
	background: #f7f7f7;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
}

.lnb-intro h2 {
	font-size: 1.3rem;
	margin-top: 0;
}

/* Steps */
.lnb-step {
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
	background: #fff;
}

.lnb-step h2 {
	font-size: 1.25rem;
	margin-top: 0;
}

.lnb-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.8em;
	height: 1.8em;
	border-radius: 50%;
	background: #1d4ed8;
	color: #fff;
	font-size: 0.85em;
	margin-right: 0.4em;
}

/* Type cards */
.lnb-type-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.75rem;
}

.lnb-type-card {
	border: 2px solid #d5d5d5;
	border-radius: 8px;
	background: #fff;
	padding: 1rem;
	cursor: pointer;
	text-align: left;
	font-size: 1rem;
	transition: border-color 0.15s, background 0.15s;
}

.lnb-type-card:hover {
	border-color: #1d4ed8;
}

.lnb-type-card[aria-checked="true"] {
	border-color: #1d4ed8;
	background: #eff6ff;
	font-weight: 600;
}

/* Form fields */
.lnb-field {
	display: block;
	margin-bottom: 1rem;
}

.lnb-field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.lnb-field input[type="text"],
.lnb-field input[type="date"],
.lnb-field input[type="number"],
.lnb-field select,
.lnb-field textarea {
	width: 100%;
	max-width: 520px;
	padding: 0.55rem 0.65rem;
	border: 1px solid #c5c5c5;
	border-radius: 4px;
	font-size: 1rem;
}

.lnb-field textarea {
	min-height: 90px;
}

.lnb-field .required-star {
	color: #b91c1c;
}

.lnb-help {
	font-size: 0.85rem;
	color: #666;
	margin: 0.25rem 0 0;
}

.lnb-note {
	font-size: 0.9rem;
	color: #555;
}

/* Repeatable deduction rows */
.lnb-repeatable-row {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.lnb-repeatable-row input[type="text"] {
	flex: 2;
}

.lnb-repeatable-row input[type="number"] {
	flex: 1;
}

/* Disclaimer */
.lnb-disclaimer {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 6px;
	padding: 0.9rem 1rem;
	margin: 1.25rem 0;
	font-size: 0.95rem;
}

.lnb-disclaimer input {
	margin-top: 0.25rem;
}

/* Buttons */
.lnb-btn {
	display: inline-block;
	border: 1px solid #1d4ed8;
	background: #fff;
	color: #1d4ed8;
	border-radius: 6px;
	padding: 0.65rem 1.25rem;
	font-size: 1rem;
	cursor: pointer;
	margin-right: 0.5rem;
}

.lnb-btn:hover {
	background: #eff6ff;
}

.lnb-btn-primary {
	background: #1d4ed8;
	color: #fff;
}

.lnb-btn-primary:hover {
	background: #1e40af;
}

.lnb-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.lnb-btn-link {
	border: none;
	text-decoration: underline;
}

.lnb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Preview */
.lnb-status {
	margin-bottom: 1rem;
	font-style: italic;
	color: #555;
}

.lnb-letter {
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	padding: 1.5rem 1.75rem;
	background: #fff;
	font-family: Georgia, "Times New Roman", serif;
}

.lnb-letter h3 {
	margin-top: 0;
	text-align: center;
	letter-spacing: 0.05em;
}

.lnb-ai-row {
	margin-top: 1rem;
}

/* FAQ */
.lnb-faq {
	margin-top: 2.5rem;
}

.lnb-faq-item {
	border: 1px solid #e3e3e3;
	border-radius: 6px;
	margin-bottom: 0.6rem;
	padding: 0.75rem 1rem;
	background: #fff;
}

.lnb-faq-item summary {
	cursor: pointer;
	font-weight: 600;
}

.lnb-faq-item p {
	margin: 0.6rem 0 0;
}

@media (max-width: 600px) {
	.lnb-type-grid {
		grid-template-columns: 1fr;
	}
	.lnb-repeatable-row {
		flex-direction: column;
	}
}

/* =====================================================================
 * v1.1.0 companion tools
 * ===================================================================== */

/* Result hero (big answer) */
.lnb-result-hero {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
	text-align: center;
}

.lnb-result-label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1e40af;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.35rem;
}

.lnb-result-big {
	display: block;
	font-size: 1.9rem;
	font-weight: 700;
	color: #111;
}

.lnb-result-sub2 {
	display: block;
	margin-top: 0.35rem;
	color: #555;
}

.lnb-result-duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.lnb-result-duo .lnb-result-hero {
	margin-bottom: 0;
}

.lnb-result-sub {
	font-size: 1.1rem;
	margin: 1.5rem 0 0.6rem;
}

.lnb-ok-text {
	color: #166534;
}

/* Result detail tables */
.lnb-result-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.25rem;
	font-size: 0.98rem;
}

.lnb-result-table th,
.lnb-result-table td {
	border: 1px solid #e3e3e3;
	padding: 0.55rem 0.75rem;
	text-align: left;
	vertical-align: top;
}

.lnb-result-table th {
	background: #f7f7f7;
	font-weight: 600;
	width: 38%;
}

.lnb-result-table thead th {
	background: #eef2ff;
}

.lnb-result-table .lnb-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.lnb-result-table .lnb-total-row th,
.lnb-result-table .lnb-total-row td {
	background: #eef2ff;
	font-weight: 700;
}

/* Callout boxes */
.lnb-warning,
.lnb-ok,
.lnb-info {
	border-radius: 6px;
	padding: 0.9rem 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.98rem;
}

.lnb-warning {
	background: #fffbeb;
	border: 1px solid #fcd34d;
}

.lnb-ok {
	background: #f0fdf4;
	border: 1px solid #86efac;
}

.lnb-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
}

.lnb-result-disclaimer {
	font-size: 0.85rem;
	color: #666;
	font-style: italic;
	border-top: 1px solid #e3e3e3;
	padding-top: 0.75rem;
}

/* Eviction timeline */
.lnb-timeline {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.lnb-timeline-step {
	display: flex;
	gap: 1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid #e3e3e3;
}

.lnb-timeline-step:last-child {
	border-bottom: none;
}

.lnb-timeline-num {
	flex: 0 0 auto;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: #1d4ed8;
	color: #fff;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lnb-timeline-range {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1e40af;
}

/* Related tools nav */
.lnb-related {
	margin-top: 2.5rem;
	background: #f7f7f7;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
}

.lnb-related h3 {
	margin-top: 0;
	font-size: 1.1rem;
}

.lnb-related ul {
	margin: 0;
	padding-left: 1.25rem;
}

.lnb-related li {
	margin-bottom: 0.3rem;
}

/* Related tools: one-line description under each link */
.lnb-related-desc {
	display: block;
	font-size: 0.85rem;
	color: #555;
	margin-top: 0.1rem;
}

/* Related tools: country hub / master hub links */
.lnb-related-more {
	margin: 1rem 0 0;
	font-size: 0.95rem;
}

/* Checklist room picker */
.lnb-check-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.4rem;
	margin-bottom: 0.75rem;
}

.lnb-check {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	font-weight: 400;
}

.lnb-custom-room {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.lnb-custom-room input[type="text"] {
	flex: 1;
	max-width: 320px;
	padding: 0.55rem 0.65rem;
	border: 1px solid #c5c5c5;
	border-radius: 4px;
	font-size: 1rem;
}

.lnb-custom-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.lnb-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: #eef2ff;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	padding: 0.3rem 0.35rem 0.3rem 0.8rem;
	font-size: 0.9rem;
}

.lnb-chip-x {
	border: none;
	background: #1d4ed8;
	color: #fff;
	border-radius: 50%;
	width: 1.4em;
	height: 1.4em;
	line-height: 1;
	cursor: pointer;
	font-size: 0.9rem;
}

/* Printable documents (checklist / receipt) */
.lnb-doc {
	background: #fff;
}

.lnb-doc-title {
	text-align: center;
	letter-spacing: 0.05em;
	margin-top: 0;
}

.lnb-room-head {
	font-size: 1.05rem;
	margin: 1.5rem 0 0.5rem;
	padding-bottom: 0.25rem;
	border-bottom: 2px solid #1d4ed8;
}

.lnb-checklist {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.lnb-checklist th,
.lnb-checklist td {
	border: 1px solid #d5d5d5;
	padding: 0.45rem 0.6rem;
	text-align: left;
	vertical-align: middle;
}

.lnb-checklist thead th {
	background: #eef2ff;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.lnb-cond-col {
	width: 130px;
}

.lnb-cond-select {
	width: 100%;
	padding: 0.3rem;
	border: 1px solid #c5c5c5;
	border-radius: 4px;
	font-size: 0.9rem;
}

.lnb-notes-input {
	width: 100%;
	border: none;
	border-bottom: 1px dotted #999;
	padding: 0.3rem 0.2rem;
	font-size: 0.95rem;
}

.lnb-signatures {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: 2rem;
}

.lnb-sig-block p {
	margin: 0 0 0.5rem;
}

.lnb-sig-line {
	border-bottom: 1px solid #222;
	min-height: 2.2em;
}

.lnb-receipt-no {
	text-align: center;
	color: #555;
}

@media (max-width: 600px) {
	.lnb-result-duo {
		grid-template-columns: 1fr;
	}
	.lnb-signatures {
		grid-template-columns: 1fr;
	}
	.lnb-check-grid {
		grid-template-columns: 1fr 1fr;
	}
}
