/* Garden Planner (pgamo) — matches the pgamo.com homestead pages: maroon, cream and gold with Gloock headings. */
.pgamo-gp {
	--gp-maroon: #4a1119;
	--gp-maroon-dark: #350c12;
	--gp-cream: #fbf7f2;
	--gp-cream-2: #f6ecd9;
	--gp-gold: #b3823a;
	--gp-gold-dark: #96692b;
	--gp-red: #a3301f;
	--gp-green: #3e8e2f;
	--gp-ink: #2b1d1f;
	--gp-muted: #6b5b5d;
	--gp-line: #e6dad6;
	--gp-radius: 10px;
	--gp-shadow: 0 4px 18px rgba(74, 17, 25, .08);
	--gp-serif: Gloock, Georgia, 'Times New Roman', serif;
	color: #444;
	font-size: 16px;
	line-height: 1.55;
	max-width: 1180px;
	margin: 40px auto;
	padding: 0 16px;
	position: relative;
}
.pgamo-gp *, .pgamo-gp *::before, .pgamo-gp *::after { box-sizing: border-box; }
.pgamo-gp h3, .pgamo-gp h4, .pgamo-gp h5 { color: var(--gp-maroon); font-family: var(--gp-serif); font-weight: 600; margin: 0 0 .5em; line-height: 1.25; }
.pgamo-gp h3 { font-size: 1.6rem; }
.pgamo-gp h4 { font-size: 1.25rem; }
.pgamo-gp a { color: var(--gp-maroon); }
.pgamo-gp small { color: var(--gp-muted); }
.pgamo-gp .gp-loading { padding: 40px; text-align: center; color: var(--gp-muted); }

.pgamo-gp .gp-card { background: #fff; border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); padding: 20px 22px; margin: 0 0 18px; }
.pgamo-gp details.gp-card > summary { cursor: pointer; font-family: var(--gp-serif); font-weight: 600; font-size: 1.15rem; color: var(--gp-maroon); list-style: none; }
.pgamo-gp details.gp-card > summary::-webkit-details-marker { display: none; }
.pgamo-gp details.gp-card > summary::before { content: '+ '; }
.pgamo-gp details.gp-card[open] > summary { margin-bottom: 12px; }
.pgamo-gp details.gp-card[open] > summary::before { content: '− '; }
.pgamo-gp .gp-frost summary { font-family: inherit !important; font-size: 1rem !important; font-weight: 400 !important; color: var(--gp-ink) !important; }
.pgamo-gp .gp-guest { background: var(--gp-cream-2); border-left: 4px solid var(--gp-gold); }
.pgamo-gp .gp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pgamo-gp .gp-head h3, .pgamo-gp .gp-head h4 { margin: 0; }
.pgamo-gp .gp-hint { color: var(--gp-muted); font-size: .92rem; margin: 8px 0; }
.pgamo-gp .gp-empty { color: var(--gp-muted); font-style: italic; }
.pgamo-gp .gp-note { padding: 14px; background: var(--gp-cream); border-radius: 8px; }
.pgamo-gp .is-error { color: var(--gp-red); }
.pgamo-gp .gp-warn { color: #8a3a12; background: #fbeee2; border-radius: 6px; padding: 6px 10px; font-size: .92rem; margin: 8px 0; }
.pgamo-gp .gp-warn-i { color: #a3501f; font-size: .85rem; }

/* Forms and buttons */
.pgamo-gp label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--gp-ink); }
.pgamo-gp input[type="text"], .pgamo-gp input:not([type]), .pgamo-gp input[type="number"], .pgamo-gp input[type="date"], .pgamo-gp input[type="search"], .pgamo-gp select, .pgamo-gp textarea {
	font: inherit; font-weight: 400; font-size: 1rem; padding: 8px 10px; border: 1px solid #d8c9c4; border-radius: 8px; background: #fff; color: var(--gp-ink); width: 100%; min-height: 40px;
}
.pgamo-gp input:focus, .pgamo-gp select:focus, .pgamo-gp textarea:focus { outline: 2px solid var(--gp-gold); outline-offset: 1px; border-color: var(--gp-gold); }
.pgamo-gp .gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.pgamo-gp .gp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pgamo-gp .gp-span2 { grid-column: span 2; }
.pgamo-gp .gp-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.pgamo-gp .gp-row label { flex: 1 1 150px; }
.pgamo-gp .gp-btn, .pgamo-gp button.gp-btn, .pgamo-gp a.gp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 18px; border-radius: 8px;
	background: var(--gp-gold); border: 2px solid var(--gp-gold); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.pgamo-gp .gp-btn:hover { background: var(--gp-gold-dark); border-color: var(--gp-gold-dark); color: #fff; }
.pgamo-gp .gp-btn:disabled { opacity: .5; cursor: default; }
.pgamo-gp .gp-btn-ghost, .pgamo-gp button.gp-btn-ghost, .pgamo-gp a.gp-btn-ghost { background: transparent; color: var(--gp-maroon); border-color: var(--gp-maroon); }
.pgamo-gp .gp-btn-ghost:hover { background: var(--gp-cream-2); color: var(--gp-maroon-dark); }
.pgamo-gp .gp-btn-sm, .pgamo-gp button.gp-btn-sm { min-height: 34px; padding: 4px 12px; font-size: .88rem; }
.pgamo-gp .gp-btn.is-danger { color: var(--gp-red); border-color: var(--gp-red); }
.pgamo-gp .gp-link, .pgamo-gp button.gp-link { background: none; border: 0; padding: 0; color: var(--gp-maroon); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; display: inline; min-height: 0; }
.pgamo-gp .gp-link.is-danger { color: var(--gp-red); }
.pgamo-gp .gp-btnrow { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }

/* Plan list */
.pgamo-gp .gp-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pgamo-gp .gp-plan { border: 1px solid var(--gp-line); border-top: 3px solid var(--gp-gold); border-radius: var(--gp-radius); background: var(--gp-cream); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pgamo-gp .gp-plan-open { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--gp-ink); font: inherit; }
.pgamo-gp .gp-plan-open strong { font-family: var(--gp-serif); color: var(--gp-maroon); font-size: 1.15rem; }
.pgamo-gp .gp-plan-open span { color: var(--gp-muted); font-size: .9rem; }
.pgamo-gp .gp-plan-open:hover strong { text-decoration: underline; }
.pgamo-gp .gp-plan-actions { display: flex; gap: 14px; font-size: .9rem; }

/* Plan header */
.pgamo-gp .gp-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; gap: 10px; flex-wrap: wrap; }
.pgamo-gp .gp-save { font-size: .85rem; color: var(--gp-muted); padding: 3px 10px; border-radius: 99px; background: var(--gp-cream); }
.pgamo-gp .gp-save.is-saved::before { content: '✓ '; color: var(--gp-green); }
.pgamo-gp .gp-save.is-error { background: #fbe3dd; color: var(--gp-red); cursor: pointer; }
.pgamo-gp .gp-title { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.pgamo-gp .gp-title h3 { margin: 0 0 2px; }
.pgamo-gp .gp-title-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pgamo-gp .gp-settings { flex: 1 1 100%; }
.pgamo-gp .gp-settings summary { cursor: pointer; color: var(--gp-maroon); font-weight: 600; font-size: .92rem; }
.pgamo-gp .gp-settings form { margin-top: 10px; }

/* Tabs */
.pgamo-gp .gp-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 2px solid var(--gp-line); margin: 0 0 16px; scrollbar-width: thin; }
.pgamo-gp .gp-tabs button { flex: 0 0 auto; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--gp-muted); cursor: pointer; white-space: nowrap; }
.pgamo-gp .gp-tabs button:hover { color: var(--gp-maroon); }
.pgamo-gp .gp-tabs button.is-active { color: var(--gp-maroon); border-bottom-color: var(--gp-gold); }
.pgamo-gp .gp-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: #c0301f; color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }

/* Layout tab */
.pgamo-gp .gp-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; align-items: center; }
.pgamo-gp .gp-seg { display: inline-flex; border: 2px solid var(--gp-maroon); border-radius: 8px; overflow: hidden; }
.pgamo-gp .gp-seg button { background: #fff; border: 0; border-left: 1px solid var(--gp-line); padding: 6px 12px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--gp-maroon); cursor: pointer; min-height: 36px; }
.pgamo-gp .gp-seg button:first-child { border-left: 0; }
.pgamo-gp .gp-seg button.is-on { background: var(--gp-maroon); color: #fff; }
.pgamo-gp .gp-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; font-size: .9rem; font-weight: 600; color: var(--gp-muted); }
.pgamo-gp .gp-chip { background: var(--gp-cream); border: 1px solid var(--gp-line); border-radius: 99px; padding: 4px 12px; font: inherit; font-size: .85rem; color: var(--gp-ink); cursor: pointer; min-height: 32px; }
.pgamo-gp .gp-chip:hover { border-color: var(--gp-gold); }
.pgamo-gp .gp-chip.is-on { background: var(--gp-maroon); border-color: var(--gp-maroon); color: #fff; }
.pgamo-gp .gp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pgamo-gp .gp-canvas-wrap { background: #fff; border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); padding: 12px; overflow: auto; max-height: 120vh; }
.pgamo-gp .gp-canvas { display: block; touch-action: pan-x pan-y pinch-zoom; margin: 0 auto; user-select: none; -webkit-user-select: none; cursor: default; }
.pgamo-gp .gp-canvas.is-locked { touch-action: none; }
.pgamo-gp .gp-canvas.is-planting { cursor: crosshair; }
.pgamo-gp .gp-canvas text { pointer-events: none; font-family: 'Source Sans 3', system-ui, sans-serif; }
.pgamo-gp .gp-canvas .gp-bedlabel { font-weight: 700; }
.pgamo-gp .gp-handle { cursor: nwse-resize; }
.pgamo-gp .gp-side { background: #fff; border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); padding: 16px; position: sticky; top: 90px; max-height: 82vh; overflow: auto; }
.pgamo-gp .gp-side h4 { font-size: 1.1rem; }
.pgamo-gp .gp-props { display: flex; flex-direction: column; gap: 8px; }
.pgamo-gp .gp-objlist { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.pgamo-gp .gp-objlist li { padding: 3px 0; border-bottom: 1px dashed var(--gp-line); }
.pgamo-gp .gp-brush-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pgamo-gp .gp-picker input[type="search"] { margin: 10px 0 6px; }
.pgamo-gp .gp-filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pgamo-gp .gp-filters .gp-chip { font-size: .78rem; padding: 2px 9px; min-height: 26px; }
.pgamo-gp .gp-crops { display: grid; grid-template-columns: 1fr; gap: 4px; max-height: 46vh; overflow: auto; padding-right: 2px; }
.pgamo-gp .gp-crop { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--gp-line); border-radius: 8px; padding: 4px 8px; text-align: left; font: inherit; font-size: .92rem; color: var(--gp-ink); cursor: pointer; min-height: 40px; }
.pgamo-gp .gp-crop span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.pgamo-gp .gp-crop small { font-size: .75rem; }
.pgamo-gp .gp-crop:hover { border-color: var(--gp-gold); }
.pgamo-gp .gp-crop.is-on { border: 2px solid var(--gp-maroon); background: var(--gp-cream-2); }
.pgamo-gp .gp-crop.is-dim { opacity: .5; }
.pgamo-gp .gp-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; font-size: 17px; flex: 0 0 auto; }
.pgamo-gp .gp-ico-lg { width: 42px; height: 42px; font-size: 26px; }
.pgamo-gp .gp-cropcard { background: var(--gp-cream); border-radius: 8px; padding: 10px 12px; margin: 0 0 6px; }
.pgamo-gp .gp-cropcard-head { display: flex; gap: 10px; align-items: center; }
.pgamo-gp .gp-cropcard-head div { display: flex; flex-direction: column; line-height: 1.25; }
.pgamo-gp .gp-cropcard-head strong { color: var(--gp-maroon); font-family: var(--gp-serif); font-size: 1.1rem; }
.pgamo-gp .gp-dates { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0; font-size: .9rem; }
.pgamo-gp .gp-dates dt { color: var(--gp-muted); }
.pgamo-gp .gp-dates dd { margin: 0; font-weight: 600; color: var(--gp-ink); }
.pgamo-gp .gp-rel { font-size: .86rem; margin: 6px 0; }
.pgamo-gp .gp-rel.is-good strong { color: var(--gp-green); }
.pgamo-gp .gp-rel.is-bad strong { color: #c0301f; }
.pgamo-gp .gp-variety { margin-top: 8px; font-size: .85rem; }
.pgamo-gp .gp-key { font-weight: 700; padding: 0 4px; border-radius: 3px; }
.pgamo-gp .gp-key.is-good { color: var(--gp-green); border: 2px solid var(--gp-green); }
.pgamo-gp .gp-key.is-bad { color: #c0301f; border: 2px solid #c0301f; }
.pgamo-gp .gp-key.is-rot { color: #a95f07; background: #fde7c9; }

/* Tables */
.pgamo-gp .gp-tablewrap { overflow-x: auto; }
.pgamo-gp .gp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pgamo-gp .gp-table th, .pgamo-gp .gp-table td { padding: 7px 8px; border-bottom: 1px solid var(--gp-line); text-align: left; vertical-align: middle; }
.pgamo-gp .gp-table thead th { background: var(--gp-cream-2); color: var(--gp-maroon); white-space: nowrap; }
.pgamo-gp .gp-table .num { text-align: right; white-space: nowrap; }
.pgamo-gp .gp-table .gp-group th { background: var(--gp-cream); font-family: var(--gp-serif); color: var(--gp-maroon); }
.pgamo-gp .gp-table tfoot th { border-top: 2px solid var(--gp-maroon); }
.pgamo-gp .gp-table .gp-in { min-width: 130px; min-height: 34px; padding: 4px 8px; font-size: .9rem; }

/* Timeline */
.pgamo-gp .gp-legend { font-size: .85rem; color: var(--gp-muted); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pgamo-gp .gp-legend .gp-bar { position: static; display: inline-block; width: 22px; height: 10px; }
.pgamo-gp .gp-tl { position: relative; overflow-x: auto; }
.pgamo-gp .gp-tl-row, .pgamo-gp .gp-tl-lines { display: grid; grid-template-columns: 190px minmax(520px, 1fr); align-items: center; min-height: 28px; border-bottom: 1px dashed var(--gp-line); }
.pgamo-gp .gp-tl-months { border-bottom: 2px solid var(--gp-line); min-height: 24px; }
.pgamo-gp .gp-tl-lines { position: absolute; inset: 0; border: 0; pointer-events: none; }
.pgamo-gp .gp-tl-name { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.pgamo-gp .gp-tl-track { position: relative; height: 100%; min-height: 24px; }
.pgamo-gp .gp-tl-month { position: absolute; top: 3px; font-size: .78rem; color: var(--gp-muted); padding-left: 3px; border-left: 1px solid var(--gp-line); }
.pgamo-gp .gp-bar { position: absolute; top: 7px; height: 12px; border-radius: 3px; }
.pgamo-gp .gp-bar.is-indoor { background: #b9d3e6; }
.pgamo-gp .gp-bar.is-grow { background: #8fbf6a; }
.pgamo-gp .gp-bar.is-harvest { background: var(--gp-gold); }
.pgamo-gp .gp-tl-next { position: absolute; right: 0; top: 4px; font-size: .75rem; color: var(--gp-muted); background: #fff; padding: 0 3px; }
.pgamo-gp .gp-frostline, .pgamo-gp .gp-todayline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed #3f7fbf; }
.pgamo-gp .gp-todayline { border-left: 2px solid var(--gp-gold); }

/* Tasks and checks */
.pgamo-gp .gp-send { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--gp-cream-2); }
.pgamo-gp .gp-send > div { flex: 1 1 320px; }
.pgamo-gp .gp-week { font-size: 1rem; margin: 16px 0 6px; }
.pgamo-gp .gp-week.is-now { color: var(--gp-gold-dark); }
.pgamo-gp .gp-week.is-past { color: var(--gp-muted); }
.pgamo-gp .gp-tasks { list-style: none; margin: 0; padding: 0; }
.pgamo-gp .gp-tasks li { padding: 6px 0; border-bottom: 1px dashed var(--gp-line); }
.pgamo-gp .gp-tasks.is-past li { opacity: .6; }
.pgamo-gp .gp-task-date { display: inline-block; min-width: 56px; color: var(--gp-muted); font-size: .88rem; }
.pgamo-gp .gp-checks { list-style: none; margin: 0; padding: 0; }
.pgamo-gp .gp-checks li { padding: 8px 10px 8px 34px; border-radius: 8px; margin-bottom: 6px; position: relative; }
.pgamo-gp .gp-checks li::before { position: absolute; left: 10px; top: 8px; }
.pgamo-gp .gp-checks li.is-warn { background: #fbeee2; }
.pgamo-gp .gp-checks li.is-warn::before { content: '⚠'; color: #a3501f; }
.pgamo-gp .gp-checks li.is-info { background: #eef3f8; }
.pgamo-gp .gp-checks li.is-info::before { content: 'ℹ'; color: #3f6f9f; }
.pgamo-gp .gp-checks li.is-good { background: #eaf4e4; }
.pgamo-gp .gp-checks li.is-good::before { content: '✓'; color: var(--gp-green); }
.pgamo-gp .gp-checks .gp-link { text-decoration: none; color: var(--gp-ink); }
.pgamo-gp .gp-checks .gp-link:hover { text-decoration: underline; }
.pgamo-gp .gp-notes { min-height: 200px; }

.pgamo-gp .gp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--gp-maroon); color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: all .25s; z-index: 99999; max-width: 90vw; }
.pgamo-gp .gp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pgamo-gp .gp-toast.is-error { background: var(--gp-red); }

@media (max-width: 900px) {
	.pgamo-gp .gp-layout { grid-template-columns: 1fr; }
	.pgamo-gp .gp-side { position: static; max-height: none; }
	.pgamo-gp .gp-crops { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 40vh; }
	.pgamo-gp .gp-canvas-wrap { max-height: 64vh; padding: 6px; }
}
@media (max-width: 560px) {
	.pgamo-gp { padding: 0 10px; margin: 24px auto; }
	.pgamo-gp .gp-card { padding: 16px; }
	.pgamo-gp .gp-span2 { grid-column: auto; }
	.pgamo-gp .gp-tl-row, .pgamo-gp .gp-tl-lines { grid-template-columns: 120px minmax(480px, 1fr); }
}

/* Printing: only the print sheet shows. */
#gp-print { display: none; }
@media print {
	body.gp-printing > *:not(#gp-print) { display: none !important; }
	body.gp-printing #gp-print { display: block !important; margin: 0; padding: 0; max-width: none; }
	#gp-print h2 { font-family: Georgia, serif; color: #4a1119; margin: 0 0 4px; }
	#gp-print h3 { margin: 18px 0 6px; }
	#gp-print svg { max-width: 100%; height: auto; page-break-inside: avoid; }
	#gp-print .gp-card { box-shadow: none; padding: 0; }
	#gp-print .gp-table th, #gp-print .gp-table td { padding: 4px 6px; font-size: 10pt; }
	#gp-print .gp-week { page-break-after: avoid; }
}
