/* ============================================================
   깨알도구
   N일 후 날짜
   ============================================================ */

/* ============================================================
   LABEL
   ============================================================ */

.n-days-page .n-days-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 7px;
}

.n-days-page .n-days-label-row label {
  margin: 0;

  color: var(--text);

  font-size: var(--tool-label-size);
  font-weight: 800;
}

/* ============================================================
   TODAY BUTTON
   ============================================================ */

.n-days-page .n-days-today-button {
  flex: 0 0 auto;

  padding: 4px 8px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: var(--surface-soft);

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .n-days-page .n-days-today-button:hover {
    border-color: #d8d2c6;

    background: #ebe9e3;

    color: var(--text);
  }
}

/* ============================================================
   QUICK BUTTONS
   ============================================================ */

.n-days-page .n-days-quick-buttons {
  display: grid;

  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 7px;

  margin-top: -2px;
}

.n-days-page .n-days-quick-button {
  min-height: 36px;

  padding: 0 8px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--surface-soft);

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .n-days-page .n-days-quick-button:hover {
    border-color: #d8d2c6;

    background: #ebe9e3;

    color: var(--text);
  }
}

/* ============================================================
   MAIN RESULT
   ============================================================ */

.n-days-page .n-days-main-result {
  margin-top: 5px;

  text-align: center;
}

.n-days-page .n-days-main-result strong {
  display: block;

  color: var(--text);

  font-size: 34px;
  font-weight: 900;

  line-height: 1.2;

  letter-spacing: -1px;
}

/* ============================================================
   GUIDE
   ============================================================ */

.n-days-page .n-days-guide-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 8px;

  margin-top: 13px;
}

.n-days-page .n-days-guide-grid > div {
  padding: 11px 12px;

  border-radius: 10px;

  background: var(--surface-soft);
}

.n-days-page .n-days-guide-grid strong {
  display: block;

  margin-bottom: 3px;

  color: var(--text);

  font-size: 12px;
  font-weight: 800;
}

.n-days-page .n-days-guide-grid p {
  margin: 0;

  color: var(--text-soft);

  font-size: 12px;
  line-height: 1.55;

  word-break: keep-all;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {
  .n-days-page .n-days-quick-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .n-days-page .n-days-main-result strong {
    font-size: 29px;
  }

  .n-days-page .n-days-guide-grid {
    grid-template-columns: 1fr;
  }
}
