/* Map Your Month — wizard styles. Colour and type tokens match the PDF. */

:root {
  --paper: #F8F4ED;
  --bone: #EFE8DC;
  --ink: #1A1814;
  --ink-soft: #4A4640;
  --sage: #9CAA8E;
  --sage-deep: #6E7C61;
  --ember: #C66B3D;
  --hairline: #D9D1C0;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Lora", Georgia, "Times New Roman", serif;

  --container: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Masthead */
.masthead {
  border-bottom: 1px solid var(--hairline);
  padding: 28px 24px 22px;
  text-align: center;
}

.wordmark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.meta {
  margin-top: 6px;
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--ink-soft);
}

/* Frame */
.frame {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Steps */
.steps {
  margin-bottom: 36px;
}

.steps ol {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 16px;
}

.steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.steps .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--hairline);
  display: inline-block;
}

.steps .step.is-current .dot {
  background: var(--ember);
  border-color: var(--ember);
}

.steps .step.is-done .dot {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.steps .step.is-current .label,
.steps .step.is-done .label {
  color: var(--ink);
}

/* Global: respect the HTML `hidden` attribute even when an element has an
   explicit `display` rule (otherwise `display: flex` etc. wins). */
[hidden] {
  display: none !important;
}

/* Panels */
.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.panel h1,
.panel h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.panel h1 { font-size: 42px; line-height: 1.1; }
.panel h2 { font-size: 32px; line-height: 1.15; }

.lede {
  font-family: var(--body);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0 0 20px;
}

.placeholder {
  background: var(--bone);
  border: 1px dashed var(--hairline);
  padding: 20px;
  font-style: italic;
  color: var(--ink-soft);
  border-radius: 2px;
}

/* Actions */
.actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.btn {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn.primary:hover { opacity: 0.86; }

.btn.primary:disabled {
  background: var(--hairline);
  border-color: var(--hairline);
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}

.btn.ghost:hover {
  background: var(--bone);
}

/* Form elements */
.form-group {
  margin: 28px 0 32px;
}

.field-label {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.field-meta {
  font-family: var(--body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.field-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.field-row .input { flex: 1; }
.field-row #begin-year { max-width: 120px; }

.input {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 10px 12px;
  width: 100%;
  line-height: 1.5;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.input:focus {
  outline: none;
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(198, 107, 61, 0.12);
}

.textarea {
  resize: vertical;
  min-height: 96px;
  font-family: var(--body);
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%234A4640' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Priorities list */
.priorities-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.priority-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.priority-num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-soft);
  min-width: 24px;
  text-align: right;
}

.priority-input { flex: 1; }

.priority-remove {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.priority-remove:hover {
  background: var(--bone);
  color: var(--ember);
}

.priority-remove:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--sage-deep);
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link:hover { color: var(--ember); }

/* Save indicator */
.save-indicator {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--sage-deep);
  font-style: italic;
  height: 14px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.save-indicator.is-visible { opacity: 1; }

/* Finish step status text under Draft It */
.finish-status {
  font-family: var(--body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 18px 0 0;
  min-height: 1.4em;
}

/* Copyright notice (Begin panel only) */
.copyright-notice {
  font-family: var(--body);
  font-size: 10px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 36px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  text-align: left;
}

/* Colophon */
.colophon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  padding: 24px;
  border-top: 1px solid var(--hairline);
}

.colophon-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.colophon-mark {
  height: 14px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.colophon-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.colophon-link:hover { color: var(--ember); }

/* ---------- Prep ---------- */

/* Section dividers within the Prep panel */
.prep-section {
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.prep-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

.field-meta-strong {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 8px;
  font-style: normal;
}

/* ---------- Looking Ahead: month blocks ---------- */
.month-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.month-block {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 20px 22px 22px;
}

.month-block-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.month-block-field {
  margin-top: 16px;
}

.month-block-field:first-of-type { margin-top: 0; }

.month-block-notes {
  min-height: 56px;
}

/* Holiday checklist */
.holiday-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}

.holiday-item label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
}

.holiday-item input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--sage-deep);
  transform: translateY(2px);
}

.holiday-date {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
  min-width: 56px;
  flex-shrink: 0;
}

.holiday-label {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
}

/* Personal date entries */
.personal-dates-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.personal-date-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--hairline);
}

.personal-date-row:last-child { border-bottom: none; }

.personal-date-display {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
  min-width: 80px;
}

.personal-date-text {
  flex: 1;
  font-size: 15px;
  color: var(--ink);
}

.personal-date-remove {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.personal-date-remove:hover {
  background: var(--bone);
  color: var(--ember);
}

.personal-date-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.personal-date-input {
  flex: 0 0 160px;
}

.personal-date-label {
  flex: 1;
}

.personal-date-add {
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 8px 16px;
}

.personal-date-enddate-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.personal-date-end-input {
  flex: 0 0 160px;
}

.personal-date-end-label {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
}

.personal-date-end-toggle {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 2px 0;
}

/* ---------- Considering All the Things ---------- */
.things-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.thing-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.thing-num {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  min-width: 28px;
  text-align: right;
}

.thing-input { flex: 1; }

.thing-remove {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.thing-remove:hover {
  background: var(--bone);
  color: var(--ember);
}

.thing-remove:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.lock-cta {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.evaluate-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 16px;
}

/* Evaluation list */
.evaluation-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 12px;
  border-top: 1px solid var(--hairline);
}

.evaluation-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.evaluation-row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.evaluation-text {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.45;
}

.evaluation-question {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: center;
  padding-left: 12px;
}

.evaluation-question[hidden] {
  display: none;
}

.evaluation-question-label {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.evaluation-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.evaluation-pill {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.evaluation-pill:hover {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

.evaluation-pill.is-selected {
  background: var(--sage-deep);
  color: #FFFFFF;
  border-color: var(--sage-deep);
}

.evaluation-bucket {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--sage-deep);
  white-space: nowrap;
  text-align: right;
}

/* Buckets */
.buckets {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bucket {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 16px 18px;
}

.bucket[data-bucket="undecided"] {
  grid-column: 1 / -1;
  background: #FFFFFF;
}

.bucket-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}

.bucket-meta {
  font-family: var(--body);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 10px;
  line-height: 1.45;
}

.bucket-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bucket-item {
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px dashed var(--hairline);
}

.bucket-item:last-child { border-bottom: none; }

.bucket-empty {
  color: var(--ink-soft);
  font-style: italic;
  padding: 6px 0;
  font-size: 14px;
}

/* Tending: practice infrastructure */
.tending-questions {
  list-style: none;
  padding: 0;
  margin: 12px 0 8px;
  border-top: 1px solid var(--hairline);
}

.tending-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.tending-question-text {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.45;
  flex: 1 1 auto;
  min-width: 0;
}

.tending-options {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.tending-pill {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--ink-soft);
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.tending-pill:hover {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}

.tending-pill.is-selected {
  background: var(--sage-deep);
  color: #FFFFFF;
  border-color: var(--sage-deep);
}

.tending-menus {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 16px;
}

.tending-card {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 18px 20px;
}

.tending-card-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
}

.tending-card-desc {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 12px;
}

.tending-card-transition {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 10px;
}

.tending-option-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tending-option-row {
  padding: 8px 0;
}

.tending-option-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.5;
}

.tending-option-check {
  margin: 0;
  accent-color: var(--sage-deep);
  flex-shrink: 0;
  margin-top: 5px;
}

.tending-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tending-option-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.tending-option-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.tending-empty {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
  margin: 12px 0 0;
}

.tending-custom-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}

.tending-custom-text {
  flex: 1;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

.tending-custom-text::before {
  content: "·  ";
  color: var(--sage-deep);
  font-weight: 600;
}

.tending-custom-remove {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.tending-custom-remove:hover {
  background: var(--bone);
  color: var(--ember);
}

.tending-custom-add {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tending-custom-input {
  flex: 1 1 280px;
  font-size: 14px;
}

.tending-custom-save {
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 8px 16px;
}

/* Save-for-later link below the Begin button */
.save-for-later {
  margin: 14px 0 0;
  text-align: right;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
}

.save-for-later a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.save-for-later a:hover {
  color: var(--ember);
}

/* Mobile */
@media (max-width: 600px) {
  /* Tighter frame padding for more usable width on phones */
  .frame { padding: 24px 16px 48px; }

  .panel h1 { font-size: 34px; }
  .panel h2 { font-size: 26px; }

  /* Step indicator: hide labels except for the current step so users always
     know where they are without the row getting cramped. */
  .steps .label { display: none; }
  .steps .step.is-current .label,
  .steps .step.is-current.is-done .label { display: inline; }

  .actions { flex-direction: column-reverse; }
  .btn { width: 100%; }

  /* iOS auto-zoom prevention: every editable input must be ≥16px font on
     touch screens. Override the smaller sizes used for compact UIs. */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="date"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Touch targets: bump small × buttons to ~40px square on mobile so they
     hit the 44pt iOS guideline (close enough at 40 with hit-slop padding). */
  .priority-remove,
  .thing-remove {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .personal-date-remove,
  .tending-custom-remove {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  /* End-date toggle: bump from 10px → 12px so it's easier to read & tap. */
  .personal-date-end-toggle {
    font-size: 12px;
    padding: 6px 0;
  }

  .holiday-list { grid-template-columns: 1fr; }
  .personal-date-form { flex-wrap: wrap; }
  .personal-date-input { flex: 1 1 100%; }
  .personal-date-label { flex: 1 1 100%; }
  .personal-date-add { width: 100%; }
  .personal-date-end-input { flex: 1 1 100%; }

  .evaluation-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .evaluation-question {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 0;
  }
  .evaluation-bucket { text-align: left; }

  .buckets { grid-template-columns: 1fr; }
  .bucket[data-bucket="undecided"] { grid-column: 1; }

  .tending-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Tending option rows: more breathing room between items on small screens */
  .tending-option-row { padding: 12px 0; }

  /* Custom Tending add form: stack input + buttons full-width on mobile. */
  .tending-custom-input { flex: 1 1 100%; }
  .tending-custom-save { width: 100%; }
}
