/* Days together calculator: scoped additions to the cream, ink and gold free-tool shell. */
[data-pgt-daystogether] .pgt-tool-dt { text-align: left; max-width: 900px; margin-inline: auto; }
[data-pgt-daystogether] .pgt-tool-dt *, [data-pgt-daystogether] .pgt-tool-dt *::before { box-sizing: border-box; }
[data-pgt-daystogether] .pgt-badge { color: #32260a; }
.pgt-tool-dt fieldset { border: 1px solid var(--pgt-line); border-radius: 12px; padding: 18px; margin: 20px 0; min-width: 0; }
.pgt-tool-dt legend { font-weight: 600; padding: 0 8px; }
.pgt-dt-kinds { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pgt-dt-kind { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1px solid #8c8374; border-radius: 999px; background: #fff; font-weight: 600; cursor: pointer; }
.pgt-dt-kind input { width: 20px; height: 20px; margin: 0; accent-color: #70550e; }
.pgt-dt-kind:has(input:checked) { border: 2px solid #70550e; background: #fff8e5; }
.pgt-tool-dt .pgt-dt-field label, .pgt-dt-plan-controls label { display: block; font-size: 15px; font-weight: 600; }
.pgt-tool-dt input[type="date"], .pgt-tool-dt select, .pgt-tool-dt textarea { display: block; width: 100%; min-height: 48px; margin-top: 7px; padding: 12px; border: 1px solid #8c8374; border-radius: 8px; background: #fff; color: #1a1a1a; font: inherit; font-size: 16px; }
.pgt-tool-dt input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.pgt-dt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.pgt-dt-hint { display: block; font-size: 13px; line-height: 1.6; color: #595247; font-weight: 400; margin-top: 7px; }
.pgt-dt-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pgt-dt-actions button { flex: 1 1 220px; margin-top: 0; }
[data-pgt-daystogether] .pgt-btn:not(.pgt-btn-secondary) { background: #70550e; color: #fff; min-height: 48px; white-space: normal; }
[data-pgt-daystogether] .pgt-btn-secondary { color: #443511; background: #fff8e5; border: 1px solid #8c742f; min-height: 48px; }
[data-pgt-daystogether] :is(button, input, select, textarea, a, summary, section):focus-visible { outline: 3px solid #285fa6; outline-offset: 4px; }
.pgt-tool-dt [aria-invalid="true"] { border: 2px solid #a32525; }
.pgt-tool-dt [hidden] { display: none !important; }
.pgt-tool-dt button:disabled { opacity: 0.55; cursor: not-allowed; }
.pgt-tool-dt .pgt-status { min-height: 3.4em; color: #443511; font-size: 14px; }
#pgtDtResult:not(:empty) { margin: 20px 0; padding: 22px; background: #fffaf0; border: 1px solid var(--pgt-line); border-radius: 14px; }
#pgtDtResult h3 { margin: 0 0 6px; font-size: 1.6rem; line-height: 1.25; }
#pgtDtResult h4 { margin: 24px 0 10px; font-size: 1.05rem; }
.pgt-dt-lead { margin: 0 0 14px; }
.pgt-dt-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.pgt-dt-metrics div { border: 1px solid var(--pgt-line); border-radius: 8px; padding: 12px; background: #fff; }
.pgt-dt-metrics dt { font-size: 13px; color: #595247; }
.pgt-dt-metrics dd { margin: 4px 0 0; font-size: 21px; font-weight: 600; overflow-wrap: anywhere; }
.pgt-dt-metrics small { display: block; font-size: 12.5px; font-weight: 400; color: #595247; }
.pgt-dt-milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pgt-dt-m { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 14px; background: #fff; border: 1px solid var(--pgt-line); border-radius: 10px; }
.pgt-dt-m-big { border-color: #8c742f; box-shadow: inset 4px 0 0 #b8941f; }
.pgt-dt-m-label { font-weight: 700; overflow-wrap: anywhere; }
.pgt-dt-m-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff3cf; color: #443511; font-size: 11.5px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.pgt-dt-m-until { color: #595247; font-size: 14px; white-space: nowrap; }
.pgt-dt-m-link { grid-column: 1 / -1; font-size: 14px; }
.pgt-dt-halfway { margin: 0; padding-left: 20px; }
.pgt-dt-halfway li { margin: 6px 0; }
.pgt-dt-couple { font-weight: 600; }
.pgt-dt-plan { margin-top: 24px; border-top: 1px solid var(--pgt-line); }
.pgt-dt-plan-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pgt-dt-plan-out { min-height: 6em; }
.pgt-dt-plan-date { margin: 16px 0 6px; font-size: 1.2rem; }
.pgt-dt-plan-date.pgt-dt-tight, .pgt-dt-plan-date.pgt-dt-physical-late { color: #7a3d0a; }
.pgt-dt-plan-links { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.pgt-dt-plan-links .pgt-btn { margin: 0; }
.pgt-dt-table caption { text-align: left; font-weight: 600; margin-bottom: 8px; }
#pgtDtCopyFallback { min-height: 220px; }
@media (max-width: 540px) {
  .pgt-dt-grid, .pgt-dt-plan-controls { grid-template-columns: 1fr; }
  .pgt-tool-dt fieldset { padding: 12px; }
  #pgtDtResult:not(:empty) { padding: 14px; }
  #pgtDtResult h3 { font-size: 1.35rem; }
  .pgt-dt-metrics dd { font-size: 18px; }
  .pgt-dt-m { grid-template-columns: minmax(0, 1fr) auto; }
  .pgt-dt-m-date { grid-column: 1 / -1; grid-row: 2; }
  .pgt-dt-actions button { width: 100%; }
  [data-pgt-daystogether] .pgt-hero { padding-top: 34px; }
  .pgt-dt-metrics div { padding: 10px; }
}
@media (max-width: 359px) {
  .pgt-dt-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgt-dt-metrics div:last-child { grid-column: 1 / -1; }
}
