/* Gardening Decisions Tools – uses the theme's colours when available. */
.gdt-tool {
	--gdt-ink: var(--ink, #173A27);
	--gdt-green: var(--green, #2C5A3D);
	--gdt-muted: var(--muted, #5F6A62);
	--gdt-line: var(--line, #DFDACD);
	--gdt-surface: var(--surface, #FCFAF5);
	--gdt-sage: var(--sage, #E4E9DC);
	--gdt-gold: var(--gold, #C8B184);
	--gdt-gold-hover: var(--gold-hover, #B9A274);
	--gdt-r: var(--r-lg, 10px);
	background: var(--gdt-surface);
	border: 1px solid var(--gdt-line);
	border-radius: var(--gdt-r);
	padding: clamp(18px, 3vw, 32px);
	color: var(--gdt-ink);
	margin-block: 24px;
	max-width: 760px;
}
.gdt-tool *, .gdt-tool *::before, .gdt-tool *::after { box-sizing: border-box; }
.gdt-tool [hidden] { display: none !important; }
.gdt-field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.gdt-field label, .gdt-shapes legend { font-weight: 600; font-size: 15px; }
.gdt-field input, .gdt-field select {
	width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px;
	border: 1px solid var(--gdt-line); border-radius: 6px; background: #fff; color: var(--gdt-ink);
}
.gdt-field input:focus, .gdt-field select:focus { outline: 2px solid var(--gdt-green); outline-offset: 1px; }
.gdt-shapes { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gdt-shapes legend { margin-bottom: 8px; padding: 0; }
.gdt-shapes label {
	display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
	border: 1px solid var(--gdt-line); border-radius: 8px; background: #fff; font-size: 15px; line-height: 1.3;
}
.gdt-shapes label:has(input:checked) { border-color: var(--gdt-green); background: var(--gdt-sage); }
.gdt-shapes input { accent-color: var(--gdt-green); width: 18px; height: 18px; flex: none; margin: 0; }
.gdt-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.gdt-row[data-for="round"], .gdt-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gdt-row[data-for="bag"] { grid-template-columns: minmax(0, 1fr); max-width: 320px; }
.gdt-actions { margin: 6px 0 0; }
.gdt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px;
	padding: 10px 26px; border: 0; border-radius: 6px; cursor: pointer; font: inherit; font-weight: 600;
	background: var(--gdt-green); color: #fff; text-decoration: none;
}
.gdt-btn:hover, .gdt-btn:focus-visible { filter: brightness(1.1); color: #fff; }
.gdt-btn--gold { background: var(--gdt-gold); color: #2A220F; padding: 8px 16px; min-height: 40px; font-size: 14.5px; white-space: nowrap; }
.gdt-btn--gold:hover, .gdt-btn--gold:focus-visible { background: var(--gdt-gold-hover); color: #2A220F; filter: none; }
.gdt-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; background: #FBEAE7; color: #8A2B1D; font-size: 15px; }
.gdt-result { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--gdt-line); }
.gdt-result h3, .gdt-result h4 { margin: 0 0 6px; color: var(--gdt-ink); }
.gdt-result__title { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gdt-muted) !important; }
.gdt-result__big { font-family: var(--serif, Georgia, serif); font-size: clamp(30px, 5vw, 42px); line-height: 1.1; margin: 0 0 8px; color: var(--gdt-green); }
.gdt-result__units { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--gdt-muted); }
.gdt-result h4 { font-size: 20px; margin-top: 8px; }
.gdt-meta { color: var(--gdt-muted); font-size: 14px; margin: 0 0 10px; }
.gdt-bags { width: 100%; max-width: 420px; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.gdt-bags th, .gdt-bags td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--gdt-line); }
.gdt-bags th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--gdt-muted); }
.gdt-bags td:last-child, .gdt-bags th:last-child { text-align: right; font-weight: 600; }
.gdt-tip { background: var(--gdt-sage); border-radius: 6px; padding: 10px 14px; margin: 0 0 8px; font-size: 15px; }
.gdt-shop { margin-top: 22px; padding: 18px; border-radius: var(--gdt-r); border: 1px solid var(--gdt-line); background: #fff; }
.gdt-shop__list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.gdt-shop__item { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--gdt-line); }
.gdt-shop__item:last-child { border-bottom: 0; padding-bottom: 0; }
.gdt-shop__item img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; }
.gdt-shop__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: 15px; }
.gdt-shop__text em { font-style: normal; color: var(--gdt-muted); font-size: 13.5px; }
.gdt-disclosure { margin: 12px 0 0; font-size: 13px; color: var(--gdt-muted); }
.gdt-cta { margin-top: 28px !important; padding: 14px 18px; border-radius: var(--r-lg, 10px); background: var(--sage, #E4E9DC); }
@media (max-width: 600px) {
	.gdt-shapes, .gdt-row, .gdt-row[data-for="round"], .gdt-row--2 { grid-template-columns: minmax(0, 1fr); }
	.gdt-actions .gdt-btn { width: 100%; }
	.gdt-shop__item { flex-wrap: wrap; }
	.gdt-shop__item .gdt-btn--gold { width: 100%; }
}
/* Beat the parent theme's default button colours */
html body .gdt-tool button.gdt-btn, html body .gdt-tool a.gdt-btn { background: var(--gdt-green); color: #fff; border: 0; }
html body .gdt-tool a.gdt-btn--gold { background: var(--gdt-gold); color: #2A220F; }
html body .gdt-tool a.gdt-btn--gold:hover, html body .gdt-tool a.gdt-btn--gold:focus-visible { background: var(--gdt-gold-hover); color: #2A220F; }
/* Tools page cards */
.gdt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-block: 24px; }
.gdt-card { background: var(--surface, #FCFAF5); border: 1px solid var(--line, #DFDACD); border-radius: var(--r-lg, 10px); padding: 22px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.gdt-card:hover { border-color: var(--green, #2C5A3D); box-shadow: 0 6px 18px rgba(23, 58, 39, .08); }
.gdt-card__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sage, #E4E9DC); color: var(--green, #2C5A3D); display: inline-flex; align-items: center; justify-content: center; }
.gdt-card__title { margin: 6px 0 0 !important; font-size: 22px; }
.gdt-card__title a { color: var(--ink, #173A27); text-decoration: none; }
.gdt-card__desc { margin: 0 !important; color: var(--muted, #5F6A62); font-size: 15px; flex: 1 1 auto; }
.gdt-card__link { margin: 4px 0 0 !important; font-weight: 600; }
.gdt-card__link a { color: var(--green, #2C5A3D); }
/* Full page width, lined up with the rest of the site */
.gdt-tool { box-sizing: border-box; max-width: none; width: 100%; }
.gdt-placeholder { display: none; }
@media (min-width: 900px) {
	.gdt-soil { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
	.gdt-soil .gdt-result { margin-top: 0; padding-top: 0; border-top: 0; padding-left: 48px; border-left: 1px solid var(--gdt-line); margin-left: -48px; padding-left: 48px; }
	.gdt-soil .gdt-placeholder { display: flex; align-items: center; justify-content: center; min-height: 260px; padding: 32px; border: 1px dashed var(--gdt-line); border-radius: var(--gdt-r); color: var(--gdt-muted); text-align: center; }
	.gdt-soil .gdt-result:not([hidden]) ~ .gdt-placeholder { display: none; }
	.gdt-soil .gdt-placeholder p { margin: 0; max-width: 34ch; }
}
html body .gdt-tool ul.gdt-shop__list, html body .gdt-tool ul.gdt-result__units { padding-left: 0; margin-left: 0; } html body .gdt-tool .gdt-shop__item, html body .gdt-tool .gdt-result__units li { margin-left: 0; list-style: none; }

/* ---------- Planners (seed, watering, sunlight, grow bag & drip) ---------- */
.gdt-label { font-weight: 600; font-size: 15px; margin: 4px 0 8px; }
.gdt-help { font-size: 13.5px; color: var(--gdt-muted); }
.gdt-field--narrow { max-width: 320px; }
.gdt-form__title { font-size: 20px !important; margin: 0 0 12px !important; color: var(--gdt-ink); }
.gdt-form__title ~ .gdt-form__title { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid var(--gdt-line); }
.gdt-rows { display: grid; gap: 10px; margin-bottom: 6px; }
.gdt-rowline { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 0 12px; align-items: end; padding: 12px; border: 1px solid var(--gdt-line); border-radius: 8px; background: #fff; }
.gdt-rowline--2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 36px; }
.gdt-rowline .gdt-field { margin: 0; }
.gdt-rowline .gdt-field label { font-size: 13.5px; font-weight: 600; }
.gdt-remove { width: 36px; height: 46px; border: 1px solid var(--gdt-line); border-radius: 6px; background: #fff; color: var(--gdt-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.gdt-remove:hover { color: #8A2B1D; border-color: #8A2B1D; }
html body .gdt-tool button.gdt-btn--ghost { background: #fff; color: var(--gdt-green); border: 1px solid var(--gdt-green); }
.gdt-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gdt-table-wrap { overflow-x: auto; }
.gdt-table { max-width: none; }
.gdt-table td:last-child, .gdt-table th:last-child { text-align: left; font-weight: 400; }
.gdt-days { list-style: none; padding: 0 !important; margin: 8px 0 16px !important; display: grid; gap: 0; }
.gdt-days li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--gdt-line); margin: 0 !important; font-size: 15px; }
.gdt-days__date { font-weight: 600; }
.gdt-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--gdt-green); color: #fff; font-weight: 600; margin: 0 0 12px; }
.gdt-space .gdt-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 900px) {
	.gdt-seed, .gdt-water, .gdt-sun, .gdt-space { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
	.gdt-seed .gdt-result, .gdt-water .gdt-result, .gdt-sun .gdt-result, .gdt-space .gdt-result { margin: 0 0 0 -48px; padding: 0 0 0 48px; border-top: 0; border-left: 1px solid var(--gdt-line); }
	.gdt-seed .gdt-placeholder, .gdt-water .gdt-placeholder, .gdt-sun .gdt-placeholder, .gdt-space .gdt-placeholder { display: flex; align-items: center; justify-content: center; min-height: 260px; padding: 32px; border: 1px dashed var(--gdt-line); border-radius: var(--gdt-r); color: var(--gdt-muted); text-align: center; }
	.gdt-tool .gdt-result:not([hidden]) ~ .gdt-placeholder { display: none; }
	.gdt-tool .gdt-placeholder p { margin: 0; max-width: 34ch; }
}
@media (max-width: 1100px) {
	.gdt-rowline { grid-template-columns: minmax(0, 1fr) 36px; }
	.gdt-rowline .gdt-field { grid-column: 1; margin-bottom: 8px; }
	.gdt-rowline .gdt-remove { grid-column: 2; grid-row: 1; align-self: end; }
}
@media (max-width: 600px) {
	.gdt-space .gdt-row { grid-template-columns: minmax(0, 1fr); }
	.gdt-days li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.gdt-actions .gdt-btn { width: 100%; }
}
.gdt-row { align-items: end; }
